/**
 * Catálogo de productos — Bilpa
 *
 * Todo cuelga de .mvd-cat: ninguna regla puede alcanzar al resto del sitio.
 * Las familias, tamaños y colores son los medidos sobre bilpa.com.uy el 26/08/2026:
 *   cuerpo   Apex Book  20px/26px  peso 500  #666666
 *   título   Apex Bold  27.2px     peso 500  #000000
 *   enlace   #2ea3f2      corporativo #004a98      líneas #e2e2e2      fondo suave #f2f2f2
 */

.mvd-cat {
	background: #ffffff;
}

.mvd-cat .mvd-cat-row {
	width: 94%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 34px 0 80px;
}

/* ------------------------------------------------------------- migas */

.mvd-cat .mvd-cat-migas {
	font-family: 'Apex Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: #8b939b;
	margin-bottom: 18px;
}

.mvd-cat .mvd-cat-migas a {
	color: #8b939b;
	text-decoration: none;
}

.mvd-cat .mvd-cat-migas a:hover,
.mvd-cat .mvd-cat-migas a:focus-visible {
	color: #004a98;
}

.mvd-cat .mvd-cat-migas .sep {
	margin: 0 8px;
	color: #c7c7c7;
}

.mvd-cat .mvd-cat-migas [aria-current="page"] {
	color: #313131;
}

/* ---------------------------------------------------------- cabezales */

.mvd-cat .mvd-cat-titulo {
	font-family: 'Apex Bold', Helvetica, Arial, Lucida, sans-serif;
	font-size: 27.2px;
	font-weight: 500;
	line-height: 35.36px;
	color: #000000;
	margin: 0 0 6px;
	padding: 0;
}

.mvd-cat .mvd-cat-sku {
	font-family: 'Apex Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #8b939b;
	margin: 0;
	padding: 0;
}

.mvd-cat .mvd-cat-sku span {
	color: #313131;
}

.mvd-cat .mvd-cat-cabezal {
	margin-bottom: 26px;
}

.mvd-cat .mvd-cat-sub {
	font-family: 'Apex Bold', Helvetica, Arial, Lucida, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: #000000;
	margin: 30px 0 10px;
	padding: 0;
}

.mvd-cat .mvd-cat-sub-rel {
	margin-top: 56px;
	padding-top: 26px;
	border-top: 1px solid #e2e2e2;
}

.mvd-cat .mvd-cat-intro {
	margin-bottom: 8px;
	max-width: 70ch;
}

/* ------------------------------------------------------ ramas del árbol */

.mvd-cat .mvd-cat-ramas {
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mvd-cat .mvd-cat-ramas li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvd-cat .mvd-cat-ramas a {
	display: block;
	font-family: 'Apex Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #313131;
	text-decoration: none;
	border: 1px solid #e2e2e2;
	padding: 11px 18px;
	transition: border-color .18s ease, color .18s ease;
}

.mvd-cat .mvd-cat-ramas a:hover,
.mvd-cat .mvd-cat-ramas a:focus-visible {
	border-color: #004a98;
	color: #004a98;
}

/* ----------------------------------------------------------- grilla */

.mvd-cat .mvd-cat-grilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 26px;
	margin-top: 8px;
}

.mvd-cat .mvd-cat-item {
	border: 1px solid #e2e2e2;
	background: #ffffff;
}

.mvd-cat .mvd-cat-item-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.mvd-cat .mvd-cat-thumb {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	background: #ffffff;
	padding: 14px;
	overflow: hidden;
}

.mvd-cat .mvd-cat-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: transform .25s ease;
}

.mvd-cat .mvd-cat-item-link:hover .mvd-cat-thumb img {
	transform: scale(1.04);
}

.mvd-cat .mvd-cat-item-cuerpo {
	display: block;
	padding: 14px 15px 17px;
	border-top: 1px solid #e2e2e2;
}

.mvd-cat .mvd-cat-item-nombre {
	display: block;
	font-family: 'Apex Bold', Helvetica, Arial, Lucida, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: #313131;
}

.mvd-cat .mvd-cat-item-link:hover .mvd-cat-item-nombre,
.mvd-cat .mvd-cat-item-link:focus-visible .mvd-cat-item-nombre {
	color: #004a98;
}

.mvd-cat .mvd-cat-item-sku {
	display: block;
	font-family: 'Apex Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #8b939b;
	margin-top: 6px;
}

.mvd-cat .mvd-cat-item-res {
	display: block;
	font-family: 'Apex Book', Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #666666;
	margin-top: 9px;
}

/* ------------------------------------------------------------ ficha */

.mvd-cat .mvd-cat-ficha {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: 46px;
	align-items: start;
}

.mvd-cat .mvd-cat-ficha-img {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 28px;
}

.mvd-cat .mvd-cat-ficha-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.mvd-cat .mvd-cat-ficha-cuerpo {
	max-width: 66ch;
}

.mvd-cat .mvd-cat-cta {
	margin: 28px 0 0;
	padding: 0;
}

/* Misma geometría que el botón "Contacte Bilpa" del sitio:
   Apex Bold 14px/500, borde de 1px, radio 1px, padding 9px 25px.
   Cambia sólo el color, porque acá el fondo es blanco y no negro. */
.mvd-cat .mvd-cat-cta a {
	display: inline-block;
	font-family: 'Apex Bold', Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	color: #004a98;
	background: transparent;
	border: 1px solid #004a98;
	border-radius: 1px;
	text-decoration: none;
	padding: 9px 25px;
	transition: background-color .18s ease, color .18s ease;
}

.mvd-cat .mvd-cat-cta a:hover,
.mvd-cat .mvd-cat-cta a:focus-visible {
	background: #004a98;
	color: #ffffff;
}

/* --------------------------------------------------------- accesible */

.mvd-cat a:focus-visible {
	outline: 2px solid #004a98;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.mvd-cat * {
		transition: none !important;
	}
	.mvd-cat .mvd-cat-item-link:hover .mvd-cat-thumb img {
		transform: none;
	}
}

/* ------------------------------------------------------------ móvil */

@media (max-width: 980px) {
	.mvd-cat .mvd-cat-ficha {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.mvd-cat .mvd-cat-ficha-img {
		max-width: 420px;
	}
}

@media (max-width: 640px) {
	.mvd-cat .mvd-cat-row {
		padding: 22px 0 56px;
	}
	.mvd-cat .mvd-cat-titulo {
		font-size: 23px;
		line-height: 1.3;
	}
	.mvd-cat .mvd-cat-grilla {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
}
