/* GM2 product card — alinhado ao design gmoficialsoftware.com.br */

li.gm2-product-card-item {
	--gm-cyan: #00d8ff;
	--gm-blue-light: #58b6ff;
	--gm-green: #19ff00;
	--gm-white: #ffffff;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* Override Elementor lazy-load rule that strips backgrounds */
.e-con .elementor-widget-woocommerce-products li.gm2-product-card-item .gm2-product-card,
#mais-vendidos li.gm2-product-card-item .gm2-product-card,
li.gm2-product-card-item .gm2-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: visible;
	padding: 12px 12px 18px;
	border: 3px solid var(--gm-cyan);
	border-radius: 24px;
	background-color: #020822 !important;
	background-image: linear-gradient(180deg, #061c3d 0%, #020822 100%) !important;
	box-shadow: none;
	transition: filter 0.35s ease;
}

.e-con .elementor-widget-woocommerce-products li.gm2-product-card-item:hover .gm2-product-card,
#mais-vendidos li.gm2-product-card-item:hover .gm2-product-card,
li.gm2-product-card-item:hover .gm2-product-card {
	filter: brightness(1.04);
	box-shadow: none;
}

/* Evita corte do arredondamento em grids Elementor/WooCommerce */
.elementor-widget-woocommerce-products ul.products li.gm2-product-card-item,
.elementor-widget-wc-archive-products ul.products li.gm2-product-card-item,
ul.products li.gm2-product-card-item {
	overflow: visible !important;
}
li.gm2-product-card-item .astra-shop-thumbnail-wrap,
li.gm2-product-card-item .ast-on-card-button,
li.gm2-product-card-item > .button,
li.gm2-product-card-item > .price,
li.gm2-product-card-item > .star-rating,
li.gm2-product-card-item > .ast-woo-product-category,
li.gm2-product-card-item > .woocommerce-LoopProduct-link,
li.gm2-product-card-item > .woocommerce-loop-product__title:not(.gm2-product-card__title) {
	display: none !important;
}

li.gm2-product-card-item .gm2-product-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1.15;
	margin-bottom: 14px;
	border-radius: 18px;
	overflow: hidden;
	background: #07142d;
	text-decoration: none;
	isolation: isolate;
}

li.gm2-product-card-item .gm2-product-card__img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 18px;
	object-fit: cover;
	object-position: center top;
}

li.gm2-product-card-item .gm2-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	text-align: center;
}

li.gm2-product-card-item .gm2-product-card__title-link {
	display: block;
	color: var(--gm-white);
	text-decoration: none;
}

li.gm2-product-card-item .gm2-product-card__title-link:hover {
	color: var(--gm-white);
}

li.gm2-product-card-item .gm2-product-card__title {
	min-height: 38px;
	margin: 0 0 8px;
	padding: 0;
	color: var(--gm-white);
	font-size: clamp(15px, 0.95vw, 21px);
	font-weight: 800;
	line-height: 1.22;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

li.gm2-product-card-item .gm2-product-card__badge {
	margin: 0 0 18px;
	color: var(--gm-blue-light);
	font-size: clamp(12px, 0.75vw, 16px);
	font-weight: 950;
	line-height: 1.1;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

li.gm2-product-card-item .gm2-product-card__pricing {
	display: block;
	width: 100%;
	margin-bottom: 0;
}

li.gm2-product-card-item .gm2-product-card__price-main,
li.gm2-product-card-item .gm2-product-card__price-main .woocommerce-Price-amount {
	margin: 0 0 6px;
	color: var(--gm-green) !important;
	font-size: clamp(25px, 1.65vw, 38px);
	font-weight: 950;
	line-height: 1;
}

li.gm2-product-card-item .gm2-product-card__price-main .woocommerce-Price-currencySymbol {
	color: inherit;
}

li.gm2-product-card-item .gm2-product-card__installments {
	margin: 0 0 7px;
	color: var(--gm-white);
	font-size: clamp(13px, 0.86vw, 17px);
	font-weight: 700;
	line-height: 1.25;
	opacity: 1;
}

li.gm2-product-card-item .gm2-product-card__pix,
li.gm2-product-card-item .gm2-product-card__pix .woocommerce-Price-amount {
	margin: 0 0 16px;
	color: var(--gm-green) !important;
	font-size: clamp(11px, 0.72vw, 14px);
	font-weight: 900;
	line-height: 1.3;
}

li.gm2-product-card-item .gm2-product-card__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 52px;
	gap: 10px;
	align-items: center;
	width: 100%;
	margin-top: auto;
}

li.gm2-product-card-item .gm2-product-card__buy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	padding: 0 12px;
	border: 2px solid rgba(0, 166, 255, 0.92);
	border-radius: 18px;
	background: rgba(6, 28, 61, 0.78);
	color: var(--gm-white);
	font-size: clamp(12px, 0.75vw, 15px);
	font-weight: 950;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: inset 0 0 12px rgba(0, 140, 255, 0.18);
	transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

li.gm2-product-card-item .gm2-product-card__buy:hover {
	background: #168dff;
	color: #ffffff;
	box-shadow: 0 0 26px rgba(22, 141, 255, 0.55);
}

li.gm2-product-card-item .gm2-product-card__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 56px;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--gm-white);
	text-decoration: none;
	transition: background 0.35s ease, color 0.35s ease;
}

li.gm2-product-card-item .gm2-product-card__view:hover {
	background: #ffffff;
	color: #020822;
}

@media (max-width: 767px) {
	li.gm2-product-card-item .gm2-product-card {
		padding: 7px 7px 11px;
		border-radius: 22px;
		border-width: 3px;
	}

	li.gm2-product-card-item .gm2-product-card__image {
		aspect-ratio: 1 / 1.05;
		margin-bottom: 9px;
		border-radius: 14px;
	}

	li.gm2-product-card-item .gm2-product-card__img {
		border-radius: 14px;
	}

	li.gm2-product-card-item .gm2-product-card__title {
		min-height: 34px;
		margin-bottom: 6px;
		font-size: 13px;
		line-height: 1.2;
	}

	li.gm2-product-card-item .gm2-product-card__badge {
		margin-bottom: 14px;
		font-size: 9px;
	}

	li.gm2-product-card-item .gm2-product-card__price-main,
	li.gm2-product-card-item .gm2-product-card__price-main .woocommerce-Price-amount {
		margin-bottom: 5px;
		font-size: 20px;
	}

	li.gm2-product-card-item .gm2-product-card__installments {
		margin-bottom: 5px;
		font-size: 11px;
	}

	li.gm2-product-card-item .gm2-product-card__pix,
	li.gm2-product-card-item .gm2-product-card__pix .woocommerce-Price-amount {
		margin-bottom: 12px;
		font-size: 9.5px;
	}

	li.gm2-product-card-item .gm2-product-card__actions {
		grid-template-columns: minmax(0, 1fr) 42px;
		gap: 7px;
	}

	li.gm2-product-card-item .gm2-product-card__buy {
		height: 42px;
		border-radius: 14px;
		font-size: 10.5px;
		letter-spacing: 0.8px;
	}

	li.gm2-product-card-item .gm2-product-card__view {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}
}
