/* ── Duyuru bandı ── */
.announcement-bar {
  background-color: var(--color-primary);
  overflow: hidden;
  height: 34px;
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: announcement-scroll 18s linear infinite;
}

.announcement-track:hover {
  animation-play-state: paused;
}

.announcement-item {
  flex-shrink: 0;
  padding: 0 3rem;
  line-height: 34px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes announcement-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Ana header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #fff;
}

.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.125rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 2.875rem;
  width: auto;
  display: block;
}

.header-search {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.header-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 0.6875rem 1.25rem 0.6875rem 2.875rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input::placeholder {
  color: #a1a1aa;
}

.header-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}

.header-utils-icons {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.header-util--account {
  flex-shrink: 0;
}

.header-util {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.header-util:hover .header-util-label {
  color: var(--color-primary);
}

.header-util-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #374151;
  display: block;
}

.header-util-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  gap: 0.125rem;
}

.header-util-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
}

.header-util--icon-only {
  gap: 0;
}

.header-util-sub {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.header-util-sub--link {
  color: var(--color-primary);
  font-weight: 500;
}

/* ── Navigasyon ── */
.header-nav {
  position: relative;
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  z-index: 40;
}

.header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
}

.header-nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.header-nav-item {
  position: static;
  flex: 1;
  border-right: 1px solid #ececec;
}

.header-nav-item:first-child {
  border-left: 1px solid #ececec;
}

.header-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  min-height: 50px;
  padding: 0.875rem 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
  text-decoration: none;
  text-align: center;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-item:hover > .header-nav-link::after,
.header-nav-item.is-open > .header-nav-link::after {
  transform: scaleX(1);
}

.header-nav-link svg {
  flex-shrink: 0;
}

/* ── Mega menü ── */
.header-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.header-nav-item:hover > .header-mega-menu,
.header-nav-item.is-open > .header-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-mega-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

.header-mega-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #27272a;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.header-mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.header-mega-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #71717a;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.header-mega-links a:hover {
  color: var(--color-primary);
}

.header-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: #374151;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ── Mobil ── */
@media (max-width: 1023px) {
  .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.875rem 1rem;
    gap: 0.75rem 1rem;
  }

  .header-logo {
    order: 1;
    flex-shrink: 0;
  }

  .header-utils {
    order: 2;
    margin-left: auto;
    gap: 1rem;
  }

  .header-utils-icons {
    gap: 1rem;
  }

  .header-mobile-toggle {
    display: flex;
    order: 3;
    flex-shrink: 0;
    margin-left: 0;
  }

  .header-search {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-nav {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }

  .header-nav-inner {
    display: none;
    padding: 0;
    max-width: none;
  }

  .header-nav-inner.is-open {
    display: block;
  }

  .header-nav-list {
    flex-direction: column;
  }

  .header-nav-item {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .header-nav-item:first-child {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }

  .header-nav-link {
    justify-content: flex-start;
    padding: 0.875rem 1rem;
  }

  .header-nav-link::after {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .header-mega-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s ease, visibility 0.3s;
  }

  .header-nav-item:hover > .header-mega-menu {
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
  }

  .header-nav-item.is-open > .header-mega-menu {
    visibility: visible;
    max-height: 600px;
  }

  .header-mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-util-text {
    display: none;
  }

  .header-utils {
    gap: 0.75rem;
  }
}
