/**
 * 商品詳細ページ（single-product.php）
 */

/* ── SWELL標準UI非表示 ── */
.single-product #breadcrumb {
	display: none;
}

.single-product #sidebar {
	display: none;
}

.single-product .l-mainContent {
	flex: 1 1 100%;
	max-width: 100%;
}

/* ── SWELLスタイルリセット ── */
.product-detail h1,
.product-detail h3,
.product-detail h4,
.product-detail__title,
.product-detail__description h3,
.product-detail__description h4,
.product-related__title {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	position: static !important;
}

.product-detail h1::before,
.product-detail h1::after,
.product-detail h3::before,
.product-detail h3::after,
.product-detail h4::before,
.product-detail h4::after,
.product-detail__title::before,
.product-detail__title::after,
.product-detail__description h3::before,
.product-detail__description h3::after,
.product-detail__description h4::before,
.product-detail__description h4::after,
.product-related__title::before,
.product-related__title::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
}

.product-detail__order-label,
.product-detail__order-hours {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ============================================
   ページヘッダー
   ============================================ */
.product-header {
	background: linear-gradient(135deg, #065986 0%, #0b4a6f 50%, #083344 100%);
	position: relative;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: -64px;
	padding: 128px 1rem 48px;
	box-sizing: border-box;
}

.product-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 8px,
		rgba(255, 255, 255, 0.03) 8px,
		rgba(255, 255, 255, 0.03) 16px
	);
	pointer-events: none;
}

.product-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6px;
	z-index: 1;
	background: repeating-linear-gradient(
		90deg,
		#00b4d8 0px,
		#00b4d8 8px,
		#0090ad 8px,
		#0090ad 12px,
		#00b4d8 12px,
		#00b4d8 20px
	);
}

.product-header__inner {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* パンくず */
.product-header__breadcrumb ol {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
}

.product-header__breadcrumb a {
	color: rgba(185, 230, 254, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}

.product-header__breadcrumb a:hover {
	color: #fff;
}

.product-header__breadcrumb .separator {
	color: rgba(54, 191, 250, 0.6);
}

.product-header__breadcrumb .current {
	color: #fff;
}

/* ============================================
   Marine Card（二重ボーダー）
   ============================================ */
.product-detail-section .marine-card {
	border: 3px solid #003049;
	border-radius: 8px;
	position: relative;
}

.product-detail-section .marine-card::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	right: 4px;
	bottom: 4px;
	border: 1px solid #003049;
	border-radius: 4px;
	pointer-events: none;
}

/* ============================================
   商品詳細セクション
   ============================================ */
.product-detail-section {
	padding: 48px 1rem;
	max-width: 1280px;
	margin: 0 auto;
}

.product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

/* ============================================
   画像ギャラリー
   ============================================ */
.product-detail__main-image {
	overflow: hidden;
	margin-bottom: 16px;
}

.product-detail__main-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.product-detail__thumbnails {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.product-detail__thumb {
	display: block;
	border: 2px solid #b9e6fe;
	border-radius: 8px;
	overflow: hidden;
	opacity: 0.7;
	cursor: pointer;
	padding: 0;
	background: none;
	transition: all 0.2s ease;
}

.product-detail__thumb:hover {
	opacity: 1;
}

.product-detail__thumb--active {
	border-color: #0ba5ec;
	opacity: 1;
}

.product-detail__thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* ============================================
   商品情報
   ============================================ */
.product-detail__badge {
	display: inline-block;
	padding: 4px 16px;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 16px;
}

.product-detail__badge--accent {
	background-color: #22d3ee;
}

.product-detail__badge--primary {
	background-color: #026aa2;
}

.product-detail__title {
	font-size: 2.25rem;
	font-weight: 700;
	color: #065986;
	letter-spacing: 0.025em;
	margin: 0 0 16px !important;
	line-height: 1.3;
}

.product-detail__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 24px;
}

.product-detail__price-value {
	font-size: 2.25rem;
	font-weight: 700;
	color: #0086c9;
}

.product-detail__price-tax {
	font-size: 0.875rem;
	color: #6b7280;
}

.product-detail__description {
	margin-bottom: 32px;
	line-height: 1.8;
	color: #4b5563;
	font-size: 0.9375rem;
}

.product-detail__description p {
	margin-top: 0 !important;
	margin-bottom: 16px !important;
}

.product-detail__description h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: #065986;
	margin: 24px 0 12px !important;
	line-height: 1.4;
}

.product-detail__description h4 {
	font-size: 1rem;
	font-weight: 700;
	color: #065986;
	margin: 20px 0 8px !important;
	line-height: 1.4;
}

.product-detail__description ul,
.product-detail__description ol {
	margin: 0 0 16px !important;
	padding-left: 0 !important;
	list-style: none !important;
}

.product-detail__description li {
	position: relative;
	padding-left: 1em;
	margin-bottom: 4px;
}

.product-detail__description li::before {
	content: '・';
	position: absolute;
	left: 0;
}

.product-detail__description ol li {
	list-style: decimal !important;
	padding-left: 0;
}

.product-detail__description ol li::before {
	content: none;
}

.product-detail__description *:last-child {
	margin-bottom: 0 !important;
}

/* ============================================
   注文CTA
   ============================================ */
.product-detail__order-box {
	background: #f0f9ff;
	padding: 24px;
}

.product-detail__order-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.product-detail__order-icon {
	color: #22d3ee;
	flex-shrink: 0;
}

.product-detail__order-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #0086c9;
}

.product-detail__order-phone {
	display: block;
	text-align: center;
	background: #22d3ee;
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 700;
	padding: 16px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease;
	margin-bottom: 12px;
}

.product-detail__order-phone:hover {
	background: #06b6d4;
	color: #ffffff;
}

.product-detail__order-hours {
	text-align: center;
	font-size: 0.875rem;
	color: #6b7280;
}

/* ============================================
   戻るリンク
   ============================================ */
.product-detail__back {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.product-detail__back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0086c9;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.product-detail__back-link:hover {
	color: #026aa2;
}

/* ============================================
   関連商品
   ============================================ */
.product-related {
	background: #f8fdff;
	padding: 64px 1rem;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	box-sizing: border-box;
}

.product-related__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.product-related__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #065986;
	text-align: center;
	margin: 0 0 32px !important;
}

.product-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* 関連商品カード画像アスペクト比 */
.product-related__grid .product-card__image img {
	aspect-ratio: 1 / 1;
}

/* ============================================
   CTAセクション
   ============================================ */
.product-cta-section {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 959px) {
	.product-detail {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.product-detail__title {
		font-size: 1.75rem;
	}

	.product-detail__price-value {
		font-size: 1.75rem;
	}

	.product-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 599px) {
	.product-header {
		padding: 96px 1rem 32px;
	}

	.product-detail-section {
		padding: 32px 1rem;
	}

	.product-detail__title {
		font-size: 1.5rem;
	}

	.product-detail__price-value {
		font-size: 1.5rem;
	}

	.product-detail__thumbnails {
		gap: 8px;
	}

	.product-detail__order-phone {
		font-size: 1.25rem;
	}

	.product-related {
		padding: 40px 1rem;
	}

	.product-related__grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}
