/* ═══════════════════════════════════════════════
   YES COCKTAIL CO. — SITE SEARCH
   Header search 2026-11.
   Layered over main.css. Header search icon + drop-down
   field (layout-header.php) and the results page (search.php).
   ═══════════════════════════════════════════════ */

/* Header icon: a square cell matching the logo and cart cells. */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-left: 1px solid #030712;
  border-radius: 0;
  background-color: #fffbe7;
  color: #030712;
  cursor: pointer;
  transition: background-color .3s ease;
}

.header-search[aria-expanded="true"],
body:not(.mobile) .header-search:hover,
body:not(.mobile) .header-search:focus-visible {
  background-color: #fce4df;
}

/* Drop-down field, hangs below the header bar. */
.header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 16px 0;
  background-color: #fffbe7;
  box-shadow: inset 0 -1px 0 0 #030712;
}

.header-search-panel[hidden] {
  display: none;
}

.header-search-panel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
}

.header-search-panel-wrap .input-field {
  flex: 1 1 auto;
  min-width: 0;
}

.header-search-panel-wrap .btn {
  flex: 0 0 auto;
  width: auto;
}

/* Results page */
.search-section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Result-type filter pills: reuse the Shop pill styles, but always wrap
   (the Shop version goes single-line max-content on phones). */
.search-filter .products-filter-button-group {
  flex-wrap: wrap;
  width: auto !important;
}

.search-filter .products-filter-btn {
  width: auto;
  background-color: transparent;
  color: #030712;
  cursor: pointer;
}

.search-filter .products-filter-btn.active {
  background-color: #f1de30;
}

.search-section[hidden] {
  display: none;
}

.search-form .input-field {
  max-width: 520px;
}
