/** Shopify CDN: Minification failed

Line 70:3 Unexpected "="
Line 112:3 Unexpected "="
Line 189:3 Unexpected "="

**/
/**
 * Vision Optique — Predictive Search
 * -------------------------------------
 * Sprint 4, Batch 4. Styles the search trigger + floating combobox
 * panel (markup rendered from sections/header.liquid, behaviour owned
 * by assets/sections-predictive-search.js) and the results content
 * sections/predictive-search.liquid returns via AJAX and JS injects
 * into `.header-search__results`.
 *
 * Loaded once from sections/header.liquid rather than from
 * predictive-search.liquid itself, because that file's markup only
 * ever arrives later via an innerHTML swap — a <link> injected that
 * way would be an unreliable, late "flash of unstyled content" on a
 * visitor's very first search rather than being ready before they ever
 * open the panel.
 *
 * Product result rows reuse snippets/product-card.liquid's own
 * `.product-card--compact` styles, defined in components-product.css
 * (loaded separately by header.liquid) — not duplicated here. This file
 * only owns the panel chrome and the Collection/Page row markup that
 * has no other home.
 *
 * Restrained elevation: `--vo-shadow-sm` is the one shadow this batch's
 * own brief explicitly allows ("No shadows beyond a restrained
 * elevation to separate the panel from page content") — an existing
 * tokens.css value, not a new one invented for this panel.
 */

/* ====================================================================
   TRIGGER + FLOATING PANEL
   =================================================================== */
.header-search {
  position: relative;
}

.header-search__panel {
  position: absolute;
  top: calc(100% + var(--vo-space-8));
  right: 0;
  z-index: var(--vo-z-dropdown);
  width: min(26rem, 90vw);
  background-color: var(--vo-surface-elevated);
  border: var(--vo-border-width-hairline) solid var(--vo-color-border-default);
  border-radius: var(--vo-radius-md);
  box-shadow: var(--vo-shadow-sm);
  padding: var(--vo-space-16);
}

@media (max-width: 767px) {
  /* "Search expands naturally below the header... do not create a
     fullscreen takeover" — the panel widens to the viewport instead of
     floating as a fixed-width card, still anchored below the header,
     never an overlay covering the whole screen. */
  .header-search__panel {
    left: var(--vo-space-16);
    right: var(--vo-space-16);
    width: auto;
  }
}

/* ==================================================================== */
   SEARCH FORM
   ==================================================================== */
.header-search__form {
  display: flex;
  align-items: center;
  gap: var(--vo-space-8);
}

.header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: var(--vo-border-width-hairline) solid var(--vo-color-border-default);
  border-radius: var(--vo-radius-sm);
  padding-block: var(--vo-space-8);
  padding-inline: var(--vo-space-12);
  font-size: var(--vo-font-size-base);
  color: var(--vo-color-neutral-900);
  background-color: var(--vo-surface-page);
}

.header-search__input:focus-visible {
  outline: var(--vo-border-width-focus-ring) solid var(--vo-color-interactive-primary);
  outline-offset: 2px;
}

/* Native <input type="search"> ships a browser-default "clear" (x)
   icon in WebKit; left as-is intentionally — removing it would need a
   vendor-prefixed override for no real benefit, and it already gives
   visitors a free, zero-JS way to clear their query. */

.header-search__status {
  margin: var(--vo-space-8) 0 0;
  font-size: var(--vo-font-size-sm);
  color: var(--vo-color-neutral-600);
}

.header-search__status:empty {
  display: none;
  margin: 0;
}

/* =================================================================== */
   RESULTS
   =================================================================== */
.header-search__results {
  margin-block-start: var(--vo-space-8);
  max-height: 60vh;
  overflow-y: auto;
}

.header-search__results:empty {
  margin-block-start: 0;
}

.predictive-search__group + .predictive-search__group {
  margin-block-start: var(--vo-space-24);
  padding-block-start: var(--vo-space-24);
  border-block-start: var(--vo-border-width-hairline) solid var(--vo-color-border-default);
}

.predictive-search__group-heading {
  margin: 0 0 var(--vo-space-12);
  font-size: var(--vo-font-size-xs);
  font-weight: var(--vo-font-weight-600);
  letter-spacing: var(--vo-letter-spacing-widest);
  text-transform: uppercase;
  color: var(--vo-color-neutral-600);
}

.predictive-search__list {
  display: flex;
  flex-direction: column;
  gap: var(--vo-space-12);
  list-style: none;
  padding: 0;
  margin: 0;
}

.predictive-search__option {
  border-radius: var(--vo-radius-sm);
}

/* Active-option highlight: assets/sections-predictive-search.js toggles
   aria-selected on the option currently reachable via Arrow keys (the
   same element aria-activedescendant on the input points at) — this is
   a real ARIA state being reflected visually, not a decorative hover
   effect duplicated in JS. */
.predictive-search__option[aria-selected="true"] {
  background-color: var(--vo-surface-subtle);
}

.predictive-search__row {
  display: flex;
  align-items: center;
  gap: var(--vo-space-12);
  padding: var(--vo-space-4);
  color: inherit;
  text-decoration: none;
}

.predictive-search__row-media {
  width: 2.5rem;
  flex-shrink: 0;
}

.predictive-search__row-media--placeholder {
  border-radius: var(--vo-radius-sm);
}

.predictive-search__row-title {
  font-size: var(--vo-font-size-sm);
  color: var(--vo-color-neutral-900);
}

.predictive-search__row--page .predictive-search__row-title {
  color: var(--vo-color-neutral-700);
}

/* ==================================================================== */
   EMPTY STATE
   ==================================================================== */
.predictive-search__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--vo-space-16);
  padding-block: var(--vo-space-8);
}

.predictive-search__empty-message {
  margin: 0;
  color: var(--vo-color-neutral-700);
}
