/* Site-wide search UI */
.dp-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(41, 46, 76, 0.12);
  max-height: min(70vh, 420px);
  overflow: auto;
  display: none;
}

.dp-search-dropdown.is-open {
  display: block;
}

.dp-search-dropdown__section {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dp-search-dropdown__section:last-child {
  border-bottom: none;
}

.dp-search-dropdown__label {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9394a1;
}

.dp-search-result {
  display: block;
  padding: 10px 14px;
  color: #292e4c;
  text-decoration: none;
}

.dp-search-result:hover,
.dp-search-result.is-active {
  background: #f5f8ff;
  color: #017eff;
}

.dp-search-result__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.dp-search-result__meta {
  margin-top: 2px;
  font-size: 12px;
  color: #9394a1;
  line-height: 1.35;
}

.dp-search-empty,
.dp-search-footer {
  padding: 12px 14px;
  font-size: 13px;
  color: #9394a1;
}

.dp-search-footer a {
  color: #017eff;
  font-weight: 500;
  text-decoration: none;
}

#superfields-r4g,
[data-superfields="true"]#superfields-r4g,
.dp-search-wrap {
  position: relative;
}

/* Shop grid filtering */
.dp-search-hidden-card {
  display: none !important;
}

.dp-shop-no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #9394a1;
  font-size: 15px;
}

.dp-shop-no-results.is-visible {
  display: block;
}

/* Search results page */
.dp-search-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.dp-search-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #292e4c;
}

.dp-search-page__query {
  color: #017eff;
}

.dp-search-page__count {
  margin-bottom: 24px;
  color: #9394a1;
  font-size: 14px;
}

.dp-search-page__group {
  margin-bottom: 28px;
}

.dp-search-page__group h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9394a1;
  margin-bottom: 10px;
}

.dp-search-page__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-search-page__card {
  display: block;
  padding: 14px 16px;
  border: 1px solid #ececf0;
  border-radius: 10px;
  color: #292e4c;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-search-page__card:hover {
  border-color: #017eff;
  box-shadow: 0 4px 16px rgba(1, 126, 255, 0.08);
}

.dp-search-page__card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.dp-search-page__card span {
  font-size: 13px;
  color: #9394a1;
  line-height: 1.4;
}

.dp-search-page__form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.dp-search-page__form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
}

.dp-search-page__form button {
  padding: 12px 18px;
  background: #017eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
