/* 5thAXIS — Product Type Tab widget */

.axis5th-ptt {
	--axis5th-ptt-active: var(--e-global-color-primary); /* #DD2828 */
	--axis5th-ptt-sep:    #E4E4E7;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

/* ── Tab list (left) ─────────────────────────────────────────────── */

.axis5th-ptt__tabs {
	flex: 0 0 40%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.axis5th-ptt__tab {
	display: block;
	width: 100%;
	text-align: left;
	padding: 16px 21px;
	background: transparent;
	/* all tabs carry a 1px border to avoid layout shift on active */
	border: 1px solid #E4E4E7;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--e-global-color-text); /* global font color */
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}


/* Active & hover: white bg + white border + primary red text */
.axis5th-ptt__tab.is-active,
.axis5th-ptt__tab:hover {
	background: #FFFFFF;
	border-color: #6B7280;
	color: var(--e-global-color-primary);
}

/* ── Panels (right) ──────────────────────────────────────────────── */

.axis5th-ptt__panels {
	flex: 1 1 0;
	min-width: 0;
	/* stretch to match the tab column height */
	align-self: stretch;
	height: 359px;
}

.axis5th-ptt__panel {
	display: none;
	height: 100%;
}

.axis5th-ptt__panel.is-active {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ── Image wrap ──────────────────────────────────────────────────── */

.axis5th-ptt__img-wrap {
	position: relative;
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
}

.axis5th-ptt__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Caption overlay ─────────────────────────────────────────────── */

.axis5th-ptt__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.75rem 1.25rem;
	background: rgba(0, 0, 0, 0.60);
	color: #FAFAFA; /* white */
	font-size: 16px;
	line-height: 1.5;
}

/* ── Description-only (no image) ─────────────────────────────────── */

.axis5th-ptt__desc-only {
	padding: 1.5rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #18181B; /* b-black */
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.axis5th-ptt {
		flex-direction: column;
	}

	.axis5th-ptt__tabs {
		flex: none;
		width: 100%;
	}

	.axis5th-ptt__panels {
		width: 100%;
	}
	.axis5th-ptt__panel.is-active{
		height: 226px;
	}

	.axis5th-ptt__img-wrap {
		aspect-ratio: 16 / 9;
	}

	.axis5th-ptt__img {
		height: 100% !important;
		width: 100%;
		object-fit: cover;
	}
	.axis5th-ptt__tab{
		white-space: normal;
	    padding: 12px 14px;
		font-size: 14px;
    	line-height: 16px;
	}
}
