/* L2 · Benchwell fit finder (one box, suggestions, popular-tool chips) and the empty
   states. Uses the shop storefront's tokens, so light and dark mode come from shop.css. */
@layer pages {
  body.storefront-shop .bw-combo-box { position: relative; }
  body.storefront-shop .bw-combo input[type=search] { -webkit-appearance: none; appearance: none; }
  body.storefront-shop .bw-combo label { color: var(--fg); font-weight: 600; }
  body.storefront-shop .bw-combo .bw-hint { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
  body.storefront-shop .bw-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: var(--space-1);
    background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.18); max-height: 20rem; overflow: auto; }
  body.storefront-shop .bw-suggest li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 44px;
    padding: var(--space-2) var(--space-3); border-radius: 4px; cursor: pointer; color: var(--fg); }
  body.storefront-shop .bw-suggest li:hover, body.storefront-shop .bw-suggest li[aria-selected=true] { background: var(--scribe); }
  body.storefront-shop .bw-suggest-name { font-weight: 600; }
  body.storefront-shop .bw-suggest-meta { color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }

  body.storefront-shop .bw-chips { display: grid; gap: var(--space-2); }
  body.storefront-shop .bw-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
  body.storefront-shop .bw-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--border);
    border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-size: var(--text-sm); font-weight: 600; }
  body.storefront-shop .bw-chip:hover, body.storefront-shop .bw-chip:focus-visible { border-color: var(--accent); color: var(--accent); }

  body.storefront-shop .bw-ai-note { color: var(--muted); }
  body.storefront-shop .bw-aisle-finder, body.storefront-shop .bw-finder-wide { max-width: 34rem; margin: 0 0 var(--space-8); }
  body.storefront-shop .bw-catalogue-bare { grid-template-columns: minmax(0, 1fr); }
  body.storefront-shop .bw-empty h2 { margin: 0; text-wrap: balance; }
  body.storefront-shop .bw-empty p { margin: 0; max-width: 60ch; }
  body.storefront-shop .bw-empty-first { border-style: solid; background: var(--scribe); }
  body.storefront-shop .bw-empty-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
  body.storefront-shop .bw-empty-also { margin-top: var(--space-8); }
}
