/* V7.82: one shared alignment for list favorite/quantity; same back-office colors in grid. */
/* Heart follows the same dynamic product-action palette in either view. */
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;
}
/* List: heart occupies row 1; + or quantity occupies row 2, with equal dimensions. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 {
  display:grid!important;grid-template-columns:40px!important;
  grid-template-rows:40px 40px!important;gap:10px!important;
  place-items:center!important;align-content:center!important;
  width:44px!important;min-width:44px!important;min-height:90px!important;
  position:relative!important;justify-self:center!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .favorite-heart-v775 {
  grid-column:1!important;grid-row:1!important;position:static!important;
  width:38px!important;height:38px!important;min-width:38px!important;
  margin:0!important;inset:auto!important;transform:none!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .hybrid-plus {
  grid-column:1!important;grid-row:2!important;position:static!important;
  width:38px!important;height:38px!important;min-width:38px!important;
  margin:0!important;inset:auto!important;transform:none!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product.has-qty > .product-card-actions-v776 > .hybrid-plus {
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .product-qty-badge {
  grid-column:1!important;grid-row:2!important;
  position:static!important;inset:auto!important;transform:none!important;
  display:none!important;align-items:center!important;justify-content:center!important;
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
  font-size:18px!important;font-weight:800!important;line-height:1!important;
  background:var(--front-product-qty-badge-bg,#f4bb54)!important;
  color:var(--front-product-qty-badge-text,#35251a)!important;
  box-shadow:none!important;
}
body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product.has-qty > .product-card-actions-v776 > .product-qty-badge {
  display:inline-flex!important;
}
/* No duplicate at the image corner in list view. */
body.order-front-v7 .order-content-area:not(.is-grid-view) .product-qty-badge-grid-v782 {display:none!important;}
/* Grid: favorite remains bottom-right and quantity stays at image upper-right. */
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;
  left:auto!important;top:auto!important;transform:none!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;
}
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;margin:0!important;transform:none!important;
}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-card-actions-v776 > .product-qty-badge {display:none!important;}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-qty-badge-grid-v782 {
  position:absolute!important;top:15px!important;right:15px!important;bottom:auto!important;left:auto!important;
  display:none!important;align-items:center!important;justify-content:center!important;
  min-width:36px!important;height:36px!important;padding:0 8px!important;
  border-radius:11px!important;font-size:17px!important;font-weight:800!important;line-height:1!important;
  background:var(--front-product-qty-badge-bg,#255b3d)!important;
  color:var(--front-product-qty-badge-text,#fff)!important;
  box-sizing:border-box!important;z-index:7!important;
}
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product.has-qty > .product-qty-badge-grid-v782 {display:inline-flex!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;}
@media(max-width:760px){
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 {
    grid-template-columns:34px!important;grid-template-rows:34px 34px!important;gap:9px!important;
    width:36px!important;min-width:36px!important;min-height:77px!important;
  }
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .favorite-heart-v775,
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .hybrid-plus,
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .product-qty-badge {
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  }
  body.order-front-v7 .order-content-area:not(.is-grid-view) .order-product.hybrid-product > .product-card-actions-v776 > .product-qty-badge {font-size:16px!important;}
  body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-qty-badge-grid-v782 {
    top:15px!important;right:15px!important;min-width:33px!important;height:33px!important;font-size:15px!important;
  }
}

/* V7.83: Card/grid view shows the favorite heart only, with or without cart quantity.
   Quantity badge stays at the image top-right; list view keeps its +/count toggle. */
body.order-front-v7 .order-content-area.is-grid-view .order-product.hybrid-product > .product-card-actions-v776 > .hybrid-plus,
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;visibility:hidden!important;pointer-events:none!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:0!important;
}
