/* Catalog only. No hide rule matches features used on a catalog deep link. */
#afs-products-choice { display: none; }
html.afs-products-entry #afs-products-choice {
  display: block; max-width: 1160px; margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
}
html.afs-products-entry #main > :is(#designer-welcome,.catalog-topbar,#catalog,#project-shortlist) { display: none !important; }
#afs-products-choice h1 { margin: 0 0 .8rem; font-size: clamp(2.2rem, 5vw, 4.2rem); }
#afs-products-choice .afs-entry-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.8rem;
}
#afs-products-choice .afs-entry-option {
  background: #f7f7f4; color: inherit; border: 1px solid #d9dad2; border-radius: 6px; display: block;
  min-width: 0; padding: clamp(1rem, 3vw, 2rem); text-decoration: none;
}
#afs-products-choice .afs-entry-option:is(:hover,:focus-visible) { border-color: #586348; text-decoration: underline; }
#afs-products-choice .afs-entry-option:focus-visible { outline: 2px solid #333f2d; outline-offset: 3px; }
#afs-products-choice .afs-entry-option strong { display: block; font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-bottom: .5rem; }
#afs-products-choice .afs-entry-option span { display: block; font-size: 1rem; line-height: 1.4; }
#afs-products-choice .afs-entry-shortlist { margin-top: 1rem; }
#afs-products-choice .afs-entry-shortlist a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
body:has(#room-catalog-return:not([hidden])) #catalog-back { display: none !important; }
#catalog .catalog-controls .catalog-inline-next { display: none !important; }
#catalog .catalog-controls { min-width: 0; }
#catalog .catalog-controls > label, #catalog .catalog-controls :is(input,select) { min-width: 0; max-width: 100%; }
#catalog .catalog-toolbar :is(button,select) { min-height: 40px; }
@media (max-width: 580px) {
  #afs-products-choice .afs-entry-grid { grid-template-columns: 1fr; gap: .75rem; }
  #catalog.afs-simple-catalog .catalog-controls:not([hidden]) { column-gap: 8px; }
  #catalog :is(.catalog-category-tabs,#browse-by-space,.catalog-toolbar) { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  #catalog .catalog-toolbar #catalog-clear { white-space: normal; }
}
