/* css/ortak/site-header.css — sitenin ortak üst kısmı (genel/partials/site-header.blade.php), 2026-10-06.
   Ana sayfadaki header stilleri buraya taşındı (önce css/sayfa/ana-sayfa-1.css ve ana-sayfa-mobil.css'teydi);
   ana sayfa ve kategori/vitrin/arama sayfası bu dosyayı kullanır. Telefon (767px ve altı) kuralları en altta.
   İlk blok: başka sayfanın genel stili (ör. vitrin.css'teki * { font-family } ve satır yüksekliği) header'ı
   bozmasın diye header'ın kendi temel ayarları — ana sayfada zaten aynı değerler geçerli. */
.header,.mobil-menu{--text:#1a1a2e;--text-hafif:#666680;--shadow-hover:0 6px 20px rgba(26,26,46,.14);--r:12px;
  font-family:'Nunito',sans-serif;line-height:normal;color:var(--text)}
.header :where(*),.mobil-menu :where(*){font-family:inherit}
.header button,.mobil-menu button{font-family:'Nunito',sans-serif;cursor:pointer;border:none;background:none;color:inherit}
.mobil-menu ul{list-style:none}
.header .container{max-width:1280px;margin:0 auto;padding:0 16px}
.header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:200}
.header-ust{background:var(--mor);color:#fff;padding:5px 16px}
.header-ust .container{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;gap:10px}
.header-ust a{color:rgba(255,255,255,.85);font-weight:600}
.header-ust a:hover{color:#fff}
.header-ust-sag{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.mini-btn{display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.16);padding:4px 12px;border-radius:999px;font-weight:700;font-size:.72rem;color:#fff;transition:background .2s}
.mini-btn:hover{background:rgba(255,255,255,.28);color:#fff}
.header-main{padding:12px 16px}
.header-main .container{display:flex;align-items:center;gap:16px}
.logo{font-family:'Quicksand',sans-serif;font-weight:700;font-size:1.6rem;color:var(--mor);flex-shrink:0}
.logo span{color:var(--magenta)}
.search-wrap{position:relative;flex:0 1 560px;max-width:560px;margin:0 auto}
.search-bar{max-width:none;flex:1;display:flex;background:#f3f3f7;border-radius:999px;overflow:hidden;border:2px solid transparent;transition:border-color .2s}
.search-bar:focus-within{border-color:var(--mor)}
.search-bar input{flex:1;border:none;background:none;padding:10px 18px;font-family:'Nunito',sans-serif;font-size:.9rem;outline:none;color:var(--text)}
.search-bar input::placeholder{color:var(--text-hafif)}
.search-bar button:not(.arama-ikon-btn){padding:8px 18px;background:var(--mor);color:#fff;border-radius:0 999px 999px 0;font-weight:700;font-size:.85rem;flex-shrink:0}
.arama-ikon-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:none}
.arama-ikon-btn svg{width:18px;height:18px;stroke:var(--text-hafif);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.arama-ikon-btn:hover{background:#e9e9ef}
.header-aksiyonlar{display:flex;align-items:center;gap:6px;margin-left:auto}
.ikon-btn{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .2s;position:relative}
.ikon-btn:hover{background:#f3f3f7}
.ikon-btn svg{width:22px;height:22px;stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sepet-badge{position:absolute;top:2px;right:2px;background:var(--magenta);color:#fff;font-size:.62rem;font-weight:700;width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.hamburger-btn{width:42px;height:42px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex-shrink:0}
.hamburger-btn span{width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .3s}
.hamburger-btn.acik span:first-child{transform:translateY(7px) rotate(45deg)}
.hamburger-btn.acik span:nth-child(2){opacity:0}
.hamburger-btn.acik span:last-child{transform:translateY(-7px) rotate(-45deg)}

.kat-nav{background:#fff;border-bottom:1px solid #eee;overflow-x:auto;-webkit-overflow-scrolling:touch}
.kat-nav::-webkit-scrollbar{display:none}
.kat-nav .container{display:flex;gap:0;white-space:nowrap}
.kat-nav a{display:inline-flex;align-items:center;gap:6px;padding:11px 18px;font-weight:700;font-size:.82rem;color:var(--text-hafif);border-bottom:2px solid transparent;transition:color .2s,border-color .2s;white-space:nowrap;flex-shrink:0}
.kat-nav a:hover,.kat-nav a.aktif{color:var(--mor);border-bottom-color:var(--mor)}

.mega-wrap{position:static}
.mega-menu{position:absolute;left:0;right:0;top:100%;background:#fff;box-shadow:var(--shadow-hover);border-top:1px solid #f0f0f0;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s;z-index:240}
.mega-wrap:hover .mega-menu,.mega-menu.acik{opacity:1;visibility:visible;transform:translateY(0)}
.mega-menu .container{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:24px;padding:28px 16px}
.mega-kolon h5{font-family:'Quicksand',sans-serif;font-weight:700;font-size:.82rem;color:var(--mor);margin-bottom:10px}
.mega-kolon h5.ek-grup{margin-top:18px}
.mega-kolon a{display:block;padding:5px 0;font-size:.8rem;color:var(--text-hafif)}
.mega-kolon a:hover{color:var(--magenta)}
.mega-kolon h5 a{color:var(--mor)}
.mega-banner{border-radius:var(--r);overflow:hidden;background:linear-gradient(135deg,var(--mor),var(--magenta));padding:18px;color:#fff;display:flex;flex-direction:column;justify-content:center;gap:8px}
.mega-banner strong{font-family:'Quicksand',sans-serif;font-size:1rem}
.mega-banner span{font-size:.75rem;opacity:.9}

.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:300;opacity:0;pointer-events:none;transition:opacity .3s}
.overlay.acik{opacity:1;pointer-events:auto}
.mobil-menu{position:fixed;top:0;right:-100%;width:80%;max-width:320px;height:100vh;background:#fff;z-index:400;transition:right .35s;padding:20px;overflow-y:auto}
.mobil-menu.acik{right:0}
.mobil-menu-kapat{font-size:1.5rem;float:right;padding:4px;line-height:1}
.mobil-menu h3{font-family:'Quicksand',sans-serif;color:var(--mor);margin:16px 0 8px}
.mobil-menu ul li a{display:block;padding:9px 4px;font-weight:600;font-size:.95rem;border-bottom:1px solid #f0f0f0}

.ikon-wrap{position:relative}
.dropdown-panel{position:absolute;top:calc(100% + 10px);right:-10px;width:320px;max-width:88vw;background:#fff;border-radius:var(--r);box-shadow:var(--shadow-hover);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s;z-index:250;overflow:hidden}
.dropdown-panel.acik{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-panel::before{content:'';position:absolute;top:-6px;right:18px;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-radius:2px}
.dropdown-baslik{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f0f0f0;font-family:'Quicksand',sans-serif;font-weight:700;font-size:.9rem}
.dropdown-baslik a{color:var(--mor);font-size:.75rem;font-weight:700}
.dropdown-liste{max-height:320px;overflow-y:auto}
.bildirim-item{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid #f7f7f7;transition:background .15s}
.bildirim-item:hover{background:#f7f7f7}
.bildirim-ikon{width:36px;height:36px;border-radius:50%;background:#f0e8fa;display:flex;align-items:center;justify-content:center;font-size:1.05rem;flex-shrink:0}
.bildirim-metin p{font-size:.8rem;font-weight:600;line-height:1.35}
.bildirim-metin span{font-size:.68rem;color:var(--text-hafif)}
.bildirim-item.okunmadi{background:#fbf3ff}
.dropdown-alt{padding:10px 16px;text-align:center;font-size:.78rem;font-weight:700;color:var(--mor);border-top:1px solid #f0f0f0}

.profil-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--mor),var(--magenta));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.85rem;font-family:'Quicksand',sans-serif}
.profil-panel-ust{display:flex;gap:10px;align-items:center;padding:16px}
.profil-panel-ust .profil-avatar{width:44px;height:44px;font-size:1rem}
.profil-panel-ust h4{font-family:'Quicksand',sans-serif;font-size:.9rem}
.profil-panel-ust span{font-size:.72rem;color:var(--text-hafif)}
.profil-liste{padding:6px 0;border-top:1px solid #f0f0f0}
.profil-liste a,.profil-liste button{display:flex;align-items:center;gap:10px;padding:9px 16px;font-size:.83rem;font-weight:600;transition:background .15s;width:100%;text-align:left;font-family:inherit}
.profil-liste a:hover,.profil-liste button:hover{background:#f7f7f7;color:var(--mor)}
.profil-liste a svg,.profil-liste button svg{width:17px;height:17px;stroke:var(--text-hafif);fill:none;stroke-width:2}
.profil-liste-cikis{border-top:1px solid #f0f0f0;color:#e0433f !important}

/* Giriş öncesi/sonrası öğeler parçada @if ile basılıyor; basılan görünür. */
.giris-oncesi{display:contents}
.giris-sonrasi{display:flex}

.search-oneri-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:var(--r);box-shadow:var(--shadow-hover);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s;z-index:250;max-height:420px;overflow-y:auto}
.search-oneri-panel.acik{opacity:1;visibility:visible;transform:translateY(0)}
.search-oneri-blok{padding:12px 16px;border-bottom:1px solid #f7f7f7}
.search-oneri-blok:last-child{border-bottom:none}
.search-oneri-baslik{display:flex;align-items:center;justify-content:space-between;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-hafif);margin-bottom:8px}
.search-oneri-baslik a{color:var(--mor);text-transform:none;letter-spacing:0}
.search-etiketler{display:flex;flex-wrap:wrap;gap:6px}
.search-etiket{background:#f3f3f7;padding:6px 12px;border-radius:999px;font-size:.76rem;font-weight:600;display:flex;align-items:center;gap:5px;transition:background .15s}
.search-etiket:hover{background:#f0e8fa;color:var(--mor)}
.search-oneri-satir{display:flex;align-items:center;gap:10px;padding:7px 4px;font-size:.83rem;font-weight:600;border-radius:8px}
.search-oneri-satir:hover{background:#f7f7f7}
.search-oneri-satir .son{width:26px;height:26px;border-radius:50%;background:#f3f3f7;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.9rem;overflow:hidden}
.search-oneri-satir .son img{width:100%;height:100%;object-fit:cover}
.search-oneri-satir svg{width:14px;height:14px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.search-populer-urun-satir{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.search-populer-urun-kart{display:flex;flex-direction:column;gap:4px;font-size:.68rem;min-width:0}
.search-populer-urun-kart img,.search-populer-urun-kart .search-gorsel-yok{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;background:#f3f3f7}
.search-populer-urun-kart .ad{color:var(--text);font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.25;min-height:2.5em}
.search-populer-urun-kart .fiyat{color:var(--mor);font-weight:700}

/* Kombinler düğmesi (Faz A, 2026-09-19) */
.kombin-pill{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,var(--mor),var(--magenta));color:#fff;font-family:'Quicksand',sans-serif;font-weight:700;font-size:.78rem;padding:8px 14px;border-radius:999px;margin-right:4px;white-space:nowrap;box-shadow:0 4px 12px rgba(166,33,216,.3);transition:transform .2s}
.kombin-pill:hover{transform:translateY(-2px)}
@media(max-width:520px){.kombin-pill span{display:none}.kombin-pill{padding:8px 11px}}

/* Mobil header: logo + ikonlar üstte, arama kutusu ikinci satırda. Bildirim/Hesabım ikonları alt menüde zaten var. */
@media(max-width:767px){
  .header-main .container{flex-wrap:wrap;gap:10px 8px}
  .header-main .logo{order:1}
  .header-aksiyonlar{order:2;margin-left:auto}
  .search-wrap{order:3;flex:1 1 100%;max-width:none;margin:0}
  .header-aksiyonlar .mobil-gizle{display:none}
}


/* ===== Telefon (5d.1, 2026-10-05): logo + Sipariş Takibi ve arama satırı kaydırırken üstte sabit,
   kategori çubuğu sayfayla birlikte kayar. Bildirim/Hesabım alttaki 5'li menüde. ===== */
.mobil-siparis-takip{display:none}
@media(max-width:767px){
  .header{display:contents}
  .header-ust{display:none}
  .header-main{position:sticky;top:0;z-index:200;background:#fff;padding:10px 16px 12px;box-shadow:0 1px 0 #eee}
  .header-main .container{padding:0}
  .header-aksiyonlar>*:not(.mobil-siparis-takip){display:none!important}
  .mobil-siparis-takip{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-weight:700;font-size:.8rem;padding:7px 12px;border-radius:999px;background:#f3f3f7;color:var(--text)}
  .kat-nav{background:#fff;border-bottom:1px solid #eee;scrollbar-width:none}
  .kat-nav .container{padding:0 6px}
  .kat-nav .mega-wrap{display:none}
  .kat-nav a{padding:10px 10px;font-size:.8rem}
}
