/* Scoped to catalog previews: product detail pages keep their full layout. */
#cards .real-product{min-width:0;padding:16px;gap:0}
#cards .real-product .real-product-top{min-height:16px;line-height:1.4}
#cards .real-product .real-image-button{height:145px;margin:8px 0;width:100%;min-width:0}
#cards .real-product .real-image-button img{width:100%;max-width:100%;height:137px;object-fit:contain}
#cards .real-product h3{min-height:0;margin:9px 0;line-height:1.45}
#cards .real-product .real-title-button{line-height:1.45;font-size:14px!important;overflow-wrap:anywhere}
#cards .real-product .real-sku{min-height:0;margin:0 0 6px;flex:none}
#cards .real-product .availability-note{flex:none;margin:0 0 10px;font-size:10px;line-height:1.5}
#cards .real-product>.row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;width:100%;min-width:0;margin-top:auto;padding-top:12px;align-items:center}
#cards .real-product>.row .price{grid-column:1/-1;min-width:0;white-space:normal;font-size:19px!important;line-height:1.4;margin-bottom:2px}
#cards .real-product>.row .real-details{display:flex!important;align-items:center;justify-content:center;min-width:0;width:100%;max-width:100%;min-height:40px;margin:0!important;padding:8px 9px!important;font-size:12px;line-height:1.4;white-space:normal;text-align:center;border-radius:7px;box-sizing:border-box}
#cards .real-product>.row a.real-details{background:#eef5fc;color:#246394;border:1px solid #d7e5f0}
#cards .real-product>.row button.real-details{background:#0875e8!important;color:white!important;border:1px solid #0875e8}
html[data-theme=dark] #cards .real-product>.row a.real-details{background:#203d55;color:#baddff;border-color:#365770}
@media(max-width:600px){
#cards .real-product{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;row-gap:6px;padding:14px;align-content:start}
#cards .real-product .real-image-button{grid-column:1;grid-row:1/4;height:104px;margin:0;align-self:start;border-radius:8px}
#cards .real-product .real-image-button img{height:98px;padding:3px}
#cards .real-product .real-product-top{grid-column:2;grid-row:1;min-height:0}
#cards .real-product .product-brand{font-size:9px;overflow-wrap:anywhere}
#cards .real-product h3{grid-column:2;grid-row:2;margin:0;min-height:0}
#cards .real-product .real-title-button{font-size:13px!important;line-height:1.45}
#cards .real-product .real-sku{display:none}
#cards .real-product .availability-note{grid-column:2;grid-row:3;margin:0;font-size:10px}
#cards .real-product>.row{grid-column:1/-1;margin-top:4px;padding-top:10px;gap:8px!important}
#cards .real-product>.row .real-details{min-height:42px}
}
@media(max-width:350px){#cards .real-product{grid-template-columns:86px minmax(0,1fr);gap:8px;padding:12px}#cards .real-product .real-image-button{height:88px}#cards .real-product .real-image-button img{height:82px}}
