/* Üst Duyuru & Ekosistem Şeridi */
.eco-topbar {
  background: #050608;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 95;
}

.eco-topbar__inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eco-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text-primary);
}

.eco-topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red);
}

.eco-topbar__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.eco-topbar__links a:hover {
  color: var(--brand-white);
}

/* Ana Bağlam Duyarlı Header (Fenerbahçe Tarzı Taşan Büyük Arma) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-strong);
  overflow: visible;
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: visible;
}

.brand-lockup {
  position: relative;
  z-index: 110;
  display: inline-flex;
  align-items: flex-start;
  align-self: flex-start;
  margin-top: 6px;
  flex-shrink: 0;
}

.brand-lockup__crest {
  height: 118px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.82));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-lockup:hover .brand-lockup__crest {
  transform: translateY(2px) scale(1.03);
  filter: drop-shadow(0 16px 28px rgba(217, 4, 41, 0.35));
}

/* Masaüstü Navigasyon */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.05);
}

.primary-nav__link--store {
  color: var(--brand-white);
  background: var(--brand-red-soft);
  border: 1px solid rgba(217, 4, 41, 0.35);
}

.primary-nav__link--store:hover,
.primary-nav__link--store.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

/* Store Mega Menü */
.nav-item-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -120px;
  width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
}

.nav-item-mega:hover .mega-menu,
.nav-item-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mega-menu__cat {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.mega-menu__cat:hover {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
}

.mega-menu__cat-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.mega-menu__cat-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mega-menu__promo {
  background: linear-gradient(155deg, rgba(217, 4, 41, 0.22), var(--bg-elevated));
  border: 1px solid rgba(217, 4, 41, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Sağ Aksiyonlar (Hesap & Sepet) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding-inline: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-action-btn:hover {
  border-color: var(--border-strong);
  background: #202734;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--brand-white);
  font-size: 0.74rem;
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
}

/* Mobil Çekmece Menü */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer__panel {
  width: min(86vw, 360px);
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-strong);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open .mobile-nav-drawer__panel {
  transform: translateX(0);
}

/* Slide-Over AJAX Yan Sepet Çekmecesi */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  width: min(100vw, 440px);
  height: 100dvh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shipping-meter {
  padding: 0.85rem 1.35rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.shipping-meter__text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.shipping-meter__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.shipping-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red), #ff4d6d);
  transition: width 350ms ease;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cart-item-row__img {
  width: 68px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-primary);
}

.cart-item-row__meta {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-row__print {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--brand-red-soft);
  color: #ff8fa3;
  font-size: 0.72rem;
  font-weight: 700;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-drawer__footer {
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border-strong);
  background: #0c0f14;
}

/* Flash Mesajları & Toast */
.flash-banner {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.flash-banner--success {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.flash-banner--error {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand-red);
  color: var(--text-primary);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Kurumsal & Store Footer (İçerik & Footer Ortası Taşan Arma Köprüsü) */
.site-footer {
  position: relative;
  margin-top: 5.5rem;
  background: #060709;
  border-top: 1px solid var(--border-strong);
}

.footer-crest-bridge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #181e28 0%, #090b0e 78%);
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.85),
    0 0 0 8px var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.footer-crest-bridge:hover {
  transform: translate(-50%, -52%) scale(1.04);
  border-color: var(--brand-red);
}

.footer-crest-bridge img {
  height: 84px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

.footer-grid {
  padding-top: 5.25rem;
  padding-bottom: 3.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-white);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .primary-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .brand-lockup__crest {
    height: 98px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .eco-topbar__links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 4.75rem;
  }
  .icon-action-btn__label {
    display: none;
  }
  .brand-lockup__crest {
    height: 86px;
  }
  .footer-crest-bridge {
    width: 102px;
    height: 102px;
  }
  .footer-crest-bridge img {
    height: 70px;
  }
}
