/*
  Tema style.css / resposive.css body sonunda yüklendiği için bu dosya onlardan SONRA gelmeli (index.html).
  Böylece giriş / sepet / bildirim / hesap stilleri ezilmez.

  Sticky header: şeffaf hero + scroll sonrası beyaz zemin — ikonlar koyu tema ile uyumlu olmalı.
*/

.theme-header-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.theme-header-icon-svg--sm {
  width: 1rem;
  height: 1rem;
}

/* Çerez şeridi / vitrin overlay (≈9997) üstünde kalsın; dil–para dropdown’ları kesilmesin */
.header-primary {
  z-index: 10050 !important;
}

/* Üst menü dropdown açıkken: header + menü tam opak; sayfa gölgeli / odak hissi */
.theme-nav-page-dim {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 0 120px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0.24s;
}
.theme-nav-page-dim--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0s;
}
/* Hover/click ile acilan dropdownlarda focus dim efekti (JS fail-safe). */
.header-primary:has(.navbar .dropdown-menu.show) + .theme-nav-page-dim,
.header-primary:has(.navbar .dropdown:hover > .dropdown-menu) + .theme-nav-page-dim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .theme-nav-page-dim {
    transition: none;
  }
  .theme-nav-page-dim--visible {
    transition: none;
  }
}

/* Açılır menüler dim + sayfa içi yüksek z-index öğelerinin üstünde */
.header-primary .dropdown-menu {
  z-index: 10060 !important;
}

.header-primary .theme-header-locale-menu {
  z-index: 10070 !important;
}

.header-primary.header-transparent:not(.sticky) {
  border-bottom: 1px solid rgb(255 255 255 / 0%);
}

/*
  Topbar (dil/para/arama) ile alt satırdaki navbar aynı header içinde üst üste binince,
  sonraki kardeş (container) varsayılan olarak üstte boyanıyordu → locale menüleri sepet/hesap altında kalıyordu.
  Topbar katmanını yükseltiyoruz; z-index:-1 artık gerekmez (tıklanabilirlik + menü sırası düzelir).
*/
.header-primary > .theme-header-topbar {
  position: relative;
  z-index: 6;
}

.header-primary > .container {
  position: relative;
  z-index: 1;
}

.theme-header-actions {
  gap: 0.625rem;
}

.theme-header-actions .theme-header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  text-decoration: none;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.theme-header-icon-link--lux {
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px rgba(6, 19, 28, 0.08);
}

/* Kurumsal navy-teal — bildirim ve sepet aynı tonda */
.theme-header-icon-link--notify,
.theme-header-icon-link--cart {
  border-color: rgba(125, 211, 252, 0.42);
  background-image: linear-gradient(140deg, rgba(11, 31, 58, 0.58), rgba(14, 116, 144, 0.42));
}

.header-primary.header-transparent:not(.sticky) .theme-header-icon-link--lux {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-primary.header-transparent:not(.sticky) .theme-header-icon-link--lux:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.header-primary.header-transparent.sticky .theme-header-icon-link--lux,
.header-primary:not(.header-transparent) .theme-header-icon-link--lux {
  color: var(--dark-300, #0f172a);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-primary.header-transparent.sticky .theme-header-icon-link--lux:hover,
.header-primary:not(.header-transparent) .theme-header-icon-link--lux:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    0 1px 0 #fff inset,
    0 10px 26px rgba(15, 23, 42, 0.1);
}

.header-primary.header-transparent.sticky .theme-header-icon-link--notify,
.header-primary:not(.header-transparent) .theme-header-icon-link--notify,
.header-primary.header-transparent.sticky .theme-header-icon-link--cart,
.header-primary:not(.header-transparent) .theme-header-icon-link--cart {
  border-color: rgba(14, 116, 144, 0.32);
  background-image: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0c4a6e;
}

.theme-header-actions .theme-header-icon-link:active {
  transform: scale(0.96);
}

.vitrin-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

@media (min-width: 576px) {
  .vitrin-toast-host {
    top: 1.25rem;
    right: 1.25rem;
    max-width: 26rem;
  }
}

.vitrin-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 18px 40px -14px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  animation: vitrin-toast-in 0.45s cubic-bezier(0.19, 1, 0.22, 1) both;
  overflow: hidden;
}

@keyframes vitrin-toast-in {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.vitrin-toast__accent {
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 15px currentColor;
}

.vitrin-toast--success .vitrin-toast__accent {
  background: #10b981;
  color: rgba(16, 185, 129, 0.4);
}

.vitrin-toast--error .vitrin-toast__accent {
  background: #f59e0b;
  color: rgba(245, 158, 11, 0.4);
}

.vitrin-toast__ikon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #f8fafc;
  font-size: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.vitrin-toast--success .vitrin-toast__ikon {
  color: #10b981;
}

.vitrin-toast--error .vitrin-toast__ikon {
  color: #f59e0b;
}

.vitrin-toast__metin {
  flex: 1;
  min-width: 0;
}

.vitrin-toast__baslik {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.vitrin-toast__icerik {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.75rem;
}

.vitrin-toast__kapat {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vitrin-toast__kapat:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.theme-header-count-badge {
  top: 0.1rem;
  right: 0.1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  min-width: 1.05rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.theme-header-count-badge--on-light {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.theme-header-count-badge--on-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-header-login-btn {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

/* Giriş Yap — sıcak amber/gold; bildirim/sepet (teal) ve dil/para (emerald) ile net ayrışır */
.header-primary.header-transparent:not(.sticky) .theme-header-login-btn--hero {
  color: #fff7ed;
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.72) 0%, rgba(217, 119, 6, 0.55) 50%, rgba(245, 158, 11, 0.42) 100%);
  border-color: rgba(253, 186, 116, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 26px rgba(180, 83, 9, 0.32);
}
.header-primary.header-transparent:not(.sticky) .theme-header-login-btn--hero:hover {
  color: #fff;
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.88) 0%, rgba(217, 119, 6, 0.72) 50%, rgba(245, 158, 11, 0.58) 100%);
  border-color: rgba(253, 186, 116, 0.72);
  transform: translateY(-1px);
}

.header-primary.header-transparent.sticky .theme-header-login-btn--hero,
.theme-header-login-btn--solid {
  color: #fff7ed;
  background: linear-gradient(145deg, #b45309 0%, #d97706 48%, #f59e0b 100%);
  border-color: rgba(253, 186, 116, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 22px rgba(180, 83, 9, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-primary.header-transparent.sticky .theme-header-login-btn--hero:hover,
.theme-header-login-btn--solid:hover {
  color: #fff;
  border-color: rgba(253, 186, 116, 0.58);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 28px rgba(180, 83, 9, 0.34);
  transform: translateY(-1px);
}

.theme-header-account-trigger {
  max-width: 280px;
  padding: 0.35rem 0.65rem 0.35rem 0.4rem !important;
  border-radius: 999px !important;
  border-width: 1px !important;
  font-size: 0.8125rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 22px rgba(6, 19, 28, 0.08);
}
.theme-header-account-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.theme-header-avatar-ring {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #b45309, #f59e0b);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 247, 237, 0.35),
    0 4px 12px rgba(180, 83, 9, 0.25);
}
.theme-header-chevron {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
}

/* Hesabım (dropdown tetikleyici) — giriş butonu ile aynı amber ailesinde */
.header-primary.header-transparent:not(.sticky) .theme-header-user-toggle.theme-header-account-trigger {
  color: #fff7ed;
  border-color: rgba(253, 186, 116, 0.48) !important;
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.48) 0%, rgba(217, 119, 6, 0.32) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-primary.header-transparent:not(.sticky) .theme-header-user-toggle.theme-header-account-trigger:hover {
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.62) 0%, rgba(217, 119, 6, 0.45) 100%) !important;
  border-color: rgba(253, 186, 116, 0.72) !important;
}

.header-primary.header-transparent.sticky .theme-header-user-toggle.theme-header-account-trigger,
.header-primary:not(.header-transparent) .theme-header-user-toggle.theme-header-account-trigger {
  color: #9a3412;
  border-color: rgba(253, 186, 116, 0.48) !important;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-primary.header-transparent.sticky .theme-header-user-toggle.theme-header-account-trigger:hover,
.header-primary:not(.header-transparent) .theme-header-user-toggle.theme-header-account-trigger:hover {
  border-color: rgba(217, 119, 6, 0.48) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 10px 24px rgba(180, 83, 9, 0.18);
}
.theme-header-user-toggle.dropdown-toggle::after {
  display: none !important;
}

.theme-header-dropdown {
  min-width: 17rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.theme-header-dropdown__profile {
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
  list-style: none;
}
.theme-header-dropdown__profile-card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%);
}
.theme-header-dropdown__profile-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-header-dropdown__profile-email {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-header-dropdown__sep {
  height: 1px;
  margin: 0.4rem 0.35rem;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.95), transparent);
  border: 0;
  padding: 0;
  list-style: none;
}
.theme-header-dropdown__link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem !important;
  border-radius: 0.65rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155 !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.theme-header-dropdown__link:hover {
  background: rgba(241, 245, 249, 0.95) !important;
  color: #0f172a !important;
}
.theme-header-dropdown__link--danger {
  color: #be123c !important;
}
.theme-header-dropdown__link--danger:hover {
  background: rgba(254, 226, 226, 0.65) !important;
  color: #9f1239 !important;
}
.theme-header-dropdown__ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #94a3b8;
}
.theme-header-dropdown__link:hover .theme-header-dropdown__ico {
  color: #64748b;
}

/* ── Header ana menü — ikon + label + badge hizalama ── */
.theme-nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
}
.theme-nav-label-wrap {
  /* Badge artık `.theme-nav-link`'in root'unda absolute konumlanıyor,
     bu yüzden label-wrap'in relative olmasına gerek yok. */
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 2px;
}
/* Dropdown oku olan ana menülerde ikon + label + ok düzeni:
   - ikon label'a yaklaştırılır (gap azaltıldı)
   - caret menü metninin SAĞINDA küçük bir üçgen olarak konumlandırılır. */
.theme-nav-link--caret {
  gap: 0.3rem !important;
  padding-right: 0.35rem !important;
}
/* İkon varsa ikonla label çok yakın olsun (birkaç px). */
.theme-nav-link--caret > .theme-nav-icon-pair {
  margin-right: 0;
}
/* Pseudo caret kapalı; gerçek ikon kullanıyoruz. */
.theme-nav-link--caret.dropdown-toggle::after {
  display: none !important;
}
.theme-nav-caret-icon {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.15rem;
  opacity: 0.78;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.theme-nav-item--has-caret:hover > .theme-nav-link--caret .theme-nav-caret-icon,
.theme-nav-item--has-caret.show > .theme-nav-link--caret .theme-nav-caret-icon {
  transform: rotate(180deg);
  opacity: 1;
}
.theme-nav-label {
  display: inline-block;
  line-height: inherit;
}
.theme-nav-icon-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  position: relative;
  flex-shrink: 0;
}
.theme-nav-icon-pair .theme-nav-icon-default,
.theme-nav-icon-pair .theme-nav-icon-hover {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.theme-nav-icon-pair .theme-nav-icon-hover {
  opacity: 0;
  transform: scale(0.9);
}
.theme-nav-item:hover .theme-nav-icon-pair .theme-nav-icon-default,
.nav-item:hover > .theme-nav-link .theme-nav-icon-pair .theme-nav-icon-default {
  opacity: 0;
  transform: scale(1.1);
}
.theme-nav-item:hover .theme-nav-icon-pair .theme-nav-icon-hover,
.nav-item:hover > .theme-nav-link .theme-nav-icon-pair .theme-nav-icon-hover {
  opacity: 1;
  transform: scale(1);
}
.theme-nav-icon-img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}
.theme-nav-badge {
  /* Menü öğesinin (`.theme-nav-link`) sağ-üst köşesinde ana menü
     yazısına yakın mesafede absolute durur. */
  position: absolute;
  top: -1px;
  right: -4px;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.38rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 10px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateZ(0);
  pointer-events: none;
  z-index: 3;
  animation:
    themeNavBadgeGlow 3.6s ease-in-out infinite,
    themeNavBadgeLift 3.6s ease-in-out infinite;
}
.theme-nav-badge::before {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -80%;
  width: 62%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.12) 65%, transparent 100%);
  transform: translateX(0) rotate(12deg);
  pointer-events: none;
  animation: themeNavBadgeSheen 4.8s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}
.theme-nav-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.25px solid rgba(255, 255, 255, 0.44);
  pointer-events: none;
}

@keyframes themeNavBadgeGlow {
  0%, 100% {
    filter: brightness(1);
  }
  48% {
    filter: brightness(1.08);
  }
}

@keyframes themeNavBadgeLift {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.25) inset,
      0 4px 10px rgba(15, 23, 42, 0.18);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.3) inset,
      0 7px 16px rgba(15, 23, 42, 0.22);
  }
}

@keyframes themeNavBadgeSheen {
  0%, 60% {
    transform: translateX(0) rotate(12deg);
    opacity: 0;
  }
  66% {
    opacity: 0.95;
  }
  88% {
    transform: translateX(300%) rotate(12deg);
    opacity: 0;
  }
  100% {
    transform: translateX(300%) rotate(12deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-nav-badge,
  .theme-nav-badge::before,
  .theme-nav-badge::after {
    animation: none !important;
  }
}
.theme-nav-badge--neutral {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}
.theme-nav-badge--accent {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}
.theme-nav-badge--success {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}
.theme-nav-badge--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}
.theme-nav-badge--danger {
  background: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%);
}
.theme-nav-badge--info {
  background: linear-gradient(135deg, #6366f1 0%, #312e81 100%);
}
.theme-nav-badge--new {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
}
.theme-nav-badge--hot {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}
/* Şeffaf header — badge arka planları koyu zeminde daha canlı kalsın */
.header-primary.header-transparent:not(.sticky) .theme-nav-badge {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 14px rgba(0, 0, 0, 0.35);
}

/* ── Mega Menu (Clean Corporate) ── */
.dropdown-mega {
  position: static !important;
}

.mega-menu-container {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 20px 56px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  margin-top: 0 !important;
  border-radius: 0 0 1rem 1rem !important;
  border: none !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 2rem 2.5rem !important;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.08) transparent;
  animation: megaSlideDown 0.25s ease-out forwards;
}

@keyframes megaSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-menu-container::-webkit-scrollbar {
  width: 4px;
}
.mega-menu-container::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 10px;
}

.mega-menu-title {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.mega-menu-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4338ca;
  flex-shrink: 0;
}
.mega-menu-title__svg {
  width: 13px !important;
  height: 13px !important;
  color: inherit !important;
}

.mega-menu-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.mega-menu-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease !important;
  padding: 0.5rem 0.7rem !important;
  margin: 0 -0.65rem;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: none !important;
  width: auto !important;
  border-radius: 0.5rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  position: relative;
}

.mega-menu-link:hover {
  color: #0f172a !important;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%) !important;
  border-color: rgba(37, 99, 235, 0.22);
  transform: translateX(2px);
  padding-left: 0.75rem !important;
}

.mega-menu-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mega-menu-link:hover .mega-menu-link__icon {
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  color: #ffffff;
  transform: scale(1.04);
}
.mega-menu-link__svg {
  width: 13px !important;
  height: 13px !important;
  color: inherit !important;
}
.mega-menu-link__bullet {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
  margin: 0 8px 0 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mega-menu-link:hover .mega-menu-link__bullet {
  background: #1d4ed8;
  transform: scale(1.4);
}
.mega-menu-link__text { flex: 1; min-width: 0; }
.mega-menu-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  height: 16px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #ffffff;
  flex-shrink: 0;
}
.mega-menu-link__badge--neutral { background: linear-gradient(135deg, #334155 0%, #0f172a 100%); }
.mega-menu-link__badge--accent  { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.mega-menu-link__badge--success { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.mega-menu-link__badge--warning { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.mega-menu-link__badge--danger  { background: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%); }
.mega-menu-link__badge--info    { background: linear-gradient(135deg, #6366f1 0%, #312e81 100%); }
.mega-menu-link__badge--new     { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%); }
.mega-menu-link__badge--hot     { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }

/* Geriye dönük uyum — ikon/bullet yoksa da legacy stil çalışır. */
.mega-menu-link > i,
.mega-menu-link > svg:not(.mega-menu-link__svg) {
  color: #94a3b8;
  opacity: 1;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}
.mega-menu-link:hover > i,
.mega-menu-link:hover > svg:not(.mega-menu-link__svg) {
  color: #1d4ed8;
  transform: none;
}

@media (max-width: 991px) {
  .mega-menu-container {
    padding: 1.25rem !important;
    border-radius: 0.75rem !important;
    max-height: 70vh;
    margin: 0.5rem !important;
    width: auto !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
  }
}

/* ── Mega varyant: görsel + orta blok + sağ liste ── */
.mega-menu-container.mega-menu-container--media,
.mega-menu-container.mega-menu-container--grid {
  padding: 0 !important;
  background: #ffffff !important;
  border-top: none !important;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 20px 56px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  border-radius: 0 0 0.85rem 0.85rem !important;
}

/* Dropdown panel hizasi ve zemin tonu (desktop header). */
.header-primary .navbar .dropdown-menu {
  background-color: var(--white) !important;
  top: 82%;
}

.mega-media {
  --mega-media-bg: #ffffff;
  --mega-media-border: #e9ecef;
  --mega-media-title: #1e293b;
  --mega-media-sub: #64748b;
  --mega-media-icon-box: #f1f5f9;
  --mega-media-divider: #e9ecef;
  background: var(--mega-media-bg);
  border: 1px solid var(--mega-media-border);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 1.25rem clamp(1rem, 3vw, 2rem) 1.5rem;
}

.mega-media__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) 1px minmax(0, 1fr);
  gap: 1.25rem 1.35rem;
  align-items: stretch;
}

/* Aktif orta grup etiketi — grid üstünde ayrı şerit; metinlerle çakışmaz */
.mega-media__badge-strip {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -4px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mega-media-divider);
  min-height: 0;
}

.mega-media__parent-badge {
  flex-shrink: 1;
  min-width: 0;
  max-width: min(320px, 100%);
  text-align: right;
}

.mega-media__parent-badge__text {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(241, 245, 249, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.mega-media__visual {
  min-width: 0;
}

.mega-media__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
}

.mega-media__mid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.mega-media__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  padding: 0.15rem 0;
  transition: opacity 0.15s ease;
}

.mega-media__row:hover {
  opacity: 0.92;
}

.mega-media__row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--mega-media-icon-box);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mega-media-title);
}

.mega-media__row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-media__row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mega-media-title);
  line-height: 1.25;
}

.mega-media__row-sub {
  font-size: 0.8125rem;
  color: var(--mega-media-sub);
  line-height: 1.35;
}

.mega-media__rail {
  width: 1px;
  background: var(--mega-media-divider);
  border-radius: 1px;
  min-height: 100%;
}

.mega-media__side {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.mega-media__side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mega-media-title);
  padding: 0.28rem 0;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.mega-media__side-link:hover {
  opacity: 0.85;
}

.mega-media__side-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(241, 245, 249, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mega-media-title);
}

.mega-media__side-label {
  min-width: 0;
  line-height: 1.3;
}

@media (max-width: 1199px) {
  .mega-media__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mega-media__rail {
    display: none;
  }
  .mega-media__img {
    max-height: 200px;
  }
  .mega-media__badge-strip {
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .mega-media__parent-badge {
    max-width: 100%;
    text-align: center;
  }
}

/* ── Mega varyant: 3x3 kart + banner ── */
.mega-grid {
  --mega-grid-panel: #f8f9fa;
  --mega-grid-card: #ffffff;
  --mega-grid-border: #e9ecef;
  --mega-grid-icon-box: #f0f2f5;
  --mega-grid-title: #0f172a;
  --mega-grid-sub: #64748b;
  --mega-grid-cols: 3;
  background: var(--mega-grid-panel);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.25rem;
  margin: 1rem clamp(0.75rem, 2vw, 1.5rem) 1.25rem;
}

.mega-grid__grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-grid-cols), minmax(0, 1fr));
  gap: 0.65rem;
}

.mega-grid__card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none !important;
  background: var(--mega-grid-card);
  border: 1px solid var(--mega-grid-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.mega-grid__card:hover {
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.mega-grid__card-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--mega-grid-icon-box);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mega-grid-title);
}

.mega-grid__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.mega-grid__card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mega-grid-title);
  line-height: 1.25;
}

.mega-grid__card-sub {
  font-size: 0.75rem;
  color: var(--mega-grid-sub);
  line-height: 1.35;
}

.mega-grid__banner {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  border-radius: 8px;
  padding: 0.65rem 1rem;
}

.mega-grid__banner-badge {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  line-height: 1;
}

.mega-grid__banner-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

@media (max-width: 991px) {
  .mega-grid__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .mega-grid__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Navbar: logo merkeze yakın, menü ortada, dengeli link aralığı (xl+) —— */
@media (min-width: 1200px) {
  .header-primary .navbar.theme-header-navbar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(0.75rem, 1.5vw, 1.5rem);
    row-gap: 0.5rem;
    justify-content: initial !important;
  }

  .header-primary .navbar.theme-header-navbar .theme-header-logo {
    grid-column: 1;
    justify-self: end;
    margin-right: 0.25rem;
  }

  .header-primary .navbar.theme-header-navbar #navbarNav.navbar-collapse {
    grid-column: 2;
    justify-self: center;
    width: auto !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
  }

  .header-primary .navbar.theme-header-navbar .theme-header-actions {
    grid-column: 3;
    justify-self: start;
    margin-left: 0.25rem;
  }

  .header-primary .navbar.theme-header-navbar .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .header-primary .navbar.theme-header-navbar .navbar-nav .nav-link {
    margin-left: clamp(0.65rem, 1.1vw, 1.35rem) !important;
    margin-right: clamp(0.65rem, 1.1vw, 1.35rem) !important;
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
  }

  /*
    Üst satır 3 sütun (telefon+iletişim | duyuru | dil+ara) ile aynı grid:
    logo sol sütunda; orta sütunda .navbar-nav ortalı; aksiyonlar sağda.
    Yalnızca :not(.sticky); yapışık header mevcut 1fr / auto / 1fr düzeninde kalır.
  */
  .header-primary.theme-header--topbar-3col:not(.sticky) .navbar.theme-header-navbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    column-gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  .header-primary.theme-header--topbar-3col:not(.sticky) .navbar.theme-header-navbar .theme-header-logo {
    justify-self: start;
    margin-right: 0;
  }

  .header-primary.theme-header--topbar-3col:not(.sticky) .navbar.theme-header-navbar #navbarNav.navbar-collapse {
    justify-self: stretch;
    width: 100% !important;
    min-width: 0;
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    justify-content: center;
  }

  .header-primary.theme-header--topbar-3col:not(.sticky) .navbar.theme-header-navbar #navbarNav.navbar-collapse .navbar-nav {
    justify-content: center;
  }

  .header-primary.theme-header--topbar-3col:not(.sticky) .navbar.theme-header-navbar .theme-header-actions {
    justify-self: end;
    margin-left: 0;
  }
}
