/* Jordan 2.9.9 — fixed CTA beside price, no hover dependency.
   Scope: home and WooCommerce catalog/category product cards. */
body.home .product-card .product-info,
body.woocommerce-shop .product-card .product-info,
body.post-type-archive-product .product-card .product-info,
body.tax-product_cat .product-card .product-info,
body.tax-product_tag .product-card .product-info {
  display:grid!important;
  grid-template-columns:minmax(0, 1fr) auto!important;
  grid-template-areas:"heading heading" "pricing buy"!important;
  align-content:start!important;
  column-gap:clamp(9px,1.2vw,22px)!important;
  row-gap:12px!important;
  overflow:visible!important;
}
body.home .product-card .product-info>.product-meta,
body.woocommerce-shop .product-card .product-info>.product-meta,
body.post-type-archive-product .product-card .product-info>.product-meta,
body.tax-product_cat .product-card .product-info>.product-meta,
body.tax-product_tag .product-card .product-info>.product-meta{grid-area:heading!important;min-width:0}
body.home .product-card .product-info>.price-block,
body.woocommerce-shop .product-card .product-info>.price-block,
body.post-type-archive-product .product-card .product-info>.price-block,
body.tax-product_cat .product-card .product-info>.price-block,
body.tax-product_tag .product-card .product-info>.price-block{
  grid-area:pricing!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding-top:10px!important;
  border-top:1px solid rgba(130,144,151,.22)!important;
}
body.home .product-card .product-info>.card-actions,
body.woocommerce-shop .product-card .product-info>.card-actions,
body.post-type-archive-product .product-card .product-info>.card-actions,
body.tax-product_cat .product-card .product-info>.card-actions,
body.tax-product_tag .product-card .product-info>.card-actions{
  grid-area:buy!important;align-self:start!important;justify-self:end!important;
  display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;
  min-width:0!important;width:auto!important;min-height:0!important;
  margin:0!important;padding:10px 0 0!important;
  opacity:1!important;visibility:visible!important;
}
/* Match both WooCommerce and generic theme CTA selectors, even when prior hover rules persist in cache. */
body.home .product-card .card-actions .quick-add,
body.home .woocommerce ul.products li.product .card-actions a.button.quick-add,
body.woocommerce-shop .product-card .card-actions .quick-add,
body.post-type-archive-product .product-card .card-actions .quick-add,
body.tax-product_cat .product-card .card-actions .quick-add,
body.tax-product_tag .product-card .card-actions .quick-add,
body.woocommerce ul.products li.product.product-card .card-actions a.button.quick-add{
  position:static!important;display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;
  width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;
  margin:0!important;padding:0 0 4px!important;
  border:0!important;border-bottom:1px solid currentColor!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:#977b42!important;font-size:clamp(.57rem,.72vw,.7rem)!important;font-weight:800!important;
  letter-spacing:.09em!important;line-height:1.3!important;text-transform:uppercase!important;white-space:nowrap!important;
  text-decoration:none!important;transition:color .2s ease!important;
}
body.home .product-card .card-actions .quick-add:hover,
body.woocommerce ul.products li.product.product-card .card-actions a.button.quick-add:hover,
body.tax-product_cat .product-card .card-actions .quick-add:hover,
body.post-type-archive-product .product-card .card-actions .quick-add:hover{color:#c59e51!important;background:transparent!important}
body.home .products-section--featured .product-card .card-actions .quick-add,
body.home .products-section--featured.woocommerce ul.products li.product .card-actions a.button.quick-add,
body.home .jg-rail--featured .product-card .card-actions .quick-add,
body.home .woocommerce .jg-rail--featured ul.products li.product .card-actions a.button.quick-add{
  color:#e1c47c!important;background:transparent!important;border-color:currentColor!important;
  opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;
}
body.home .products-section--featured .product-card .card-actions .quick-add:hover,
body.home .jg-rail--featured .product-card .card-actions .quick-add:hover{color:#fff0c1!important}
body.home .jg-rail--featured .product-card .card-actions .quick-add svg,
body.tax-product_cat .product-card .card-actions .quick-add svg,
body.post-type-archive-product .product-card .card-actions .quick-add svg{width:13px!important;height:13px!important;flex-shrink:0}
/* Move stock information to its own row, never overlap the CTA. */
body.home .product-card .product-info>.stock-note,
body.woocommerce-shop .product-card .product-info>.stock-note,
body.post-type-archive-product .product-card .product-info>.stock-note,
body.tax-product_cat .product-card .product-info>.stock-note,
body.tax-product_tag .product-card .product-info>.stock-note{grid-column:1/-1!important;grid-row:auto!important;margin:0!important}
/* Narrow cards: keep price legible; CTA drops below only when necessary. */
@media(max-width:580px){
 body.home .product-card .product-info,
 body.woocommerce-shop .product-card .product-info,
 body.post-type-archive-product .product-card .product-info,
 body.tax-product_cat .product-card .product-info,
 body.tax-product_tag .product-card .product-info{
   grid-template-columns:1fr!important;grid-template-areas:"heading" "pricing" "buy"!important;row-gap:7px!important
 }
 body.home .product-card .product-info>.card-actions,
 body.woocommerce-shop .product-card .product-info>.card-actions,
 body.post-type-archive-product .product-card .product-info>.card-actions,
 body.tax-product_cat .product-card .product-info>.card-actions,
 body.tax-product_tag .product-card .product-info>.card-actions{
   justify-self:start!important;justify-content:flex-start!important;padding-top:2px!important
 }
}
@media(hover:none){
 body.home .product-card .card-actions .quick-add,
 body.tax-product_cat .product-card .card-actions .quick-add,
 body.post-type-archive-product .product-card .card-actions .quick-add{
   opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important
 }
}
