/* ==========================================================================
   Kabuk menüsü — TÜM header'larda tutarlı dropdown alt-menü.
   SiteChrome menüsündeki children (Kurumsal → sayfalar, Ürünler → kategoriler)
   ortak _navlinks partial'ı ile basılır; burada header'dan bağımsız stillenir.
   Token-based (Renk Konsepti'ne uyar); açık/koyu header'da okunur kalır.
   ========================================================================== */

.chrome-nav-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Ebeveyn link header'ın kendi nav-link stilini alır (descendant seçici);
   sadece caret'i ekliyoruz. */
.chrome-nav-parent {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}
.chrome-nav-caret {
  width: .82em;
  height: .82em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.chrome-nav-drop:hover .chrome-nav-caret,
.chrome-nav-drop:focus-within .chrome-nav-caret {
  transform: rotate(180deg);
}

/* Açılır alt-menü paneli */
.chrome-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  min-width: 220px;
  margin: .5rem 0 0;
  padding: .4rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--wg-surface, #ffffff);
  border: 1px solid var(--wg-line, #e6dfd1);
  border-radius: 14px;
  box-shadow: 0 22px 48px -24px rgba(20, 20, 15, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.chrome-nav-drop:hover > .chrome-submenu,
.chrome-nav-drop:focus-within > .chrome-submenu,
.chrome-nav-drop.is-open > .chrome-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Alt-menü linkleri — header'ın nav stilinden bağımsız, okunur ve tutarlı */
.chrome-submenu a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 9px;
  white-space: nowrap;
  color: var(--wg-ink, #2a2a24) !important;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.chrome-submenu a:hover,
.chrome-submenu a:focus {
  background: var(--wg-accent, #9a3324);
  color: #fff !important;
}
/* Header'ın kendi nav stilindeki hover-alt-çizgi/pseudo süsleri dropdown'a sızmasın
   (ör. .hd-topbar__nav a::before). Alt-menü linkleri temiz kalır. */
.chrome-submenu a::before,
.chrome-submenu a::after { content: none !important; display: none !important; }

/* Mobil / dar: header'ın açık menüsünde alt-menüyü inline (girintili) göster —
   dropdown yerine akışta, her zaman görünür. */
@media (max-width: 860px) {
  .chrome-nav-drop {
    display: block;
    width: 100%;
  }
  .chrome-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: .15rem 0 .35rem .9rem;
    min-width: 0;
    margin: 0;
  }
  .chrome-submenu a {
    color: inherit !important;
  }
  .chrome-submenu a:hover,
  .chrome-submenu a:focus {
    background: transparent;
    color: var(--wg-accent, #9a3324) !important;
  }
  .chrome-nav-caret {
    display: none;
  }
}

/* Ortak dil değiştirici (_langswitch) — tüm header'larda tutarlı */
.chrome-lang{display:inline-flex;align-items:center;gap:2px}
.chrome-lang__item{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;padding:0 6px;border-radius:6px;font-size:12px;font-weight:600;color:inherit;text-decoration:none;opacity:.7;transition:opacity .15s,background .15s}
.chrome-lang__item:hover{opacity:1;background:rgba(127,127,127,.12)}
.chrome-lang__item.is-active{opacity:1;color:var(--wg-accent,currentColor)}
