/* The store's header additions and the filter panel (crew-board #1079).
   - The search box sits in the header; the row of types runs under it and scrolls
     sideways on a phone, with snap points and no page overflow.
   - The filters fold into a "Filters" panel (<details>) on a phone. On a wide screen the
     panel's content always shows and its summary is hidden: Chromium styles the content
     with ::details-content; elsewhere assets/js/store/filters.js opens the panel. */

.store-topbar { gap: 0.6rem; }
.store-search { flex: 1 1 12rem; max-width: 26rem; min-width: 0; margin-inline: auto 0.25rem; }
.store-search input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.store-search input:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.store-types {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.55rem max(1rem, calc((100vw - 72rem) / 2));
  border-bottom: 1px solid var(--line);
}
.store-types::-webkit-scrollbar { display: none; }
.store-types a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.store-types a:hover { color: var(--text); border-color: var(--border-hover); }
.store-types a[aria-current="page"] { color: var(--text); border-color: var(--accent2); background: var(--wash); }
.store-types a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.store-filter-box { margin: 1rem 0 0.4rem; }
.store-filter-box > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.store-filter-box > summary::-webkit-details-marker { display: none; }
.store-filter-box > summary:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.store-filter-box .store-filters { margin-top: 0.8rem; }

@media (min-width: 720px) {
  .store-filter-box > summary { display: none; }
  .store-filter-box::details-content { content-visibility: visible; display: contents; }
  .store-filter-box .store-filters { margin-top: 0.2rem; }
}

@media (max-width: 719px) {
  .store-topbar .brand-name { display: none; }
  .store-search { margin-inline: 0.25rem; }
}

@media (prefers-contrast: more) {
  .store-types a { color: var(--text); border-color: var(--text); }
}
