/* Hide the "Add to cart" hover action on product cards (shop, category,
   related-products and any other grid built from card-product.php) — a
   card only ever links through to the product page. */
.product-action_bot {
	display: none !important;
}

/* Hide the plain "Add to Cart" button in the single-product buy box,
   leaving only the real "Buy It Now" button.
   NOT `display: none` — the theme's own sticky-bottom-bar script
   (assets/js/main.js, scrollBottomSticky()) watches this exact button's
   getBoundingClientRect() to decide when to reveal the sticky bar
   (`rect.bottom < 0`, i.e. "this button has scrolled above the top of the
   viewport"). display:none collapses that rect to all zeros, so
   `0 < 0` is never true and the sticky bar can never show — a real
   regression this caused. Collapsing it to zero size while keeping it in
   flow (not display:none) keeps that rect tracking real scroll position,
   so the theme's own trigger keeps working, while still taking up no
   visible space next to the quantity stepper. */
.single_add_to_cart_button.btn-action-price {
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.single_add_to_cart_button.buy-it-now-button {
	width: 100%;
}

/* The now-empty "own product" notice box (see
   BigBaa\Dokan\Marketplace_Defaults::suppress_stale_own_product_notice())
   is removed by buy-now-only.js instead of hidden by CSS — its wrapping
   <div> still contains whitespace text nodes from the template's own
   indentation, so :empty never actually matches it. */

/* No cart concept at all — hide the header cart icon/badge and the mini
   cart drawer it opens. `:has()` hides the whole <li> wrapper rather than
   just the link, so no empty gap is left in the header icon row. */
li:has(> a.shop-cart) {
	display: none !important;
}

#shoppingCart {
	display: none !important;
}

/* Product cards default to a 3:4 portrait crop (main.css:10466-10484),
   which crops the sides off most of the catalog's near-square product
   photos. The theme already ships a `.square` modifier (main.css:10518)
   for exactly this — same rules, just applied directly since the theme's
   own card-product.php template never adds that class to the markup. */
.card-product_wrapper,
.card-product_wrapper .product-img {
	aspect-ratio: 1 !important;
}

/* Home page product grids (Noorifa Core's "Product Grid" block) render
   with zero side padding anywhere in their ancestor chain — unlike the
   Shop archive and every other page, which get it from the theme's own
   `.container` (main.css:2018, 15px + a 1440px max-width). Most visible on
   mobile, where a 2-column grid then runs flush to both screen edges.
   Matches that same container treatment instead of inventing a new one. */
.wp-block-noorifa-core-product-grid {
	box-sizing: border-box;
	max-width: var(--noorifa-container-width, 1440px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}
