/* Keep tall product images inside their own box, never over the title. */
.inventory-card{min-width:0;overflow:hidden}
.inventory-photo{position:relative;display:block;height:220px;min-height:220px;flex:0 0 220px;overflow:hidden;padding:0}
.inventory-photo img{position:absolute;inset:18px;width:calc(100% - 36px);height:calc(100% - 36px);max-width:calc(100% - 36px);max-height:calc(100% - 36px);object-fit:contain;display:block}
.inventory-photo img[hidden]{display:none}
.photo-fallback:not([hidden]){position:absolute;inset:18px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.condition-tag{z-index:1}
.inventory-body{padding:20px;gap:0;position:relative;background:#fff}
.inventory-body h3{min-height:0;margin:0 0 12px;overflow-wrap:anywhere}
.product-kicker{margin-bottom:8px}
.image-type{margin:0 0 12px}
.stock-state{padding-top:0;margin-top:auto}
.product-price{margin:12px 0 16px}
.product-enquire{min-height:46px;align-items:center}
@media(max-width:700px){
 .inventory-photo{height:170px;min-height:170px;flex-basis:170px}
 .inventory-photo img{inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);max-width:calc(100% - 28px);max-height:calc(100% - 28px)}
 .inventory-body{padding:14px}
 .inventory-body h3{min-height:0;font-size:15px;line-height:1.45}
 .product-enquire{white-space:normal;overflow-wrap:normal}
 .floating-actions{flex-direction:row;right:12px;left:12px;bottom:calc(10px + env(safe-area-inset-bottom));justify-content:center;gap:6px}
 .floating-actions a{padding:12px 10px;min-height:46px;flex:1;justify-content:center;font-size:12px}
 .floating-actions .float-label{min-width:0}
 body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
}
@media(max-width:370px){.inventory-photo{height:210px;min-height:210px;flex-basis:210px}}
