/* Extra Option - 前台商品頁規格表樣式（融合 bugdorm-theme 科研綠視覺系統） */

.single-product div.product .eo-product-specs-wrapper,
.eo-product-specs-wrapper {
	background-color: #ffffff;
	border: 1px solid #cfe8d5;
	border-radius: 10px;
	overflow: hidden;
	margin: 18px 0 22px;
	box-shadow: 0 2px 10px rgba(46, 125, 50, 0.06);
	box-sizing: border-box;
}

/* 頂部標題列：呼應 bugdorm-theme .product-specs-box 科研綠風格 */
.eo-product-specs-wrapper .eo-specs-header {
	display: flex;
	align-items: center;
	background-color: #eaf6ed;
	color: #1b5e20;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.4;
	padding: 10px 16px;
	border-bottom: 1px solid #cfe8d5;
}

.eo-product-specs-wrapper .eo-specs-header::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%231b5e20' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.eo-product-specs-wrapper .eo-specs-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 規格表格本體（高權重覆寫 Storefront 預設 table.shop_attributes 灰底樣式） */
.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes {
	width: 100%;
	margin: 0;
	border: none;
	border-collapse: collapse;
	background-color: #ffffff;
	font-size: 0.94rem;
	line-height: 1.55;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr {
	background-color: #ffffff;
	border-bottom: 1px solid #f1f5f9;
	transition: background-color 0.15s ease;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:last-child,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:last-child {
	border-bottom: none;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:nth-child(even),
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:nth-child(even) {
	background-color: #f8faf9;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:hover,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody tr:hover {
	background-color: #f0fdf4;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th,
.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td {
	border: none;
	background-color: transparent;
	vertical-align: top;
	text-align: left;
	font-style: normal;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th {
	width: 34%;
	min-width: 145px;
	max-width: 190px;
	padding: 10px 14px 10px 16px;
	font-weight: 600;
	color: #334155;
	white-space: nowrap;
	border-right: 1px solid #f1f5f9;
}

.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td,
.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td {
	width: 66%;
	padding: 10px 16px 10px 14px;
	color: #1e293b;
	word-break: break-word;
}

/* 手機與窄螢幕響應式調整 */
@media (max-width: 600px) {
	.eo-product-specs-wrapper .eo-specs-header {
		padding: 9px 12px;
		font-size: 0.8rem;
	}

	.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th,
	.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody th {
		width: 40%;
		min-width: 115px;
		padding: 9px 10px 9px 12px;
		white-space: normal;
		font-size: 0.88rem;
	}

	.single-product div.product .eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td,
	.eo-product-specs-wrapper .eo-product-specs-table.shop_attributes tbody td {
		width: 60%;
		padding: 9px 12px 9px 10px;
		font-size: 0.88rem;
	}
}
