/**
 * 商品詳情頁 v2（精品電商版型）
 */
.goodtos--gd-v2 {
	background: #fff;
	padding-bottom: 24px;
}

/* 與 header（.site-header-inner-v3 / .site-trust-bar-inner）同寬對齊 */
.gd-v2-page-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	width: 100%;
}

.goodtos--gd-v2 .gd-v2-main,
.goodtos--gd-v2 .con-r.gd-v2-main {
	width: 100%;
	float: none;
	padding-left: 0 !important;
	box-sizing: border-box;
}

.gd-v2-breadcrumb {
	margin: 12px 0 20px;
	font-size: 13px;
	color: #888;
}

.gd-v2-breadcrumb .layui-breadcrumb a {
	color: #888 !important;
}

.gd-v2-breadcrumb .layui-breadcrumb a cite {
	color: #666;
	font-style: normal;
}

/* 主區塊：圖庫 + 資訊 */
.gd-v2-hero.goods-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 0;
	overflow: visible;
}

.gd-v2-gallery {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 0 0 52%;
	max-width: 52%;
	min-width: 0;
}

.gd-v2-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.gd-v2-thumb {
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #f9f8f6;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s;
}

.gd-v2-thumb.is-active,
.gd-v2-thumb:hover {
	border-color: #3d3229;
}

.gd-v2-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gd-v2-thumbs-more {
	text-align: center;
	font-size: 10px;
	color: #999;
	line-height: 1;
}

.gd-v2-gallery--single .gd-v2-main-img {
	width: 100%;
}

.gd-v2-gallery--single {
	max-width: 100%;
}

.gd-v2-main-img {
	position: relative;
	flex: 1;
	min-width: 0;
	aspect-ratio: 5 / 6;
	background: #f9f8f6;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}

/* 主圖固定 寬5:高6；原圖多為 3:4 / 4:3，cover 置中裁切（放大鏡仍顯示原圖） */
.gd-v2-main-img img {
	width: 100%;
	height: 100%;
	max-height: none;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	object-position: center;
	display: block;
	vertical-align: top;
}

.gd-v2-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #333;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.gd-v2-info {
	flex: 1;
	min-width: 280px;
	padding-left: 0 !important;
}

.gd-v2-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	color: #6b5a4e;
	background: #efe9e1;
	border-radius: 4px;
	margin-bottom: 12px;
}

.gd-v2-title,
.goods-page-title.gd-v2-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
	margin: 0 0 12px;
}

.gd-v2-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
}

.gd-v2-stars {
	color: #e6a817;
	letter-spacing: 1px;
}

.gd-v2-rating-score {
	font-weight: 600;
	color: #333;
}

.gd-v2-rating-meta a {
	color: #666;
	text-decoration: underline;
}

.gd-v2-rating-sep {
	color: #ddd;
	margin: 0 4px;
}

.gd-v2-sold {
	color: #888;
}

.gd-v2-price {
	font-size: 32px;
	font-weight: 700;
	color: #9b2d3a;
	margin-bottom: 12px;
	line-height: 1.2;
}

.gd-v2-price-num {
	font-size: 1em;
}

/* 版本與價格說明（價格下方、short_desc 上方） */
.gd-v2-version-note {
	margin: 0 0 16px;
	padding: 14px 16px 14px 18px;
	background: #f7f3eb;
	border-radius: 8px;
	border-left: 3px solid #c9a84c;
	box-sizing: border-box;
}
.gd-v2-version-note__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #3d3229;
	letter-spacing: 0.02em;
	line-height: 1.4;
}
.gd-v2-version-note__sub {
	margin: 0 0 10px;
	font-size: 13px;
	color: #8a7f72;
	line-height: 1.5;
}
.gd-v2-version-note__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}
.gd-v2-version-note__tag {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #9a7b3c;
	background: #fff;
	border: 1px solid #c9a84c;
	border-radius: 999px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}
.gd-v2-version-note__desc {
	margin: 0 0 10px;
	font-size: 13px;
	color: #6b6358;
	line-height: 1.6;
}
.gd-v2-version-note__cta {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: #06c755;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.15s ease, opacity 0.15s ease;
}
.gd-v2-version-note__cta:hover {
	color: #05a848;
	text-decoration: underline;
}
@media (max-width: 640px) {
	.gd-v2-version-note {
		padding: 12px 14px 12px 15px;
	}
	.gd-v2-version-note__title {
		font-size: 14px;
	}
}

.gd-v2-short-desc {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #444;
}
.gd-v2-short-desc p {
	margin: 0 0 0.6em;
}
.gd-v2-short-desc p:last-child {
	margin-bottom: 0;
}
.gd-v2-short-desc ul,
.gd-v2-short-desc ol {
	margin: 0.4em 0 0.6em 1.2em;
	padding: 0;
}
.gd-v2-short-desc img {
	max-width: 100%;
	height: auto;
}

.gd-v2-price-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.gd-v2-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	font-size: 13px;
	color: #555;
}

.gd-v2-trust li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gd-v2-trust svg {
	width: 18px;
	height: 18px;
	color: #6b5a4e;
	flex-shrink: 0;
}

.gd-v2-taxonomy {
	font-size: 13px;
	color: #666;
	margin-bottom: 16px;
}

.gd-v2-taxonomy p {
	margin: 4px 0;
}

.gd-v2-taxonomy a {
	color: #3d3229;
	text-decoration: underline;
}

.gd-v2-options {
	margin: 0 0 20px;
}

/* 覆蓋 product-reviews.css 的 grid（gd-v2 用 div 包 dt/dd，不適用兩欄 grid） */
.goodtos--gd-v2 .gd-v2-options.goods-options {
	display: block;
	grid-template-columns: unset;
	gap: 0;
}

.gd-v2-option-row,
.gd-v2-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.gd-v2-options .goods-option-term {
	margin: 0;
	flex-shrink: 0;
}

.gd-v2-options .goods-option-def {
	flex: 1;
	min-width: 0;
}

.gd-v2-options .goods-option-label {
	font-size: 14px;
	color: #333;
	min-width: 56px;
	white-space: nowrap;
}

.gd-v2-select {
	min-width: 160px;
	width: 100%;
	max-width: 320px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0 12px;
	background: #fff;
	box-sizing: border-box;
}

/* Layui form.render(select) 後的下拉框寬度 */
.gd-v2-options .layui-form-select {
	width: 100%;
	max-width: 320px;
	min-width: 160px;
}

.gd-v2-options .layui-form-select .layui-select-title,
.gd-v2-options .layui-form-select .layui-select-title .layui-input {
	width: 100%;
	box-sizing: border-box;
}

.gd-v2-options .layui-form-select .layui-select-title .layui-input {
	height: 38px;
	line-height: 38px;
	padding: 0 36px 0 12px;
}

.gd-v2-qty {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.gd-v2-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.gd-v2-stepper-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.gd-v2-stepper-btn:hover {
	background: #ebebeb;
}

.gd-v2-stepper input {
	width: 48px;
	height: 36px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
}

.gd-v2-stepper input::-webkit-outer-spin-button,
.gd-v2-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gd-v2-stock {
	font-size: 13px;
	color: #2d7a4a;
	font-weight: 500;
}

.gd-v2-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px !important;
	text-align: left !important;
}

.gd-v2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	border: 2px solid transparent;
	transition: opacity 0.2s, background 0.2s;
	box-sizing: border-box;
}

.gd-v2-btn--cart {
	background: #fff;
	color: #1a1a1a;
	border-color: #1a1a1a;
	flex: 0 1 auto;
}

.gd-v2-btn--cart:hover {
	background: #f5f5f5;
}

.gd-v2-btn--buy {
	background: #2d5a3d;
	color: #fff;
	border-color: #2d5a3d;
	flex: 1 1 auto;
	min-width: 140px;
}

.gd-v2-btn--buy:hover {
	background: #244a32;
}

.gd-v2-btn--line {
	background: #fff;
	color: #06c755;
	border-color: #06c755;
	flex: 1 1 100%;
	min-width: 0;
}

.gd-v2-btn--line:hover {
	background: #f0fff4;
}

.gd-v2-secondary {
	display: flex;
	gap: 24px;
	margin-top: 16px;
	padding-top: 12px;
}

.gd-v2-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: none;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	padding: 0;
}

.gd-v2-link-btn:hover {
	color: #333;
}

/* 近期購買動態 */
.gd-v2-activity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 20px;
	margin: 28px 0 0;
	background: #f3f3f3;
	border-radius: 8px;
	font-size: 13px;
	color: #555;
}

.gd-v2-activity-user {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.gd-v2-activity-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #d4c4b0;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gd-v2-activity-name {
	font-weight: 600;
	color: #333;
}

.gd-v2-activity-loc {
	color: #888;
}

.gd-v2-activity-likes {
	font-size: 12px;
}

.gd-v2-activity-time {
	color: #888;
	white-space: nowrap;
}

/* 服務特色列 */
.gd-v2-services {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 20px 0 32px;
	background: #f5f0eb;
	border-radius: 8px;
	overflow: hidden;
}

.gd-v2-service-item {
	padding: 20px 16px;
	text-align: center;
	border-right: 1px solid #e8dfd4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.gd-v2-service-item:last-child {
	border-right: none;
}

.gd-v2-service-item strong {
	font-size: 14px;
	color: #3d3229;
	font-weight: 700;
}

.gd-v2-service-item span {
	font-size: 12px;
	color: #888;
	line-height: 1.4;
}

.gd-v2-service-icon {
	width: 28px;
	height: 28px;
	display: block;
	flex-shrink: 0;
	color: #3d3229;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.gd-v2-service-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.gd-v2-service-icon--line {
	color: #3d3229;
	background-image: none;
}

.gd-v2-service-icon--shield {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233d3229' d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 14.41L7.59 12 9 10.59l2 2 5-5L17.41 9 11 15.41z'/%3E%3C/svg%3E");
}

.gd-v2-service-icon--bag {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233d3229' d='M18 6h-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm-8-2h4v2h-4V4z'/%3E%3C/svg%3E");
}

.gd-v2-service-icon--truck {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233d3229' d='M18 18.5a1.5 1.5 0 0 1-1.5-1.5 1.5 1.5 0 0 1 3 0 1.5 1.5 0 0 1-1.5 1.5zm-9 0A1.5 1.5 0 0 1 7.5 17 1.5 1.5 0 0 1 10.5 18.5 1.5 1.5 0 0 1 9 18.5zM20 8h-3V4H3v13h1.05a2.5 2.5 0 0 1 4.9 0h6.1a2.5 2.5 0 0 1 4.9 0H20V8z'/%3E%3C/svg%3E");
}

.gd-v2-delivery {
	margin-top: 0;
	border: none;
	border-radius: 0;
	padding: 0;
	background: transparent;
}

/* gd-v2 内层 .goo.pc / FAQ 卡片已有边框，去掉 legacy .delivery 外层框 */
.goodtos--gd-v2 .delivery.gd-v2-delivery {
	border: none;
	padding-top: 0;
	margin-top: 0;
	background: transparent;
	box-shadow: none;
}

.gd-v2-delivery .goo {
	color: #666;
}

/* 覆蓋舊版 goods-wrap 浮動 */
.goodtos--gd-v2 .gd-v2-hero.goods-wrap .goods-des {
	padding-left: 0 !important;
	width: auto;
}

.goodtos--gd-v2 .gd-v2-hero .goods-img {
	float: none;
	width: auto;
	height: auto;
}

.goodtos--gd-v2 .goods-amet {
	margin-top: 32px;
	padding: 28px 0 0;
	border-top: 1px solid #e8dfd4;
}

/* 商品說明 / 顧客評價 Tab — gd-v2 精品風 */
.goodtos--gd-v2 .gd-v2-tabs.layui-tab {
	margin: 0;
	box-shadow: none;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title {
	height: auto;
	border: none;
	border-bottom: 1px solid #e8dfd4;
	background: transparent;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title li {
	position: relative;
	min-width: 0;
	line-height: 1.4;
	padding: 0 0 14px;
	margin: 0 28px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: #8a8278;
	background: transparent;
	border: none;
	transition: color 0.2s ease;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title li:hover {
	color: #3d3229;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title li.layui-this {
	color: #3d3229;
	background: transparent;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title .layui-this:after {
	position: absolute;
	left: 0;
	right: 0;
	top: auto;
	bottom: -1px;
	width: 100%;
	height: 2px;
	content: '';
	border: none;
	border-radius: 2px 2px 0 0;
	background: #3d3229;
	transform: none;
}

.goodtos--gd-v2 .gd-v2-tabs .layui-tab-content {
	padding: 24px 0 0;
}

.goodtos--gd-v2 .gd-v2-tabs .goods-detail {
	padding: 0;
	font-size: 15px;
	line-height: 1.85;
	color: #4f463d;
}

/* 推薦商品區塊標題 */
.gd-v2-section-title {
	margin: 0 0 20px;
	padding: 0 0 12px;
	border-bottom: 1px solid #e8dfd4;
	font-size: 18px;
	font-weight: 700;
	color: #3d3229;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.goodtos--gd-v2 ~ .related.goods-page-related.related--below-main {
	margin-top: 0;
	margin-bottom: 32px;
	padding-top: 32px;
	border-top: 1px solid #e8dfd4;
	background: #fff;
}

.goodtos--gd-v2 ~ .related.goods-page-related.related--below-main .home-v4-goods-grid {
	margin-top: 0;
}

.goodtos--gd-v2 ~ .related.goods-page-related.related--below-main .gd-v2-page-wrap {
	padding-top: 0;
}

/* 與 header 響應式 padding 一致 */
@media screen and (max-width: 1100px) {
	.gd-v2-page-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* 響應式 */
@media (max-width: 991px) {
	.gd-v2-hero.goods-wrap {
		flex-direction: column;
	}

	.gd-v2-gallery {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.gd-v2-services {
		grid-template-columns: repeat(2, 1fr);
	}

	.gd-v2-service-item:nth-child(2) {
		border-right: none;
	}

	.gd-v2-service-item {
		border-bottom: 1px solid #e8dfd4;
	}

	.gd-v2-service-item:nth-child(3),
	.gd-v2-service-item:nth-child(4) {
		border-bottom: none;
	}
}

@media screen and (max-width: 750px) {
	.gd-v2-page-wrap {
		padding-left: 14px;
		padding-right: 14px;
	}
}

@media (max-width: 767px) {
	.gd-v2-gallery {
		flex-direction: column-reverse;
	}

	.gd-v2-thumbs {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.gd-v2-thumb {
		flex-shrink: 0;
	}

	.gd-v2-title {
		font-size: 18px;
	}

	.gd-v2-price {
		font-size: 26px;
	}

	.gd-v2-trust {
		gap: 10px 16px;
	}

	.gd-v2-option-row,
	.gd-v2-qty-row {
		flex-wrap: wrap;
	}

	.gd-v2-options .layui-form-select,
	.gd-v2-select {
		max-width: 100%;
	}

	.gd-v2-actions {
		flex-direction: column;
	}

	.gd-v2-btn {
		width: 100%;
		flex: 0 0 auto;
		min-height: 48px;
	}

	.gd-v2-btn--buy,
	.gd-v2-btn--line {
		flex: 0 0 auto;
	}

	/* 小屏仍保持一行 2 個服務項 */
	.gd-v2-services {
		grid-template-columns: repeat(2, 1fr);
	}

	.gd-v2-service-item {
		border-right: 1px solid #e8dfd4;
		border-bottom: 1px solid #e8dfd4;
		padding: 16px 10px;
	}

	.gd-v2-service-item:nth-child(2n) {
		border-right: none;
	}

	.gd-v2-service-item:nth-child(3),
	.gd-v2-service-item:nth-child(4) {
		border-bottom: none;
	}

	.gd-v2-service-item strong {
		font-size: 13px;
	}

	.gd-v2-service-item span {
		font-size: 11px;
	}

	.gd-v2-activity {
		flex-direction: column;
		align-items: flex-start;
	}

	.goodtos--gd-v2 .gd-v2-tabs .layui-tab-title li {
		font-size: 15px;
		margin-right: 20px;
		padding-bottom: 12px;
	}

	.gd-v2-section-title {
		font-size: 17px;
		margin-bottom: 16px;
	}
}
