/* Alternate catalog layouts share the same records, links and filters. */
.catalog-sort-size,.catalog-page-toolbar{display:flex;align-items:center;gap:10px;max-width:100%;flex-shrink:0}
.catalog-page-toolbar{justify-content:flex-end;flex-wrap:wrap;gap:16px;margin:16px 0}
.catalog-page-toolbar .catalog-view-controls{margin:0}
.catalog-page-toolbar>#sort{box-sizing:border-box;flex:0 1 auto;width:218px;min-width:128px;max-width:100%;min-height:44px;margin:0;padding:9px 32px 9px 12px;padding-inline:12px 32px;border:1px solid #cfd9e5;border-radius:8px;background:#fff;color:#30445e;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3}
.catalog-page-toolbar>#sort:focus-visible{outline:2px solid #37699e;outline-offset:2px}
.catalog-price-currency:not([hidden]),.catalog-sort-feedback:not([hidden]){display:flex;align-items:center;gap:8px;color:#52617a;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3}
.catalog-price-currency select,.catalog-sort-feedback button{box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #cfd9e5;border-radius:8px;background:#fff;color:#30445e;font:inherit}
.catalog-price-currency select{min-width:75px}
.catalog-sort-feedback:not([hidden]){flex:1 0 100%;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:760px){.catalog-page-toolbar>.catalog-price-currency,.catalog-page-toolbar>.catalog-sort-feedback{grid-column:1/-1}.catalog-price-currency select{font-size:16px}}
@media(max-width:760px){.catalog-page-toolbar:has(>#sort){display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:stretch}.catalog-page-toolbar>#sort{grid-column:1/-1;width:100%;font-size:16px}.catalog-page-toolbar:has(>#sort)>.catalog-view-controls{justify-self:start}.catalog-page-toolbar:has(>#sort)>.catalog-page-size-label{justify-self:end}}
.resultsline>.catalog-page-toolbar,.catalog-format-row>.catalog-page-toolbar{margin:0;margin-inline-start:auto}
.set-catalog-toolbar>.catalog-page-toolbar{margin:0}
.catalog-page-size-label{display:flex;align-items:center;gap:8px;flex:none;color:#52617a;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;white-space:nowrap}
.catalog-page-size-label select{box-sizing:border-box;min-height:44px;min-width:72px;width:auto;max-width:100%;padding:9px 26px 9px 10px;border:1px solid #cfd9e5;border-radius:8px;background:#fff;color:#30445e;font:inherit}
#catalog-page-size{width:90px;min-width:90px;padding-inline:10px 24px}
.catalog-page-size-label select:focus-visible{outline:2px solid #37699e;outline-offset:2px}
@media(max-width:600px){.catalog-sort-size{width:100%;gap:8px}.catalog-toolbar .catalog-sort-size #sort{width:0;flex:1;min-width:0}.catalog-page-size-label{font-size:13px}.catalog-toolbar .catalog-page-size-label select{font-size:16px}.set-sort-controls label.catalog-page-size-label{flex:0 0 auto}.set-catalog-toolbar .set-sort-controls label:first-child{flex-basis:0;flex-grow:1}.catalog-page-toolbar{gap:10px}}
@media(max-width:600px){.catalog-page-size-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(max-width:480px){.catalog-page-toolbar{flex-wrap:nowrap;max-width:100%;gap:10px}.catalog-page-toolbar .catalog-view-controls button{min-width:44px}.catalog-page-toolbar .catalog-view-controls button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.catalog-page-toolbar .catalog-page-size-label select{font-size:16px}}
.resultsline:has(.catalog-view-controls){align-items:center;gap:12px;flex-wrap:wrap}
.catalog-view-controls{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #d7e1ef;border-radius:10px;background:#fff;margin-left:auto;flex-shrink:0}
.catalog-view-controls[hidden]{display:none!important}
.catalog-view-controls button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#536984;font:600 14px/1.2 'DM Sans',sans-serif;cursor:pointer}
.catalog-view-controls svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}
.catalog-view-controls button:hover{background:#f1f5fc;color:#18365f}
.catalog-view-controls button[aria-pressed=true]{background:#fff2bd;border-color:#e6c251;color:#172d54}
.catalog-view-controls button:focus-visible{outline:3px solid #2458a0;outline-offset:2px}

/* Existing private saved-list presentation is independent of public product cards. */
html[data-catalog-view=compact] .collection-grid{grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px;}
html[data-catalog-view=compact] .collection-photo{height: 155px; padding: 12px;}
html[data-catalog-view=compact] .collection-photo .product-photo-view{width: min(100%,calc(125px * var(--view-aspect)));}
html[data-catalog-view=compact] .collection-card-body{padding: 13px;}
html[data-catalog-view=compact] .collection-card h2{font-size: 17px;}
html[data-catalog-view=list] .collection-grid{grid-template-columns: minmax(0,1fr); gap: 12px;}
html[data-catalog-view=list] .collection-card{display: grid; grid-template-columns: 145px minmax(0,1fr);}
html[data-catalog-view=list] .collection-photo{height: 100%; min-height: 170px; padding: 18px; border-bottom: 0; border-right: 1px solid #edf1f6;}
html[data-catalog-view=list] .collection-photo>img{max-height: 150px;}
html[data-catalog-view=list] .collection-photo .product-photo-view{width: min(100%,calc(140px * var(--view-aspect)));}
html[data-catalog-view=list] .collection-card-body{padding: 18px;}
html[data-catalog-view=list] .collection-card .member-button{width: 130px; align-self: flex-end; margin-top: 4px;}
.collection-resultsbar{display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0;}
.collection-resultsbar #collectionResults{margin: 0;}
.member-main~footer{flex-wrap: wrap;}
@media (min-width:1600px){
html[data-catalog-view=compact] .collection-grid{grid-template-columns: repeat(6,minmax(0,1fr));}
}
@media (max-width:1199px){
html[data-catalog-view=compact] .collection-grid{grid-template-columns: repeat(4,minmax(0,1fr));}
}
@media (max-width:900px){
html[data-catalog-view=compact] .collection-grid{grid-template-columns: repeat(3,minmax(0,1fr));}
}
@media (max-width:640px){
.catalog-view-controls button{font-size: 13px; gap: 5px; padding: 9px 10px;}
html[data-catalog-view=compact] .collection-grid{grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;}
html[data-catalog-view=compact] .collection-photo{height: 135px;}
html[data-catalog-view=list] .collection-card{grid-template-columns: 88px minmax(0,1fr);}
html[data-catalog-view=list] .collection-photo{padding: 10px; min-height: 140px;}
html[data-catalog-view=list] .collection-card-body{padding: 12px;}
html[data-catalog-view=list] .collection-card .member-button{width: 100%; margin-top: 6px;}
}

/* One responsive public grid; view preferences change density, never membership. */
html:not([data-catalog-view=list]) body #catalog .grid:has(>.card[data-card-component]),html[data-catalog-view=list] body #catalog .grid:has(>.card[data-card-component]){display:grid!important;grid-template-columns:repeat(var(--catalog-card-columns,2),minmax(0,1fr))!important;gap:var(--catalog-card-gap,12px)!important;align-items:stretch}
html body #catalog .grid{--catalog-card-columns:2;--catalog-card-gap:12px}
html[data-catalog-view=compact] body #catalog .grid{--catalog-card-columns:3}
@media(min-width:640px){html body #catalog .grid{--catalog-card-columns:3;--catalog-card-gap:16px}html[data-catalog-view=compact] body #catalog .grid{--catalog-card-columns:4}}
@media(min-width:1024px){html body #catalog .grid{--catalog-card-columns:4;--catalog-card-gap:20px}html[data-catalog-view=compact] body #catalog .grid{--catalog-card-columns:6}}
@media(min-width:1440px){html body #catalog .grid{--catalog-card-columns:5}html[data-catalog-view=compact] body #catalog .grid{--catalog-card-columns:8}html:not([data-catalog-view=compact]):not([data-catalog-view=list]) body #catalog .grid[data-card-grid-roomy]{--catalog-card-columns:4}}
html[data-catalog-view=list] body #catalog .grid{--catalog-card-columns:1}
/* Compact cards keep all slot heights; small screens retain readable amounts and44px targets. */
html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-body{padding:8px}
@media(max-width:639px){
 html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-bottom :is(b,strong){font-size:16px}
 html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-actions>.member-card-save-actions{width:calc(100% + 8px);margin-inline:-4px}
 html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore{padding-inline:4px;gap:3px;font-size:12px}
 html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore img{width:32px;height:18px}
 html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore .external-arrow{display:none}
}
/* List is one compact row, with a single native retail slot and reachable actions. */
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;min-height:112px;height:auto}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.photo{grid-column:1;grid-row:1;width:96px;height:96px;min-height:0;aspect-ratio:1;padding:8px;border:0;border-radius:13px 0 0 13px}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-body{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 160px 132px;grid-template-rows:minmax(var(--card-actions-height),auto) var(--card-cta-height);align-content:center;align-items:center;gap:4px 12px;min-height:0;padding:12px}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] :is(.product-meta,.card-context){display:none!important}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .product-identity{grid-column:1;grid-row:1 / 3;min-height:48px}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-bottom{grid-column:2;grid-row:1 / 3;align-self:center;min-height:56px}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>:is(.member-card-save-actions,.member-collect-icon,.member-watch-icon){grid-column:3;grid-row:1;width:auto;justify-self:end}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore{grid-column:3;grid-row:2;align-self:center}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .photo .captioned-photo{height:80px;min-height:0}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .photo .captioned-photo-art{height:auto;min-height:0}
@media(max-width:639px){
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]{grid-template-columns:80px minmax(0,1fr)}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.photo{width:80px;height:96px}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-body{grid-template-columns:minmax(0,1fr) 96px;grid-template-rows:minmax(48px,auto) minmax(56px,auto);gap:4px 8px;padding:8px}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .product-identity{grid-column:1;grid-row:1}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-bottom{grid-column:1;grid-row:2}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-bottom :is(b,strong){font-size:16px}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>:is(.member-card-save-actions,.member-collect-icon,.member-watch-icon){grid-column:2;grid-row:1}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore{grid-column:2;grid-row:2;padding-inline:4px;font-size:12px}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore img{width:32px;height:18px}
 html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish] .card-actions>.ebay-explore .external-arrow{display:none}
}
/* Reviewed crop viewports retain their aspect ratio inside a real caption. */
html body :is(#catalog,[data-related-products]) .photo .captioned-photo-art{container-type:size}
html body :is(#catalog,[data-related-products]) .photo .captioned-photo-art .product-photo-view{width:min(100cqw,calc(100cqh * var(--view-aspect)));height:auto;aspect-ratio:var(--view-aspect);max-width:none;max-height:none}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.pack-artwork-picker,html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.pack-artwork-reference{position:relative;inset:auto;grid-column:1 / -1;top:auto;width:auto;margin:0 8px 8px}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.pack-artwork-picker{grid-row:2}
html:root[data-catalog-view=list] body #catalog .card[data-card-component][data-card-polish]>.pack-artwork-reference{grid-row:3}
@media(max-width:374px){html:root[data-catalog-view=compact] body #catalog .card[data-card-component][data-card-polish] .card-actions>.member-card-save-actions{inset-inline-start:2px}}

/* Dark controls share the active yellow treatment across browse and saved views. */
html[data-theme=dark] body :is(.catalog-page-size-label,.catalog-price-currency,.catalog-sort-feedback){color:var(--slate)}
html[data-theme=dark] body :is(.catalog-page-toolbar>#sort,.catalog-page-size-label select,.catalog-price-currency select,.catalog-sort-feedback button){background:var(--surface);border-color:var(--line);color:var(--navy)}
html[data-theme=dark] body :is(.catalog-page-toolbar>#sort,.catalog-page-size-label select,.catalog-price-currency select,.catalog-sort-feedback button):focus-visible{outline-color:var(--focus)}
html[data-theme=dark] :is(body,body[data-catalog-shell-page] [data-catalog-controls]) .catalog-view-controls{background:var(--surface);border-color:var(--line);box-shadow:inset 0 0 0 1px var(--line)}
html[data-theme=dark] :is(body,body[data-catalog-shell-page] [data-catalog-controls]) .catalog-view-controls button{background:var(--surface);color:var(--slate)}
html[data-theme=dark] :is(body,body[data-catalog-shell-page] [data-catalog-controls]) .catalog-view-controls button:is(:hover,:active){background:var(--surface-raised,var(--surface));color:var(--navy)}
html[data-theme=dark] :is(body,body[data-catalog-shell-page] [data-catalog-controls]) .catalog-view-controls button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow);color:var(--on-yellow,#17243b)}
html[data-theme=dark] :is(body,body[data-catalog-shell-page] [data-catalog-controls]) .catalog-view-controls button:focus-visible{outline-color:var(--focus)}
html[data-theme=dark][data-catalog-view=list] .collection-photo{border-color:var(--line)}
