/* SILENOS — Bileşen Stilleri
   Muscent.com piksel analizine göre yazıldı.
   Header, ürün kartı, filtre, sepet, footer.
*/

/* ════════════════════════════════════════
   DUYURU BANDI
════════════════════════════════════════ */
#duyuru-bandi {
  background: #111;
  height: var(--h-duyuru);
  overflow: hidden;
  position: relative;
}
.duyuru-track {
  display: flex; align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: duyuruKay 30s linear infinite;
}
.duyuru-track:hover { animation-play-state: paused; }
.duyuru-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #fff;
  padding: 0 32px;
}
.duyuru-item .plus { color: var(--gold); font-size: 14px; }
@keyframes duyuruKay { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════════
   YARDIMCI NAV SATIRI
════════════════════════════════════════ */
#yardimci-nav {
  height: var(--h-yardimci);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.yardimci-nav-ic {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
}
.yardimci-sol, .yardimci-sag { display: flex; align-items: center; gap: 0; }
.yardimci-link {
  font-size: 12px; color: var(--text-mid);
  padding: 0 12px; height: 34px;
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
  transition: color var(--transition);
}
.yardimci-link:first-child { padding-left: 0; }
.yardimci-link:hover { color: var(--bord); }
.yardimci-link.kampanya { color: var(--bord); font-weight: 500; }
.yardimci-link.whatsapp { color: #25d366; }
.yardimci-link svg { width: 13px; height: 13px; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ════════════════════════════════════════
   ANA HEADER
════════════════════════════════════════ */
#header-main {
  height: var(--h-main);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  background: #fff;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-ic {
  display: flex; align-items: center;
  gap: 24px;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-title);
  font-size: 20px; font-weight: 400;
  letter-spacing: 6px; color: var(--bord);
  line-height: 1;
}

/* Arama — muscent'te ortada geniş */
.arama-wrap { flex: 1; display: flex; max-width: 600px; margin: 0 auto; }
.arama-input-kap {
  display: flex; width: 100%;
  border: 1px solid var(--border-mid);
  overflow: visible;
  position: relative;
}
.arama-input-kap:focus-within { border-color: var(--gold); }
.arama-input {
  flex: 1; height: 38px;
  padding: 0 14px;
  border: none; outline: none;
  font-size: 13px; color: var(--text);
  background: #fafafa;
}
.arama-btn {
  height: 38px; padding: 0 18px;
  background: var(--gold); color: #fff;
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.arama-btn:hover { background: var(--gold-hover); }

/* Header sağ ikonlar */
.header-saglar { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.h-ikon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--text); position: relative;
  transition: color var(--transition);
  border-radius: 4px;
}
.h-ikon-btn:hover { color: var(--gold); background: var(--bg-soft); }
.h-ikon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sepet-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 38px;
  border: 1px solid var(--border);
  font-size: 12px; color: var(--text);
  transition: border-color var(--transition);
  border-radius: 4px;
}
.sepet-btn:hover { border-color: var(--gold); color: var(--gold); }
.sepet-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sepet-badge {
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 500;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.sepet-tl { font-size: 12px; color: var(--text-mid); }

/* ════════════════════════════════════════
   ANA NAV MENÜ
════════════════════════════════════════ */
#nav-bar {
  height: var(--h-nav);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.nav-ic {
  display: flex; align-items: center;
  height: 100%;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
}
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  font-size: 13px; color: var(--text);
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  position: relative; transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-link:hover, .nav-link.aktif { color: var(--bord); }
.nav-link:hover::after, .nav-link.aktif::after { transform: scaleX(1); }

/* Mega dropdown */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: all .18s ease;
  z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 9px 18px;
  font-size: 13px; color: var(--text-mid);
  transition: all var(--transition);
}
.nav-dropdown a:hover { color: var(--bord); background: var(--bg-soft); padding-left: 22px; }

/* Mobil */
.mobil-toggle { display: none; background: none; padding: 4px; }
.mobil-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }
.mobil-menu {
  position: fixed; inset: 0; z-index: 400;
  background: #fff;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 60px 24px 40px;
}
.mobil-menu.acik { transform: translateX(0); }
.mobil-menu-kapat {
  position: absolute; top: 16px; right: 16px;
  font-size: 24px; color: var(--text-mid); background: none;
}
.mobil-menu a {
  display: block; padding: 13px 0;
  font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════
   ÜRÜN KARTI — Muscent piksel analizi
   - 1:1 kare görsel (muscent gibi)
   - Beyaz bg, 1px solid #eee, 0 radius
   - Ürün adı: Inter 14px, normal weight
   - Fiyat: altın, 16px
   - "Sepete Ekle" buton: alt kısım, tam genişlik
   - Hover: buton + büyüteç belirir
════════════════════════════════════════ */
.urun-grid { display: grid; gap: 14px; }
.urun-grid.s-3 { grid-template-columns: repeat(3, 1fr); }
.urun-grid.s-4 { grid-template-columns: repeat(4, 1fr); }
.urun-grid.s-5 { grid-template-columns: repeat(5, 1fr); }

.urun-kart {
  background: #fff;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition);
}
.urun-kart:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* Görsel kutu — 1:1 kare muscent gibi */
.urun-gorsel-kap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}
.urun-gorsel {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.urun-kart:hover .urun-gorsel { transform: scale(1.04); }

/* Badge sol üst — muscent gibi */
.urun-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 500;
  padding: 3px 8px; z-index: 2;
  background: var(--gold); color: #fff;
}
.urun-badge.kargo { background: var(--gold); color: #fff; }
.urun-badge.indirim { background: #e53935; color: #fff; }
.urun-badge.yeni { background: #333; color: #fff; }

/* Favori — sağ alt köşe görsel üstünde (muscent gibi) */
.favori-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: all var(--transition);
}
.favori-btn svg { width: 15px; height: 15px; fill: none; stroke: #999; stroke-width: 1.5; transition: all var(--transition); }
.favori-btn:hover svg, .favori-btn.aktif svg { stroke: var(--gold); fill: var(--gold); }

/* Büyüteç (hover'da muscent gibi) */
.incele-btn {
  position: absolute; bottom: 8px; left: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; opacity: 0;
  transition: opacity var(--transition);
}
.urun-kart:hover .incele-btn { opacity: 1; }
.incele-btn svg { width: 14px; height: 14px; fill: none; stroke: #666; stroke-width: 1.5; }

/* Kart bilgi alanı */
.urun-bilgi { padding: 10px 10px 0; }
.urun-adi {
  font-size: 14px; font-weight: 400;
  color: var(--text); line-height: 1.4;
  margin-bottom: 5px;
  /* Muscent'te italic değil, düz Inter */
  font-style: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scent-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--sp-c, #999); margin-bottom: 5px;
  font-family: var(--font-mono, monospace);
}
.scent-pill::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sp-c, #999);
  flex-shrink: 0;
}
.urun-fiyat-kap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.urun-fiyat { font-size: 16px; font-weight: 400; color: var(--gold); }
.urun-eski-fiyat { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

/* Sepete ekle butonu — her zaman görünür, tam genişlik (muscent gibi) */
.sepete-ekle-btn {
  width: 100%;
  height: 36px;
  background: var(--gold);
  color: #fff;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 0;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
  margin-top: 0;
}
.sepete-ekle-btn:hover { background: var(--gold-hover); }

/* Kart içi iskelet */
.urun-kart-sk .urun-gorsel-kap { background: none; }
.sk-gorsel { width: 100%; aspect-ratio: 1/1; }
.sk-bilgi { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sk-satir { height: 12px; border-radius: 2px; }

/* ════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  padding: 12px 0;
}
.breadcrumb a { color: var(--text-mid); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--bord); }
.breadcrumb span { color: #ccc; }
.breadcrumb-aktif { color: var(--text); }

/* ════════════════════════════════════════
   BÖLÜM BAŞLIKLARI
════════════════════════════════════════ */
.bolum-baslik-blok { margin-bottom: 28px; }
.bolum-baslik-blok.center { text-align: center; }
.bolum-baslik-blok.center .gold-sep { margin-left: auto; margin-right: auto; }
.bolum-ust-baslik {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 4px;
}
.bolum-baslik {
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

/* ════════════════════════════════════════
   SEPET DRAWER — Muscent stili
════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: all .2s;
}
.cart-overlay.acik { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: #fff;
  z-index: 600;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}
.cart-drawer.acik { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-baslik { font-size: 15px; font-weight: 500; color: var(--text); }
.cart-kapat { font-size: 22px; color: var(--text-muted); line-height: 1; }
.cart-kapat:hover { color: var(--text); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-bos { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 13px; }

.cart-urun {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 12px; align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); }
.cart-urun-adi { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.cart-urun-fiyat { font-size: 14px; color: var(--gold); font-weight: 500; }
.cart-adet { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-adet-btn { width: 24px; height: 24px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text); }
.cart-adet-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-adet-sayi { font-size: 13px; min-width: 20px; text-align: center; }
.cart-sil { color: var(--text-muted); font-size: 18px; line-height: 1; }
.cart-sil:hover { color: var(--text); }

.cart-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.cart-toplam-satir {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cart-toplam-label { font-size: 13px; color: var(--text-mid); }
.cart-toplam-tutar { font-size: 18px; font-weight: 500; color: var(--gold); }
.cart-kargo-bilgi { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
.cart-odeme-btn {
  width: 100%; height: 42px;
  background: var(--gold); color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition);
}
.cart-odeme-btn:hover { background: var(--gold-hover); }

/* ════════════════════════════════════════
   FOOTER — Muscent stili
════════════════════════════════════════ */
#footer { background: #fff; border-top: 1px solid var(--border); }

.ebulten-sosyal {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 40px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.ebulten-baslik { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.ebulten-alt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.ebulten-form { display: flex; max-width: 400px; }
.ebulten-input {
  flex: 1; height: 40px;
  border: 1px solid var(--border-mid); border-right: none;
  padding: 0 14px; font-size: 13px;
  outline: none; transition: border-color var(--transition);
}
.ebulten-input:focus { border-color: var(--gold); }
.ebulten-btn {
  width: 40px; height: 40px;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); flex-shrink: 0;
}
.ebulten-btn:hover { background: var(--gold-hover); }
.ebulten-btn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.kvkk-satir { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.kvkk-satir a { color: var(--bord); text-decoration: underline; }
.kvkk-satir input { width: 13px; height: 13px; }

.sosyal-baslik { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.sosyal-alt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.sosyal-ikonlar { display: flex; gap: 8px; }
.sosyal-ikon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: all var(--transition);
}
.sosyal-ikon:hover { border-color: var(--gold); color: var(--gold); }
.sosyal-ikon svg { width: 16px; height: 16px; fill: currentColor; }
.sosyal-ikon .si { width: 16px; height: 16px; display: block; filter: brightness(0) invert(0.75); transition: filter var(--transition); }
.sosyal-ikon:hover .si { filter: brightness(0) sepia(1) saturate(2.5) hue-rotate(10deg); }

.footer-kolonlar {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px; padding: 32px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
}
.footer-kolon-baslik {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-liste { display: flex; flex-direction: column; gap: 8px; }
.footer-liste a { font-size: 13px; color: var(--text-mid); transition: color var(--transition); }
.footer-liste a:hover { color: var(--bord); }
.footer-iletisim { display: flex; flex-direction: column; gap: 10px; }
.f-iletisim-satir { display: flex; gap: 8px; align-items: flex-start; }
.f-iletisim-satir svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.f-iletisim-satir span { font-size: 13px; color: var(--text-mid); line-height: 1.5; }
.f-iletisim-satir strong { display: block; font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 1px; }

.footer-alt {
  display: flex; align-items: center; justify-content: center;
  padding: 14px var(--pad);
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  text-align: center;
}

/* ════════════════════════════════════════
   LOGİN MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .2s;
}
.modal-overlay.acik { opacity: 1; visibility: visible; }
.modal-kart {
  background: #fff; width: min(400px, 90vw);
  padding: 36px 32px; position: relative;
  border-top: 3px solid var(--gold);
}
.modal-kapat { position: absolute; top: 12px; right: 16px; font-size: 22px; color: var(--text-muted); }
.modal-baslik { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.modal-alt { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.modal-form-grup { margin-bottom: 18px; }
.modal-etiket { display: block; font-size: 12px; color: var(--text-mid); margin-bottom: 6px; }
.modal-input {
  width: 100%; height: 40px;
  border: 1px solid var(--border-mid); padding: 0 12px;
  font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.modal-input:focus { border-color: var(--gold); }
.modal-hata { font-size: 12px; color: #e53935; margin-top: 4px; display: none; }
.modal-hata.gorulur { display: block; }
.modal-giris-btn {
  width: 100%; height: 42px;
  background: var(--gold); color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 4px; transition: background var(--transition);
  margin-top: 6px;
}
.modal-giris-btn:hover { background: var(--gold-hover); }
.modal-alt-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.modal-alt-link a { color: var(--bord); }
.modal-test { background: #fffde7; border: 1px solid #ffe082; padding: 8px 12px; font-size: 11px; color: #795548; margin-bottom: 16px; border-radius: 3px; line-height: 1.7; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media(max-width:1024px) {
  .urun-grid.s-4 { grid-template-columns: repeat(3,1fr); }
  .urun-grid.s-5 { grid-template-columns: repeat(4,1fr); }
  .footer-kolonlar { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media(max-width:768px) {
  #nav-bar { display: none; }
  .mobil-toggle { display: block; }
  .arama-wrap { display: none; }
  .urun-grid.s-3, .urun-grid.s-4, .urun-grid.s-5 { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .ebulten-sosyal { grid-template-columns: 1fr; }
  .footer-kolonlar { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media(max-width:480px) {
  .footer-kolonlar { grid-template-columns: 1fr; }
}
