/* Kidstoyra Header Styles */

.kt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #ffe4a3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kt-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kt-header__brand {
  display: flex;
  align-items: center;
}

.kt-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.kt-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #ffdd57, #ff8a80 55%, #ff6ec7 100%);
  position: relative;
  overflow: hidden;
}

.kt-header__logo-mark::before,
.kt-header__logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.kt-header__logo-mark::before {
  width: 12px;
  height: 12px;
  top: 8px;
  left: 6px;
}

.kt-header__logo-mark::after {
  width: 18px;
  height: 18px;
  bottom: -4px;
  right: -2px;
}

.kt-header__logo-text {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #ff6b6b;
}

.kt-header__nav {
  flex: 1 1 auto;
}

.kt-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.kt-header__nav-item {
  position: relative;
}

.kt-header__nav-link {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.kt-header__nav-link:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.kt-header__nav-link:hover {
  background-color: #fff5d6;
  color: #111827;
  transform: translateY(-1px);
}

.kt-header__nav-item--highlight .kt-header__nav-link {
  background: linear-gradient(135deg, #ff6b6b, #f97316);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
}

.kt-header__nav-item--highlight .kt-header__nav-link:hover {
  background: linear-gradient(135deg, #ff4f4f, #ea580c);
}

.kt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kt-header__action {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #4b5563;
  background-color: #fff4f4;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.kt-header__action:hover {
  background-color: #ffe4e4;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kt-header__action:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.kt-header__action--cart {
  background-color: #e0f2fe;
  color: #0369a1;
}

.kt-header__action--cart:hover {
  background-color: #bae6fd;
}

.kt-header__cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.15rem;
  min-width: 1rem;
  padding: 0 0.15rem;
  height: 1rem;
  border-radius: 999px;
  background-color: #f97316;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile toggle */
.kt-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background-color: #fff4f4;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.kt-header__toggle:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.kt-header__toggle:hover {
  background-color: #ffe4e4;
}

.kt-header__toggle-bar {
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.kt-header__toggle-bar + .kt-header__toggle-bar {
  margin-top: 0.22rem;
}

.kt-header__toggle--open .kt-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.kt-header__toggle--open .kt-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.kt-header__toggle--open .kt-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive layout */
@media (max-width: 768px) {
  .kt-header__inner {
    padding-inline: 0.75rem;
  }

  .kt-header__toggle {
    display: inline-flex;
  }

  .kt-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 3.5rem;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .kt-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
  }

  .kt-header__nav-link {
    display: block;
    padding: 0.7rem 0.85rem;
  }

  .kt-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .kt-header__actions {
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .kt-header__logo-text {
    font-size: 1.15rem;
  }

  .kt-header__inner {
    gap: 0.5rem;
  }
}
