/**
 * @file Cart lines with a food icon, + / − and a bin (includes/cart_line.php).
 */
.cart-rich { align-items: center; gap: 12px; padding: 12px 0; }
.cart-food { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 50%; background: #fdebd9; color: #c2582c; }
.cart-food .icon { width: 26px; height: 26px; }
.cart-main { flex: 1 1 auto; min-width: 0; }
.cart-main .shop-cart-item-name { overflow-wrap: anywhere; }
.cart-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 5px; background: var(--djk-cream-soft, #f3ead9); }
.cart-qty-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0;
    border-radius: 5px; background: #fff; color: var(--djk-terracotta-dark, #c2582c); cursor: pointer;
    transition: transform .12s ease, background .12s ease; }
.cart-qty-btn .icon { width: 18px; height: 18px; }
.cart-qty-btn:hover:not(:disabled) { background: #fdebd9; }
.cart-qty-btn:active:not(:disabled) { transform: scale(.9); }
.cart-qty-btn:disabled { opacity: .4; cursor: default; }
.cart-qty-num { min-width: 28px; text-align: center; font-weight: 800; font-size: 1rem; color: var(--djk-ink, #2e281f); }
.shop-cart-item-remove.cart-remove { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    margin: 0; border-radius: 5px; background: #fdecec; color: var(--djk-danger, #d64545); }
.cart-remove .icon { width: 20px; height: 20px; }
.cart-remove:hover { background: #fadada; }
.cart-rich .shop-cart-item-price { align-self: flex-start; padding-top: 4px; font-size: 1rem; }

.cart-bump .cart-food, .cart-bump .cart-qty-num { animation: cart-bump .45s ease-out; }
@keyframes cart-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .cart-bump .cart-food, .cart-bump .cart-qty-num { animation: none; }
}
