/*
 * Tienda Child - tarjetas de producto del listado.
 * Diseño: tarjeta blanca de esquinas amplias, etiqueta verde arriba a la izquierda, foto centrada,
 * categoría en azul, nombre grande, capacidades en gris, muestras de color, píldoras verdes y precio.
 */

/* Astra agrega su propia etiqueta "¡Oferta!" y un botón de compra rápida sobre la foto: usamos solo lo nuestro. */
.ast-on-card-button {
	display: none !important;
}

.woocommerce ul.products li.product {
	position: relative;
	padding: 22px 22px 24px !important;
	border: 1px solid var(--tc-borde);
	border-radius: 28px;
	background: #fff;
	text-align: left;
}
/*
 * La tarjeta es una columna. El enlace usa "display: contents" para que sus partes y los botones
 * de color (que quedan fuera del enlace) se ordenen juntos con "order".
 */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: contents;
	color: var(--tc-texto);
	text-decoration: none;
}
.woocommerce ul.products li.product img {
	order: 1;
	width: 100%;
	max-width: 260px;
	margin: 8px auto 22px;
	border-radius: 0;
	background: transparent;
	object-fit: contain;
}

/* Etiqueta verde (descuento o texto editable) arriba a la izquierda. */
.woocommerce ul.products li.product span.onsale {
	top: 20px;
	right: auto;
	left: 20px;
	min-width: 0;
	min-height: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: #2e7d32;
	box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
}

.tc-card__cat {
	order: 2;
	display: block;
	margin-bottom: 6px;
	color: #0b57b8;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	order: 3;
	margin: 0 0 6px;
	padding: 0;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.tc-card__spec {
	order: 4;
	display: block;
	margin-bottom: 14px;
	font-size: 0.92rem;
	opacity: 0.62;
}

/* Botones de color: círculos con borde fino; el activo lleva un anillo. */
.tc-card__colores {
	order: 5;
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}
.woocommerce ul.products li.product .tc-card__color {
	width: 26px;
	height: 26px;
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.12s, box-shadow 0.12s;
}
.woocommerce ul.products li.product .tc-card__color:hover {
	transform: scale(1.12);
}
.woocommerce ul.products li.product .tc-card__color.is-activo {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tc-primario);
}

/* Píldoras verdes con punto. */
.tc-card__chips {
	order: 6;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.tc-card__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e6f2e7;
	color: #1b5e20;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
}
.tc-card__chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #2e7d32;
}

/* Precio. */
.woocommerce ul.products li.product .price {
	order: 7;
	margin-top: auto;
	color: var(--tc-texto);
	font-size: 1.05rem;
	font-weight: 700;
}
.tc-card__desde {
	margin-right: 2px;
	font-size: inherit;
	font-weight: 700;
}
.woocommerce ul.products li.product .price del {
	font-size: 0.88rem;
	font-weight: 400;
	opacity: 0.5;
}
.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}
