/* Add after imagine.css. Shared controls follow the existing light and gaming themes. */
.catalog-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end;padding:18px;margin:0 0 26px;border:1px solid #cbd9ec;border-radius:12px;background:#f7fbff}
.catalog-filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#25466d;min-width:0}
.catalog-filters input:not([type=checkbox]),.catalog-filters select{width:100%;min-width:0;height:44px;padding:8px 10px;background:#fff;border:1px solid #9bb8d8;border-radius:6px;color:#173c68;font:inherit}
.catalog-filters input:focus-visible,.catalog-filters select:focus-visible,.catalog-filters a:focus-visible,.catalog-filters button:focus-visible{outline:3px solid #0a66d4;outline-offset:2px}
.catalog-filters .catalog-stock{flex-direction:row;align-items:center;min-height:44px;gap:9px}
.catalog-filters .catalog-stock input{width:19px;height:19px;flex:none}
.catalog-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.catalog-actions .btn{white-space:nowrap}
.catalog-actions a{color:#0a4db0;text-decoration:underline;font-weight:700}
.catalog-pagination{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin-top:32px}
.catalog-pagination a{min-width:44px;min-height:44px;padding:9px;display:grid;place-items:center;border:1px solid #adc2dd;border-radius:5px;color:#1f4c82}
.catalog-pagination a.active,.catalog-pagination a:hover{background:#0a66d4;border-color:#0a66d4;color:#fff}
.product-image-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#546f8f;text-align:center}
.product-image-placeholder .icon{width:45px;height:45px}
.product-image-placeholder small{font-size:12px;font-weight:600}
.gaming-page .catalog-filters{background:#101b2b;border-color:#354b66}
.gaming-page .catalog-filters label{color:#d6e6fb}
.gaming-page .catalog-filters input:not([type=checkbox]),.gaming-page .catalog-filters select{background:#172537;border-color:#67819f;color:#fff}
.gaming-page .catalog-filters input:focus-visible,.gaming-page .catalog-filters select:focus-visible{outline-color:#9bc0ff}
.gaming-page .catalog-actions a{color:#b9d3ff}
.gaming-page .catalog-pagination a{border-color:#4c6481;color:#d6e6fb}
.gaming-page .catalog-pagination a.active,.gaming-page .catalog-pagination a:hover{background:#4b83ff;color:#081323}
.gaming-page .product-image-placeholder{color:#b9c9dd}
/* A filtered catalog may contain one item. Give its card usable width at every breakpoint. */
.shop-page .product-grid>.product-card:only-child,.gaming-page .product-grid>.product-card:only-child{grid-column:1/-1;width:min(100%,390px);justify-self:center}
@media(max-width:1050px){.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.catalog-filters label:first-child,.catalog-actions{grid-column:1/-1}.catalog-actions .btn{min-height:44px}}
@media(max-width:360px){.catalog-filters{grid-template-columns:1fr}.catalog-filters label:first-child,.catalog-actions{grid-column:auto}}

/* Technical facets appear only when the selected category has matching products. */
.catalog-specs{grid-column:1/-1;margin:0;padding:12px;border:1px solid #cbd9ec;border-radius:8px;min-width:0}
.catalog-specs legend{padding:0 6px;color:#25466d;font-size:13px;font-weight:700}
.catalog-specs>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gaming-page .catalog-specs{border-color:#4c6481}
.gaming-page .catalog-specs legend{color:#d6e6fb}
@media(max-width:600px){.catalog-specs>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:360px){.catalog-specs>div{grid-template-columns:1fr}}
