/**
 * 产品详情页样式
 * 
 * @package Blocksy_Child
 */

/* ========================================
   容器和基础布局
   ======================================== */

.single-product-container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ========================================
   返回按钮
   ======================================== */

.product-back-button-wrapper {
	margin-bottom: 20px;
}

.product-back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	transition: all 0.3s;
}

.product-back-button:hover {
	background: #1c4899;
	border-color: #1c4899;
	color: #fff;
	transform: translateX(-5px);
}

.product-back-button svg {
	flex-shrink: 0;
	transition: transform 0.3s;
}

.product-back-button:hover svg {
	transform: translateX(-3px);
}

.product-back-button span {
	font-family: inherit;
}

/* ========================================
   产品标题
   ======================================== */

.product-title-section {
	margin-bottom: 20px;
	text-align: left;
}

.product-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.3;
}

/* ========================================
   面包屑导航
   ======================================== */

.product-breadcrumb-section {
	margin-bottom: 40px;
	text-align: left;
}

.woocommerce-breadcrumb {
	font-size: 14px;
	color: #666;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.woocommerce-breadcrumb::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #1c4899;
	border-radius: 50%;
	flex-shrink: 0;
}

.woocommerce-breadcrumb a {
	color: #666;
	text-decoration: none;
	transition: color 0.3s;
}

.woocommerce-breadcrumb a:hover {
	color: #1c4899;
	text-decoration: underline;
}

.breadcrumb-dot {
	color: #1c4899;
	font-size: 20px;
	line-height: 1;
	font-weight: bold;
}

/* ========================================
   简短描述 + 产品属性区域
   ======================================== */

.product-info-section {
	margin-bottom: 60px;
	background: #fff;
 
}

.product-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}

.section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 20px 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* 左侧：简短描述 */
.product-short-description {
	flex: 1;
}

.short-desc-content {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

.short-desc-content p {
	margin-bottom: 15px;
}

/* 简短描述中的表格样式 */
.short-desc-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.short-desc-content table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e0e0e0;
}

.short-desc-content table td:first-child {
	width: 35%;
	color: #999;
	font-weight: 500;
	background: #fafafa;
}

.short-desc-content table td:last-child {
	color: #333;
	font-weight: 400;
}

.short-desc-content table tr:last-child td {
	border-bottom: none;
}

/* 右侧：产品属性 */
.product-attributes-section {
	flex: 1;
}

.attributes-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.attribute-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	background: transparent;
	transition: all 0.3s;
}

.attribute-item:hover {
	transform: translateX(5px);
}

.attr-check-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1c4899;
}

.attr-check-icon svg {
	stroke: #1c4899 !important;
}

.attr-check-icon svg circle,
.attr-check-icon svg path {
	stroke: #1c4899 !important;
}

.attr-text {
	font-size: 15px;
	color: #333;
	font-weight: 500;
}

.no-attributes {
	color: #999;
	font-style: italic;
	text-align: center;
	padding: 30px;
}

/* ========================================
   Specification 内容详情
   ======================================== */

.product-specification-section {
	margin-bottom: 60px;
	background: #fff;
	padding: 0;
}

.specification-content {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

.specification-content h2,
.specification-content h3,
.specification-content h4 {
	color: #1a1a1a;
	margin-top: 30px;
	margin-bottom: 15px;
	font-weight: 600;
}

.specification-content h2 {
	font-size: 24px;
}

.specification-content h3 {
	font-size: 20px;
}

.specification-content h4 {
	font-size: 18px;
}

.specification-content p {
	margin-bottom: 15px;
}

.specification-content ul,
.specification-content ol {
	margin: 15px 0;
	padding-left: 30px;
}

.specification-content li {
	margin-bottom: 10px;
}

.specification-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	border: 1px solid #e0e0e0;
}

.specification-content table th,
.specification-content table td {
	padding: 10px 15px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
}

.specification-content table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #1c4899;
}

.specification-content table tr:last-child td {
	border-bottom: none;
}

.specification-content table tr:hover {
	background: #fafafa;
}

.specification-content table tbody tr {
	transition: background 0.2s;
}

.specification-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

/* ========================================
   内饰图相册
   ======================================== */

.product-interior-section {
	margin-bottom: 60px;
	background: #fff;
	padding: 0;
}

.interior-section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 30px 0;
}

.interior-gallery-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.interior-item {
	width: 100%;
	overflow: hidden;
	border-radius: 15px;
	cursor: pointer;
	transition: transform 0.3s;
	margin-bottom: 20px;
}

.interior-item:hover {
	transform: scale(1.02);
}

.interior-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* 内饰相册缩略图 */
.interior-thumbnails {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.interior-thumb-item {
	position: relative;
	overflow: hidden; /* 悬停放大超出隐藏 */
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.3s;
	aspect-ratio: 4 / 3;
}

.interior-thumb-item:hover {
	transform: scale(1.1);
}

.interior-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ========================================
   产品视频展示
   ======================================== */

.product-video-section {
	margin-bottom: 60px;
	background: #2c3e50;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
}

.video-section-container {
	width: 100%;
	margin: 0;
	padding: 0;
}

.video-section-grid {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 0;
	min-height: 600px;
	align-items: stretch;
}

.video-content-left {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	background: #000;
	padding: 0;
}

.video-cover-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000;
	overflow: hidden;
	cursor: pointer;
}

.video-cover-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	cursor: pointer;
	transition: transform 0.3s;
}

.video-play-button:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.product-video-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 3;
}

.video-content-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
	gap: 20px;
	padding: 80px 60px;
}

.video-title {
	font-size: 36px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.3;
}

.video-description {
	font-size: 16px;
	line-height: 1.8;
	color: #ecf0f1;
	margin: 0;
}

.video-description p {
	margin: 0 0 15px 0;
}

.video-description p:last-child {
	margin-bottom: 0;
}

.video-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #1c4899;
	color: #fff;
	border: none;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 10px;
	align-self: flex-start;
}

.video-contact-btn:hover {
	background: #e66401;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 113, 1, 0.3);
}

.video-contact-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* 视频响应式 */
@media (max-width: 1024px) {
	.video-content-left {
		padding: 0;
	}
	
	.video-content-right {
		padding: 60px 40px;
	}
	
	.video-title {
		font-size: 32px;
	}
	
	.video-description {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.video-section-grid {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	
	.video-content-left {
		padding: 0;
		min-height: 400px;
	}
	
	.video-content-right {
		padding: 40px 20px;
	}
	
	.video-title {
		font-size: 28px;
	}
	
	.video-description {
		font-size: 14px;
	}
	
	.video-play-button svg {
		width: 60px;
		height: 60px;
	}
	
	.video-contact-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ========================================
   推荐产品
   ======================================== */

.recommended-products-section {
	margin-bottom: 80px;
	padding: 60px 0;
	background: transparent; /* 移除背景 */
}

.recommended-products-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0; /* 移除padding */
}

.recommended-section-title {
	font-size: 32px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 40px 0;
	text-align: left; /* 靠左显示 */
}

.recommended-products-swiper {
	position: relative;
	padding: 10px; /* 改为10px */
	padding-bottom: 60px; /* 为分页器留出更多空间 */
}

/* 推荐产品导航按钮 - 移除 */
.recommended-prev,
.recommended-next {
	display: none !important; /* 移除左右切换按钮 */
}

/* 推荐产品分页器 */
.recommended-pagination {
	bottom: 10px !important; /* 往下移动 */
}

.recommended-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	transition: all 0.3s;
}

.recommended-pagination .swiper-pagination-bullet-active {
	background: #1c4899;
	width: 30px;
	border-radius: 5px;
}

/* 推荐产品响应式 */
@media (max-width: 1024px) {
	.recommended-section-title {
		font-size: 28px;
	}
	
	.recommended-products-swiper {
		padding: 10px;
		padding-bottom: 60px;
	}
}

@media (max-width: 768px) {
	.recommended-products-section {
		padding: 40px 0;
	}
	
	.recommended-section-title {
		font-size: 24px;
		margin-bottom: 30px;
	}
	
	.recommended-products-swiper {
		padding: 10px;
		padding-bottom: 60px;
	}
}

/* ========================================
   产品特征展示
   ======================================== */

.product-features-section {
	margin-bottom: 60px;
	background: #fff;
	padding: 0;
}

.features-section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 30px 0;
}

.features-display-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.feature-display-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	transition: all 0.3s;
}

.feature-display-item:hover {
	background: #fff5f0;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(255, 113, 1, 0.1);
}

.feature-check-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-text {
	font-size: 14px;
	color: #333;
	line-height: 1.4;
}

/* ========================================
   隐藏WooCommerce默认tabs
   ======================================== */

.woocommerce-tabs {
	display: none !important;
}

/* ========================================
   询盘弹窗
   ======================================== */

.inquiry-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

.inquiry-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.inquiry-modal-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.inquiry-modal-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 1200px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.inquiry-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.inquiry-modal-close:hover {
	background: transparent;
	color: #ff6b6b;
	transform: rotate(90deg);
}

.inquiry-modal-grid {
	display: grid;
	grid-template-columns: 70% 30%;
	min-height: 500px;
}

/* 左侧：表单区域 */
.inquiry-form-section {
	padding: 50px 40px;
	border-right: 1px solid #e0e0e0;
}

.inquiry-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px 0;
}

.inquiry-subtitle {
	font-size: 15px;
	color: #666;
	margin: 0 0 30px 0;
}

.inquiry-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.inquiry-form-group {
	margin-bottom: 20px;
}

.inquiry-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.inquiry-form-group .required {
	color: #ff6b6b;
}

.inquiry-form-group input,
.inquiry-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s;
	font-family: inherit;
}

.inquiry-form-group input:focus,
.inquiry-form-group textarea:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.inquiry-form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.inquiry-submit-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 32px;
	background: #1c4899;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 10px;
}

.inquiry-submit-btn:hover {
	background: #e66401;
	transform: translateY(-2px);
}

.inquiry-submit-btn svg {
	flex-shrink: 0;
}

/* 右侧：产品信息区域 */
.inquiry-product-section {
	padding: 50px 30px;
	background: #f9f9f9;
	border-radius: 0 16px 16px 0;
}

.inquiry-product-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.inquiry-product-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 25px;
}

.inquiry-product-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.inquiry-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.inquiry-product-info {
	padding: 20px;
}

.inquiry-product-info h4 {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.inquiry-product-cat {
	font-size: 13px;
	color: #0073aa;
	font-weight: 500;
	margin: 0 0 8px 0;
}

.inquiry-product-sku {
	font-size: 13px;
	color: #666;
	margin: 0;
}

.inquiry-product-sku strong {
	color: #333;
}

/* 产品属性列表 */
.inquiry-product-attributes {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-top: 20px;
}

.inquiry-product-attributes h4 {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 15px 0;
}

.inquiry-attributes-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.inquiry-attr-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	background: transparent;
	font-size: 12px;
	color: #555;
}

.inquiry-attr-item .attr-check-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.inquiry-attr-item .attr-check-icon svg {
	width: 14px;
	height: 14px;
}

.inquiry-attr-item span {
	line-height: 1.3;
	word-break: break-word;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 */
@media (max-width: 1024px) {
	.single-product-container {
		padding: 30px 15px;
	}
	
	.product-title {
		font-size: 28px;
	}
	
	.product-info-grid {
		gap: 40px;
	}
	
	.product-info-section {
		padding: 30px;
	}
	
	/* 平板端内饰图保持原样 */
}

/* 移动设备 */
@media (max-width: 768px) {
	.single-product-container {
		padding: 20px 10px;
	}
	
	.product-back-button-wrapper {
		margin-bottom: 15px;
	}
	
	.product-back-button {
		padding: 8px 16px;
		font-size: 14px;
	}
	
	.product-back-button svg {
		width: 20px;
		height: 20px;
	}
	
	.product-title {
		font-size: 24px;
	}
	
	.product-info-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.product-info-section,
	.product-specification-section,
	.product-interior-section {
		padding: 25px 20px;
	}
	
	.section-title {
		font-size: 20px;
	}
	
	.attributes-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	/* 移动端表格横向滚动 */
	.specification-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.specification-content table thead,
	.specification-content table tbody {
		display: table;
		width: 100%;
	}
	
	.specification-content table th,
	.specification-content table td {
		white-space: nowrap;
	}
	
	/* 缩略图响应式 */
	.interior-thumbnails {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	/* 产品特征响应式 */
	.features-display-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	/* 询盘弹窗响应式 */
	.inquiry-modal-grid {
		grid-template-columns: 1fr;
	}
	
	.inquiry-form-section {
		padding: 30px 20px;
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
	}
	
	.inquiry-product-section {
		padding: 30px 20px;
		border-radius: 0 0 16px 16px;
	}
	
	.inquiry-title {
		font-size: 24px;
	}
	
	.inquiry-form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
	.product-back-button-wrapper {
		margin-bottom: 12px;
	}
	
	.product-back-button {
		padding: 6px 12px;
		font-size: 13px;
	}
	
	.product-back-button svg {
		width: 18px;
		height: 18px;
	}
	
	.product-title {
		font-size: 20px;
	}
	
	.woocommerce-breadcrumb {
		font-size: 12px;
		flex-wrap: wrap;
		justify-content: center;
		gap: 5px;
	}
	
	.breadcrumb-dot {
		font-size: 14px;
	}
	
	.product-info-section,
	.product-specification-section,
	.product-interior-section {
		padding: 20px 15px;
		border-radius: 8px;
	}
	
	.section-title {
		font-size: 18px;
		padding-bottom: 10px;
	}
	
	.short-desc-content,
	.specification-content {
		font-size: 14px;
	}
	
	.attribute-item {
		padding: 12px;
	}
	
	.attr-text {
		font-size: 14px;
	}
	
	/* 小屏内饰图保持原样 */
	
	/* 缩略图小屏响应式 */
	.interior-thumbnails {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	/* 产品特征小屏响应式 */
	.features-display-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	/* 询盘弹窗小屏优化 */
	.inquiry-modal-container {
		padding: 10px;
	}
	
	.inquiry-modal-content {
		max-height: 95vh;
	}
	
	.inquiry-form-section,
	.inquiry-product-section {
		padding: 20px 15px;
	}
	
	.inquiry-title {
		font-size: 20px;
	}
	
	.inquiry-modal-close {
		width: 35px;
		height: 35px;
		font-size: 24px;
		top: 10px;
		right: 10px;
	}
	
	/* 产品属性响应式 */
	.inquiry-attributes-grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   打印样式
   ======================================== */

@media print {
	.inquiry-modal {
		display: none !important;
	}
	
	.single-product-container {
		box-shadow: none;
	}
	
	.product-info-section,
	.product-specification-section,
	.product-interior-section {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}
