/* Header search panel (T-285): recent and popular searches, suggestions while typing. Colours come from the theme tokens. */
body.sector-shell[data-theme] .commerce-head .header-search-wide { position: relative; }
.search-panel { position: absolute; z-index: 60; top: calc(100% + .4rem); left: 0; right: auto; box-sizing: border-box; width: max(100%, min(26rem, calc(100vw - 2rem))); display: grid; gap: 1rem; max-height: min(32rem, 75vh); overflow-y: auto; padding: 1rem; border: 1px solid var(--line, #d9dee5); border-radius: 12px; background: var(--card, #fff); color: var(--ink, #20252b); box-shadow: 0 16px 40px rgb(15 23 42 / .16); font-size: .95rem; text-align: left; }
.search-panel[hidden] { display: none; }
.search-group h3 { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5b6474); }
body.sector-shell[data-theme] .commerce-head .header-search-wide .search-panel button.search-clear { width: auto; min-height: 2rem; padding: 0 .5rem; border: 0; border-radius: 6px; background: none; box-shadow: none; color: inherit; text-decoration: underline; font: inherit; font-size: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
.search-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.search-chips a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--line, #d9dee5); border-radius: 999px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.search-rows { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.search-rows a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .25rem .5rem; border-radius: 8px; color: inherit; text-decoration: none; }
.search-rows img { grid-column: 1; width: 3rem; height: 3rem; border-radius: 6px; object-fit: cover; background: var(--line, #eef0f3); }
.search-rows .search-name { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-rows strong { grid-column: 3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-panel :is(.search-chips a, .search-rows a):is(:hover, :focus-visible) { border-color: var(--accent, #1d4ed8); background: color-mix(in srgb, var(--accent, #1d4ed8) 8%, transparent); }
.search-panel :is(a, button):focus-visible { outline: 2px solid var(--accent, #1d4ed8); outline-offset: 2px; }
.search-empty { margin: 0; color: var(--muted, #5b6474); }
.search-all { justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 840px) {
  .search-panel { max-height: 70vh; }
  .search-panel { width: 100%; }
  .search-rows a { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 .75rem; }
  .search-rows img { grid-row: 1 / span 2; }
  .search-rows strong { grid-column: 2; }
}
/* "Show more" under a product list (D-100): one wide, quiet button in the theme's own colours. */
.pages-more { display: flex; justify-content: center; margin: 1.5rem 0 0; }
.pages-more a { display: inline-flex; align-items: center; justify-content: center; min-width: min(18rem, 100%); min-height: 3rem; padding: 0 1.5rem; border: 1px solid var(--ink, #20252b); border-radius: 8px; background: transparent; color: var(--ink, #20252b); font-weight: 700; text-decoration: none; }
.pages-more a:is(:hover, :focus-visible) { background: var(--ink, #20252b); color: var(--card, #fff); }
.pages-more a[aria-busy="true"] { opacity: .6; pointer-events: none; }
