/**
 * File: assets/css/frontend/catalog/product-card-cart.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Split from assets/css/frontend/catalog/product-card.css (1.0.191, 300-line standard): cascade order is preserved by the enqueue chain; this file holds lines 385-456 of the original file, verbatim.
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
/* RC.13 commercial card geometry and AJAX cart interaction. */
.hdf-product-card,
.hdf-product-card:hover,
.hdf-product-card:focus-within {
    border-radius: 0;
}

.hdf-product-card:hover,
.hdf-product-card:focus-within {
    border-color: var(--hdf-engine-color-admin-border);
}

.hdf-product-card__cart-button .hdf-engine-icon--header-cart {
    width: 19px;
    height: 18px;
    fill: currentColor;
}

.hdf-product-card__cart-button.is-loading {
    color: var(--hdf-engine-color-text-muted);
    cursor: wait;
    opacity: .68;
}

.hdf-product-card__cart-button.is-added {
    border-color: var(--hdf-engine-color-primary-strong);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-product-card__cart-button.is-added .hdf-engine-icon {
    animation: hdf-cart-icon-confirm .42s ease;
}

@keyframes hdf-cart-icon-confirm {
    0% { transform: scale(.82); }
    55% { transform: scale(1.16); }
    100% { transform: scale(1); }
}


/* RC.14 equal action geometry, persistent cart confirmation and compact sale-price stack. */
.hdf-product-card__cart-button,
.hdf-product-card__preview,
.hdf-product-card__cart-button:hover,
.hdf-product-card__preview:hover,
.hdf-product-card__cart-button:focus-visible,
.hdf-product-card__preview:focus-visible {
    border-radius: 0;
}

.hdf-product-card__cart-icon {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
}

.hdf-product-card__cart-icon--check { display: none; }

.hdf-product-card__cart-button.is-added {
    border-color: var(--hdf-engine-color-primary-strong);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-product-card__cart-button.is-added .hdf-product-card__cart-icon--cart { display: none; }
.hdf-product-card__cart-button.is-added .hdf-product-card__cart-icon--check { display: inline-grid; }

.hdf-product-card__cart-button.is-added .hdf-engine-icon--check {
    width: 18px;
    height: 18px;
    animation: hdf-cart-icon-confirm .42s ease;
}
