/* ── DripHeat Search Enhancements ─────────────────────────────── */

/* ── Search button in header ─────────────────────────────────── */
.dh-search-btn {
  border: 1.5px solid #111 !important;
  border-radius: 4px;
  color: #111 !important;
  padding: 6px 12px !important;
  gap: 6px;
  min-width: 0;
  transition: background 0.15s, color 0.15s !important;
}
.dh-search-btn:hover {
  background: #111 !important;
  color: #fff !important;
}
.dh-search-btn:hover svg {
  stroke: #fff;
}
.dh-search-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: stroke 0.15s;
}
.dh-search-btn__label {
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
@media (min-width: 1024px) {
  .dh-search-btn__label { display: block; }
}

/* Scrollable body when popular tags / suggestions grow tall */
.site-search-panel__form {
  overflow: hidden;
}
.site-search-panel__form > .woocommerce-product-search,
.site-search-panel__form > form.search-form,
.site-search-panel__form > #dh-popular-searches,
.site-search-panel__form > #dh-suggestions,
.site-search-panel__form > .site-search-panel__loading,
.site-search-panel__form > .site-search-panel__results {
  flex-shrink: 0;
}
#dh-popular-searches,
#dh-suggestions,
.site-search-panel__results {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(52vh, 480px);
}

/* ── Popular Searches block ───────────────────────────────────── */
.dh-popular-searches {
  padding: 16px 0 4px;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
}
.dh-popular-searches__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
}
.dh-popular-searches__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dh-ps-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}
.dh-ps-tag:hover,
.dh-ps-tag:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
}
button.dh-ps-tag {
  border: 1px solid #ddd;
  font-family: inherit;
}
button.dh-ps-tag:hover {
  border-color: #555;
  background: #f5f5f5;
  color: #333;
}
/* Collapsed: hide extra brand tags */
.dh-popular-searches:not(.is-expanded) .dh-ps-tag[hidden] {
  display: none !important;
}
/* Expanded: reveal tags, hide the "+N more" button */
.dh-popular-searches.is-expanded .dh-ps-tag[hidden] {
  display: inline-flex !important;
}
.dh-popular-searches.is-expanded .dh-ps-show-all {
  display: none !important;
}

/* ── Suggestions dropdown ────────────────────────────────────── */
#dh-suggestions {
  display: none;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 4px;
}
#dh-suggestions.is-visible {
  display: block;
}

/* Hide parent's results while suggestions are showing (avoid double display) */
#site-search-panel.dh-typing .site-search-panel__results,
#site-search-panel.dh-typing .site-search-panel__loading {
  display: none !important;
}

.dh-suggestions__section {
  margin-bottom: 8px;
}
.dh-suggestions__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  padding: 10px 0 6px;
  margin: 0;
}

/* Brand suggestions — clean text list */
.dh-suggestions__section--brands {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dh-suggestions__brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dh-sugg-item {
  border-radius: 4px;
  transition: background 0.1s;
}
.dh-sugg-item.dh-sugg-active,
.dh-sugg-item:hover {
  background: #f6f6f6;
}
.dh-suggestions__brand-item a {
  display: block;
  padding: 9px 8px;
  font-size: 15px;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
}
.dh-suggestions__brand-item a:hover { color: #111; }
.dh-brand-name strong {
  color: #111;
  font-weight: 700;
}

/* Product suggestions — reuse parent theme result grid */
.dh-suggestions__section--products {
  padding-top: 2px;
}
.dh-suggestions__products-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
#dh-suggestions .site-search-panel__result-link:hover {
  transform: none;
}
#dh-suggestions .dh-sugg-item.dh-sugg-active .site-search-panel__result-link,
#dh-suggestions .dh-sugg-item:hover .site-search-panel__result-link {
  opacity: 0.92;
}

/* Footer: show all link */
.dh-suggestions__footer {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.dh-suggestions__footer a {
  display: block;
  text-align: center;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 600;
  color: #E63946;
  text-decoration: none;
  transition: color 0.15s;
}
.dh-suggestions__footer a:hover { color: #c62d39; }

/* No results */
.dh-suggestions__no-results {
  padding: 18px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Loading shimmer */
.dh-suggestions__loading {
  padding: 16px 0;
  text-align: center;
  color: #bbb;
  font-size: 13px;
}

/* Shop search results — matching brands */
.dh-shop-search-brands {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.dh-shop-search-brands__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 10px;
}
.dh-shop-search-brands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dh-shop-search-brands__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dh-shop-search-brands__link:hover,
.dh-shop-search-brands__link:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
}


.dh-search-btn{
	border-radius:0px;
	border:none !important;
}
.dh-search-btn__label{
	font-weight: 400;
}
@media (max-width: 768px) {
	.dh-search-btn__label{
		display:block !important;
	}
	button.nav-icon-btn.js-search-toggle.dh-search-btn {
		border: none !important;
		border-radius: 0px;
	}
}