/* ALFA FOOD B2B V4.8.1 | Premium, shopping-first product card actions
 * Scoped to catalogue and home product grids. Load after V4.7.9 CSS.
 * Does not alter prices, quantities, order routes, AJAX cart, stock, admin or VAT.
 */
:root { --af481-emerald:#174f3b; --af481-focus:#d9a644; }
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-save-form {
    width:100%;max-width:100%;min-width:0;margin:7px 0 0 !important;
    box-sizing:border-box;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker {
    display:block;position:relative;width:100%;min-width:0;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-action {
    box-sizing:border-box !important;width:100% !important;max-width:100% !important;
    min-width:0 !important;min-height:43px !important;
    display:flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;
    margin:0 !important;padding:9px 6px !important;
    border:1px solid transparent !important;border-radius:11px !important;
    background:transparent !important;color:#27674c !important;
    font-family:inherit !important;font-size:13px !important;font-weight:700 !important;line-height:1.25 !important;text-align:center;white-space:normal !important;
    list-style:none;cursor:pointer;transition:background .15s ease,color .15s ease;
    -webkit-tap-highlight-color:transparent;overflow-wrap:break-word;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-action::-webkit-details-marker{display:none}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-action:hover,
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker[open]>.af481-list-action {
    background:#eef7f1 !important;color:#174f3b !important;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-heart {font:normal 23px/1 Arial,sans-serif;flex:0 0 auto;color:#32785a}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-chevron {
    width:7px;height:7px;flex:0 0 7px;margin-left:2px;
    border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
    transform:rotate(45deg) translateY(-2px);transition:transform .15s;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker[open] .af481-list-chevron{transform:rotate(225deg) translateY(-1px)}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker-content {
    display:grid;grid-template-columns:minmax(0,1fr);gap:7px;
    padding:11px 8px;background:#f6faf7;border:1px solid #d7e6dc;border-radius:12px;
    margin-top:6px;box-shadow:0 6px 14px rgba(22,79,59,.06);
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker-content label {
    font-size:11px;font-weight:700;color:#365e4e;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-picker-content select {
    box-sizing:border-box !important;min-width:0 !important;width:100% !important;max-width:100% !important;
    min-height:42px;border:1px solid #bed5c7;border-radius:9px;background:white;
    color:#1b3e2f;padding:7px 5px;font-size:16px !important;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-save-confirm {
    box-sizing:border-box;width:100%;min-height:42px;min-width:0;
    border:0;border-radius:9px;padding:8px 6px;
    background:#e6f1e9;color:#14543f;font-weight:800;font-size:12px;cursor:pointer;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card :is(.af481-list-action,.af481-save-confirm):focus-visible {
    outline:3px solid var(--af481-focus);outline-offset:2px;
}
/* Strong primary CTA below quantity. Explicitly defeats legacy compact/square-cart styles. */
@media (max-width:767px) {
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af-product-buy,
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af-add-form {
        box-sizing:border-box !important;width:100% !important;max-width:100% !important;min-width:0 !important;
    }
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form {
        display:grid !important;grid-template-columns:minmax(0,1fr) !important;
        gap:9px !important;align-items:stretch !important;justify-items:stretch !important;
    }
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > .af-qty-stepper {
        box-sizing:border-box !important;width:100% !important;max-width:100% !important;min-width:0 !important;
        grid-column:1 / -1 !important;
    }
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit {
        box-sizing:border-box !important;grid-column:1 / -1 !important;
        display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:center !important;
        gap:5px !important;float:none !important;position:static !important;
        width:100% !important;min-width:0 !important;max-width:100% !important;
        height:auto !important;min-height:48px !important;max-height:none !important;
        margin:0 !important;padding:10px 5px !important;
        border:1px solid #164732 !important;border-radius:12px !important;
        background:#18563f !important;color:#fff !important;
        font-weight:850 !important;font-size:clamp(12px,2.8vw,14px) !important;
        line-height:1.2 !important;letter-spacing:0 !important;
        text-transform:none !important;white-space:normal !important;overflow:visible !important;
        box-shadow:0 3px 8px rgba(12,66,43,.13) !important;
        appearance:none !important;-webkit-appearance:none !important;
    }
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit span {display:inline !important;visibility:visible !important;line-height:inherit!important;white-space:normal !important;}
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit span:first-child {font-size:21px !important;font-weight:700;line-height:1 !important;}
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-action {font-size:12px !important;min-height:42px !important;}
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-heart {font-size:21px;}
}
@media (max-width:350px) {
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit {font-size:13px!important;}
}
@media (prefers-reduced-motion:reduce) {
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-action,
    body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card .af481-list-chevron{transition:none}
}

/* Alfa Food B2B V4.8.2 – cart CTA cleanup, NO Blade or cart changes.
   Older global rules added a basket and/or extra + to .af-cart-submit.
   Hide the explicit + in the v4.8.1 card and replace ALL old icon styling
   with one stable line-icon via ::before. */
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit {
    background-image:none !important;
    background-color:#18563f !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    text-align:center !important;
    font-weight:800 !important;
    min-height:48px !important;
    white-space:normal !important;
    text-indent:0 !important;
    padding:10px 8px !important;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit > span:first-child {
    display:none !important; /* Old literal + */
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit::before {
    content:"" !important;
    display:block !important;
    position:static !important;
    flex:0 0 18px !important;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Cpath%20d%3D%22M1%201h4l2.2%2011.3a2%202%200%200%200%202%201.7h9.8a2%202%200%200%200%202-1.6L23%206H6%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat !important;
    transform:none !important;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit::after {
    content:none !important;
    display:none !important;
}
body :is(#af-home-v459 .af-lp-products, .af-catalog-page .af-products-grid) article.af-product-card form.inline-cart.af-add-form > button.af-cart-submit.af481-cart-submit > span:last-child {
    display:inline !important;
    visibility:visible !important;
    font-size:inherit !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
}
