/**
 * TECH-NEXS product detail pages (/products/{slug}/).
 * Builds on kh-approach-step.css (shared tn-step-* layout); only the
 * product-specific pieces live here.
 */

/* Hero actions */
.tn-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

/* Features */
.tn-product-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.tn-product-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--tn-light-blue), var(--tn-primary));
	color: #fff;
	font-size: 19px;
	margin: 0 0 16px;
}

/* Deployment chips */
.tn-product-deploy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	font-size: 14px;
}

.tn-product-deploy strong {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tn-dark);
	margin-right: 4px;
}

.tn-product-deploy strong i {
	color: var(--tn-primary);
}

.tn-product-deploy span {
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(8, 120, 255, 0.1);
	color: var(--tn-primary);
	font-weight: 600;
	font-size: 13px;
}

/* Other products */
/* Column count comes from the template (--tn-others-cols); products show 5. */
.tn-product-others {
	display: grid;
	grid-template-columns: repeat(var(--tn-others-cols, 5), 1fr);
	gap: 16px;
	margin: 0 0 48px;
}

.tn-product-other {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 16px;
	background: #fff;
	border: 1px solid var(--tn-border);
	border-radius: 14px;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tn-product-other:hover {
	transform: translateY(-3px);
	border-color: rgba(8, 120, 255, 0.35);
	box-shadow: 0 14px 30px rgba(8, 31, 59, 0.1);
}

.tn-product-other .tn-product-feature-icon {
	margin: 0 0 12px;
}

/* !important: Elementor Kit's a:hover color would otherwise recolor text
   inside the card link. */
.tn-product-other strong {
	color: var(--tn-dark) !important;
	font-size: 14.5px;
	font-weight: 800;
	margin-bottom: 4px;
}

.tn-product-other:hover strong {
	color: var(--tn-primary) !important;
}

.tn-product-other small {
	color: var(--tn-muted) !important;
	font-size: 12.5px;
	line-height: 1.5;
	margin-bottom: 16px;
}

.tn-product-other .tn-pill-btn {
	margin-top: auto;
}

@media (max-width: 1199px) {
	.tn-product-others {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.tn-product-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.tn-product-features,
	.tn-product-others {
		grid-template-columns: 1fr;
	}
}

/* Feature "More details" toggle (native <details>). Cards are column flex
   so the toggle sits at the bottom and lines up across a row. */
.tn-product-features .tn-step-activity {
	display: flex;
	flex-direction: column;
}

.tn-product-features .tn-step-activity > p {
	margin-bottom: 18px;
}

.tn-feature-more {
	margin-top: auto;
	border-top: 1px solid var(--tn-border);
	padding-top: 14px;
}

.tn-feature-more summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	list-style: none;
	cursor: pointer;
	user-select: none;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--tn-primary);
}

.tn-feature-more summary::-webkit-details-marker {
	display: none;
}

.tn-feature-more summary::marker {
	content: "";
}

/* Round "+" that turns into "−" when open. */
.tn-feature-more-plus {
	position: relative;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--tn-light-blue), var(--tn-primary));
	box-shadow: 0 6px 14px rgba(8, 120, 255, 0.28);
	transition: transform 0.25s ease;
}

.tn-feature-more-plus::before,
.tn-feature-more-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transform: translate(-50%, -50%);
	transition: opacity 0.25s ease;
}

.tn-feature-more-plus::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.tn-feature-more[open] .tn-feature-more-plus {
	transform: rotate(180deg);
}

.tn-feature-more[open] .tn-feature-more-plus::after {
	opacity: 0;
}

.tn-feature-points {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.tn-feature-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--tn-dark);
}

.tn-feature-points i {
	flex: 0 0 auto;
	margin-top: 4px;
	font-size: 11px;
	color: var(--tn-primary);
}
