/**
 * Product Enhanced Styles
 * 
 * 产品详情页增强样式 - 现代电商设计
 * 
 * @package LightingTheme
 * @subpackage WooCommerce
 */

/* ========================================
   CSS 变量定义
   ======================================== */

:root {
	--product-primary: var(--theme-color-primary, #2563eb);
	--product-primary-dark: var(--theme-color-primary-dark, #1d4ed8);
	--product-price: #e53935;
	--product-price-old: #999;
	--product-success: #10b981;
	--product-warning: #f59e0b;
	--product-danger: #ef4444;
	--product-text: #1a1a1a;
	--product-text-secondary: #666;
	--product-text-muted: #999;
	--product-bg: #fff;
	--product-bg-secondary: #f8f9fa;
	--product-bg-tertiary: #f0f0f0;
	--product-border: #e5e7eb;
	--product-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--product-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
	--product-radius: 12px;
	--product-radius-sm: 8px;
	--product-radius-lg: 16px;
	--product-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   产品页面整体布局
   ======================================== */

.product-page-wrapper {
	max-width: 1280px;
	margin: 0 auto;
	padding: 30px 20px 60px;
	background: var(--product-bg);
}

.product-enhanced-layout {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

/* 面包屑导航优化 */
.woocommerce-breadcrumb {
	padding: 0 0 20px;
	font-size: 13px;
	color: var(--product-text-muted);
}

.woocommerce-breadcrumb a {
	color: var(--product-text-secondary);
	text-decoration: none;
	transition: var(--product-transition);
}

.woocommerce-breadcrumb a:hover {
	color: var(--product-primary);
}

/* ========================================
   产品顶部区域 (画廊 + 基本信息)
   ======================================== */

.product-top-section {
	display: grid;
	grid-template-columns: 480px 1fr;
	gap: 50px;
	align-items: start;
	width: 100%;
}

/* ========================================
   产品画廊区 - 精致设计
   ======================================== */

.product-gallery-wrapper {
	position: sticky;
	top: 100px;
	width: 100%;
	max-width: 480px;
}

.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 480px;
}

/* 主图区域 */
.gallery-main {
	position: relative;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	background: linear-gradient(145deg, #fafafa 0%, #f0f0f0 100%);
	border-radius: var(--product-radius-lg);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--product-shadow);
}

.gallery-main .main-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main:hover .main-image {
	transform: scale(1.02);
}

.gallery-main .main-video {
	width: 100%;
	height: 100%;
}

.gallery-main .product-video,
.gallery-main .video-embed {
	width: 100%;
	height: 100%;
}

.gallery-main .video-embed iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* 放大按钮 */
.zoom-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: var(--product-transition);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transform: scale(0.9);
}

.gallery-main:hover .zoom-btn {
	opacity: 1;
	transform: scale(1);
}

.zoom-btn:hover {
	background: var(--product-primary);
	color: #fff;
	transform: scale(1.1);
}

/* 导航箭头 */
.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--product-transition);
	z-index: 10;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	color: var(--product-text);
	opacity: 0;
}

.gallery-main:hover .gallery-nav {
	opacity: 1;
}

.gallery-nav:hover {
	background: var(--product-primary);
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
	left: 16px;
}

.gallery-nav-next {
	right: 16px;
}

.gallery-nav svg {
	width: 20px;
	height: 20px;
}

/* 指示点 */
.gallery-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.gallery-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: var(--product-border);
	cursor: pointer;
	transition: var(--product-transition);
	padding: 0;
}

.gallery-dot:hover {
	background: var(--product-text-muted);
}

.gallery-dot.active {
	background: var(--product-primary);
	transform: scale(1.3);
}

/* 缩略图 */
.gallery-thumbnails {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--product-border) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
	height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
	background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
	background: var(--product-border);
	border-radius: 3px;
}

.thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border: 2px solid transparent;
	border-radius: var(--product-radius-sm);
	overflow: hidden;
	cursor: pointer;
	transition: var(--product-transition);
	background: var(--product-bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.thumbnail:hover {
	border-color: var(--product-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.thumbnail.active {
	border-color: var(--product-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbnail .video-thumbnail {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
}

.thumbnail .video-play-icon {
	font-size: 24px;
	position: absolute;
	z-index: 1;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.thumbnail .video-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
}

/* ========================================
   产品基本信息区 - 精致设计
   ======================================== */

.product-summary-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* 产品标题 */
.product-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--product-text);
	letter-spacing: -0.02em;
}

/* 评分区域 */
.product-rating-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.product-rating-wrapper .star-rating {
	font-size: 16px;
	color: #fbbf24;
}

.product-rating-wrapper .woocommerce-review-link {
	font-size: 14px;
	color: var(--product-text-secondary);
	text-decoration: none;
	transition: var(--product-transition);
}

.product-rating-wrapper .woocommerce-review-link:hover {
	color: var(--product-primary);
}

/* 价格区域 - 突出显示 */
.product-price-wrapper {
	padding: 20px;
	background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
	border-radius: var(--product-radius);
	border: 1px solid #fee2e2;
}

.product-price-wrapper .price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.product-price-wrapper .price > .woocommerce-Price-amount,
.product-price-wrapper .price ins .woocommerce-Price-amount {
	font-size: 36px;
	font-weight: 800;
	color: var(--product-price);
	text-decoration: none;
}

.product-price-wrapper .price del {
	font-size: 18px;
	color: var(--product-price-old);
	text-decoration: line-through;
}

.product-price-wrapper .price del .woocommerce-Price-amount {
	font-size: inherit;
	color: inherit;
}

/* 促销标签 */
.product-price-wrapper .onsale-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
}

/* 产品元信息 */
.product-meta-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid var(--product-border);
	border-bottom: 1px solid var(--product-border);
	font-size: 14px;
	color: var(--product-text-secondary);
}

.product-meta-info .sku-wrapper,
.product-meta-info .stock-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
}

.product-meta-info .sku-label,
.product-meta-info .stock-label {
	color: var(--product-text-muted);
}

.product-meta-info .stock-wrapper.in-stock {
	color: var(--product-success);
}

.product-meta-info .stock-wrapper.in-stock::before {
	content: "●";
	font-size: 8px;
}

.product-meta-info .stock-wrapper.out-of-stock {
	color: var(--product-danger);
}

.product-meta-info .stock-wrapper.out-of-stock::before {
	content: "●";
	font-size: 8px;
}

/* ========================================
   加入购物车区域 - 突出设计
   ======================================== */

.product-summary-wrapper .cart {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* 数量选择器 */
.product-summary-wrapper .quantity {
	display: flex;
	align-items: center;
	border: 2px solid var(--product-border);
	border-radius: var(--product-radius-sm);
	overflow: hidden;
	width: fit-content;
}

.product-summary-wrapper .quantity .qty {
	width: 60px;
	height: 48px;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--product-text);
	background: var(--product-bg);
	-moz-appearance: textfield;
}

.product-summary-wrapper .quantity .qty::-webkit-outer-spin-button,
.product-summary-wrapper .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* 加入购物车按钮 */
.product-summary-wrapper .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	padding: 0 32px;
	background: linear-gradient(135deg, var(--product-primary) 0%, var(--product-primary-dark) 100%);
	color: #fff;
	border: none;
	border-radius: var(--product-radius);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--product-transition);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.product-summary-wrapper .single_add_to_cart_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.product-summary-wrapper .single_add_to_cart_button:active {
	transform: translateY(0);
}

.product-summary-wrapper .single_add_to_cart_button::before {
	content: "🛒";
	font-size: 20px;
}

/* 变体选择器 */
.product-summary-wrapper .variations {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 12px;
}

.product-summary-wrapper .variations tr {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-summary-wrapper .variations .label {
	font-weight: 600;
	color: var(--product-text);
	font-size: 14px;
}

.product-summary-wrapper .variations select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 2px solid var(--product-border);
	border-radius: var(--product-radius-sm);
	font-size: 15px;
	color: var(--product-text);
	background: var(--product-bg);
	cursor: pointer;
	transition: var(--product-transition);
}

.product-summary-wrapper .variations select:focus {
	outline: none;
	border-color: var(--product-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   服务保障区域 - 卡片设计
   ======================================== */

.product-guarantees {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 20px;
	background: var(--product-bg-secondary);
	border-radius: var(--product-radius);
	margin-top: 8px;
}

.guarantee-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px 8px;
	background: var(--product-bg);
	border-radius: var(--product-radius-sm);
	text-align: center;
	transition: var(--product-transition);
}

.guarantee-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--product-shadow);
}

.guarantee-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	border-radius: 50%;
	font-size: 16px;
	color: var(--product-success);
}

.guarantee-text {
	font-size: 12px;
	font-weight: 500;
	color: var(--product-text-secondary);
	line-height: 1.3;
}


/* ========================================
   Tab导航和内容区 - 现代设计
   ======================================== */

.product-tabs-section {
	width: 100%;
	background: var(--product-bg);
	border-radius: var(--product-radius-lg);
	box-shadow: var(--product-shadow);
	overflow: hidden;
}

/* Tab导航 */
.product-tabs-nav {
	display: flex;
	gap: 0;
	background: var(--product-bg-secondary);
	padding: 8px;
	border-bottom: none;
}

.tab-button {
	flex: 1;
	padding: 16px 24px;
	background: transparent;
	border: none;
	border-radius: var(--product-radius-sm);
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: var(--product-text-secondary);
	transition: var(--product-transition);
	position: relative;
}

.tab-button:hover {
	color: var(--product-primary);
	background: rgba(37, 99, 235, 0.05);
}

.tab-button.active {
	color: var(--product-primary);
	background: var(--product-bg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-button .review-count {
	font-size: 13px;
	font-weight: 500;
	color: var(--product-text-muted);
	margin-left: 4px;
}

.tab-button.active .review-count {
	color: var(--product-primary);
}

/* Tab内容区 */
.product-tabs-content {
	padding: 32px;
	min-height: 400px;
}

.tab-panel {
	display: none;
	animation: tabFadeIn 0.4s ease;
}

.tab-panel.active {
	display: block;
}

@keyframes tabFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   规格参数表 - 精致表格设计
   ======================================== */

.product-specifications {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.spec-group {
	border: 1px solid var(--product-border);
	border-radius: var(--product-radius);
	overflow: hidden;
	transition: var(--product-transition);
}

.spec-group:hover {
	box-shadow: var(--product-shadow);
}

.spec-group-title {
	padding: 16px 20px;
	background: linear-gradient(135deg, var(--product-bg-secondary) 0%, #fff 100%);
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--product-text);
	cursor: pointer;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--product-border);
}

.spec-group-title::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--product-text-muted);
	border-bottom: 2px solid var(--product-text-muted);
	transform: rotate(45deg);
	transition: var(--product-transition);
}

.spec-group.collapsed .spec-group-title::after {
	transform: rotate(-135deg);
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
}

.spec-table tbody {
	display: table-row-group;
}

.spec-group.collapsed .spec-table {
	display: none;
}

.spec-table tr {
	border-bottom: 1px solid var(--product-border);
	transition: var(--product-transition);
}

.spec-table tr:last-child {
	border-bottom: none;
}

.spec-table tr:hover {
	background: var(--product-bg-secondary);
}

.spec-table td {
	padding: 14px 20px;
	font-size: 14px;
}

.spec-label {
	width: 35%;
	font-weight: 500;
	color: var(--product-text-secondary);
	background: rgba(248, 249, 250, 0.5);
}

.spec-value {
	width: 65%;
	color: var(--product-text);
}

.spec-unit {
	margin-left: 4px;
	color: var(--product-text-muted);
	font-size: 13px;
}

.no-specifications {
	text-align: center;
	padding: 60px 40px;
	color: var(--product-text-muted);
	font-size: 15px;
}

.no-specifications::before {
	content: "📋";
	display: block;
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

/* ========================================
   详情内容区 - 富文本样式
   ======================================== */

.product-description-content {
	line-height: 1.8;
	color: var(--product-text);
	font-size: 15px;
}

.product-description-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--product-radius);
	margin: 20px 0;
	box-shadow: var(--product-shadow);
}

.product-description-content h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 40px 0 20px;
	color: var(--product-text);
	padding-bottom: 12px;
	border-bottom: 2px solid var(--product-primary);
}

.product-description-content h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 32px 0 16px;
	color: var(--product-text);
}

.product-description-content h4 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 12px;
	color: var(--product-text);
}

.product-description-content p {
	margin-bottom: 16px;
}

.product-description-content ul,
.product-description-content ol {
	margin-bottom: 20px;
	padding-left: 24px;
}

.product-description-content li {
	margin-bottom: 8px;
}

.product-description-content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: var(--product-bg-secondary);
	border-left: 4px solid var(--product-primary);
	border-radius: 0 var(--product-radius-sm) var(--product-radius-sm) 0;
	font-style: italic;
	color: var(--product-text-secondary);
}

.product-description-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	border-radius: var(--product-radius-sm);
	overflow: hidden;
	box-shadow: var(--product-shadow);
}

.product-description-content table th,
.product-description-content table td {
	padding: 12px 16px;
	border: 1px solid var(--product-border);
	text-align: left;
}

.product-description-content table th {
	background: var(--product-bg-secondary);
	font-weight: 600;
}

.no-description {
	text-align: center;
	padding: 60px 40px;
	color: var(--product-text-muted);
	font-size: 15px;
}

.no-description::before {
	content: "📝";
	display: block;
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

/* ========================================
   用户评价区域 - 优化设计
   ======================================== */

#tab-reviews .woocommerce-Reviews {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

#tab-reviews .woocommerce-Reviews-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--product-text);
	margin: 0;
}

/* 评价列表 */
#tab-reviews .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#tab-reviews .commentlist li.review {
	padding: 24px;
	background: var(--product-bg-secondary);
	border-radius: var(--product-radius);
	transition: var(--product-transition);
}

#tab-reviews .commentlist li.review:hover {
	box-shadow: var(--product-shadow);
}

#tab-reviews .comment_container {
	display: flex;
	gap: 16px;
}

#tab-reviews .comment_container .avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex-shrink: 0;
}

#tab-reviews .comment-text {
	flex: 1;
}

#tab-reviews .comment-text .meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

#tab-reviews .comment-text .woocommerce-review__author {
	font-weight: 600;
	color: var(--product-text);
}

#tab-reviews .comment-text .woocommerce-review__published-date {
	font-size: 13px;
	color: var(--product-text-muted);
}

#tab-reviews .comment-text .star-rating {
	font-size: 14px;
}

#tab-reviews .comment-text .description p {
	margin: 0;
	color: var(--product-text-secondary);
	line-height: 1.6;
}

/* 评价表单 */
#tab-reviews #review_form_wrapper {
	padding: 24px;
	background: var(--product-bg-secondary);
	border-radius: var(--product-radius);
}

#tab-reviews #reply-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--product-text);
	margin: 0 0 20px;
}

#tab-reviews .comment-form-rating {
	margin-bottom: 20px;
}

#tab-reviews .comment-form-rating label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--product-text);
}

#tab-reviews .comment-form-comment textarea {
	width: 100%;
	min-height: 120px;
	padding: 16px;
	border: 2px solid var(--product-border);
	border-radius: var(--product-radius-sm);
	font-size: 15px;
	resize: vertical;
	transition: var(--product-transition);
}

#tab-reviews .comment-form-comment textarea:focus {
	outline: none;
	border-color: var(--product-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#tab-reviews .form-submit input[type="submit"] {
	padding: 14px 32px;
	background: var(--product-primary);
	color: #fff;
	border: none;
	border-radius: var(--product-radius-sm);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--product-transition);
}

#tab-reviews .form-submit input[type="submit"]:hover {
	background: var(--product-primary-dark);
	transform: translateY(-2px);
}

/* ========================================
   相关产品区域
   ======================================== */

.related.products,
.upsells.products {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--product-border);
}

.related.products > h2,
.upsells.products > h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--product-text);
	margin: 0 0 32px;
	text-align: center;
}

.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.related.products ul.products li.product,
.upsells.products ul.products li.product {
	background: var(--product-bg);
	border-radius: var(--product-radius);
	overflow: hidden;
	box-shadow: var(--product-shadow);
	transition: var(--product-transition);
}

.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--product-shadow-hover);
}

.related.products ul.products li.product a img,
.upsells.products ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
	padding: 16px 16px 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--product-text);
	line-height: 1.4;
}

.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
	padding: 0 16px 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--product-price);
}


/* ========================================
   WooCommerce 通知消息
   ======================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 16px 20px;
	margin-bottom: 24px;
	border-radius: var(--product-radius-sm);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.woocommerce-message {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #86efac;
	color: #166534;
}

.woocommerce-message::before {
	content: "✓";
	width: 24px;
	height: 24px;
	background: var(--product-success);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.woocommerce-info {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border: 1px solid #93c5fd;
	color: #1e40af;
}

.woocommerce-info::before {
	content: "i";
	width: 24px;
	height: 24px;
	background: var(--product-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.woocommerce-error {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.woocommerce-error::before {
	content: "!";
	width: 24px;
	height: 24px;
	background: var(--product-danger);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

/* ========================================
   响应式设计 - 平板端
   ======================================== */

@media screen and (max-width: 1024px) {
	.product-page-wrapper {
		padding: 20px 16px 40px;
	}

	.product-top-section {
		grid-template-columns: 380px 1fr;
		gap: 30px;
	}

	.product-gallery-wrapper,
	.product-gallery,
	.gallery-main {
		max-width: 380px;
	}

	.product-gallery-wrapper {
		position: static;
	}

	.product-title {
		font-size: 24px;
	}

	.product-price-wrapper .price > .woocommerce-Price-amount,
	.product-price-wrapper .price ins .woocommerce-Price-amount {
		font-size: 30px;
	}

	.product-guarantees {
		grid-template-columns: repeat(3, 1fr);
	}

	.product-tabs-content {
		padding: 24px;
	}

	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

/* ========================================
   响应式设计 - 移动端
   ======================================== */

@media screen and (max-width: 768px) {
	.product-page-wrapper {
		padding: 16px 12px 32px;
		width: 100%;
	}

	.product-enhanced-layout {
		gap: 32px;
	}

	.product-top-section {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.product-gallery-wrapper,
	.product-gallery,
	.gallery-main {
		max-width: 100%;
		width: 100%;
	}

	.product-summary-wrapper {
		width: 100%;
	}

	.product-title {
		font-size: 20px;
	}

	.product-price-wrapper {
		padding: 16px;
	}

	.product-price-wrapper .price > .woocommerce-Price-amount,
	.product-price-wrapper .price ins .woocommerce-Price-amount {
		font-size: 26px;
	}

	.product-meta-info {
		gap: 12px;
		font-size: 13px;
	}

	.product-guarantees {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.guarantee-item {
		flex-direction: row;
		justify-content: flex-start;
		padding: 12px 16px;
	}

	.guarantee-icon {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.product-summary-wrapper .single_add_to_cart_button {
		height: 52px;
		font-size: 16px;
	}

	/* Tab导航 - 移动端滚动 */
	.product-tabs-nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 6px;
	}

	.product-tabs-nav::-webkit-scrollbar {
		display: none;
	}

	.tab-button {
		flex: none;
		padding: 12px 20px;
		font-size: 14px;
		white-space: nowrap;
	}

	.product-tabs-content {
		padding: 20px 16px;
	}

	/* 规格参数表 - 移动端 */
	.spec-label {
		width: 40%;
	}

	.spec-value {
		width: 60%;
	}

	.spec-table td {
		padding: 12px 16px;
		font-size: 13px;
	}

	/* 缩略图 - 移动端 */
	.gallery-thumbnails {
		gap: 8px;
	}

	.thumbnail {
		width: 64px;
		height: 64px;
	}

	/* 相关产品 - 移动端 */
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.related.products ul.products li.product .woocommerce-loop-product__title,
	.upsells.products ul.products li.product .woocommerce-loop-product__title {
		padding: 12px 12px 6px;
		font-size: 13px;
	}

	.related.products ul.products li.product .price,
	.upsells.products ul.products li.product .price {
		padding: 0 12px 12px;
		font-size: 14px;
	}

	/* 评价区域 - 移动端 */
	#tab-reviews .commentlist li.review {
		padding: 16px;
	}

	#tab-reviews .comment_container {
		flex-direction: column;
		gap: 12px;
	}

	#tab-reviews .comment_container .avatar {
		width: 40px;
		height: 40px;
	}
}

/* ========================================
   响应式设计 - 小屏手机
   ======================================== */

@media (max-width: 480px) {
	.product-page-wrapper {
		padding: 12px 10px 24px;
	}

	.product-title {
		font-size: 18px;
	}

	.product-price-wrapper .price > .woocommerce-Price-amount,
	.product-price-wrapper .price ins .woocommerce-Price-amount {
		font-size: 24px;
	}

	.tab-button {
		padding: 10px 16px;
		font-size: 13px;
	}

	.spec-table td {
		padding: 10px 12px;
		font-size: 12px;
	}

	.thumbnail {
		width: 56px;
		height: 56px;
	}

	.product-summary-wrapper .single_add_to_cart_button {
		height: 48px;
		font-size: 15px;
	}
}

/* ========================================
   打印样式
   ======================================== */

@media print {
	.product-page-wrapper {
		max-width: 100%;
		padding: 0;
	}

	.product-gallery-wrapper {
		position: static;
	}

	.gallery-nav,
	.zoom-btn,
	.gallery-thumbnails,
	.product-guarantees,
	.single_add_to_cart_button,
	.related.products,
	.upsells.products {
		display: none !important;
	}

	.product-top-section {
		grid-template-columns: 1fr 1fr;
	}

	.product-tabs-section {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* ========================================
   动画效果
   ======================================== */

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* 加载状态 */
.product-gallery.loading .gallery-main {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

/* 按钮点击效果 */
.single_add_to_cart_button:active {
	animation: pulse 0.2s ease;
}

/* 图片加载淡入 */
.gallery-main .main-image {
	opacity: 0;
	animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
	to {
		opacity: 1;
	}
}

/* ========================================
   占位符画廊样式
   ======================================== */

.product-gallery-placeholder .gallery-main {
	background: var(--product-bg-secondary);
}

.product-gallery-placeholder .placeholder-image {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 40px;
	color: var(--product-text-muted);
}

.product-gallery-placeholder .placeholder-image svg {
	opacity: 0.5;
}

.product-gallery-placeholder .placeholder-image p {
	margin: 0;
	font-size: 14px;
}
