/*
 * Espacio Deco — seccion "Lo mas elegido" de la home (brief 3.4).
 *
 * La seccion paso de un bloque Custom HTML hecho a mano (3 cards de prueba con
 * textos hardcodeados y badge "Familia") al bloque nativo Coleccion de productos
 * (woocommerce/product-collection): 3 columnas, 6 productos, card con Imagen,
 * Titulo, Precio y Boton, y el titulo con "Ver todos" en una Fila.
 *
 * Este CSS le da a esas cards el aspecto de marca (borde, radio, sombra sutil)
 * y neutraliza las reglas globales heredadas de la home (.edc img, .edc h2)
 * que entrarian en conflicto con el bloque nativo.
 */

.home .edc .edc-in {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 48px);
}

.home .edc .edc-sec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.home .edc .edc-ver-todos a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 1.5px solid var(--wp--preset--color--edc-cacao);
	border-radius: 999px;
	background: var(--wp--preset--color--edc-cacao);
	color: var(--wp--preset--color--edc-manteca);
	font-family: var(--wp--preset--font-family--edc-display);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.home .edc .edc-ver-todos a:hover {
	background: var(--wp--preset--color--edc-bordo);
	border-color: var(--wp--preset--color--edc-bordo);
}

/* ---------- Cards de producto del bloque nativo ---------- */

.home .edc .wp-block-woocommerce-product-collection {
	gap: 20px;
}

.home .edc .wp-block-woocommerce-product-template .wc-block-product {
	border: 1.5px solid var(--wp--preset--color--edc-tinta);
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
}

.home .edc .wp-block-woocommerce-product-template .wc-block-product .wc-block-components-product-image {
	aspect-ratio: 4 / 5 !important;
	border-radius: 0;
}

.home .edc .wp-block-woocommerce-product-template .wc-block-product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home .edc .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--edc-display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--wp--preset--color--edc-tinta);
}

.home .edc .wp-block-woocommerce-product-template .wc-block-components-product-price {
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--edc-display);
	font-size: 19px;
	font-weight: 700;
	color: var(--wp--preset--color--edc-tinta);
	text-align: center;
}

.home .edc .wp-block-woocommerce-product-template .wc-block-components-product-rating {
	display: none;
}

.home .edc .wp-block-woocommerce-product-template .wp-block-button {
	margin-top: 12px;
}

.home .edc .wp-block-woocommerce-product-template .wp-block-button__link {
	width: 100%;
	min-height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--edc-cacao);
	color: var(--wp--preset--color--edc-manteca);
	font-family: var(--wp--preset--font-family--edc-display);
	font-size: 13px;
	font-weight: 600;
}

.home .edc .wp-block-woocommerce-product-template .wp-block-button__link:hover {
	background: var(--wp--preset--color--edc-bordo);
}

@media (max-width: 760px) {
	.home .edc .wp-block-woocommerce-product-collection {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.home .edc .edc-sec-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.home .edc .wp-block-woocommerce-product-template .wc-block-product {
		border-radius: 16px;
	}

	.home .edc .wp-block-woocommerce-product-template .wc-block-product .wc-block-components-product-image {
		aspect-ratio: 1 / 1 !important;
	}

	.home .edc .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title {
		font-size: 15px;
	}
}
