/**
 * Shortcode: Full Test Lane
 *
 * Layout: banner xanh full-width trên cùng, bên dưới là 2 cột (gallery | info).
 */

/* ===== Reset cục bộ ===== */
.ftl *,
.ftl *::before,
.ftl *::after { box-sizing: border-box; }

.ftl button {
	cursor: pointer;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
}

.ftl img { display: block; max-width: 100%; }

/* ===== Banner full-width ===== */
.ftl__banner {
	background: #ff9900;
	padding: 22px 32px;
	text-align: center;
}

.ftl__title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.ftl__model {
	margin: 0;
	font-size: 17px;
	font-weight: 400;
	color: #fff;
}

/* ===== Body 2 cột ===== */
.ftl__body {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	padding: 28px 0 0;
}

/* ===== Cột trái: Gallery ===== */
.ftl__gallery {
	flex: 0 0 40%;
	max-width: 40%;
}

/* Ảnh chính */
.ftl__main {
	position: relative;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 4px;
	overflow: hidden;
	cursor: zoom-in;
}

.ftl__main-img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

/* Nút zoom */
.ftl__zoom {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 50%;
	color: #555;
	transition: background 0.15s ease, color 0.15s ease;
}

.ftl__zoom:hover { background: #fff; color: #0099D8; }

/* Hàng thumbnail */
.ftl__thumbs-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
}

.ftl__arr {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0099D8;
	transition: opacity 0.15s ease;
}

.ftl__arr:hover { opacity: 0.7; }

/* Viewport clip: lấy toàn bộ chiều rộng còn lại, ẩn thumb thừa */
.ftl__thumbs-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

/* Inner strip trượt ngang qua JS */
.ftl__thumbs {
	display: flex;
	gap: 8px;
	transition: transform 0.3s ease;
	will-change: transform;
}

/* Thumb cố định 100×100, gap được JS tính đều */
.ftl__th {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	border: 2px solid #ddd;
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.ftl__th:hover,
.ftl__th.is-active { border-color: #0099D8; }

.ftl__th-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== Cột phải: Info ===== */
.ftl__info {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

/* Tab label */
.ftl__tab {
	padding-bottom: 14px;
	border-bottom: 1px solid #ddd;
	font-size: 32px;
	font-weight: 600;
	color: #444;
	margin-bottom: 16px;
	line-height: 1.3;
}

/* Mô tả */
.ftl__desc {
	font-size: 14px;
	line-height: 1.75;
	color: #555;
}

.ftl__desc p { margin: 0 0 12px; }

/* Bullet list */
.ftl__features {
	margin: 12px 0 0;
	padding-left: 20px;
	list-style: disc;
}

.ftl__features li {
	margin-bottom: 5px;
	color: #444;
}

/* ===== Icons 2×2 ===== */
.ftl__icons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 32px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
}

.ftl__icon-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ftl__icon-img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
	opacity: 0.75;
}

.ftl__icon-label {
	font-size: 13px;
	color: #333;
	line-height: 1.4;
}

/* ===== Tabs section ===== */
.ftl__tabs-section {
	margin-top: 40px;
}

/* Nav bar */
.ftl__tabs-nav {
	display: flex;
	align-items: center;
	gap: 0;
	border-bottom: 2px solid #e8e8e8;
	padding-bottom: 0;
	flex-wrap: wrap;
}

.ftl__tab-sep {
	color: #ccc;
	padding: 0 12px;
	font-size: 14px;
	line-height: 1;
	user-select: none;
}

.ftl__tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 4px 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #888;
	cursor: pointer;
	position: relative;
	white-space: nowrap;
	user-select: none;
	transition: color 0.15s ease;
}

.ftl__tab-btn:hover {
	color: #333;
}

.ftl__tab-btn.is-active {
	color: #1a1a1a;
}

/* Gạch dưới tab active */
.ftl__tab-btn.is-active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: #ff9900;
}

/* Chấm vuông vàng bên trái tab active */
.ftl__tab-dot {
	width: 10px;
	height: 10px;
	background: #ff9900;
	flex-shrink: 0;
	display: block;
}

/* Panels */
.ftl__tab-panel {
	padding: 28px 0;
}

.ftl__tab-panel[hidden] {
	display: none;
}

.ftl__tab-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* ===== Spec tables (Technical Data / Operating / Options / Standards) ===== */
.ftl__spec-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
	align-items: start;
}

.ftl__spec-group {
	margin-bottom: 32px;
}

.ftl__spec-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #1a1a1a;
	text-transform: uppercase;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #1a1a1a;
}

.ftl__spec-sub {
	font-size: 11px;
	font-weight: 400;
	text-transform: none;
	color: #888;
	letter-spacing: 0;
}

.ftl__spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.ftl__spec-table tr {
	border-bottom: 1px solid #eee;
}

.ftl__spec-table tr:last-child {
	border-bottom: none;
}

.ftl__spec-lbl {
	color: #999;
	padding: 10px 16px 10px 12px;
	width: 40%;
	vertical-align: top;
}

.ftl__spec-val {
	color: #222;
	padding: 10px 12px;
	vertical-align: top;
}

@media (max-width: 767px) {
	.ftl__spec-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ===== Lightbox ===== */
.ftl__lb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	opacity: 1;
	transition: opacity 0.3s ease;
}

.ftl__lb[hidden] {
	display: flex;
	opacity: 0;
	pointer-events: none;
}

.ftl__lb-img {
	max-width: 70vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
}

.ftl__lb-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #fff;
	transition: background 0.2s ease, transform 0.15s ease;
	z-index: 10;
}

.ftl__lb-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg) scale(1.08);
}

.ftl__lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #fff;
	transition: background 0.2s ease;
	z-index: 10;
}

.ftl__lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.ftl__lb-nav--prev { left: 20px; }
.ftl__lb-nav--next { right: 20px; }

.ftl__lb-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 16px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	z-index: 10;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
	.ftl__main-img { height: 320px; }
	.ftl__body { gap: 28px; }
	.ftl__gallery { flex: 0 0 45%; max-width: 45%; }
	.ftl__tab { font-size: 26px; }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
	.ftl__banner { padding: 18px 20px; }
	.ftl__title { font-size: 20px; }

	.ftl__body {
		flex-direction: column;
		gap: 20px;
		padding-top: 20px;
	}

	.ftl__gallery { flex: none; max-width: 100%; width: 100%; }
	.ftl__main-img { height: 240px; }

	.ftl__lb-img { max-width: 90vw; max-height: 70vh; }
	.ftl__lb-nav { width: 40px; height: 40px; }
	.ftl__lb-nav--prev { left: 10px; }
	.ftl__lb-nav--next { right: 10px; }
	.ftl__lb-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}