/* V27: layout only; leaves hero, homepage ads, navigation, colors and V18 grid choices intact. */
#catalogViewer .cvx-head-title {min-width:0;flex:1 1 auto}
#catalogViewer .cvx-name {overflow-wrap:anywhere;line-height:1.25}
#catalogViewer .cvx-back,#catalogViewer .cvx-icon-btn {flex-shrink:0;min-width:44px;min-height:44px}
#catalogViewer .cvx-search input {min-width:0;width:100%;font-size:16px}
#catalogViewer .cvx-search,#catalogViewer .cvx-fbtn {min-height:44px}
#catalogViewer .cvx-filter-bar {flex-wrap:wrap;gap:8px}
#catalogViewer .cvx-result-count {min-width:0;overflow-wrap:anywhere}
#catalogViewer .cvx-subcats {max-width:100%;overscroll-behavior-inline:contain}
#catalogViewer .cvx-pill {flex-shrink:0;min-height:40px}
#catalogViewerGrid > .card {min-width:0;max-width:100%;border-radius:14px}
#catalogViewerGrid .card-body,#catalogViewerGrid .card-bottom,#catalogViewerGrid .card-action {min-width:0}
#catalogViewerGrid .card-name,#catalogViewerGrid .card-price,#catalogViewerGrid .card-desc {overflow-wrap:anywhere}
#catalogViewerGrid .card-bottom {flex-wrap:wrap;gap:8px}
#catalogViewerGrid .add-btn {min-height:40px;max-width:100%;white-space:normal}
/* Listing pages: preserve per-engine photo shapes, card direction and visibility. */
#grid.grid > .card {min-width:0;max-width:100%;box-sizing:border-box}
#grid.grid > .card .card-body {min-width:0;overflow-wrap:anywhere}
#grid.grid > .card .card-title,#grid.grid > .card .card-meta {overflow-wrap:anywhere}
#grid.grid > .card:focus-visible,#catalogViewer button:focus-visible,#catalogViewer a:focus-visible {outline:2px solid currentColor;outline-offset:-3px}
@media (max-width:600px){
 #catalogViewer .cvx-head {gap:8px}
 #catalogViewer .cvx-body {padding-inline:12px}
 #grid.grid > .card .card-body {padding:10px!important}
 #grid.grid > .card .card-body::after {min-height:44px}
}
@media (max-width:359px){
 #catalogViewer .cvx-body {padding-inline:8px}
 #catalogViewerGrid:not([data-eb-display18]) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 #grid.grid {grid-template-columns:minmax(0,1fr)!important}
}
