﻿/**
 * TyG product cards.
 * Fondo de página: #F3F3F6 pleno (Impreza traía #EEEEEE).
 * Font: Plus Jakarta Sans.
 * No tocar display/float de Owl: eso rompe el carrusel.
 */

:root {
	--tyg-page-bg: #f3f3f6;
}

html,
body,
.l-canvas,
.l-main,
.l-section,
.l-content,
.w-grid,
.w-grid-list,
.owl-carousel,
.owl-stage-outer,
.owl-stage {
	background: #f3f3f6 !important;
	background-image: none !important;
}

.w-grid-item.type_product,
.w-grid-item.post_type_product,
.w-grid-item.maxtecno-product-tile,
.woocommerce ul.products li.product {
	--brand-purple: #9e1cf8;
	--brand-dark: #101028;
	--text-dark: #101028;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

/* Shop / categorías: alinear cards. Nunca en .type_carousel / owl. */
.w-grid:not(.type_carousel):not(.owl-carousel) .w-grid-list,
.woocommerce ul.products {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
}

.w-grid:not(.type_carousel):not(.owl-carousel) .w-grid-item.type_product,
.woocommerce ul.products li.product {
	display: flex !important;
	align-items: stretch !important;
	height: auto !important;
}

.w-grid-item.type_product .w-grid-item-h,
.w-grid-item.post_type_product .w-grid-item-h,
.w-grid-item.maxtecno-product-tile .w-grid-item-h,
.woocommerce ul.products li.product {
	background: #ffffff !important;
	background-image: none !important;
	border-radius: 22px !important;
	overflow: hidden !important;
	/* Sombra liviana del mismo gris #F3F3F6; la oscura hacía una franja sucia atrás. */
	box-shadow: 0 2px 10px rgba(80, 80, 96, 0.07) !important;
	border: 1px solid #e6e6ec !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	min-height: 100%;
	width: 100%;
	padding: 0 !important;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.w-grid-item.type_product:hover .w-grid-item-h,
.w-grid-item.maxtecno-product-tile:hover .w-grid-item-h {
	transform: translateY(-8px) scale(1.015);
	box-shadow: 0 14px 28px rgba(80, 80, 96, 0.14) !important;
}

.w-grid-item.type_product .maxtecno-product-tile__inner,
.w-grid-item.type_product .usg_vwrapper_1,
.w-grid-item.type_product .w-vwrapper.usg_vwrapper_1 {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	flex: 1 1 auto;
	background: #ffffff !important;
}

/* Imagen: redondeo visible (Impreza pisa .post_image; hay que ir a la img). */
.w-grid-item.type_product [class*="post_image"],
.w-grid-item.post_type_product [class*="post_image"],
.w-grid-item.maxtecno-product-tile [class*="post_image"],
.w-grid-item.type_product [class*="usg_post_image"],
.w-grid-item.type_product .w-post-elm.post_image,
.w-grid-item.type_product .maxtecno-product-tile__image {
	padding: 10px 10px 0 !important;
	margin: 0 !important;
	height: 200px !important;
	min-height: 200px !important;
	max-height: 200px !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	background: transparent !important;
	border-radius: 0 !important;
}

.w-grid-item.type_product [class*="post_image"] a,
.w-grid-item.type_product [class*="usg_post_image"] a,
.w-grid-item.type_product .w-post-elm.post_image a,
.w-grid-item.maxtecno-product-tile [class*="post_image"] a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
	border-radius: 18px !important;
	transition: transform 0.35s ease;
}

.w-grid-item.type_product img,
.w-grid-item.post_type_product img,
.w-grid-item.maxtecno-product-tile img,
.w-grid-item.product img,
.owl-carousel .w-grid-item.type_product img,
.woocommerce ul.products li.product img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	border-radius: 18px !important;
	background: #ffffff !important;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.no-touch .w-grid-item.type_product:hover img,
.no-touch .w-grid-item.post_type_product:hover img,
.no-touch .w-grid-item.maxtecno-product-tile:hover img {
	transform: scale(1.08) translateY(-6px);
}

.no-touch .w-grid-item.type_product:hover [class*="post_image"] a,
.no-touch .w-grid-item.type_product:hover [class*="usg_post_image"] a {
	transform: translateY(-2px);
}

/* Badge (tags Impreza) */
.w-grid-item.type_product .post_taxonomy,
.w-grid-item.type_product .usg_post_taxonomy_1,
.w-grid-item.type_product .maxtecno-product-tile__badge {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	z-index: 20 !important;
	margin: 0 !important;
}

.w-grid-item.type_product .post_taxonomy .w-btn,
.w-grid-item.type_product .usg_post_taxonomy_1 .w-btn {
	background: #101028 !important;
	color: #fff !important;
	border: 1px solid #9e1cf8 !important;
	border-radius: 50px !important;
	padding: 4px 10px !important;
	font-size: 0.65rem !important;
	font-weight: 800 !important;
}

/* SKU + título */
.w-grid-item.type_product .maxtecno-product-tile__info,
.w-grid-item.type_product .usg_vwrapper_2,
.w-grid-item.type_product .w-vwrapper.usg_vwrapper_2 {
	padding: 4px 14px 8px !important;
	margin: 0 !important;
	flex: 1 1 auto;
	min-height: 4.4em;
	background: #ffffff !important;
}

.w-grid-item.type_product .product_field.sku,
.w-grid-item.type_product .usg_product_field_1,
.w-grid-item.type_product .maxtecno-product-tile__sku {
	color: #6b6578 !important;
	font-size: 0.62rem !important;
	font-weight: 700 !important;
	text-align: left !important;
	margin: 0 0 4px !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

.w-grid-item.type_product .product_field.sku::before,
.w-grid-item.type_product .usg_product_field_1::before {
	content: none !important;
	display: none !important;
}

.w-grid-item.type_product .post_title,
.w-grid-item.type_product .usg_post_title_1,
.w-grid-item.type_product .maxtecno-product-tile__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.82rem !important;
	font-weight: 800 !important;
	color: #101028 !important;
	text-align: left !important;
	line-height: 1.25 !important;
	margin: 0 !important;
	text-transform: uppercase !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
	background: transparent !important;
	border: 0 !important;
}

.w-grid-item.type_product .post_title a {
	color: inherit !important;
	text-decoration: none !important;
}

/*
 * Caja precio + botón (look MaxTecno).
 * El arco lila vacío era el borde del precio con texto blanco sobre fondo blanco.
 */
.w-grid-item.type_product .maxtecno-product-tile__pricing,
.w-grid-item.type_product .usg_vwrapper_3,
.w-grid-item.type_product .w-vwrapper.usg_vwrapper_3 {
	background: linear-gradient(180deg, #1a1430 0%, #101028 100%) !important;
	margin: 6px 10px 10px !important;
	margin-top: auto !important;
	padding: 0 0 10px !important;
	border-radius: 14px !important;
	border: 0 !important;
	border-top: 2px solid #9e1cf8 !important;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28) !important;
	flex: 0 0 auto !important;
	width: auto !important;
	overflow: hidden;
}

.w-grid-item.type_product .usg_product_field_3,
.w-grid-item.type_product .maxtecno-product-tile__price,
.w-grid-item.type_product .product_field.price,
.woocommerce ul.products li.product .price {
	background: transparent !important;
	margin: 0 !important;
	padding: 12px 12px 6px !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: left !important;
	color: #ffffff !important;
}

/* Precio suelto (layout viejo, sin vwrapper:3): misma caja oscura */
.w-grid-item.type_product .w-grid-item-h > .usg_product_field_3,
.w-grid-item.type_product .w-grid-item-h > .product_field:not(.sku),
.w-grid-item.type_product .usg_vwrapper_1 > .usg_product_field_3,
.w-grid-item.type_product .usg_vwrapper_1 > .product_field:not(.sku) {
	background: linear-gradient(180deg, #1a1430 0%, #101028 100%) !important;
	margin: auto 10px 0 !important;
	padding: 12px 12px 6px !important;
	border-radius: 14px 14px 0 0 !important;
	border: 0 !important;
	border-top: 2px solid #9e1cf8 !important;
	color: #ffffff !important;
}

.w-grid-item.type_product .usg_product_field_3::before,
.w-grid-item.type_product .maxtecno-product-tile__price::before,
.w-grid-item.type_product .product_field.price::before,
.w-grid-item.type_product .w-grid-item-h > .product_field:not(.sku)::before {
	content: "PRECIO";
	display: inline-block;
	background: #9e1cf8;
	color: #ffffff;
	font-size: 0.5rem;
	font-weight: 900;
	padding: 3px 8px;
	border-radius: 50px;
	margin-bottom: 8px;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.w-grid-item.type_product .usg_product_field_3 .amount,
.w-grid-item.type_product .usg_product_field_3 .woocommerce-Price-amount,
.w-grid-item.type_product .maxtecno-product-tile__price .amount,
.w-grid-item.type_product .product_field.price .amount,
.w-grid-item.type_product .product_field:not(.sku) .amount,
.woocommerce ul.products li.product .price .amount {
	color: #ffffff !important;
	font-size: 1.2rem !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
}

.w-grid-item.type_product .usg_product_field_3 del,
.w-grid-item.type_product .maxtecno-product-tile__price del,
.w-grid-item.type_product .product_field.price del {
	display: block;
	opacity: 0.7;
}

.w-grid-item.type_product .usg_product_field_3 del .amount,
.w-grid-item.type_product .product_field:not(.sku) del .amount {
	color: #a8a4b8 !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
}

/* Botón */
.w-grid-item.type_product .usg_add_to_cart_2,
.w-grid-item.type_product .maxtecno-product-tile__btn,
.w-grid-item.type_product .add_to_cart,
.w-grid-item.type_product .w-btn-wrapper.woocommerce {
	display: block !important;
	width: auto !important;
	margin: 0 10px 10px !important;
	padding: 0 10px 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.w-grid-item.type_product .usg_vwrapper_3 .usg_add_to_cart_2,
.w-grid-item.type_product .maxtecno-product-tile__pricing .maxtecno-product-tile__btn,
.w-grid-item.type_product .usg_vwrapper_3 .add_to_cart {
	margin: 0 0 0 !important;
	padding: 0 10px !important;
}

.w-grid-item.type_product .w-grid-item-h > .usg_add_to_cart_2,
.w-grid-item.type_product .w-grid-item-h > .add_to_cart,
.w-grid-item.type_product .usg_vwrapper_1 > .usg_add_to_cart_2,
.w-grid-item.type_product .usg_vwrapper_1 > .add_to_cart {
	background: #101028 !important;
	margin: 0 10px 10px !important;
	padding: 0 10px 10px !important;
	border-radius: 0 0 14px 14px !important;
}

.w-grid-item.type_product .usg_add_to_cart_2 .button,
.w-grid-item.type_product .usg_add_to_cart_2 .w-btn,
.w-grid-item.type_product .maxtecno-product-tile__btn .button,
.w-grid-item.type_product a.add_to_cart_button,
.w-grid-item.type_product .add_to_cart .w-btn,
.woocommerce ul.products li.product a.button {
	display: block !important;
	background: #9e1cf8 !important;
	color: #ffffff !important;
	width: 100% !important;
	border-radius: 10px !important;
	padding: 11px 10px !important;
	font-weight: 900 !important;
	font-size: 0.75rem !important;
	text-transform: uppercase !important;
	text-align: center !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	line-height: 1.2 !important;
}

.w-grid-item.type_product .usg_add_to_cart_2 .w-btn-label,
.w-grid-item.type_product .maxtecno-product-tile__btn .w-btn-label,
.w-grid-item.type_product a.add_to_cart_button {
	color: #ffffff !important;
	font-weight: 900 !important;
}

.w-grid-item.type_product:hover .usg_add_to_cart_2 .button,
.w-grid-item.type_product:hover a.add_to_cart_button {
	background: #8018e0 !important;
}

@media (max-width: 767px) {
	.w-grid-item.type_product:hover .w-grid-item-h,
	.w-grid-item.maxtecno-product-tile:hover .w-grid-item-h {
		transform: none;
	}

	.w-grid-item.type_product [class*="post_image"],
	.w-grid-item.type_product [class*="usg_post_image"] {
		height: 150px !important;
		min-height: 150px !important;
		max-height: 150px !important;
		padding: 8px 8px 0 !important;
	}

	.w-grid-item.type_product img,
	.w-grid-item.type_product [class*="post_image"] a {
		border-radius: 14px !important;
		max-height: none !important;
		transform: none !important;
	}

	.w-grid-item.type_product .post_title,
	.w-grid-item.type_product .usg_post_title_1 {
		font-size: 0.72rem !important;
		min-height: 2.4em;
	}

	.w-grid-item.type_product .usg_product_field_3 .amount,
	.w-grid-item.type_product .product_field:not(.sku) .amount {
		font-size: 1rem !important;
	}
}
