/* Edu Games 1.0.4 — autocomplete do catálogo, presente em todo o site. */
.nd-header .nd-search.ed-live-search {
  position: relative;
  display: block;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-width: 210px;
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  z-index: 105;
}
.nd-header .ed-search-field {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(111,149,242,.42);
  border-radius: 999px;
  overflow: hidden;
  background: #101a3b;
  transition: border-color .18s, box-shadow .18s;
}
.nd-header .ed-live-search:focus-within .ed-search-field {
  border-color: #7796ff;
  box-shadow: 0 0 0 3px rgba(90,125,239,.12);
}
.nd-header .ed-search-field input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  color: #f4f7ff;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.nd-header .ed-search-field button {
  background: transparent !important;
  border: 0 !important;
  flex: 0 0 auto;
}
.nd-header .ed-search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 250;
  width: min(520px, calc(100vw - 24px));
  max-height: min(580px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(137,135,201,.48);
  border-radius: 16px;
  background: linear-gradient(145deg, #27233f 0%, #181a36 100%);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  color: #f5f6ff;
}
.nd-header .ed-search-results[hidden],
.nd-header .ed-search-message[hidden] { display: none !important; }
.nd-header .ed-search-heading {
  padding: 14px 16px 8px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .9px;
  color: #aeb6d7;
}
.nd-header .ed-search-list {display: flex; flex-direction: column;}
.nd-header .ed-search-option {
  display: grid;
  grid-template-columns: 47px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  color: #fff;
  transition: background .16s;
}
.nd-header .ed-search-option:hover,
.nd-header .ed-search-option:focus-visible,
.nd-header .ed-search-option.is-active {
  background: rgba(137,113,205,.26);
  outline: 0;
}
.nd-header .ed-search-option img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 7px;
  background: #111a37;
}
.nd-header .ed-search-item-title {
  font-size: 13px;
  font-weight: 730;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: anywhere;
}
.nd-header .ed-search-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  white-space: nowrap;
}
.nd-header .ed-search-regular {font-size: 10px; color: #a3accb; text-decoration: line-through;}
.nd-header .ed-search-price {font-size: 13px; font-weight: 850; color: #ffd32d;}
.nd-header .ed-search-message {padding: 14px 16px 22px; font-size: 13px; color: #c6d2f0;}
.nd-header .ed-search-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #dfddff !important;
  background: rgba(95,68,159,.22);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  letter-spacing: .2px;
}
.nd-header .ed-search-all:hover,
.nd-header .ed-search-all:focus-visible {background: rgba(125,83,229,.35); color: #fff !important;}
.nd-header .ed-search-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 780px) {
  .nd-header .ed-search-results { width: min(460px, calc(100vw - 24px)); }
}
@media (max-width: 600px) {
  .nd-header .nd-search.ed-live-search { min-width: 120px; }
  .nd-header .ed-search-results { right: auto; left: 50%; transform: translateX(-50%); width: min(420px,calc(100vw - 20px)); max-height: min(460px, calc(100vh - 150px)); }
  .nd-header .ed-search-option { grid-template-columns: 40px minmax(0,1fr) auto; gap: 8px; padding: 9px 10px; }
  .nd-header .ed-search-option img { width: 40px; height: 40px; }
  .nd-header .ed-search-item-title { font-size: 12px; }
  .nd-header .ed-search-price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-header .ed-search-option,.nd-header .ed-search-field { transition: none; }
}

/* Busca completa: mesmos cards de jogos usados no catálogo. */
.ed-search-page { min-height: 45vh; padding-top: 40px; }
.ed-search-page-heading { color: #fff; font-size: clamp(24px,3vw,35px); line-height: 1.25; margin: 0 0 28px; }
.ed-search-page-heading span { color: #a9caff; }
.ed-search-page-empty { background: #162146; border: 1px solid rgba(136,166,233,.27); border-radius: 16px; padding: 25px; color: #d7e5ff; }
.ed-search-page-article { border-bottom: 1px solid rgba(136,166,233,.22); padding: 14px 0; }
.ed-search-page .navigation.pagination { margin-top: 30px; }
.ed-search-page .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; min-height: 35px; margin-right: 6px; border-radius: 9px; background: #1b2c60; padding: 5px 9px; }
.ed-search-page .page-numbers.current { background: #674ee5; color: #fff; }
