/* =============================================================================
   Toy Time — Mega Toys Selection fly-out (separate from site navigation)
   Desktop + mobile
   ============================================================================= */

.tt-navbar {
  position: relative;
  z-index: 1030;
  padding: 0.5rem 1rem;
}

.tt-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 10px 14px;
}

.tt-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* Categories button */
.tt-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #222;
  border-radius: 4px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.tt-cats-btn:hover,
.tt-cats-btn[aria-expanded="true"] {
  background: #000;
  color: #fff;
}

.tt-cats-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.tt-cats-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
}

/* Desktop site nav */
.tt-site-nav {
  flex-direction: row;
  align-items: center;
  margin-left: auto !important;
  margin-right: 0 !important;
  flex-wrap: nowrap;
}

.tt-site-nav .nav-link {
  white-space: nowrap;
  padding: 0.5rem 0.75rem !important;
}

.tt-get-rocket {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.tt-rocket-icon {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Mobile site chips — hidden on desktop */
.tt-site-chips {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  order: 10;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tt-site-chips::-webkit-scrollbar {
  display: none;
}

.tt-site-chips li {
  flex: 0 0 auto;
}

.tt-site-chips a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tt-site-chips a:hover,
.tt-site-chips a:active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Hide bootstrap toggler — we use dedicated cats fly-out + chips */
.tt-navbar .navbar-toggler {
  display: none !important;
}

/* ----- Fly-out drawer ----- */
.tt-cats-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10050;
}

.tt-cats-overlay.is-visible {
  display: block;
}

.tt-cats-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 90vw);
  height: 100%;
  max-height: 100vh;
  background: #fff;
  z-index: 10060;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.tt-cats-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #1a1a1a;
  color: #fff;
  flex-shrink: 0;
}

.tt-cats-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.tt-cats-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 40px;
}

.tt-mnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-mnav > li > a,
.tt-mnav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tt-mnav > li > a:hover,
.tt-mnav-toggle:hover,
.tt-mnav > li > a:active,
.tt-mnav-toggle:active {
  background: #f5f5f5;
  color: #111;
}

.tt-mnav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.tt-mnav-sub a {
  display: block;
  padding: 12px 16px 12px 28px;
  border-bottom: 1px solid #ececec;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.tt-mnav-sub a:hover,
.tt-mnav-sub a:active {
  background: #eee;
  color: #000;
}

.tt-mnav-group.is-open > .tt-mnav-toggle i {
  transform: rotate(180deg);
}

.tt-mnav-toggle i {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.tt-cats-promo {
  padding: 16px;
}

.tt-cats-promo img {
  border-radius: 4px;
  width: 100%;
  height: auto;
}

body.tt-cats-open {
  overflow: hidden;
}

/* Desktop */
@media (min-width: 992px) {
  .tt-site-chips {
    display: none !important;
  }

  .tt-nav-inner {
    flex-wrap: nowrap;
  }

  .tt-cats-drawer {
    width: min(420px, 36vw);
  }
}

/* Mobile / tablet */
@media (max-width: 991px) {
  .tt-site-nav {
    display: none !important;
  }

  .tt-site-chips {
    display: flex;
  }

  .tt-logo img {
    max-height: 40px;
  }

  .tt-cats-btn {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 13px;
  }

  .tt-cats-label {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Safety: old mega-dropdown should not appear if leftover markup */
.tt-navbar .mega-dropdown,
.tt-navbar .mega-menu {
  display: none !important;
}
