/* Purchasing filters: persistent desktop controls and a native mobile dialog. */
.catalog-page .page-head { padding: 26px 0; border-bottom: 1px solid var(--line); }
.catalog-page .page-head h1 { font-size: 28px; }
.catalog-page .search-layout { gap: 24px; }
.catalog-filter-panel { padding: 20px; border-top: 3px solid var(--brand); position: static; }
.catalog-filter-panel .filter-title { border-bottom: 0; padding-bottom: 6px; }
.catalog-filter-panel .filter-title strong { display: flex; align-items: center; gap: 8px; }
.catalog-filter-panel .filter-title svg { width: 19px; height: 19px; color: var(--brand); }
.catalog-filter-panel .reset { min-height: 32px; font-size: 13px; color: var(--sub); padding: 0 4px; }
.catalog-filter-group { min-width: 0; margin: 18px 0 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.catalog-filter-group legend { display: flex; align-items: center; gap: 8px; float: none; padding: 0; margin-bottom: 11px; font-size: 14px; font-weight: 700; color: var(--ink); }
.catalog-filter-group legend svg { width: 24px; height: 24px; padding: 4px; border-radius: 5px; color: var(--brand); background: var(--brand-soft); }
.catalog-tone-1 legend svg { color: var(--teal); background: var(--mint-soft); }
.catalog-tone-2 legend svg { color: var(--cta); background: var(--cta-soft); }
.catalog-tone-3 legend svg { color: var(--brand); background: var(--blue-soft); }
.catalog-checks { display: grid; gap: 3px; }
.catalog-checks label { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 7px; margin: 0 -7px; border-radius: 5px; font-size: 14px; color: var(--sub); cursor: pointer; }
.catalog-checks label:hover { background: var(--soft); }
.catalog-checks label:has(input:checked) { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.catalog-checks input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.catalog-filter-help { font-size: 12px; line-height: 1.8; margin: 16px 0 0; color: var(--muted); }
.catalog-page .verification-strip { border: 1px solid var(--green-line); border-radius: 8px; font-size: 14px; }
.catalog-page .verification-strip strong { display: inline-block; margin-right: 5px; }
.catalog-verify-link { background: var(--white); border: 1px solid var(--green-line); color: var(--brand); padding: 8px 12px; border-radius: 5px; white-space: nowrap; font-weight: 600; }
.catalog-verify-link:hover { border-color: var(--brand); }
.catalog-page .verification-strip.is-verified { background: var(--mint-soft); border-color: var(--mint-line); }
.catalog-page .is-verified strong, .catalog-verified { color: var(--teal); }
.catalog-verified { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; }
.catalog-verified svg { width: 16px; height: 16px; }
.catalog-page .result-bar { margin-bottom: 14px; flex-wrap: wrap; }
.catalog-page .result-bar strong { font-size: 16px; }
.catalog-result-tools { display: flex; align-items: center; gap: 8px; }
.catalog-page .result-bar select { font-size: 14px; height: 40px; border-radius: 6px; max-width: 100%; }
.catalog-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.catalog-selected[hidden] { display: none; }
.catalog-selected button { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--green-line); border-radius: 6px; color: var(--brand); background: var(--brand-soft); font-size: 13px; }
.catalog-selected button:hover { border-color: var(--brand); }
.catalog-selected button span { font-size: 19px; line-height: 1; }
.catalog-selected .catalog-clear-all { border-color: transparent; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.catalog-data-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 18px; }
.catalog-data-note b { display: inline-block; font-weight: 500; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.catalog-empty { grid-column: 1 / -1; background: var(--soft); border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; padding: 60px 20px; }
.catalog-empty > svg { width: 32px; height: 32px; color: var(--brand); margin-bottom: 12px; }
.catalog-empty h2 { font-size: 20px; margin: 0 0 10px; }
.catalog-empty p { color: var(--sub); font-size: 14px; line-height: 1.8; }
.catalog-empty > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.catalog-filter-dialog { padding: 0; width: min(480px, calc(100vw - 24px)); max-height: 90vh; max-height: 90dvh; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); overflow: hidden; margin: auto; }
.catalog-filter-dialog[open] { display: flex; flex-direction: column; }
.catalog-filter-dialog::backdrop { background: rgba(24, 39, 54, .44); }
body:has(.catalog-filter-dialog[open]) { overflow: hidden; }
.catalog-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--brand-soft); flex-shrink: 0; }
.catalog-dialog-head h2 { font-size: 18px; margin: 0; }
.catalog-dialog-head button { background: transparent; border: 0; color: var(--sub); width: 40px; height: 40px; font-size: 28px; }
.catalog-dialog-content { padding: 16px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.catalog-mobile-help { font-size: 13px; color: var(--muted); margin: 0; }
.catalog-dialog-content .catalog-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.catalog-dialog-content .catalog-checks label { min-height: 44px; }
.catalog-dialog-actions { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr; gap: 10px; background: var(--white); flex-shrink: 0; }
.catalog-dialog-actions .button { min-height: 46px; }
@media (max-width: 1000px) {
  .catalog-page .page-head { padding: 22px 0; }
  .catalog-page .page-head h1 { font-size: 24px; overflow-wrap: anywhere; }
  .catalog-page .search-page { padding-top: 20px; }
  .catalog-page .result-bar { gap: 12px; }
  .catalog-page .mobile-filter { border-radius: 6px; height: 40px; font-size: 14px; }
  #catalog-filter-count { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 4px; padding: 0 3px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
  .catalog-page .verification-strip { align-items: flex-start; font-size: 13px; padding: 14px; gap: 10px; }
  .catalog-page .verification-strip strong { display: block; margin-bottom: 3px; }
  .catalog-page .verification-strip > span:first-child { line-height: 1.7; }
  .catalog-page .catalog-verify-link { font-size: 13px; }
}
@media (max-width: 560px) {
  .catalog-filter-dialog { width: 100%; max-width: 100%; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
  .catalog-result-tools { width: 100%; justify-content: space-between; }
  .catalog-page .result-bar select { flex: 0 1 172px; min-width: 0; }
  .catalog-page .verification-strip.is-verified { flex-direction: column; }
  .catalog-page .product-body { padding: 12px; }
  .catalog-data-note { margin-top: 2px; }
}
