/* ================= 上部：商品图 + 商品信息 ================= */
.top-section {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

/* 左侧：商品图 */
.goods-image {
	width: 530px;
	position: relative;
}

#mainProductImage{
	width: 100%;
	height: auto; /* ✅ 保持原始比例 */
	display: block;
}
.main-swiper {
	width: 100%;
	height: 530px;
	border-radius: 8px;
	overflow: hidden;
}

.main-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbs-swiper {
	margin-top: 10px;
	width: 100%;
	height: 86px;
}

.thumbs-swiper .swiper-slide {
	width: 86px !important;
	height: 86px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
}

.thumbs-swiper .swiper-slide-thumb-active {
	border-color: #e93323;
}

.thumbs-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 右侧：商品信息 */
.goods-info {
	width: 630px;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.goods-title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
	line-height: 1.4;
}

.price-card {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
}

.price-main {
	display: flex;
	align-items: baseline;
	margin-bottom: 10px;
}

.price-symbol {
	font-size: 18px;
	color: #e93323;
	font-weight: bold;
}

.price-value {
	font-size: 36px;
	color: #e93323;
	font-weight: bold;
	font-family: 'Din Pro', sans-serif;
	line-height: 1;
}

.price-original {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
	margin-left: 10px;
}

.sales-info {
	font-size: 12px;
	color: #666;
}

/* 规格选择 */
.spec-wrapper {
	margin-bottom: 20px;
}

.spec-title {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}

.spec-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.spec-item {
	padding: 8px 16px;
	border: 1px solid #eee;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.spec-item:hover,
.spec-item.active {
	border-color: #e93323;
	color: #e93323;
	background: #fff5f5;
}

/* 数量选择 */
.quantity-wrapper {
	margin-bottom: 20px;
}

.quantity-title {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}

.quantity-control {
	display: flex;
	align-items: center;
	gap: 10px;
}

.qty-btn[disabled] {
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;   /* ✅ 禁止点击 */
	opacity: 0.6;             /* ✅ 视觉弱化 */
	user-select: none;         /* ✅ 禁止选中 */
	background-color: #f5f5f5;
}

.qty-input[readonly] {
	width: 60px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
	background-color: #f5f5f5; /* ✅ 灰底更直观 */
	pointer-events: none;
	opacity: 0.6;
}

.stock-info {
	font-size: 12px;
	color: #999;
	margin-left: 10px;
}

/* 操作按钮 */
.action-buttons {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.btn-buy {
	flex: 1;
	height: 50px;
	background: linear-gradient(135deg, #ff6b35 0%, #e93323 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
}

.btn-cart {
	width: 150px;
	height: 50px;
	background: #fff;
	color: #e93323;
	border: 2px solid #e93323;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}

/* ================= 下部：店铺信息 + 推荐商品 | 详情 ================= */
.bottom-section {
	display: flex;
	gap: 20px;
	align-items: flex-start; /* 顶部对齐，防止内容长短不一导致错位 */
}

/* 左侧：店铺信息 + 推荐商品 */
.left-column.left-card {
    width: 300px;             /* ✅ 核心：设定正常卡片宽度，与上部商品图宽度呼应 */
    flex-shrink: 0;           /* 防止在空间不足时被压缩 */
    
    background-color: #ffffff; /* 白色背景 */
    border-radius: 8px;        /* 圆角 */
    padding: 20px;             /* 内边距，让内容不贴边 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* 轻微阴影，增强卡片感 */
}

/* 店铺信息卡片 */
.store-card-detail {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #eee;
	margin-bottom: 20px;
}

.store-header-detail {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 15px;
	border-bottom: 1px dashed #eee;
	margin-bottom: 15px;
}

.store-logo-detail {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 10px;
}

.store-name-detail {
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.store-badge-detail {
	display: inline-block;
	background: #e93323;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 2px;
	margin-top: 5px;
}
/* ================= 店铺评级 ================= */
.store-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	color: #999;
	height: 20px;
}
.stars-container {
    position: relative;     /* ✅ 必须 */
	display: inline-block;
	font-size: 16px;
	color: #ddd;
	line-height: 1;
}

.stars-bg {
	position: relative;
	z-index: 0;
    opacity: 0.3;
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc107; /* 满星颜色 */
    z-index: 1;
}

/* 店铺按钮组 */
.store-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.store-btn {
	flex: 1;
	height: 36px;
	border: 1px solid #e93323;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-enter-store {
	background: #e93323;
	color: #fff;
}

.btn-follow {
	background: #fff;
	color: #e93323;
}

/* 推荐商品 */
.recommend-section {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #eee;
}

.recommend-title {
	font-size: 16px;
	color: #333;
	margin-bottom: 15px;
	padding-left: 10px;
	border-left: 3px solid #e93323;
}

.recommend-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.recommend-item {
	display: flex;
	gap: 10px;
	padding: 10px;
	border-radius: 8px;
	transition: background 0.2s;
	cursor: pointer;
}

.recommend-item:hover {
	background: #f8f9fa;
}

.recommend-img {
	width: 70px;
	height: 70px;
	border-radius: 6px;
	object-fit: cover;
}

.recommend-info {
	flex: 1;
}

.recommend-name {
	font-size: 13px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 5px;
}

.recommend-price {
	font-size: 14px;
	color: #e93323;
	font-weight: bold;
}

/* 右侧：商品详情（无评论） */
.detail-area {
	flex: 1;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #eee;
}

.detail-content {
	padding: 20px 0;
}

.detail-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 10px 0;
}

.detail-content h2 {
	font-size: 20px;
	color: #333;
	margin: 20px 0 10px;
}

.detail-content h3 {
	font-size: 16px;
	color: #333;
	margin: 15px 0 8px;
}

.detail-content p {
	margin: 10px 0;
	line-height: 1.8;
	color: #666;
}
/* 商品图区域 - 静态版样式 */
.main-image-container {
	width: 100%;
	height: 530px;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 缩略图列表 - 核心：固定尺寸 */
.thumbnail-list {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	overflow-x: auto; /* 如果缩略图过多可以横向滚动 */
}

.thumbnail-item {
	width: 100px; /* ✅ 固定宽度 */
	height: 80px; /* ✅ 固定高度 */
	flex-shrink: 0; /* 防止被压缩 */
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.thumbnail-item:hover {
	opacity: 0.9;
	transform: scale(1.05);
}

.thumbnail-item.active {
	opacity: 1;
	border-color: #e4393c;
}

.thumbnail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* ================= 悬浮工具栏 ================= */
.float-toolbar {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	background: #222;
	border-radius: 8px;
	z-index: 1000;
}

.toolbar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 0;
	color: #fff;
	font-size: 12px;
	cursor: pointer;
	border-bottom: 1px solid #333;
}

.toolbar-item:last-child {
	border-bottom: none;
}

.toolbar-item .iconfont {
	font-size: 18px;
	margin-bottom: 3px;
}

/* ================= 响应式（可选） ================= */
@media (max-width: 1200px) {
	.stars-container {
		width: 95%;
		flex-direction: column;
	}
	.top-section {
		flex-direction: column;
	}
	.goods-image, .goods-info {
		width: 100%;
	}
	.bottom-section {
		flex-direction: column;
	}
	.left-column {
		width: 100%;
	}
}