/**
 * Featured Products v2 - 扩展 tktevgo 原版 product-showcase 布局
 */
.featured-products-v2 .featured-tabs-wrap {
	margin-top: 24px;
	margin-bottom: 4px;
}

.featured-products-v2 .featured-tabs-pill {
	display: inline-flex;
	border: 2px solid #dcdcdc;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.featured-products-v2 .featured-cat-tab {
	display: inline-block;
	margin: 0;
	padding: 11px 36px;
	border: none;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	line-height: 1.4;
	min-width: 130px;
	transition: background 0.3s ease, color 0.3s ease;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.featured-products-v2 .featured-cat-tab:first-child {
	border-right: 1px solid #dcdcdc;
}

.featured-products-v2 .featured-cat-tab:hover {
	background: rgba(53, 176, 74, 0.08);
	color: #35b04a;
	text-decoration: none;
}

.featured-products-v2 .featured-cat-tab.active {
	background: #35b04a;
	color: #fff;
}

.featured-products-v2 a.featured-cat-tab.featured-cat-tab-link {
	text-decoration: none;
	display: inline-block;
	box-sizing: border-box;
}

/* 面板切换动效 - 与 TVS Also Like 模块 fadeIn 一致 */
.featured-products-v2 .featured-panel {
	display: none;
	width: 100%;
	animation: featuredPanelFadeIn 0.5s ease-in-out;
}

.featured-products-v2 .featured-panel.active {
	display: block;
}

.featured-products-v2 .featured-panel[hidden],
.featured-products-v2 .featured-main-panel[hidden] {
	display: none !important;
}

/* 右侧大图：与左侧 panel 同步 Tab 切换 */
.featured-products-v2 .product-image-wrapper {
	position: relative;
}

.featured-products-v2 .featured-main-panel {
	display: none;
	width: 100%;
	animation: featuredPanelFadeIn 0.5s ease-in-out;
}

.featured-products-v2 .featured-main-panel.active {
	display: block;
}

@keyframes featuredPanelFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 缩略图 + 左右箭头（两图完整展示，箭头不遮挡） */
.featured-products-v2 .featured-thumbs-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.featured-products-v2 .featured-thumbs-row .product-names-row {
	grid-column: 2;
	min-width: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	flex-wrap: nowrap;
	overflow: visible;
	padding: 4px 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.featured-products-v2 .featured-thumbs-row .product-names-row::-webkit-scrollbar {
	display: none;
}

.featured-products-v2 .featured-nav-btn {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 2px solid #35b04a;
	border-radius: 50%;
	background: #fff;
	color: #35b04a;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

.featured-products-v2 .featured-nav-prev {
	grid-column: 1;
}

.featured-products-v2 .featured-nav-next {
	grid-column: 3;
}

.featured-products-v2 .featured-nav-btn:hover {
	background: #35b04a;
	color: #fff;
}

.featured-products-v2 .featured-nav-btn i {
	font-size: 15px;
	pointer-events: none;
}

.featured-products-v2 .product-name-tab {
	cursor: pointer;
	flex: 1 1 0;
	min-width: 0;
	max-width: calc(100% / 2);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0 !important;
}

.featured-products-v2 .featured-nav-btn[hidden] {
	display: none !important;
}

.featured-products-v2 .featured-thumbs-row--single {
	grid-template-columns: minmax(0, 1fr);
}

.featured-products-v2 .featured-thumbs-row--single .product-names-row {
	grid-column: 1;
}

.featured-products-v2 .product-name-tab:hover,
.featured-products-v2 .product-name-tab.active {
	transform: none !important;
	box-shadow: none !important;
}

.featured-products-v2 .product-name-tab .product-name-image {
	max-height: 183px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.featured-products-v2 .product-name-tab.active::before {
	width: min(180px, 92%);
	height: min(180px, 92%);
	max-width: 180px;
	max-height: 180px;
}

.featured-products-v2 .product-model-row {
	margin-top: 0;
	width: 100%;
}

.featured-products-v2 .product-models-container {
	justify-content: center;
}

.featured-products-v2 .product-showcase_left {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

@media (max-width: 991px) {
	.featured-products-v2 .featured-thumbs-row {
		grid-template-columns: 38px minmax(0, 1fr) 38px;
		gap: 8px;
		margin-top: 22px;
	}

	.featured-products-v2 .featured-nav-btn {
		width: 38px;
		height: 38px;
	}

	.featured-products-v2 .product-name-tab .product-name-image {
		max-height: 150px;
	}

	.featured-products-v2 .product-name-tab.active::before {
		max-width: 140px;
		max-height: 140px;
	}

	.featured-products-v2 .featured-cat-tab {
		padding: 10px 28px;
		font-size: 15px;
		min-width: 110px;
	}
}

@media (max-width: 767px) {
	.featured-products-v2 .product-name-tab .product-name-image {
		max-height: 120px;
	}

	.featured-products-v2 .product-name-tab.active::before {
		max-width: 115px;
		max-height: 115px;
	}
}

@media (max-width: 575px) {
	.featured-products-v2 .featured-tabs-pill {
		width: 100%;
		max-width: 320px;
	}

	.featured-products-v2 .featured-cat-tab {
		flex: 1;
		padding: 10px 16px;
		font-size: 14px;
		min-width: 0;
	}

	.featured-products-v2 .featured-thumbs-row {
		grid-template-columns: 34px minmax(0, 1fr) 34px;
		gap: 6px;
	}

	.featured-products-v2 .featured-thumbs-row .product-names-row {
		gap: 4px;
	}

	.featured-products-v2 .featured-nav-btn {
		width: 34px;
		height: 34px;
	}

	.featured-products-v2 .featured-nav-btn i {
		font-size: 13px;
	}

	.featured-products-v2 .product-name-tab .product-name-image {
		max-height: 95px;
	}

	.featured-products-v2 .product-name-tab.active::before {
		max-width: 90px;
		max-height: 90px;
	}
}
