/* =========================================================
   新・整顔整頭 商品詳細：関連商品
   WooCommerce標準の関連商品を活かし、商品ページ末尾の補助導線として整える
========================================================= */
.seigan-ec-product-page section.related.products {
	margin: clamp(64px, 7vw, 104px) auto 0;
	padding: clamp(34px, 4vw, 52px) 0 0;
	border-top: 1px solid rgba(118,108,106,.22);
}
.seigan-ec-product-page section.related.products > h2 {
	margin: 0 0 26px !important;
	text-align: left;
	color: #2f2927;
	font-size: clamp(18px, 1.55vw, 23px) !important;
	font-weight: 500 !important;
	line-height: 1.4;
	letter-spacing: .07em;
}

.seigan-ec-product-page section.related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px 16px;
	margin: 0 !important;
}
.seigan-ec-product-page section.related.products ul.products::before,
.seigan-ec-product-page section.related.products ul.products::after { display:none !important; }
.seigan-ec-product-page section.related.products ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: left;
	position: relative;
}
.seigan-ec-product-page section.related.products li.product a img {
	width: 100% !important;
	margin: 0 0 10px !important;
	border-radius: 2px;
}
.seigan-ec-product-page section.related.products li.product .woocommerce-loop-product__title {
	padding: 0 !important;
	margin: 0 0 5px !important;
	color: #2f2927;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.55;
}
.seigan-ec-product-page section.related.products li.product .price {
	margin: 0 !important;
	color: #7E5B3E !important;
	font-size: 12px !important;
	line-height: 1.45;
}
/* 関連商品内だけ、SWELL/WooCommerceのセール丸を控えめに */
.seigan-ec-product-page section.related.products li.product .onsale {
	min-width: 36px !important;
	width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	font-size: 9px !important;
	line-height: 36px !important;
	letter-spacing: 0 !important;
}
/* 一覧と同様、商品カード上の購入ボタンは出さない */
.seigan-ec-product-page section.related.products li.product .button,
.seigan-ec-product-page section.related.products li.product .added_to_cart {
	display: none !important;
}
@media screen and (max-width: 767px) {
	.seigan-ec-product-page section.related.products {
		margin-top: 58px;
		padding-top: 30px;
	}
	.seigan-ec-product-page section.related.products > h2 {
		margin-bottom: 20px !important;
		font-size: 19px !important;
		letter-spacing: .06em;
	}

	.seigan-ec-product-page section.related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}
	.seigan-ec-product-page section.related.products li.product a img {
		margin-bottom: 8px !important;
	}
	.seigan-ec-product-page section.related.products li.product .woocommerce-loop-product__title {
		font-size: 11px !important;
		line-height: 1.5;
	}
	.seigan-ec-product-page section.related.products li.product .price {
		font-size: 11px !important;
	}
	.seigan-ec-product-page section.related.products li.product .onsale {
		min-width: 32px !important;
		width: 32px !important;
		height: 32px !important;
		min-height: 32px !important;
		font-size: 8px !important;
		line-height: 32px !important;
	}
}

/* セールバッジ：新・整顔整頭カラーへ統一 */
.seigan-ec-product-page .onsale,
.seigan-ec-product-page section.related.products li.product .onsale {
	background: #7E5B3E !important;
	background-color: #7E5B3E !important;
	color: #fff !important;
	border-color: #7E5B3E !important;
}
