.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 300;
  transition: transform 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header-brand-row {
  border-bottom: 1px solid var(--color-border);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.site-logo img {
  width: 198px;
  max-width: 100%;
  height: auto;
}

.site-brand-actions {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8ca8a3;
  font-size: 1.95rem;
  line-height: 1;
}

.site-brand-link.is-cart {
  position: relative;
}

.site-cart-icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-cart-count {
  position: absolute;
  top: -0.34rem;
  right: -0.44rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
}

.site-cart-count[hidden] {
  display: none;
}

.site-header-menu-row {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.48rem 1rem 0.62rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 20;
}

.site-nav-toggle {
  border: 1px solid var(--color-border);
  background: #fff;
  color: #2f2f2f;
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  display: none;
}

.site-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}

.site-nav-link {
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #262626;
  padding: 0.78rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
}

.site-nav-caret {
  font-size: 0.62rem;
  opacity: 0.75;
}

.site-nav-item.is-active > .site-nav-link,
.site-nav-item:hover > .site-nav-link {
  color: #fff;
  background: var(--color-brand);
}

.site-nav-item.is-open-desktop {
  z-index: 26;
}

.site-nav-item.is-open-desktop > .site-nav-link {
  color: #fff;
  background: var(--color-brand);
}

.site-submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #707070;
  padding: 0 0.45rem 0 0.2rem;
  cursor: pointer;
}

.site-mega-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  width: max-content;
  min-width: 280px;
  max-width: min(1100px, 95vw);
  background: #fff;
  border-top: 3px solid var(--color-brand);
  border-left: 1px solid #e7e7e7;
  border-right: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  box-shadow: 0 16px 28px rgba(23, 23, 23, 0.12);
  padding: 0.9rem 1rem;
  display: none;
  z-index: 650;
}

.site-nav-item:hover .site-mega-menu,
.site-nav-item:focus-within .site-mega-menu,
.site-nav-item.is-open-desktop .site-mega-menu {
  display: block;
}

.site-mega-menu-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  width: max-content;
  max-width: calc(min(1100px, 95vw) - 2rem);
}

.site-mega-menu.is-narrow {
  min-width: 220px;
}

.site-mega-menu--toys {
  min-width: min(760px, 95vw);
  max-width: min(980px, 95vw);
}

.site-mega-menu-columns--toys {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(360px, 1fr);
  gap: 1rem 1.15rem;
  width: min(920px, calc(min(1100px, 95vw) - 2rem));
}

.site-mega-toy-links {
  min-width: 0;
  flex: none;
}

.site-mega-brand-panel {
  border-left: 1px solid #ececec;
  padding-left: 1rem;
}

.site-mega-brand-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2a2a;
  font-weight: 800;
}

.site-mega-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 0.75rem;
}

.site-mega-brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0.45rem;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.site-mega-brand-tile img {
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-mega-brand-tile:hover {
  border-color: #d8d8d8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.site-mega-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  min-width: 210px;
  flex: 0 0 210px;
}

.site-mega-link {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  color: #2a2a2a;
  font-size: 0.84rem;
  line-height: 1.3;
  position: relative;
  padding: 0.08rem 0;
}

.site-mega-link-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.site-mega-item.is-parent > .site-mega-link {
  font-weight: 700;
}

.site-mega-item.depth-2 > .site-mega-link {
  padding-left: 0.7rem;
}

.site-mega-item.depth-3 > .site-mega-link {
  padding-left: 1.2rem;
}

.site-mega-item.depth-4 > .site-mega-link {
  padding-left: 1.6rem;
}

.site-mega-item.is-child > .site-mega-link::before {
  content: "›";
  color: #9f9f9f;
  position: absolute;
  left: 0;
}

.site-mega-item.depth-3 > .site-mega-link::before {
  left: 0.5rem;
}

.site-mega-item.depth-4 > .site-mega-link::before {
  left: 0.95rem;
}

.site-mega-menu a {
  color: #2a2a2a;
  font-size: 0.84rem;
  line-height: 1.3;
}

.site-mega-menu a:hover {
  color: var(--color-brand);
}

.site-search-launcher {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-search-input {
  border: 0;
  padding: 0;
  margin: 0;
}

.site-search-input--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.site-search-open {
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f2f2f;
}

.site-search-open svg {
  width: 1.03rem;
  height: 1.03rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-search-open:hover {
  background: #f7f7f7;
  border-color: #d0d0d0;
}

body.has-search-overlay-open {
  overflow: hidden;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0.9rem;
  z-index: 1200;
}

.site-search-overlay.is-open {
  display: flex;
}

.site-search-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 12, 16, 0.56);
}

.site-search-overlay-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbdbdb;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.site-search-overlay-sticky {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  padding: 1rem 1rem 0.7rem;
  border-bottom: 1px solid #ececec;
  transition: transform 150ms ease, margin-bottom 150ms ease, opacity 120ms ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.site-search-overlay-panel.is-sticky-hidden .site-search-overlay-sticky {
  transform: translateY(calc(-1 * var(--search-overlay-sticky-height, 128px)));
  margin-bottom: calc(-1 * var(--search-overlay-sticky-height, 128px));
  opacity: 0;
}

.site-search-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.site-search-overlay-header h2 {
  margin: 0;
  font-size: 1.34rem;
}

.site-search-overlay-close {
  border: 1px solid #dadada;
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.site-search-overlay-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.site-search-overlay-form input {
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 1.05rem;
}

.site-search-overlay-form button {
  border: 0;
  border-radius: 4px;
  background: var(--color-brand);
  color: #fff;
  min-height: 44px;
  padding: 0 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.site-search-overlay-status {
  margin: 0.6rem 0 0;
  color: #616161;
  min-height: 1rem;
  font-size: 0.92rem;
}

.site-search-overlay-scope-row {
  margin-top: 0.35rem;
}

.site-search-overlay-scope-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1568a3;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.site-search-overlay-results {
  margin-top: 0;
  padding: 0.8rem 1rem 0;
  flex: 1 1 auto;
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
}

.site-search-result-card {
  border: 1px solid #e9e9e9;
  background: #fff;
}

.site-search-result-link {
  display: grid;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  padding: 0.56rem;
}

.site-search-result-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f7f7;
}

.site-search-result-link h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.site-search-result-brand {
  margin: 0;
  color: #696969;
  font-size: 0.82rem;
}

.site-search-result-price {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-search-overlay-actions {
  margin-top: 0.8rem;
  padding: 0 1rem 1rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.site-search-overlay-actions button {
  border: 1px solid #d3d3d3;
  background: #fff;
  border-radius: 4px;
  padding: 0.48rem 0.82rem;
  cursor: pointer;
}

.site-search-overlay-sentinel {
  height: 1px;
  width: 100%;
}

.site-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.95rem 1rem 2.2rem;
}

.site-footer {
  background: #222;
  color: #d7d7d7;
  margin-top: 2.4rem;
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
}

.site-footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.2rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #d7d7d7;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #d7d7d7;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-copy {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #3b3b3b;
  color: #bfbfbf;
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .site-logo img {
    width: 178px;
  }
}

@media (max-width: 900px) {
  .site-nav-toggle {
    display: inline-flex;
  }

  .site-header-menu-row {
    position: relative;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: none;
    padding: 0.45rem 0.7rem 0.8rem;
    z-index: 320;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-nav-item:last-child {
    border-bottom: 0;
  }

  .site-nav-link {
    padding: 0.72rem 0.4rem;
  }

  .site-submenu-toggle {
    display: inline-flex;
  }

  .site-mega-menu {
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
    border-top: 1px solid #efefef;
    padding: 0.55rem 0;
    grid-column: 1 / -1;
    display: none;
    z-index: 0;
  }

  .site-mega-menu--toys {
    min-width: 0;
    max-width: none;
  }

  .site-mega-menu-columns--toys {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-mega-brand-panel {
    border-left: 0;
    border-top: 1px solid #efefef;
    padding-left: 0;
    padding-top: 0.6rem;
  }

  .site-mega-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav-item.is-open .site-mega-menu {
    display: block;
  }

  .site-nav-item:hover .site-mega-menu {
    display: none;
  }

  .site-search-launcher {
    margin-left: 0;
    width: auto;
    margin-right: 0.25rem;
  }

  .site-search-overlay {
    padding: 0;
  }

  .site-search-overlay-panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .site-search-overlay-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-logo img {
    width: 154px;
  }

  .site-brand-link {
    font-size: 1.55rem;
  }

  .site-brand-actions {
    right: 0.5rem;
    gap: 0.5rem;
  }

  .site-search-overlay-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-search-overlay-header h2 {
    font-size: 1.02rem;
  }
}
