.ccat-wrap { position: relative; width: 100%; }

.ccat-carrusel {
	--ccat-gap: 12px;
	display: flex;
	gap: var(--ccat-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 14px;
	scrollbar-width: thin;
	scrollbar-color: #777 transparent;
}
.ccat-carrusel::-webkit-scrollbar { height: 6px; }
.ccat-carrusel::-webkit-scrollbar-thumb { background: #777; border-radius: 4px; }

.ccat-tarjeta {
	flex: 0 0 calc((100% - (var(--ccat-cols) - 1) * var(--ccat-gap)) / var(--ccat-cols));
	scroll-snap-align: start;
	position: relative;
	min-width: 0;
}

.ccat-foto {
	display: block;
	background: transparent;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.ccat-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ccat-corazon {
	position: absolute;
	top: 8px;
	right: 10px;
	font-size: 20px;
	line-height: 1;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #111;
}
.ccat-corazon.activo { color: #d00000; }

.ccat-precio { font-weight: 700; font-size: 14px; margin-top: 8px; }
.ccat-nombre { font-size: 14px; margin-top: 2px; }
.ccat-categoria { font-size: 12px; color: #888; margin-top: 2px; }

.ccat-whatsapp {
	display: inline-block;
	margin-top: 8px;
	padding: 7px 14px;
	background: #25d366;
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	border-radius: 4px;
}
.ccat-whatsapp:hover { opacity: .9; color: #fff; }

.ccat-flecha {
	position: absolute;
	top: 35%;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	background: #fff;
	color: #111;
	border: 1px solid #111;
	border-radius: 0;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}
.ccat-izq { left: 0; }
.ccat-der { right: 0; }

@media (max-width: 1024px) {
	.ccat-tarjeta {
		flex-basis: calc((100% - (var(--ccat-cols-t) - 1) * var(--ccat-gap)) / var(--ccat-cols-t));
	}
}
@media (max-width: 767px) {
	.ccat-tarjeta {
		flex-basis: calc((100% - (var(--ccat-cols-m) - 1) * var(--ccat-gap)) / var(--ccat-cols-m));
	}
	.ccat-flecha { width: 30px; height: 30px; font-size: 15px; }
}
