/* Product-card buttons: our "Buy Now" and (optionally) the theme's Add to cart / Select options look identical */
.cropp-buy-loop,
body.cropp-card-match ul.products li.product a.button:not(.ast-on-card-button),
body.cropp-card-match ul.products li.product button.button:not(.ast-on-card-button),
body.cropp-card-match ul.products li.product a.added_to_cart:not(.ast-on-card-button),
body.cropp-card-match .products .product a.add_to_cart_button:not(.ast-on-card-button),
body.cropp-card-match .products .product a.product_type_variable:not(.ast-on-card-button),
body.cropp-card-match .products .product a.product_type_simple:not(.ast-on-card-button),
body.cropp-card-match .products .product a.product_type_grouped:not(.ast-on-card-button) {
  display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important;
  height: auto !important; min-height: 0 !important; margin: 8px 0 0 !important; padding: 11px 14px !important;
  text-align: center !important; text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
  line-height: 1.3 !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important;
  border-radius: var(--cropp-r, 6px) !important; box-shadow: none !important; cursor: pointer; transition: opacity .15s;
  background: var(--buy-bg, #c2410c) !important; color: var(--buy-fg, #fff) !important;
  border: 1.5px solid var(--buy-bd, #c2410c) !important;
}
.cropp-buy-loop:hover,
body.cropp-card-match ul.products li.product a.button:not(.ast-on-card-button):hover,
body.cropp-card-match ul.products li.product button.button:not(.ast-on-card-button):hover,
body.cropp-card-match ul.products li.product a.added_to_cart:not(.ast-on-card-button):hover,
body.cropp-card-match .products .product a.add_to_cart_button:not(.ast-on-card-button):hover {
  opacity: .88; background: var(--buy-bg, #c2410c) !important; color: var(--buy-fg, #fff) !important;
  border-color: var(--buy-bd, #c2410c) !important;
}

/* Hide hover icons on product cards (quick view, wishlist, compare, zoom) */
body.cropp-no-card-icons .products .product .yith-wcqv-button,
body.cropp-no-card-icons .products .product .yith-wcwl-add-to-wishlist,
body.cropp-no-card-icons .products .product .yith-wcwl-add-button,
body.cropp-no-card-icons .products .product .yith-add-to-compare,
body.cropp-no-card-icons .products .product a.compare,
body.cropp-no-card-icons .products .product .compare-button,
body.cropp-no-card-icons .products .product .tinvwl_add_to_wishlist_button,
body.cropp-no-card-icons .products .product .tinv-wraper,
body.cropp-no-card-icons .products .product .woosq-btn,
body.cropp-no-card-icons .products .product .woosw-btn,
body.cropp-no-card-icons .products .product .woosc-btn,
body.cropp-no-card-icons .products .product .quick-view,
body.cropp-no-card-icons .products .product .quickview,
body.cropp-no-card-icons .products .product .quick_view,
body.cropp-no-card-icons .products .product .quick-view-button,
body.cropp-no-card-icons .products .product .ast-quick-view-button,
body.cropp-no-card-icons .products .product .jas-wc-quickview,
body.cropp-no-card-icons .products .product .product-actions,
body.cropp-no-card-icons .products .product .product-action,
body.cropp-no-card-icons .products .product .product-hover-icons,
body.cropp-no-card-icons .products .product .hover-icons,
body.cropp-no-card-icons .products .product .image-tools,
body.cropp-no-card-icons .products .product .wd-buttons,
body.cropp-no-card-icons .products .product .wd-action-btn,
body.cropp-no-card-icons .products .product .wishlist-icon,
body.cropp-no-card-icons .products .product .zoom-icon,
body.cropp-no-card-icons .products .product .icon-zoom,
body.cropp-no-card-icons .products .product .product-image-overlay,
body.cropp-no-card-icons .products .product .overlay-icon { display: none !important; }

/* Hover "add to cart on image" bar with the bag icon (Astra and similar), plus catch-all patterns */
body.cropp-no-card-icons .products .product .ast-on-card-button,
body.cropp-no-card-icons .products .product .ast-quick-view-trigger,
body.cropp-no-card-icons .products .product .ast-quick-view-data,
body.cropp-no-card-icons .products .product .astra-shop-thumbnail-wrap .ast-select-options-trigger,
body.cropp-no-card-icons .products .product [class*="on-card"],
body.cropp-no-card-icons .products .product [class*="quick-view"],
body.cropp-no-card-icons .products .product [class*="quickview"],
body.cropp-no-card-icons .products .product [class*="hover-icon"],
body.cropp-no-card-icons .products .product [class*="image-overlay"],
body.cropp-no-card-icons .products .product [class*="product-overlay"] { display: none !important; }

/* Final, highest-priority rule: the hover "add to cart on image" bar (Astra) never shows */
html body.cropp-no-card-icons.cropp-no-card-icons .products .product .ast-on-card-button,
html body.cropp-no-card-icons.cropp-no-card-icons .products .product a.ast-on-card-button.add_to_cart_button,
html body.cropp-no-card-icons.cropp-no-card-icons .ast-on-card-button { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Sale badge: small pill in the corner of the card (so it never covers the picture) */
body.cropp-badge-fix .products .product span.onsale,
body.cropp-badge-fix .products .product .onsale,
body.cropp-badge-fix .products .product .ast-onsale-card,
body.cropp-badge-fix .wc-block-grid__product .wc-block-grid__product-onsale {
  position: absolute !important; top: 8px !important; left: auto !important; right: auto !important;
  inset-inline-start: var(--cropp-bd-start, 8px) !important; inset-inline-end: var(--cropp-bd-end, auto) !important;
  width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
  padding: 2px 10px !important; border-radius: 999px !important; transform: none !important; z-index: 3 !important;
  font-size: var(--cropp-bd-fs, 12px) !important; line-height: 1.6 !important; font-weight: 600 !important; letter-spacing: normal !important;
  background: var(--cropp-bd-bg, #b3322f) !important; color: #fff !important; box-shadow: none !important; text-transform: none !important;
}
@media (max-width: 640px) {
  body.cropp-badge-fix .products .product span.onsale,
  body.cropp-badge-fix .products .product .onsale,
  body.cropp-badge-fix .products .product .ast-onsale-card,
  body.cropp-badge-fix .wc-block-grid__product .wc-block-grid__product-onsale {
    top: 6px !important; padding: 1px 8px !important; font-size: var(--cropp-bd-fs-m, 10px) !important;
  }
}
