/* Categoria Showcase – every rule is scoped under .hcs-wrap to avoid theme/plugin conflicts. */

.hcs-wrap {
	--hcs-cols: 3;
	--hcs-gap: 24px;
	--hcs-img-h: 220px;
	--hcs-circle: 120px;
	--hcs-list-img-w: 200px;
	--hcs-radius: 14px;
	--hcs-ov: rgba(8, 20, 28, .78);
	--hcs-ph-bg: #0f5c5c;
	--hcs-ph-fg: #e8f4f2;
	--hcs-accent: #0f766e;
	--hcs-ink: #14232b;
	--hcs-muted: #5b6b73;
	--hcs-line: #dbe4e6;
	--hcs-speed: 500ms;
	--hcs-nav-size: 44px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	line-height: 1.4;
}

.hcs-wrap *,
.hcs-wrap *::before,
.hcs-wrap *::after {
	box-sizing: border-box;
}

.hcs-wrap .hcs-stage { position: relative; }

.hcs-wrap .hcs-track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--hcs-cols), minmax(0, 1fr));
	gap: var(--hcs-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Item (shared) ---------- */

.hcs-wrap .hcs-item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	color: var(--hcs-ink);
	text-decoration: none;
	border-radius: var(--hcs-radius);
	box-shadow: 0 1px 2px rgba(20, 35, 43, .06), 0 8px 24px rgba(20, 35, 43, .07);
	transition: transform .3s ease, box-shadow .3s ease, background-color .25s ease;
	-webkit-tap-highlight-color: transparent;
}

.hcs-wrap .hcs-item:hover,
.hcs-wrap .hcs-item:focus-visible {
	box-shadow: 0 2px 4px rgba(20, 35, 43, .08), 0 16px 36px rgba(20, 35, 43, .12);
	text-decoration: none;
}

.hcs-wrap .hcs-item:focus-visible {
	outline: 2px solid var(--hcs-accent);
	outline-offset: 3px;
}

.hcs-wrap .hcs-media {
	position: relative;
	display: block;
	height: var(--hcs-img-h);
	overflow: hidden;
	background: #e9eff0;
}

.hcs-wrap .hcs-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
	transition: transform .6s ease;
	-webkit-user-drag: none;
	user-select: none;
}

.hcs-wrap .hcs-item:hover .hcs-img,
.hcs-wrap .hcs-item:hover .hcs-placeholder {
	transform: scale(1.06);
}

.hcs-wrap .hcs-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--hcs-ph-bg);
	color: var(--hcs-ph-fg);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	transition: transform .6s ease;
}

.hcs-wrap .hcs-body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
}

.hcs-wrap .hcs-title {
	margin: 0;
	padding: 0;
	color: var(--hcs-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	transition: color .25s ease;
}

.hcs-wrap .hcs-count {
	display: block;
	color: var(--hcs-muted);
	font-size: 14px;
	font-weight: 500;
}

.hcs-wrap .hcs-desc {
	display: block;
	margin-top: 4px;
	color: var(--hcs-muted);
	font-size: 14px;
	line-height: 1.55;
}

.hcs-wrap .hcs-arrow {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eaf1f1;
	color: var(--hcs-ink);
	transition: transform .3s ease, background-color .25s ease, color .25s ease;
}

.hcs-wrap .hcs-arrow svg { display: block; width: 16px; height: 16px; }

.hcs-wrap .hcs-item:hover .hcs-arrow {
	background: var(--hcs-accent);
	color: #fff;
	transform: translateX(3px);
}

.hcs-wrap.hcs-has-arrow .hcs-body { padding-right: 64px; }

/* ---------- Skin: card ---------- */

.hcs-wrap.hcs-skin-card .hcs-item:hover .hcs-title { color: var(--hcs-accent); }

/* ---------- Skin: overlay ---------- */

.hcs-wrap.hcs-skin-overlay .hcs-item {
	min-height: var(--hcs-img-h);
	background: #14232b;
	color: #fff;
}

.hcs-wrap.hcs-skin-overlay .hcs-media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
}

.hcs-wrap.hcs-skin-overlay .hcs-item::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: linear-gradient(to top, var(--hcs-ov) 0%, rgba(0, 0, 0, 0) 78%);
	pointer-events: none;
}

.hcs-wrap.hcs-skin-overlay .hcs-body {
	z-index: 2;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 60px;
}

.hcs-wrap.hcs-skin-overlay .hcs-title,
.hcs-wrap.hcs-skin-overlay .hcs-desc { color: #fff; }

.hcs-wrap.hcs-skin-overlay .hcs-count { color: rgba(255, 255, 255, .82); }

.hcs-wrap.hcs-skin-overlay .hcs-arrow { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Skin: circle ---------- */

.hcs-wrap.hcs-skin-circle .hcs-item {
	align-items: center;
	padding: 12px 8px;
	overflow: visible;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

.hcs-wrap.hcs-skin-circle .hcs-media {
	flex: 0 0 auto;
	width: var(--hcs-circle);
	height: var(--hcs-circle);
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(20, 35, 43, .1), 0 10px 24px rgba(20, 35, 43, .14);
}

.hcs-wrap.hcs-skin-circle .hcs-placeholder { font-size: calc(var(--hcs-circle) * .38); }

.hcs-wrap.hcs-skin-circle .hcs-body {
	align-items: center;
	padding: 14px 8px 0;
	text-align: center;
}

/* ---------- Skin: minimal ---------- */

.hcs-wrap.hcs-skin-minimal .hcs-item {
	flex-direction: row;
	align-items: center;
	background: transparent;
	border-bottom: 1px solid var(--hcs-line);
	border-radius: 0;
	box-shadow: none;
}

.hcs-wrap.hcs-skin-minimal .hcs-media { display: none; }

.hcs-wrap.hcs-skin-minimal .hcs-body {
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 18px 4px;
}

.hcs-wrap.hcs-skin-minimal .hcs-arrow {
	top: 50%;
	bottom: auto;
	right: 4px;
	margin-top: -17px;
	background: transparent;
}

.hcs-wrap.hcs-skin-minimal.hcs-has-arrow .hcs-body { padding-right: 48px; }

.hcs-wrap.hcs-skin-minimal .hcs-item:hover .hcs-title { color: var(--hcs-accent); }

.hcs-wrap.hcs-skin-minimal .hcs-item:hover { box-shadow: none; }

/* ---------- Skin: pill ---------- */

.hcs-wrap.hcs-skin-pill .hcs-track {
	display: flex;
	flex-wrap: wrap;
}

.hcs-wrap.hcs-skin-pill .hcs-item {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: center;
	max-width: 100%;
	border: 1px solid var(--hcs-line);
	border-radius: 999px;
	box-shadow: none;
}

.hcs-wrap.hcs-skin-pill .hcs-item:hover {
	background: var(--hcs-ink);
	box-shadow: none;
}

.hcs-wrap.hcs-skin-pill .hcs-media,
.hcs-wrap.hcs-skin-pill .hcs-desc,
.hcs-wrap.hcs-skin-pill .hcs-arrow { display: none; }

.hcs-wrap.hcs-skin-pill .hcs-body {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
}

.hcs-wrap.hcs-skin-pill .hcs-title { font-size: 15px; font-weight: 600; }

.hcs-wrap.hcs-skin-pill .hcs-count {
	padding: 2px 9px;
	border-radius: 999px;
	background: #eaf1f1;
	font-size: 12px;
}

.hcs-wrap.hcs-skin-pill .hcs-item:hover .hcs-title { color: #fff; }

/* ---------- Layout: list ---------- */

.hcs-wrap.hcs-layout-list .hcs-track { grid-template-columns: minmax(0, 1fr); }

.hcs-wrap.hcs-layout-list.hcs-skin-card .hcs-item {
	flex-direction: row;
	align-items: stretch;
}

.hcs-wrap.hcs-layout-list.hcs-skin-card .hcs-media {
	flex: 0 0 var(--hcs-list-img-w);
	height: auto;
	min-height: 130px;
}

.hcs-wrap.hcs-layout-list.hcs-skin-card .hcs-body { justify-content: center; }

.hcs-wrap.hcs-layout-list.hcs-skin-circle .hcs-item {
	flex-direction: row;
	text-align: left;
}

.hcs-wrap.hcs-layout-list.hcs-skin-circle .hcs-body {
	align-items: flex-start;
	padding: 0 0 0 20px;
	text-align: left;
}

.hcs-wrap.hcs-layout-list.hcs-skin-pill .hcs-track {
	flex-direction: column;
	align-items: flex-start;
}

@media (max-width: 520px) {
	.hcs-wrap.hcs-layout-list.hcs-skin-card .hcs-item { flex-direction: column; }
	.hcs-wrap.hcs-layout-list.hcs-skin-card .hcs-media {
		flex-basis: auto;
		height: var(--hcs-img-h);
	}
}

/* ---------- Layout: carousel ---------- */

.hcs-wrap.hcs-layout-carousel .hcs-viewport {
	/* vertical bleed keeps card shadows from being clipped */
	margin: -12px 0 -28px;
	padding: 12px 0 28px;
	overflow: hidden;
}

.hcs-wrap.hcs-layout-carousel .hcs-track {
	display: flex;
	flex-wrap: nowrap;
	cursor: grab;
	touch-action: pan-y;
	will-change: transform;
	transition: transform var(--hcs-speed) cubic-bezier(.22, .61, .36, 1);
}

.hcs-wrap.hcs-layout-carousel.hcs-dragging .hcs-track {
	cursor: grabbing;
	user-select: none;
}

.hcs-wrap.hcs-layout-carousel .hcs-item {
	flex: 0 0 calc((100% - (var(--hcs-cols) - 1) * var(--hcs-gap)) / var(--hcs-cols));
}

.hcs-wrap.hcs-layout-carousel.hcs-skin-pill .hcs-item { flex: 0 0 auto; }

.hcs-wrap .hcs-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hcs-nav-size);
	height: var(--hcs-nav-size);
	min-height: 0;
	margin: calc(var(--hcs-nav-size) / -2) 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 35, 43, .12), 0 8px 20px rgba(20, 35, 43, .18);
	color: var(--hcs-ink);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.hcs-wrap .hcs-prev { left: 10px; }
.hcs-wrap .hcs-next { right: 10px; }

.hcs-wrap .hcs-nav svg {
	display: block;
	width: 45%;
	height: 45%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hcs-wrap .hcs-nav:hover,
.hcs-wrap .hcs-nav:focus-visible {
	background: var(--hcs-ink);
	color: #fff;
}

.hcs-wrap .hcs-nav:focus-visible,
.hcs-wrap .hcs-dot:focus-visible {
	outline: 2px solid var(--hcs-accent);
	outline-offset: 2px;
}

.hcs-wrap .hcs-nav[disabled] {
	opacity: .35;
	pointer-events: none;
}

.hcs-wrap .hcs-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.hcs-wrap .hcs-dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c5d2d5;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: width .3s ease, background-color .3s ease;
}

.hcs-wrap .hcs-dot.is-active {
	width: 26px;
	background: var(--hcs-accent);
}

.hcs-wrap.hcs-static .hcs-nav,
.hcs-wrap.hcs-static .hcs-dots { display: none; }

@media (max-width: 767px) {
	.hcs-wrap { --hcs-nav-size: 38px; }
	.hcs-wrap .hcs-prev { left: 6px; }
	.hcs-wrap .hcs-next { right: 6px; }
}

/* ---------- Editor empty state ---------- */

.hcs-empty {
	padding: 28px;
	border: 1px dashed #b5c4c7;
	border-radius: 10px;
	color: #5b6b73;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.hcs-wrap *,
	.hcs-wrap *::before,
	.hcs-wrap *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
