/* Product GRID */

.ide-product-grid-wrapper {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	width: 100%;
	margin: 0 !important;
}

@media (max-width: 1200px) {
	.ide-product-grid-wrapper {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 640px) {
	.ide-product-grid-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ide-product-item {	
	background: #fff;
	display: flex;
	flex-direction: column;
	text-decoration: none;

	/* necesario para el desplegable */
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.ide-product-item-image {	
	text-align: center;
}

.ide-product-item-image img {	
	width: 100%;
	height: auto;
}


/* Barra inferior */

.ide-product-name {
	color: #fff;
	height: 50px;
	min-height: 50px;
	padding: 0 12px;
	line-height:1.1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	background: var(--awb-color4);

	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;

	transition:
		height 0.3s ease,
		background-color 0.3s ease;	
}



/* Título */

.ide-product-name > span:first-child {
	text-align: center;
	display: inline-block;

	/*text-decoration-line: underline;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgb(92, 154, 235);*/

	font-size: 0.9em;

	flex-shrink: 0;
}


/* Descripción inicialmente oculta */

.ide-product-description {
	
	
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;

	font-size: 0.72em;
	line-height: 1.35em;
	font-weight: 400;
	text-align: center;

	margin-top: 0;

	opacity: 0;
	max-height: 0;

	text-decoration: none !important;

	transition:
		opacity 0.25s ease,
		max-height 0.3s ease;
}


/* Hover */

.ide-product-item:hover .ide-product-name {
	height: 100%;
	background: color-mix(in srgb, var(--awb-color2) 85%, transparent);

	padding: 18px;
}

.ide-product-item:hover .ide-product-description {
	opacity: 1;
	max-height: 300px;
	margin-top: 12px;
}