/**
 * Technical specification card.
 *
 * Card visual para ficha técnica de produto.
 *
 * @package NexoBase
 */

.nexo-tech-spec-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 24px;
	padding-left: 24px;
}

.nexo-tech-spec-card *,
.nexo-tech-spec-card *::before,
.nexo-tech-spec-card *::after {
	box-sizing: border-box;
}

.nexo-tech-spec-card__content {
	display: grid;
	grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
	gap: 48px;
	align-items: stretch;
	width: 100%;
	padding: 42px 48px 42px;
	border-radius: 14px;
	background: #f4f4f4;
	box-shadow:
		18px 0 28px rgba(15, 23, 42, 0.10),
		0 16px 34px rgba(15, 23, 42, 0.08);
	position: relative;
	overflow: visible;
}

.nexo-tech-spec-card__product-image {
	position: absolute;
	z-index: 1;
	left: -170px;
	bottom: -34px;
	width: clamp(420px, 42vw, 620px);
	max-width: none;
	height: auto;
	pointer-events: none;
	user-select: none;
}

.nexo-tech-spec-card__intro,
.nexo-tech-spec-card__table-wrap {
	position: relative;
	z-index: 2;
}

.nexo-tech-spec-card__intro {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	height: 100%;
	min-height: 0;
	padding-top: 0;
	grid-column: 1;
}

.nexo-tech-spec-card__title {
	margin: 0;
	color: #ff5a00;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.nexo-tech-spec-card__text {
	max-width: 300px;
	margin: 18px 0 0;
	color: #ff5a00;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.32;
}

.nexo-tech-spec-card__table-wrap {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	grid-column: 2;
}

.nexo-tech-spec-card__table {
	width: 100%;
	border-collapse: collapse;
	color: #111827;
	font-size: 12px;
	line-height: 1.3;
}

.nexo-tech-spec-card__table th,
.nexo-tech-spec-card__table td {
	padding: 8px 8px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid rgba(17, 24, 39, 0.32);
}

.nexo-tech-spec-card__table thead th {
	padding-top: 0;
	padding-bottom: 8px;
	color: #111827;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	border-bottom: 1px solid rgba(17, 24, 39, 0.45);
}

.nexo-tech-spec-card__table tbody td {
	font-weight: 600;
}

.nexo-tech-spec-card__table tbody td:first-child {
	width: 46%;
	font-weight: 700;
}

.nexo-tech-spec-card__table tbody tr:last-child td {
	border-bottom: 0;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
	.nexo-tech-spec-card__content {
		grid-template-columns: 1fr;
		gap: 34px;
		align-items: stretch;
		padding: 38px 34px 38px;
	}

	.nexo-tech-spec-card__intro {
		height: auto;
		padding-top: 0;
	}

	.nexo-tech-spec-card__title {
		font-size: 30px;
	}

	.nexo-tech-spec-card__text {
		max-width: 420px;
		margin-top: 16px;
	}

	.nexo-tech-spec-card__product-image {
		left: -120px;
		bottom: -28px;
		width: 460px;
		opacity: 0.22;
	}

	.nexo-tech-spec-card__intro,
	.nexo-tech-spec-card__table-wrap {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.nexo-tech-spec-card {
		padding-right: 18px;
		padding-left: 18px;
	}

	.nexo-tech-spec-card__content {
		gap: 28px;
		padding: 32px 22px 28px;
		border-radius: 12px;
		box-shadow:
			0 12px 28px rgba(15, 23, 42, 0.10);
	}

	.nexo-tech-spec-card__title {
		font-size: 26px;
		line-height: 1.08;
	}

	.nexo-tech-spec-card__text {
		margin-top: 14px;
		font-size: 13px;
	}

	.nexo-tech-spec-card__table {
		min-width: 640px;
		font-size: 12px;
	}

	.nexo-tech-spec-card__table thead th {
		font-size: 15px;
	}

	.nexo-tech-spec-card__product-image {
		display: none;
	}
}