.sg-category-tabs {
	width: 100%;
}

.sg-category-tabs * {
	box-sizing: border-box;
}

/* =========================
   Tabs 顶部导航
========================= */
.sg-tabs-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	width: 70%;
	max-width: 100%;
	min-height: 80px;
	margin: 0 auto 30px;
	padding: 14px;
	background: #fff;
	border-radius: 40px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.sg-tab-button {
	margin: 0;
	padding: 12px 24px;
	color: #333;
	line-height: 1.4;
	font-size: 16px;
	white-space: nowrap;
	text-transform: capitalize;
	background: #f5f5f5;
	border: none;
	border-radius: 40px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.sg-tab-button:hover,
.sg-tab-button.active {
	background: #ff7a39;
	color: #fff;
}

/* =========================
   内容区
========================= */
.sg-tabs-content {
	width: 100%;
	min-height: 420px;
}

.sg-tab-pane {
	display: none;
}

.sg-tab-pane.active {
	display: block;
}

/* =========================
   产品滑块
========================= */
.sg-products-slider {
	width: 100%;
}

.sg-products-viewport {
	overflow: hidden;
	width: 100%;
}

.sg-products-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 24px;
	transition: transform 0.45s ease;
	will-change: transform;
}

/* =========================
   产品卡片
========================= */
.sg-product-card {
	flex: 0 0 calc((100% - 72px) / 3);
	max-width: calc((100% - 72px) / 3);
	min-width: calc((100% - 72px) / 3);
}

.sg-product-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
}

.sg-product-image-wrap {
	position: relative;
	width: 100%;
	/* aspect-ratio: 1 / 1; */
	/* 防 CLS 关键 */
	overflow: hidden;
	background: #f5f5f5;
	border-radius: 20px;
}

.sg-product-image-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* border-radius: 20px; */
	transition: all .3s;
}

.sg-product-image-wrap:hover img {
	transform: scale(1.05);
}

.sg-product-content {
	padding: 14px 0 0;
	/* min-height: 68px; */
	/* 防止标题跳动 */
}

.sg-product-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.5;
	color: #000000;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.5em;
	text-align: center;
	text-transform: capitalize;
	transition: all .3s;
}

.sg-product-card:hover .sg-product-title {
	color: #ff7a39;
}

/* =========================
   分页点
========================= */
.sg-products-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	min-height: 12px;
}

.sg-products-dot {
	width: 10px;
	height: 10px;
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	background: rgba(188, 21, 28, 0.25);
	cursor: pointer;
	transition: all 0.3s ease;
}

.sg-products-dot.is-active {
	background: #ff7a39;
	transform: scale(1.15);
}

/* =========================
   空状态
========================= */
.sg-products-empty {
	width: 100%;
	padding: 20px;
	text-align: center;
	background: #fff;
	border-radius: 16px;
	color: #666;
	min-height: 120px;
}

/* =========================
   平板
========================= */
@media screen and (max-width: 1199px) {
	.sg-tabs-content {
		min-height: 400px;
	}

	.sg-products-track {
		gap: 20px;
	}

	.sg-product-card {
		flex: 0 0 calc((100% - 40px) / 3);
		max-width: calc((100% - 40px) / 3);
		min-width: calc((100% - 40px) / 3);
	}
}

/* =========================
   小平板
========================= */
@media screen and (max-width: 991px) {
	.sg-tabs-nav {
		gap: 10px;
		padding: 12px;
		margin-bottom: 24px;
		min-height: 68px;
		border-radius: 18px;
	}

	.sg-tab-button {
		padding: 11px 20px;
		font-size: 15px;
		border-radius: 14px;
	}

	.sg-tabs-content {
		min-height: 360px;
	}

	.sg-products-track {
		gap: 18px;
	}

	.sg-product-card {
		flex: 0 0 calc((100% - 18px) / 2);
		max-width: calc((100% - 18px) / 2);
		min-width: calc((100% - 18px) / 2);
	}
}

/* =========================
   手机：重点（两行两列）
========================= */
@media screen and (max-width: 768px) {

	.sg-category-tabs {
		width: 90%;
	}

	.sg-tabs-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		padding: 12px;
		gap: 8px;
		margin-bottom: 24px;
		border-radius: 16px;
	}

	.sg-tab-button {
		width: 100%;
		min-width: 0;
		padding: 10px 12px;
		font-size: 14px;
		text-align: center;
		border-radius: 12px;
		white-space: normal;
		min-height: 44px;
	}


	.sg-tabs-content {
		min-height: 320px;
	}

	.sg-products-track {
		gap: 16px;
	}

	.sg-product-card {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: 100%;
	}

	.sg-product-title {
		font-size: 18px;
	}

	.sg-products-pagination {
		margin-top: 12px;
	}
}

/* =========================
   小手机
========================= */
@media screen and (max-width: 480px) {
	.sg-tabs-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 10px;
		gap: 8px;
		margin-bottom: 20px;
	}

	.sg-tab-button {
		padding: 12px 10px;
		font-size: 14px;
	}

	.sg-tabs-content {
		min-height: 300px;
	}

	.sg-product-content {
		padding: 12px 0 0;
		/* min-height: 60px; */
	}

	.sg-products-track {
		gap: 0
	}
}