/* ══════════════════════════════════════
   Category Gallery — Expanding Panels
   ══════════════════════════════════════ */

.nco-cat-gallery {
	margin: 0 0 32px;
	padding: 0 20px;
}

/* ── Flex row of panels ── */
.nco-cat-gallery-panels {
	display: flex;
	height: 380px;
	gap: 6px;
	overflow: hidden;
}

/* ── Single panel ── */
.nco-cat-panel {
	position: relative;
	flex: 1 1 0%;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	border-radius: 0;
	transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nco-cat-panel:first-child { border-radius: 16px 0 0 16px; }
.nco-cat-panel:last-child  { border-radius: 0 16px 16px 0; }

.nco-cat-panel:hover {
	flex: 3 1 0%;
}

/* ── Background image ── */
.nco-cat-panel-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.nco-cat-panel-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nco-cat-panel:hover .nco-cat-panel-bg img {
	transform: scale(1.06);
}

/* ── Gradient overlay — always present, deepens on hover ── */
.nco-cat-panel-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.05) 30%,
		rgba(0, 0, 0, 0.65) 100%
	);
	transition: background 0.4s ease;
}

.nco-cat-panel:hover .nco-cat-panel-overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.15) 20%,
		rgba(0, 0, 0, 0.82) 100%
	);
}

/* ── Tab: hide entirely (replaced by body label) ── */
.nco-cat-panel-tab {
	display: none;
}

/* ── Bottom content block — always anchored to bottom ── */
.nco-cat-panel-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	padding: 20px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Category name — always visible, horizontal, clean */
.nco-cat-panel-name {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.3;
	letter-spacing: 0.3px;
	text-shadow: 0 1px 8px rgba(0,0,0,0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* Sits at bottom always */
	transform: translateY(0);
	transition: font-size 0.4s ease, transform 0.4s ease, margin 0.4s ease;
}

/* On expand: name grows and lifts to make room for CTA */
.nco-cat-panel:hover .nco-cat-panel-name {
	font-size: 22px;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
	white-space: normal;
}

/* CTA pill — hidden until expanded */
.nco-cat-panel-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 50px;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2px;
	width: fit-content;
	/* Hidden by default */
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s,
	            background 0.2s ease, border-color 0.2s ease;
	pointer-events: none;
}

.nco-cat-panel:hover .nco-cat-panel-cta {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.nco-cat-panel-cta:hover {
	background: rgba(255,255,255,0.28);
	border-color: rgba(255,255,255,0.6);
}

.nco-cat-panel-cta i {
	font-size: 11px;
	transition: transform 0.2s ease;
}

.nco-cat-panel-cta:hover i {
	transform: translateX(3px);
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 1092px) {
	.nco-cat-gallery-panels {
		height: 280px;
	}

	.nco-cat-panel:hover .nco-cat-panel-name {
		font-size: 18px;
	}
}

@media (max-width: 600px) {
	.nco-cat-gallery{
		padding: 5px;
	}
	.nco-cat-gallery-panels {
		flex-direction: column;
		height: auto;
		gap: 8px;
	}

	.nco-cat-panel {
		flex: none;
		height: 130px;
		border-radius: 12px !important;
		transition: none;
	}

	.nco-cat-panel:hover {
		flex: none;
	}

	/* Always show full content on mobile */
	.nco-cat-panel-name {
		font-size: 16px !important;
		white-space: normal;
		margin-bottom: 10px;
	}

	.nco-cat-panel-cta {
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition: none;
		font-size: 12px;
		padding: 7px 16px;
	}

	.nco-cat-panel-body {
		padding: 14px 16px 18px;
	}
}
