/* V7.81: align selected quantity with favorite, keep grid favorite bottom right. */
/* Use the existing back-office product action color variables. */
body.order-front-v7 .order-product .product-card-actions-v776 > .favorite-heart-v775,
body.order-front-v7 .order-product .product-card-actions-v776 > .favorite-heart-v775.is-favorited {
  background:var(--front-product-card-action-bg,#f0e1d2)!important;
  color:var(--front-product-card-action-text,#79523f)!important;
}
body.order-front-v7 .order-product .product-card-actions-v776 > .favorite-heart-v775:hover {
  filter:brightness(.95);transform:none!important;
}
/* List: the quantity uses the same right-hand column center as the heart. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product {
  position:relative!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 {
  justify-items:center!important;justify-self:center!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-qty-badge {
  right:13px!important;top:calc(50% + 25px)!important;left:auto!important;
  transform:translateY(-50%)!important;
  text-align:center!important;
}
/* Grid: bottom-right always belongs to the heart. + stays to its left until selected. */
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product {
  position:relative!important;padding-bottom:64px!important;
}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-card-actions-v776 {
  position:absolute!important;right:12px!important;bottom:12px!important;top:auto!important;left:auto!important;
  display:flex!important;flex-direction:row-reverse!important;align-items:center!important;
  justify-content:flex-start!important;width:auto!important;min-width:0!important;
  gap:8px!important;transform:none!important;
}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product .product-card-actions-v776 > .favorite-heart-v775 {
  position:static!important;inset:auto!important;transform:none!important;
  margin:0!important;flex-shrink:0!important;
}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product.has-qty .product-card-actions-v776 > .hybrid-plus {
  display:none!important;
}
/* Quantity on image maintains V7.80 position and is not duplicated near the action buttons. */
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-qty-badge {
  position:absolute!important;top:15px!important;right:15px!important;bottom:auto!important;left:auto!important;
  transform:none!important;
}
@media(max-width:760px){
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-qty-badge {
    right:11px!important;top:calc(50% + 21px)!important;
  }
  body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-card-actions-v776 {
    right:12px!important;bottom:12px!important;gap:6px!important;
  }
}
