/* 商品详情顶部：1200px 三列网格 */

.goods-detail-hero-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 15px 0;
	box-sizing: border-box;
	overflow: visible;
}

.goods-detail-hero {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	width: 100%;
}

/* 左上：商品信息 1/3 */
.goods-hero-info {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.goods-hero-title {
	display: flex;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}

.goods-hero-title-bar {
	flex: 0 0 5px;
	width: 5px;
	height: 22px;
	margin-right: 12px;
	margin-top: 4px;
	background: #384E92;
	border-radius: 2px;
}

.goods-hero-title-text {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

.goods-hero-price {
	margin: 0 0 24px;
	font-size: 15px;
	color: #384E92;
	line-height: 1.4;
}

.goods-hero-price-num {
	font-size: 28px;
	font-weight: 700;
	color: #384E92;
}

.goods-hero-price-num #j-shop-price {
	font-size: inherit;
}

/* 商家卡片 */
.goods-hero-shop {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding: 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(55, 78, 146, 0.12);
	box-sizing: border-box;
}

.goods-hero-shop-avatar {
	flex: 0 0 52px;
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8ebf0;
}

.goods-hero-shop-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.goods-hero-shop-text {
	flex: 1;
	min-width: 0;
}

.goods-hero-shop-name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.goods-hero-shop-desc {
	margin: 0;
	font-size: 13px;
	color: #888;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.goods-hero-shop-fav {
	flex: 0 0 auto;
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	color: #384E92;
	text-decoration: none;
	border: 1px solid #384E92;
	border-radius: 20px;
	background: #fff;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

.goods-hero-shop-fav:hover {
	background: #384E92;
	color: #fff;
}

/* 购买按钮 */
.goods-hero-btns {
	display: flex;
	gap: 12px;
	margin-top: auto;
}

.goods-hero-btns .buyBtn,
.goods-hero-btns .addBtn {
	float: none;
	flex: 1;
	width: auto;
	max-width: none;
	height: 44px;
	line-height: 40px;
	margin: 0;
	padding: 0 8px;
	font-size: 15px;
	border-radius: 6px;
	box-sizing: border-box;
}

.goods-hero-btns .buyBtn {
	background: #FBA300;
	color: #fff;
	border: none;
	order: 1;
	text-align: center;
}

.goods-hero-btns .buyBtn:hover {
	background: #dd950e;
	color: #fff;
}

.goods-hero-btns .addBtn {
	background: #fff;
	color: #384E92;
	border: 2px solid #384E92;
	order: 2;
	text-align: center;
}

.goods-hero-btns .addBtn:hover {
	background: #f0f3fa;
	color: #384E92;
}

.goods-hero-btns .un-buy,
.goods-hero-btns .disabled {
	background: #eee !important;
	border-color: #ddd !important;
	color: #999 !important;
	cursor: not-allowed;
}

/* 右上：主图 2/3 */
.goods-hero-main {
	grid-column: 2 / 4;
	grid-row: 1;
	min-width: 0;
	position: relative;
}

.goods-detail-hero .goods-hero-main.goods-img-box {
	float: none;
	width: 100%;
	height: auto;
	margin: 0;
}

.goods-detail-hero .goods-hero-main .spec-preview {
	float: none;
	width: 100%;
	height: auto;
	min-height: 320px;
	margin: 0;
	position: relative;
	overflow: visible;
}

/* 新详情页禁用放大镜浮层 */
.goods-detail-hero .cloudzoom-lens,
.goods-detail-hero .cloudzoom-zoom,
.goods-detail-hero .cloudzoom-blank {
	display: none !important;
}

.goods-detail-hero .goods-hero-main .spec-preview img.goods-hero-main-img {
	cursor: default;
}

.goods-detail-hero .goods-hero-main .spec-preview ul,
.goods-detail-hero .goods-hero-main .spec-preview ul li {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.goods-detail-hero .goods-hero-main .spec-preview img.goods-hero-main-img,
.goods-detail-hero .goods-hero-main .spec-preview img.cloudzoom {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

.goods-detail-hero .goods-hero-main .wst-video-box {
	position: relative;
	width: 100%;
	height: auto;
	max-height: 420px;
}

.goods-detail-hero .goods-hero-main .wst-video-box video {
	width: 100%;
	height: auto;
	max-height: 420px;
}

/* 底部三张小图 */
.goods-hero-thumb {
	grid-row: 2;
	min-width: 0;
	height: 140px;
	background: #e8ebf0;
	border: 2px solid #e0e6f2;
	box-sizing: border-box;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s;
}

.goods-hero-thumb:nth-of-type(3) {
	grid-column: 1;
}

.goods-hero-thumb:nth-of-type(4) {
	grid-column: 2;
}

.goods-hero-thumb:nth-of-type(5) {
	grid-column: 3;
}

.goods-hero-thumb.hover,
.goods-hero-thumb:hover {
	border-color: #384E92;
}

.goods-hero-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.goods-hero-thumb .wst-video-btn {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* 下方 intro 全宽 */
.goods-detail-hero-wrap .intro {
	display: block;
	float: none;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	margin: 0;
	padding: 20px 0 10px;
	border: none;
	box-sizing: border-box;
}

.goods-detail-hero-wrap .intro .intro-name.goods-detail-intro-hide,
.goods-detail-hero-wrap .intro .summary .item.goods-detail-intro-hide {
	display: none !important;
}

.goods-detail-hero-wrap .intro .buy .item.goods-detail-intro-hide-btns {
	display: none !important;
}

.goods-detail-gallery-hidden {
	display: none !important;
	width: 0;
	height: 0;
	overflow: hidden;
}

.goods-detail-hero-wrap .goods-detail-tips {
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	color: #df2003;
	line-height: 1.5;
}

@media (max-width: 900px) {
	.goods-detail-hero {
		grid-template-columns: 1fr;
	}

	.goods-hero-info,
	.goods-hero-main,
	.goods-hero-thumb {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	.goods-hero-thumb {
		height: 100px;
	}
}
