/* Shared ordinary product previews (listing, home and related selections).
   Release17 uses212px photos and natural text
   heights; matched AG363 needs80px for its title and90px for five parameters.
   Keep those capacities, a44px action, and a finite equal row height. */
:root { --preview-height:488px; --preview-image-height:212px; --preview-image-center:106px; --preview-param-capacity:90px; --preview-price-min:24px; }
.mobile-portal { --preview-height:448px; --preview-image-height:150px; --preview-image-center:75px; --preview-param-capacity:100px; --preview-price-min:24px; }
.product-card-related { height:var(--preview-height) !important; min-height:var(--preview-height) !important; max-height:var(--preview-height); box-sizing:border-box; min-width:0; overflow:hidden; }
.product-card-related > a:first-child,
.product-card-related > .product-card-image { position:relative; display:block; flex:0 0 var(--preview-image-height) !important; height:var(--preview-image-height) !important; min-height:var(--preview-image-height); margin-bottom:4px !important; overflow:hidden; }
.product-card-related > a:first-child img,
.product-card-related > .product-card-image img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; max-height:none !important; object-fit:contain !important; margin:0 !important; }
.product-card-related .product-info { display:flex !important; flex-direction:column !important; justify-content:flex-start !important; flex:1 1 0 !important; min-width:0; min-height:0; gap:0; margin:0 !important; padding:0 !important; overflow:hidden; }
.product-card-related .product-name { order:0 !important; flex:none; display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:4; height:auto !important; min-height:0; max-height:80px; overflow:hidden; text-overflow:ellipsis; margin:0 0 4px !important; font:400 14px/20px 'Onest',Arial,sans-serif !important; }
.product-card-related .product-info .product-param-group-small { order:1 !important; flex:0 1 auto !important; height:auto !important; min-height:0; max-height:var(--preview-param-capacity); width:100%; box-sizing:border-box; overflow:hidden; }
.product-card-related .product-param-group-small .product-param-small { display:block !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; margin:0 0 4px !important; font:400 10px/14px 'Onest',Arial,sans-serif !important; }
.mobile-portal .product-card-related .product-param-group-small .product-param-small { line-height:16px !important; }
.product-card-related .product-price { order:2 !important; flex:none; height:auto !important; min-height:var(--preview-price-min); font:600 20px/24px 'Onest',Arial,sans-serif !important; margin-top:auto !important; margin-bottom:8px !important; white-space:normal; }
.product-card-related .add-to-cart-btn { order:3 !important; flex:none; height:44px; min-height:44px; width:100%; box-sizing:border-box; padding:10px 12px; display:flex; align-items:center; justify-content:center; font:500 14px/20px 'Onest',Arial,sans-serif; margin-top:0 !important; }
.home .product-scroller__arrow { top:calc(var(--preview-image-center) - 9px); }

.product-card-related .product-param-small:last-child { margin-bottom:0 !important; }

.mobile-portal .product-card-related .product-price { font-size:18px !important; }
