.m4-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;align-items:stretch}
.m4-product{display:flex;flex-direction:column;min-width:0;background:white;border:1px solid #dfe6ed;border-radius:14px;overflow:hidden;height:auto;max-height:none}
.m4-product-image{position:relative;height:210px;min-height:210px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;padding:16px}
.m4-product-image img{display:block;position:static;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;float:none}
.m4-product-image>.badge{position:absolute;right:10px;top:10px}
.m4-product-body{padding:18px;display:flex;flex-direction:column;flex:1;min-width:0;background:#fff;z-index:1}
.m4-product-body h3{overflow-wrap:anywhere;margin:8px 0}.m4-product-body small{display:block;color:#637488}
.m4-product-bottom{margin-top:auto;display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;padding-top:12px}
.m4-product-bottom>a{display:inline-flex;padding:8px 12px;background:#edf2f7;border-radius:7px;font-weight:650}
.m4-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin:20px 0;align-items:start}
.m4-photo{border:1px solid #dfe6ed;padding:12px;border-radius:12px;min-width:0;background:#fff}
.m4-photo>a{display:flex;height:170px;align-items:center;justify-content:center;overflow:hidden}.m4-photo img{display:block;position:static;width:100%;height:100%;object-fit:contain;float:none;max-width:100%;max-height:100%}
.m4-photo strong{display:block;margin:10px 0}.m4-photo-actions{display:flex;flex-wrap:wrap;gap:6px}.m4-photo-actions button{padding:6px 9px;font-size:11px}
.m4-description{white-space:pre-wrap;overflow-wrap:anywhere}.m4-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}.m4-row-photo{width:70px;height:70px;object-fit:contain;display:block}
.m4-dialog{border:0;border-radius:14px;max-width:95vw;max-height:95vh;padding:20px}.m4-dialog::backdrop{background:#102236bb}.m4-dialog img{display:block;width:auto;height:auto;max-width:85vw;max-height:75vh;object-fit:contain}.m4-dialog button{margin:0 0 10px auto;display:block}
.m4-offer{border-top:1px solid #dfe6ed;padding:14px 0}.m4-offer:first-of-type{border-top:0}table small{display:block}form.m4-bulk{margin:18px 0;padding:18px;background:#edf2f7;border-radius:12px}
@media(max-width:520px){.m4-products{grid-template-columns:1fr}.m4-product-image{height:190px;min-height:190px}.m4-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.m4-photo>a{height:130px}.m4-toolbar .button,.m4-toolbar button{white-space:normal}.m4-product-bottom>a{min-height:40px}}
