/* ============================================================
 *  Catálogo de productos - San Luis Zinguería
 *  Estilos propios del listado (productos.php) y del
 *  detalle (producto.php). Respeta la paleta del sitio:
 *  #262626 (oscuro), #ed1c1c (acento), #ff7066 (botón),
 *  tipografías Archivo (títulos) y Roboto (texto).
 * ============================================================ */

.catalogo { padding: 80px 0; }
.catalogo .container { max-width: 1290px; }

/* ---------------- Filtros por categoría ---------------- */

.catalogo_filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 45px;
}

.catalogo_filtros-item {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #162739;
	background: #f3f4f6;
	border: 2px solid #f3f4f6;
	padding: 14px 24px;
	display: inline-block;
	transition: .3s ease-in-out;
}

.catalogo_filtros-item:hover {
	color: #262626;
	border-color: #ed1c1c;
	text-decoration: none;
}

.catalogo_filtros-item.is-active {
	background: #ed1c1c;
	border-color: #ed1c1c;
	color: #fff;
}

.catalogo_filtros-item .count {
	font-weight: 400;
	opacity: .7;
	margin-left: 6px;
}

/* ---------------- Grilla de productos ---------------- */

.catalogo_grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 576px) { .catalogo_grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .catalogo_grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .catalogo_grid { grid-template-columns: repeat(4, 1fr); } }

.producto-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e7e9ec;
	overflow: hidden;
	transition: .3s ease-in-out;
}

.producto-card:hover {
	box-shadow: 0 18px 40px rgba(22, 39, 57, .14);
	transform: translateY(-4px);
}

.producto-card_media {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
}

.producto-card_img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform .4s ease-in-out;
}

.producto-card:hover .producto-card_img { transform: scale(1.06); }

.producto-card_body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 25px 25px 30px;
}

.producto-card_cat {
	font-family: Archivo, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ed1c1c;
	margin-bottom: 12px;
	display: inline-block;
}

.producto-card_title {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.3;
	color: #162739;
	margin: 0 0 12px;
}

.producto-card_media:hover + .producto-card_body .producto-card_title,
.producto-card_title a:hover { color: #ed1c1c; text-decoration: none; }

.producto-card_text {
	font-size: 16px;
	line-height: 1.55;
	color: #5b6b7c;
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.producto-card_link {
	margin-top: auto;
	align-self: flex-start;
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #262626;
	border-bottom: 2px solid #ed1c1c;
	padding-bottom: 4px;
	transition: .3s ease-in-out;
}

.producto-card_link:hover { color: #ed1c1c; text-decoration: none; }
.producto-card_link i { margin-left: 6px; }

/* ---------------- Mensaje sin resultados ---------------- */

.catalogo_vacio {
	text-align: center;
	padding: 60px 20px;
	border: 2px dashed #e7e9ec;
	color: #5b6b7c;
	font-size: 18px;
}

/* ---------------- Detalle del producto ---------------- */

.producto-detalle { padding: 80px 0; }
.producto-detalle .container { max-width: 1290px; }

.producto-detalle_wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

.producto-detalle_media { flex: 1 1 420px; min-width: 0; }
.producto-detalle_info { flex: 1 1 420px; min-width: 0; }

.producto-detalle_img {
	width: 100%;
	max-height: 540px;
	object-fit: cover;
	display: block;
	background: #f3f4f6;
}

.producto-detalle_cat {
	font-family: Archivo, sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ed1c1c;
	display: inline-block;
	margin-bottom: 15px;
}

.producto-detalle_title {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: #162739;
	margin: 0 0 20px;
}

.producto-detalle_resumen {
	font-size: 19px;
	line-height: 1.6;
	color: #5b6b7c;
	margin-bottom: 25px;
}

.producto-detalle_contenido {
	font-size: 17px;
	line-height: 1.7;
	color: #162739;
	margin-bottom: 30px;
}

.producto-detalle_contenido img { max-width: 100%; height: auto; }
.producto-detalle_contenido ul { padding-left: 20px; }
.producto-detalle_contenido table { width: 100%; border-collapse: collapse; }
.producto-detalle_contenido table td,
.producto-detalle_contenido table th { border: 1px solid #e7e9ec; padding: 8px 12px; }

.producto-detalle_acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 10px;
}

.producto-btn {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	padding: 18px 30px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: .3s ease-in-out;
	border: 2px solid transparent;
}

.producto-btn--primary { background: #ff7066; color: #000810; }
.producto-btn--primary:hover { background: #ed1c1c; color: #fff; text-decoration: none; }

.producto-btn--ghost { background: transparent; color: #262626; border-color: #262626; }
.producto-btn--ghost:hover { background: #262626; color: #fff; text-decoration: none; }

/* Ficha con los datos del producto */

.producto-ficha {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	border-top: 1px solid #e7e9ec;
}

.producto-ficha_item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #e7e9ec;
	font-size: 16px;
}

.producto-ficha_label {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .5px;
	color: #5b6b7c;
}

.producto-ficha_value { color: #162739; text-align: right; }

/* ---------------- Precios (salida de precio_html) ---------------- */

.precio-box {
	background: #f7f8f9;
	border-left: 4px solid #ed1c1c;
	padding: 18px 22px;
	margin-bottom: 25px;
}

.precio-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
}

.precio-label {
	font-family: Archivo, sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #5b6b7c;
}

.precio-monto {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	color: #162739;
}

.precio-monto-2 {
	font-family: Archivo, sans-serif;
	font-weight: 600;
	font-size: 17px;
	color: #162739;
}

.precio-destacado .precio-monto { color: #ed1c1c; }

.precio-raw { font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px; color: #162739; }

.precio-nota { font-size: 14px; color: #5b6b7c; margin-top: 8px; }

.precio-box-card {
	margin-bottom: 20px;
	padding: 12px 15px;
}

.precio-box-card .precio-monto { font-size: 20px; }
.precio-box-card .precio-monto-2 { font-size: 15px; }
.precio-box-card .precio-label { font-size: 12px; }

/* ---------------- Relacionados ---------------- */

.producto-relacionados { padding-top: 20px; margin-top: 60px; border-top: 1px solid #e7e9ec; }

.producto-relacionados_title {
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 30px;
	color: #162739;
	margin-bottom: 30px;
}

@media (max-width: 767px) {
	.catalogo, .producto-detalle { padding: 50px 0; }
	.producto-detalle_title { font-size: 30px; }
	.producto-detalle_wrap { gap: 30px; }
}
