/* Alfa Food B2B V4.7.3 - Premium Catalogue Card A
   Intended AFTER v4.6.7, v4.6.8 and v4.7.2; product detail left unchanged.
   Visual-only, except stock badge markup in V4.7.3 card.blade.php.
*/
:root{--af473-ink:#123e2c;--af473-accent:#195841;--af473-line:#dce9df;--af473-subtle:#f5f9f5;}
/* Matching cards on HOME and CATALOG only. */
body #af-home-v459 .af-lp-products > article.af-product-card,
body .af-catalog-page .af-products-grid > article.af-product-card{
    background:#fff !important;
    border:1px solid var(--af473-line) !important;
    border-radius:20px !important;
    overflow:hidden !important;
    box-shadow:0 8px 22px rgba(16,59,39,.045) !important;
    transition:box-shadow .16s ease,transform .16s ease;
}
@media (hover:hover) and (pointer:fine){
body #af-home-v459 .af-lp-products > article.af-product-card:hover,
body .af-catalog-page .af-products-grid > article.af-product-card:hover{
    box-shadow:0 11px 28px rgba(16,59,39,.095) !important;
    transform:translateY(-2px);
}}
/* The key fix: ONE connected white media surface. No lower rounded cut-outs. */
body #af-home-v459 .af-lp-products .af-product-media-link,
body .af-catalog-page .af-products-grid .af-product-media-link{
    display:block !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
    background:#fff !important;
    border-radius:20px 20px 0 0 !important;
    overflow:hidden !important;
}
body #af-home-v459 .af-lp-products .af-product-media,
body .af-catalog-page .af-products-grid .af-product-media{
    width:100% !important;
    height:187px !important;
    min-height:0 !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:14px 17px 6px !important;
    border:0 !important;
    border-radius:20px 20px 0 0 !important;
    background:#fff !important;
    box-shadow:none !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
body #af-home-v459 .af-lp-products .af-product-media > img,
body .af-catalog-page .af-products-grid .af-product-media > img{
    max-width:100% !important;
    max-height:100% !important;
    width:100% !important;
    height:100% !important;
    padding:0 !important;
    margin:auto !important;
    object-fit:contain !important;
    object-position:center !important;
    background:#fff !important;
}
body #af-home-v459 .af-lp-products .af-product-media .af-product-placeholder,
body .af-catalog-page .af-products-grid .af-product-media .af-product-placeholder{
    border-radius:12px !important;
    background:#f6faf7;
}
/* Compact merchandising block, with SKU/category right beneath the photo. */
body #af-home-v459 .af-lp-products .af-product-content,
body .af-catalog-page .af-products-grid .af-product-content{
    background:#fff !important;
    padding:0 13px 13px !important;
    display:flex !important;
    flex-direction:column !important;
    min-width:0 !important;
}
body #af-home-v459 .af-lp-products .af-product-topline,
body .af-catalog-page .af-products-grid .af-product-topline{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:7px !important;
    min-height:24px;
    padding:5px 0 3px;
    margin:0 !important;
    border-top:1px solid #e3eee5;
}
body #af-home-v459 .af-lp-products .af-product-topline .sku,
body .af-catalog-page .af-products-grid .af-product-topline .sku{
    color:#086140 !important;
    font-weight:900 !important;
    font-size:11px !important;
    flex:0 0 auto;
    overflow-wrap:anywhere;
}
body #af-home-v459 .af-lp-products .af-product-category,
body .af-catalog-page .af-products-grid .af-product-category{
    display:block !important;
    text-align:right !important;
    color:#6d8176 !important;
    font-size:10px !important;
    font-weight:500 !important;
    max-width:56% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
body #af-home-v459 .af-lp-products .product-title,
body .af-catalog-page .af-products-grid .product-title{
    font-weight:850 !important;
    letter-spacing:-.01em;
    line-height:1.33 !important;
    min-height:2.66em !important;
    margin:7px 0 6px !important;
}
body #af-home-v459 .af-lp-products .product-title a,
body .af-catalog-page .af-products-grid .product-title a{
    color:#122a22 !important;
    text-decoration:none !important;
}
/* Stock and brand share one row without disturbing quantity or price logic. */
body #af-home-v459 .af-lp-products .af473-meta-row,
body .af-catalog-page .af-products-grid .af473-meta-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:7px;
    min-height:24px;
    margin:0 0 3px;
    min-width:0;
}
body #af-home-v459 .af-lp-products .af473-meta-row .af-brand,
body .af-catalog-page .af-products-grid .af473-meta-row .af-brand{
    margin:0 !important;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px !important;
    color:#417861 !important;
    font-weight:850 !important;
}
.af473-stock-pill{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    font-size:10px;
    font-weight:800;
    padding:4px 8px;
    line-height:1.2;
    border-radius:999px;
    color:#1d6347;
    background:#e6f4e9;
    margin-left:auto;
}
body #af-home-v459 .af-lp-products .af-product-unit,
body .af-catalog-page .af-products-grid .af-product-unit{
    min-height:22px;
    margin-bottom:8px !important;
}
body #af-home-v459 .af-lp-products .af-product-buy,
body .af-catalog-page .af-products-grid .af-product-buy{margin-top:auto !important;}
body #af-home-v459 .af-lp-products .af-product-buy .price,
body .af-catalog-page .af-products-grid .af-product-buy .price{
    font-weight:900 !important;
    letter-spacing:-.02em;
    color:#0c5034 !important;
}
/* Preserve campaign overlay, in-cart status, B2B list select/button, quantity controls. */
@media (max-width:730px){
body #af-home-v459 .af-lp-products .af-product-media,
body .af-catalog-page .af-products-grid .af-product-media{
    height:148px !important;
    padding:9px 10px 4px !important;
    border-radius:14px 14px 0 0 !important;
}
body #af-home-v459 .af-lp-products .af-product-media-link,
body .af-catalog-page .af-products-grid .af-product-media-link{
    border-radius:14px 14px 0 0 !important;
}
body #af-home-v459 .af-lp-products .af-product-content,
body .af-catalog-page .af-products-grid .af-product-content{
    padding:0 9px 11px !important;
}
body #af-home-v459 .af-lp-products .af-product-topline,
body .af-catalog-page .af-products-grid .af-product-topline{gap:4px !important;}
body #af-home-v459 .af-lp-products .af-product-topline .sku,
body .af-catalog-page .af-products-grid .af-product-topline .sku{font-size:9px !important;}
body #af-home-v459 .af-lp-products .af-product-category,
body .af-catalog-page .af-products-grid .af-product-category{font-size:9px !important;max-width:50% !important;}
body #af-home-v459 .af-lp-products .af473-meta-row,
body .af-catalog-page .af-products-grid .af473-meta-row{min-height:23px;}
.af473-stock-pill{padding:4px 6px;font-size:9px;}
}
@media (max-width:350px){
body #af-home-v459 .af-lp-products .af-product-media,
body .af-catalog-page .af-products-grid .af-product-media{height:200px !important;padding:14px 16px 5px !important;}
}
@media (prefers-reduced-motion:reduce){
body #af-home-v459 .af-lp-products > article.af-product-card,
body .af-catalog-page .af-products-grid > article.af-product-card{transition:none !important;transform:none !important;}
}
