/* Compact product filter. Card, CTA and photo styles stay in teq-trade.css. */
.tt-home .tt-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
}
.tt-home .tt-heading__eyebrow { grid-column: 1 / -1; }
.tt-home .tt-heading h1 { grid-column: 1; grid-row: 2; }
.tt-home .tt-heading__proof { grid-column: 1; grid-row: 3; }
.tt-category-count { grid-column: 2; grid-row: 3; justify-self: end; margin: 9px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.tt-category-filter { grid-column: 2; grid-row: 2; justify-self: end; min-width: 0; }
.tt-category-filter button, .tt-category-reset { font-family: inherit; letter-spacing: 0; cursor: pointer; }
.tt-category-filter button:focus-visible, .tt-category-reset:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.tt-category-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 9px 13px;
  border: 1px solid #d3dedf; border-radius: 8px; background: #fff;
  color: #26325f; font-size: .875rem; font-weight: 600; line-height: 1.5;
}
.tt-category-trigger:hover, .tt-category-trigger[aria-expanded="true"] { background: #f1f8f6; border-color: #83b9ad; }
.tt-category-trigger[data-active="true"] { color: #1e715f; border-color: #76ad9f; background: #edf7f3; }
.tt-category-trigger svg { display: block; width: 16px; height: 16px; flex: none; }
#category-trigger-label { max-width: 170px; }
.tt-category-caret { color: #637487; flex: none; }
.tt-category-caret svg { width: 14px; height: 14px; }
.tt-category-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: 380px; max-width: 100%; padding: 13px;
  max-height: min(530px, calc(var(--tt-viewport-height, 100dvh) - 120px)); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #d9e4e4; border-radius: 13px; background: #fff;
  box-shadow: 0 16px 42px -12px #182d5147, 0 2px 8px #182d510f;
}
.tt-category-menu[hidden], .tt-category-reset[hidden], .tt-category-option[hidden] { display: none; }
.tt-category-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding-left: 7px; gap: 12px; }
.tt-category-menu__head strong { font-size: .875rem; line-height: 1.5; font-weight: 600; }
.tt-category-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: #56657a; flex: none; }
.tt-category-close:hover { background: #f3f8f6; }
.tt-category-close svg { width: 18px; height: 18px; }
.tt-category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.tt-category-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 52px; padding: 9px 7px; min-width: 0; border: 1px solid transparent; border-radius: 7px; text-align: left; background: #fff; color: #26325f; font-size: .875rem; line-height: 1.3; font-weight: 500; }
.tt-category-option svg { display: block; width: 20px; height: 20px; stroke-width: 1.6; color: #338b7b; }
.tt-category-option small { font-size: .75rem; text-align: right; color: #56657a; font-variant-numeric: lining-nums tabular-nums; }
.tt-category-option:hover { background: #f3f8f6; }
.tt-category-option[aria-pressed="true"] { background: #eaf5ef; border-color: #b1d5c9; color: #196b57; font-weight: 600; }
.tt-category-option--all { grid-column: 1 / -1; margin-bottom: 5px; min-height: 44px; }
.tt-category-reset { min-height: 44px; margin-top: 20px; padding: 10px 16px; border: 1px solid #a7cabe; border-radius: 8px; background: #f0f8f4; color: #1c715b; font-size: .875rem; font-weight: 600; }
@media (max-width: 768px) {
  .tt-home .tt-heading h1 { grid-column: 1 / -1; }
  .tt-home .tt-heading__proof { grid-column: 1 / -1; }
  .tt-category-count { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 8px; }
  .tt-category-filter { grid-column: 2; grid-row: 4; margin-top: 8px; }
  .tt-category-trigger { padding: 9px 10px; gap: 6px; }
  #category-trigger-label { max-width: 150px; }
  .tt-category-menu { width: 100%; padding: 10px; border-radius: 11px; }
  .tt-category-option { padding: 8px 5px; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; }
  .tt-category-option svg { width: 18px; height: 18px; }
}
@media (max-width: 350px) { .tt-category-options { grid-template-columns: minmax(0, 1fr); } }
