/* Equal image, title, rating, stock, price and action rows on every product card. */
body.store-enterprise .product-card { display:flex; flex-direction:column; align-self:stretch; height:100%; min-width:0; }
body.store-enterprise .product-card .product-image { flex-shrink:0; }
body.store-enterprise .product-card .product-info {
    display:grid; flex:1; min-width:0; padding:18px;
    grid-template-rows:24px 94px 34px 24px minmax(88px,1fr) 46px;
}
body.store-enterprise .product-card .product-info > small { display:block; min-width:0; height:24px; line-height:1.4; overflow:hidden; }
body.store-enterprise .product-card .product-info > .product-title-link { height:94px; min-height:0; margin:0; padding:0; overflow:hidden; }
body.store-enterprise .product-card .product-rating-line { height:34px; min-height:0; margin:0; align-items:center; }
body.store-enterprise .product-card .product-rating-line small { min-width:0; white-space:normal; overflow-wrap:anywhere; }
body.store-enterprise .product-card .stock { margin:0; min-height:0; align-self:center; line-height:1.4; }
body.store-enterprise .product-card .price { margin:0; padding:0 0 12px; min-height:0; justify-content:flex-end; gap:0; }
body.store-enterprise .product-card .price b { line-height:1.4; }
body.store-enterprise .product-card .price del,
body.store-enterprise .product-card .price .variant-price-prefix { line-height:1.4; margin:0; }
body.store-enterprise .product-card .add-cart { width:100%; height:46px; margin:0; align-self:end; }
body.store-enterprise .product-card .condition-badge,
body.store-enterprise .product-gallery-stage .condition-badge {
    position:absolute; top:12px; left:12px; z-index:3; display:inline-flex; align-items:center; justify-content:center;
    min-height:26px; padding:5px 10px; border:1px solid #c1e2df; border-radius:7px;
    background:#e6f4f2; color:#075e5a; font-size:12px; font-weight:700; line-height:1.2;
}
body.store-enterprise .product-card.is-second-hand .discount { top:46px; }
body.store-enterprise .product-gallery-stage { position:relative; }
@media(max-width:767px) {
    /* Compact shared rows keep short and long names, offers and variants aligned. */
    body.store-enterprise .product-card .product-image { aspect-ratio:1.12; }
    body.store-enterprise .product-card .product-info { padding:9px; grid-template-rows:18px 64px 30px 20px minmax(72px,1fr) 44px; }
    body.store-enterprise .product-card .product-info > .product-title-link { height:64px; min-height:0; padding-top:0; }
    body.store-enterprise .product-card .product-info > small { height:18px; white-space:nowrap; text-overflow:ellipsis; }
    body.store-enterprise .product-card .product-rating-line { height:30px; }
    body.store-enterprise .product-card .price { padding-bottom:8px; }
    body.store-enterprise .product-card .add-cart { height:44px; }
    body.store-enterprise .product-card .condition-badge { top:6px; left:6px; min-height:22px; padding:4px 7px; font-size:10px; }
    body.store-enterprise .product-card.is-second-hand .discount { top:34px; }
}
@media(max-width:359px) {
    /* Three review-text lines still fit on the narrowest two-column screens. */
    body.store-enterprise .product-card .product-info { grid-template-rows:18px 64px 38px 20px minmax(72px,1fr) 44px; }
    body.store-enterprise .product-card .product-rating-line { height:38px; }
}
