/* Minha conta: loops com form.cart devem seguir o mesmo padrão visual do grid. */
.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	padding-top: 0 !important;
	width: 100%;
	order: 100;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content:not(:has(.yith-ywraq-add-to-quote)):not(:has(> a.add_to_cart_button)):not(:has(> .ajax_add_to_cart)):not(:has(> .etheme-product-grid-button)):not(:has(.product-footer)) > form.cart,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content:not(:has(.yith-ywraq-add-to-quote)):not(:has(> a.add_to_cart_button)):not(:has(> .ajax_add_to_cart)):not(:has(> .etheme-product-grid-button)):not(:has(.product-footer)) > form.cart {
	margin-top: auto !important;
}

.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart .quantity,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart .quantity {
	display: none !important;
}

.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart .single_add_to_cart_button,
.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart button.single_add_to_cart_button,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart .single_add_to_cart_button,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart button.single_add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100%;
	min-height: 40px;
	height: 40px !important;
	padding: 0 20px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 6px !important;
	background: linear-gradient(180deg, #4aa6c7 0%, #3c94b6 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.4px !important;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart .single_add_to_cart_button:hover,
.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart button.single_add_to_cart_button:hover,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart .single_add_to_cart_button:hover,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart button.single_add_to_cart_button:hover {
	background: linear-gradient(180deg, #3c94b6 0%, #317f9e 100%) !important;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart .single_add_to_cart_button:active,
.woocommerce-account .woocommerce ul.products li.product .etheme-product-grid-content > form.cart button.single_add_to_cart_button:active,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart .single_add_to_cart_button:active,
.woocommerce-account .etheme-product-grid .etheme-product-grid-content > form.cart button.single_add_to_cart_button:active {
	background: linear-gradient(180deg, #317f9e 0%, #296d88 100%) !important;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
	transform: translateY(0);
}

/* Minha conta: se o produto já mostra preço, esconder «Pedir orçamento». */
.woocommerce-account .woocommerce ul.products li.product:has(.price:not(:empty)) .yith-ywraq-add-to-quote,
.woocommerce-account .woocommerce ul.products li.product:has(.price:not(:empty)) .add-request-quote-button,
.woocommerce-account .etheme-product-grid .etheme-product-grid-item:has(.price:not(:empty)) .yith-ywraq-add-to-quote,
.woocommerce-account .etheme-product-grid .etheme-product-grid-item:has(.price:not(:empty)) .add-request-quote-button {
	display: none !important;
}
