/* The masthead is a shortcut. The full search travels with the catalog filters. */
.masthead .header-actions { margin-left: auto; }
.mast-search {
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:44px; min-width:44px; padding-inline:.55rem; color:#eee; font-size:.9375rem;
}
.mast-search:hover { color:white; text-decoration:underline; text-underline-offset:4px; }
.mast-search .ico { width:20px; height:20px; }
.catalog .catalog-head { display:block; padding:0; margin:0 0 clamp(17px,2vw,26px); border:0; }
.catalog-head #catalog-title {
  font:600 clamp(2rem,4.2vw,3.7rem)/1.05 'Instrument Sans','DM Sans',sans-serif;
  letter-spacing:-.055em; color:#f6f4ef;
}
.browse-tools {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:12px;
  margin:0 0 18px;
}
.catalog-search {
  display:flex; align-items:center; gap:12px; width:100%; min-width:0; height:56px;
  padding:0 5px 0 17px; border:1px solid #4b4d4e; border-radius:13px;
  background:linear-gradient(112deg,#27292a,#212222); color:#f8f7f3;
  transition:border-color .15s ease,background-color .15s ease; scroll-margin-top:14px;
}
.catalog-search:focus-within { border-color:#e8e5dd; box-shadow:0 0 0 1px #e8e5dd; }
.catalog-search > .ico { width:22px; height:22px; color:#dedbd5; }
.catalog-search input {
  appearance:none; min-width:0; flex:1; min-height:44px; margin:0; padding:0;
  font:inherit; font-family:'Instrument Sans','DM Sans',sans-serif; font-size:1rem; background:none; border:0; color:#faf9f5;
}
.catalog-search input::placeholder { color:#c1c2bf; opacity:1; }
.catalog-search input:focus-visible { outline:none; }
.search-submit { display:grid; place-items:center; width:44px; height:44px; color:#cecfc9; border-radius:8px; }
.search-submit:hover { background:#373939; color:white; }
.search-submit .ico { width:17px; height:17px; }
.browse-refine {
  display:flex; align-items:center; justify-content:space-between; gap:0;
  padding:4px; border:1px solid #37393b; border-radius:13px; background:#191a1b;
}
.refine-brand,.refine-price,.refine-all {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; min-width:0; padding:0 14px; border-radius:8px; color:#f2f1ec;
  font-size:.9375rem; font-weight:550; line-height:1.15;
}
.refine-brand,.refine-price { width:clamp(100px,10vw,148px); }
#brand-selected,#price-caption {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.browse-refine .ico { width:17px; height:17px; }
.refine-brand .ico,.refine-price .ico,.result-sort .ico:last-child { width:12px; height:12px; color:#b7b9b7; }
.refine-price { position:relative; cursor:pointer; }
.refine-price select {
  position:absolute; inset:0; height:100%; width:100%; opacity:0; cursor:pointer; font:inherit; font-size:1rem;
}
.refine-price:focus-within { outline:2px solid var(--yellow); outline-offset:1px; }
.refine-all { position:relative; justify-content:center; gap:7px; }
.refine-all::before { content:''; position:absolute; top:13px; bottom:13px; left:-1px; border-left:1px solid #414242; }
.browse-refine button:hover,.refine-price:hover { background:#2a2c2d; color:white; }
#active-count { display:grid; place-items:center; line-height:1; width:18px; height:18px; border-radius:50%; font-size:.75rem; font-weight:650; background:#f0e9dd; color:#272421; }

.results-bar {
  display:flex; gap:clamp(10px,2vw,28px); align-items:center; min-width:0;
  margin:12px 0 13px; padding-top:3px;
}
#result-line { margin:0 auto 0 0; color:#c1c2be; font-size:.94rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.result-sort,.results-bar .compare-trigger {
  display:inline-flex; flex:none; align-items:center; justify-content:center; gap:7px;
  min-height:44px; padding:0; background:transparent; border:0; color:#eeeeea;
  font-size:.91rem; font-weight:550; line-height:1.2;
}
.result-sort { position:relative; gap:5px; }
.result-sort select {
  appearance:none; -webkit-appearance:none; cursor:pointer; width:auto; min-width:0;
  padding:9px 15px 9px 0; margin:0; border:0; background:none; color:inherit; font:inherit;
}
.result-sort select option, .refine-price select option { color:#f6f6f3; background:#191a1c; }
.result-sort .ico:last-child { position:absolute; right:0; pointer-events:none; }
.result-sort .ico,.results-bar .compare-trigger .ico { width:17px; height:17px; }
.results-bar .compare-trigger:hover,.result-sort:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.results-bar [data-compare-count] { display:grid; place-items:center; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#eddfce; color:#25231f; font-size:.75rem; }
.catalog .applied { align-items:center; margin:12px 0 0; gap:4px 8px; }
.catalog .applied .applied-filter {
  min-height:36px; border:1px solid #5b5250; border-radius:18px; color:#f3eae7;
  padding:4px 11px; background:#2d2525; font-size:.84rem; line-height:1.3;
}
.catalog .applied .applied-filter:hover { border-color:#9d8380; }
.catalog .applied .clear-filters { min-height:40px; padding:3px 7px; color:#e2dfd9; background:none; font-size:.84rem; text-decoration:underline; text-underline-offset:4px; }
.brand-dialog,.filter-modal {
  padding:clamp(20px,3vw,30px); border:1px solid #454748; border-radius:18px; background:#181a1b;
}
.brand-dialog .modal-heading,.filter-modal .modal-heading { margin-bottom:20px; }
.brand-dialog .modal-heading h2,.filter-modal .modal-heading h2 {
  font:600 clamp(1.48rem,3vw,2rem)/1.1 'Instrument Sans','DM Sans',sans-serif; letter-spacing:-.045em;
}
.brand-dialog .icon-btn,.filter-modal .icon-btn { border-radius:50%; background:transparent; border-color:#505254; }
.brand-search,.filter-modal .field select,.filter-modal .range input { border:1px solid #4a4d4e; border-radius:9px; background:#222425; }
.brand-search { padding-left:14px; }
.brand-search:focus-within { border-color:#e8e5df; }
.brand-dialog .brand-option { border-bottom-color:#343637; padding-inline:8px; }
.brand-dialog .brand-option[aria-pressed="true"] { color:#fff; border-left-color:#e44853; background:#282126; }
.brand-dialog .brand-count { color:#b8b9b6; }
.filter-modal .field,.filter-modal fieldset { margin-block:14px; }
.filter-modal .field select,.filter-modal .range input { min-height:46px; padding-inline:12px; font-size:1rem; }
.filter-modal .check { min-height:44px; }
.filter-modal .modal-actions { justify-content:space-between; gap:14px; }
.filter-modal .primary-btn { min-height:47px; border-radius:9px; padding-inline:20px; background:#bd2938; color:white; font-size:.98rem; font-weight:650; }
.filter-modal .primary-btn:hover { background:#d43244; }
.filter-modal .link-btn { padding-inline:4px; min-height:44px; color:#deded9; }

@media(max-width:850px) {
  .mast-search span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .refine-brand,.refine-price { width:108px; }
}
@media(max-width:730px) {
  .browse-tools { grid-template-columns:minmax(0,1fr); gap:7px; margin-bottom:11px; }
  .browse-refine { padding:0 2px; justify-content:start; border:0; border-radius:0; background:transparent; }
  .refine-brand,.refine-price { width:auto; max-width:38%; padding-inline:8px; }
  .refine-all { margin-left:auto; padding-inline:8px; }
  .refine-all::before { display:none; }
  .refine-price { margin-left:12px; }
  .result-sort select { font-size:1rem; }
}
@media(max-width:650px) {
  .header .masthead { display:flex; justify-content:space-between; align-items:center; height:64px; gap:10px; padding-block:0; }
  .masthead .header-actions { gap:6px; }
  .catalog .catalog-head { margin-bottom:17px; }
  .catalog-search { height:52px; gap:9px; padding-left:12px; border-radius:11px; }
  .catalog-search > .ico { width:20px; height:20px; }
  .search-submit { flex:none; }
  .results-bar { margin:9px 0 10px; gap:12px; }
  #result-line { font-size:.875rem; }
  .results-bar .compare-trigger { gap:5px; font-size:.85rem; }
  .catalog .applied .applied-filter { min-height:42px; }
  .brand-dialog,.filter-modal { max-height:88dvh; }
}
@media(max-width:480px) {
  .masthead nav { display:none; }
  .catalog-search input::placeholder { font-size:.935rem; }
  .result-sort > .ico:first-child { display:none; }
  .results-bar { gap:10px; }
  .result-sort select { max-width:125px; font-size:.89rem; min-height:44px; }
}
@media(max-width:359px) {
  .masthead .header-actions { gap:2px; }
  .results-bar { gap:8px; }
  .result-sort select { max-width:104px; }
}
@media(max-width:650px) and (min-height:560px) { html { scroll-padding-top:76px; } }
