body.grc-search-open { overflow: hidden; }
body.grc-results-page .hero-section,
body.grc-results-page .entry-header,
body.grc-results-page .page-title { display: none !important; }

.grc-search-modal[hidden],
.grc-search-modal__cols[hidden],
.grc-search-modal__all[hidden],
.grc-search-modal__clear[hidden] { display: none !important; }
.grc-search-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 12vh 1rem 2rem;
}
.grc-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.72);
}
.grc-search-modal__panel {
  position: relative;
  width: min(720px, 100%);
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid rgba(245, 246, 247, 0.1);
  border-radius: 16px;
  background: #171a20;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.grc-search-modal__field {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0.35rem 0 0.9rem;
  padding-left: 0.75rem;
  border: 1px solid rgba(245, 246, 247, 0.16);
  border-radius: 10px;
  background: #121418;
}
.grc-search-modal__field > img { width: 18px; height: 18px; opacity: 0.7; }
.grc-search-modal__field input,
.grc-search-modal__field input:focus {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 0.55rem;
  border: 0;
  background: transparent;
  color: #f5f6f7 !important;
  -webkit-text-fill-color: #f5f6f7;
  caret-color: #f5f6f7;
  font: inherit;
}
.grc-search-modal__field input::placeholder {
  color: #8e949f;
  -webkit-text-fill-color: #8e949f;
  opacity: 1;
}
.grc-search-modal__field input:focus { outline: none; }
.grc-search-modal__clear {
  width: 36px;
  height: 36px;
  margin-right: 0.25rem;
  border: 0;
  background: transparent;
  color: #b7bdc7;
  font-size: 1.2rem;
  cursor: pointer;
}
.grc-search-modal__cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  margin-top: 0.3rem;
}
.grc-search-modal__cols h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 0.95rem;
}
.grc-search-modal__suggest,
.grc-search-modal__products {
  margin: 0;
  padding: 0;
  list-style: none;
}
.grc-search-modal__products {
  transition: opacity 0.28s ease;
}
.grc-search-modal__products.is-fading {
  opacity: 0;
}
.grc-search-modal__suggest a,
.grc-search-modal__products a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(245, 246, 247, 0.08);
  color: #f5f6f7;
  text-decoration: none;
}
.grc-search-modal__suggest img {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}
.grc-search-modal__products img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #101216;
}
.grc-search-modal__products img.is-mark {
  object-fit: contain;
  padding: 8px;
  background: radial-gradient(circle at 50% 60%, #2a211c, #101216 70%);
}
.grc-search-modal__products span { display: flex; flex-direction: column; min-width: 0; }
.grc-search-modal__products strong { color: #fff; font-size: 0.92rem; }
.grc-search-modal__products b { color: #ff6a1a; font-size: 0.9rem; }
.grc-search-modal__all {
  width: 100%;
  min-height: 46px;
  margin-top: 0.9rem;
  border: 0;
  border-radius: 8px;
  background: #ff6a1a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.grc-search-modal__all:hover { background: #ff7d38; }
.grc-search-modal__status { margin-top: 0.8rem; color: #c9ccd4; }
.grc-search-modal__status[hidden] { display: none !important; }
.grc-search-modal__status button {
  margin-top: 0.55rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(245, 246, 247, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #f5f6f7;
  cursor: pointer;
}
.grc-search-modal__products .is-skeleton {
  height: 52px;
  margin: 0.35rem 0;
  border-radius: 8px;
  background: #1b1e24;
}

.grc-search-page {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  width: min(640px, 100%);
  margin: -0.4rem auto 1.6rem;
}
.grc-search-page__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  padding-left: 0.75rem;
  border: 1px solid rgba(245, 246, 247, 0.16);
  border-radius: 10px;
  background: #1b1e24;
}
.grc-search-page__field > img { width: 18px; height: 18px; opacity: 0.7; }
.grc-search-page__field input,
.grc-search-page__field input:focus {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 0.55rem;
  border: 0;
  background: transparent;
  color: #f5f6f7 !important;
  -webkit-text-fill-color: #f5f6f7;
  caret-color: #f5f6f7;
  font: inherit;
}
.grc-search-page__field input::placeholder {
  color: #8e949f;
  -webkit-text-fill-color: #8e949f;
  opacity: 1;
}
.grc-search-page__clear {
  width: 36px;
  border: 0;
  background: transparent;
  color: #b7bdc7;
  font-size: 1.2rem;
  cursor: pointer;
}
.grc-search-page__submit {
  min-width: 96px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: #ff6a1a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.grc-search-page__submit:hover { background: #ff7d38; }

.grc-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1rem 2rem;
  text-align: center;
}
.grc-none__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: #1b1e24;
  color: #9aa1ad;
}
.grc-none__mark .grc-ico { width: 28px; height: 28px; }
.grc-none h2 { margin: 0 0 0.45rem; color: #fff; font-size: 1.7rem; }
.grc-none p { margin: 0 0 1.25rem; color: #b7bdc7; }
.grc-none__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

@media (max-width: 700px) {
  .grc-search-modal__cols { grid-template-columns: 1fr; }
  .grc-search-page { width: 100%; }
}
