/* ═══════════════════════════════════════════════════════════════
   Storefront pages — search, 404, empty states, static polish
   ═══════════════════════════════════════════════════════════════ */

/* Empty / no-results (search, wishlist-style pages) */
.cx-empty-state {
  text-align: center;
  padding: clamp(3rem, 12vw, 5rem) 1rem;
  max-width: 32rem;
  margin: 0 auto;
}
.cx-empty-state__icon {
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.cx-empty-state h2,
.cx-empty-state h3 {
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.cx-empty-state p {
  font-size: 0.9375rem;
  color: var(--ds-text-muted-aa, #5e5c78);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.cx-empty-state .btn-primary {
  min-height: 2.75rem;
}

/* Search results */
.cx-search-page .cx-search-form {
  max-width: 28rem;
  margin: 0 0 1.5rem;
  position: relative;
}
.cx-search-page .cx-search-form input[type="search"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 3rem 0.625rem 2.5rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg2);
  color: var(--text);
}
.cx-search-page .cx-search-form .cx-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted-aa, #5e5c78);
  pointer-events: none;
}
.cx-search-results-meta {
  font-size: 0.9375rem;
  color: var(--ds-text-muted-aa, #5e5c78);
  margin-top: 0.25rem;
}

/* Nav search combobox */
.nav-search-field {
  position: relative;
}
.nav-search-field__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted-aa, #5e5c78);
  font-size: 0.75rem;
  pointer-events: none;
}
.nav-search-desktop input[type="search"] {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5625rem 0.875rem 0.5625rem 2.125rem;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  background: var(--bg2);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-desktop input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 39, 232, 0.1);
  outline: none;
}
.search-dropdown[role="listbox"] {
  max-height:  min(360px, 50vh);
  overflow-y: auto;
}
.search-dropdown .search-drop-status {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--ds-text-muted-aa, #5e5c78);
}

/* 404 — touch targets */
body.sf-error-page .sf-error-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Auth flashes on auth layout */
.sf-auth .flash[role="alert"] {
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
