/**
 * Custom E-commerce Styles
 */

/* 页面背景色 */
body {
	background-color: #f5f7fa !important;
}

/* 顶部导航自定义链接 - 已删除 */

/* Logo 图标样式 */
.site-logo-img {
	height: 40px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	display: block;
}

.navbar-brand .site-logo-link {
	display: flex;
	align-items: center;
}

/* 导航栏样式 */
.navbar-primary {
	background: #000000 !important;
}

.navbar-primary .navbar-wrap {
	position: relative;
	border-bottom: none;
	background: #000000;
	height: 80px !important;
	min-height: 80px;
}

.navbar-primary .navbar-wrap::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 10px;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="180" height="38" viewBox="0 0 48 10"><path d="M0-.067h48v10.134H0Z" style="fill:%23fff631"/><path d="M24-.067 13.867 10.067h24L48-.067Z" style="fill:%23000"/></svg>');
	background-repeat: repeat-x;
	background-size: auto 10px;
	background-position: bottom;
}

/* 导航菜单样式 */
.navbar-primary .navbar-nav > li > a {
	color: #ffffff !important; /* 白色 - 未选中状态 */
	transition: color 0.3s ease;
	font-size: 1rem !important; /* 增大字体大小 */
}

.navbar-primary .navbar-nav > li > a:hover {
	color: #e0e0e0 !important; /* 悬停时稍微浅一点 */
}

.navbar-primary .navbar-nav > li.current-menu-ancestor > a,
.navbar-primary .navbar-nav > li.current-menu-item > a {
	color: #ffffff !important; /* 白色 - 选中状态 */
	font-weight: 600;
}

/* 公告栏样式 - 简约版 */
.notice-bar-container {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 0;
	overflow: hidden;
}

.notice-bar-header {
	padding: 12px 20px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.notice-bar-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.notice-bar-content {
	padding: 20px;
	background: #fff;
}

.notice-bar-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.notice-bar-list li {
	margin-bottom: 10px;
	padding-left: 16px;
	position: relative;
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
}

.notice-bar-list li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: #6b7280;
	font-size: 16px;
}

.notice-bar-list li:last-child {
	margin-bottom: 0;
}

.notice-bar-list li strong {
	font-weight: 600;
	color: #1f2937;
}

/* 商店页面布局 */
.woocommerce-shop-wrapper .shop-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* 商品分类侧边栏 - 完全按照图二重新设计（HTML和CSS都重做） */
.product-categories-sidebar {
	width: 250px;
	flex-shrink: 0;
	background: #ffffff;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	position: sticky;
	top: 20px;
	margin-bottom: 0;
	box-shadow: none;
	align-self: flex-start;
}

.categories-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px 0;
	padding: 0;
	border: none;
	border-bottom: none;
	color: #1f2937;
	line-height: 1.5;
	height: 24px;
	display: flex;
	align-items: center;
}

.categories-list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #ffffff;
}

.categories-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-item {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
}

.category-item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-size: 14px;
	line-height: 1.5;
	background: transparent;
	width: 100%;
}

.category-name {
	color: #374151;
	font-weight: 400;
	flex: 1;
}

.category-count {
	font-size: 13px;
	color: #9ca3af;
	padding: 0;
	margin: 0;
	margin-left: auto;
	font-weight: 400;
	line-height: 1.5;
}

/* 未选中状态的悬停效果 */
.category-item:not(.active) a:hover .category-name {
	color: #007bff;
}

.category-item:not(.active) a:hover .category-count {
	color: #9ca3af;
}

/* 选中状态 - 浅蓝色背景 #e7f3ff，圆角 4px，文字和数量都是 #007bff，粗体 600 */
.category-item.active a {
	background: #e7f3ff;
	border-radius: 4px;
}

.category-item.active a .category-name {
	color: #007bff;
	font-weight: 600;
}

.category-item.active a .category-count {
	color: #007bff;
	font-weight: 600;
}

/* 商品内容区域 */
.products-wrapper {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
}

/* 加载状态样式 */
.products .loading-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	padding: 15px 20px;
	margin: 0;
	list-style: none;
	text-align: center;
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 加载动画样式 */
.products .loading-item .loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.products .loading-item:first-child {
	border-top: 1px solid #e5e7eb;
}

.products .loading-item:last-child {
	border-bottom: 1px solid #e5e7eb;
}

.products .error-item,
.products .no-products {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	padding: 15px 20px;
	margin: 0;
	list-style: none;
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.products .error-item > div,
.products .no-products > div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.products .error-item p,
.products .no-products p {
	margin: 0;
}

.products .error-item:first-child,
.products .no-products:first-child {
	border-top: 1px solid #e5e7eb;
	border-radius: 4px 4px 0 0;
}

.products .error-item:last-child,
.products .no-products:last-child {
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0 0 4px 4px;
}

.products .error-item:only-child,
.products .no-products:only-child {
	border-radius: 4px;
	border-bottom: 1px solid #e5e7eb;
}

/* 确保商品列表区域有合适的间距 */
.products-wrapper .product-search-bar-wrapper {
	margin-bottom: 10px;
}

.products-wrapper .products-list-title {
	margin-top: 10px;
	margin-bottom: 0;
}

.woocommerce-products-header {
	margin-bottom: 30px;
}

.woocommerce-products-header__title {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 20px;
}

/* ============================================
   产品列表 - 完全重写
   ============================================ */

/* 产品列表容器 */
.products,
ul.products,
.woocommerce ul.products {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin: 20px 0 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: #ffffff;
}

/* 加载中时，products 背景变为灰白色 */
.products.loading {
	background: #f5f7fa;
}

/* 产品项 */
.products li.product-item,
ul.products li.product-item,
.woocommerce ul.products li.product-item {
	background: #fff;
	border: 1px solid #e5e7eb; /* 实线边框，包含上下左右 */
	border-bottom: none; /* 移除底部边框，避免重复 */
	padding: 15px 20px;
	margin: 0;
	list-style: none;
	position: relative;
}

.products li.product-item:first-child,
ul.products li.product-item:first-child,
.woocommerce ul.products li.product-item:first-child {
	border-top: 1px solid #e5e7eb; /* 第一个产品顶部边框 */
	background: #fff; /* 默认白色背景 */
}

.products li.product-item:last-child,
ul.products li.product-item:last-child,
.woocommerce ul.products li.product-item:last-child {
	border-bottom: 1px solid #e5e7eb; /* 最后一个产品底部边框 */
}

/* 相邻产品之间的边框处理 */
.products li.product-item + li.product-item,
ul.products li.product-item + li.product-item,
.woocommerce ul.products li.product-item + li.product-item {
	border-top: none; /* 移除相邻产品的顶部边框，避免重复 */
}

/* 只有选中/激活状态的产品才有蓝色背景 */
.products li.product-item.active,
ul.products li.product-item.active,
.woocommerce ul.products li.product-item.active {
	background: #e3f2fd;
}

.products li.product-item:hover,
ul.products li.product-item:hover,
.woocommerce ul.products li.product-item:hover {
	background: #f9fafb;
}

/* 产品项链接 - 覆盖整个产品项 */
.product-item-link {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
}

.product-item-link:hover {
	text-decoration: none;
	color: inherit;
}

/* 产品行 - 横向布局 */
.product-row {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
}

/* 左侧：产品图标 */
.product-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-icon img {
	width: 40px !important;
	height: 40px !important;
	object-fit: contain;
	border-radius: 50% !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 2px;
}

/* 中间：产品信息 */
.product-info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.product-sku {
	font-weight: normal;
	color: #333;
	margin-right: 0;
}

.product-title {
	font-weight: 400;
	color: #333;
	margin: 0 0 0 5px;
}

.product-features {
	color: #333;
	margin-left: 0;
}

.product-features::before {
	content: ' | ';
	color: #d1d5db;
	margin: 0 8px;
}

/* 右侧：价格和库存 */
.product-price-stock {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	min-width: 120px;
}

/* 价格样式 */
.product-price {
	font-size: 18px;
	font-weight: 600;
	color: #e74c3c;
	white-space: nowrap;
}

.product-price del {
	color: #999;
	font-size: 14px;
	margin-right: 8px;
}

.product-price ins {
	text-decoration: none;
	color: #e74c3c;
}

/* 库存样式 */
.product-stock {
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
}

.product-stock.out-of-stock {
	color: #e74c3c;
}

/* 商品图片/图标 */
.woocommerce ul.products li.product .product-image-wrapper {
	flex-shrink: 0;
}

.woocommerce ul.products li.product .product-image-wrapper a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .product-image-wrapper .woocommerce-loop-product__link {
	display: flex;
	align-items: center;
	text-decoration: none;
	width: auto;
}

.woocommerce ul.products li.product .product-image-wrapper img {
	width: 40px !important;
	height: 40px !important;
	object-fit: contain;
	border-radius: 50% !important; /* 圆形图标 */
	margin: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 2px;
}

.woocommerce ul.products li.product .product-image-wrapper .wc-overlay-background {
	position: relative;
	display: flex;
	align-items: center;
}

.woocommerce ul.products li.product .product-image-wrapper .wc-overlay-background .read-more {
	display: none; /* 隐藏 "View" 文字 */
}

/* 产品图片包装器内的链接 */
.woocommerce ul.products li.product .product-image-wrapper a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

/* 产品信息包装器内的标题 */
.woocommerce ul.products li.product .product-info-wrapper .woocommerce-loop-product__title {
	margin: 0;
}

/* 商品标题和货号 - 横向布局（已在上面定义，这里移除重复） */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
	color: #333;
	font-weight: 400;
	display: inline;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: #333;
	text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: #0073aa;
}

.product-sku {
	font-size: 14px;
	color: #333;
	font-weight: normal;
	display: inline;
	margin-right: 0;
}

/* 产品特性样式 */
.product-features {
	font-size: 14px;
	color: #333;
	display: inline;
}

.product-title-separator,
.feature-separator {
	color: #d1d5db;
	margin: 0 8px;
}

.product-features .feature-separator {
	color: #d1d5db;
}

/* 价格和库存区域 */
.woocommerce ul.products li.product .product-price-stock {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	flex-shrink: 0;
}

/* 价格样式 - 在价格库存包装器内 */
.woocommerce ul.products li.product .product-price-stock-wrapper .price {
	font-size: 18px;
	font-weight: 600;
	color: #e74c3c;
	margin: 0;
	white-space: nowrap;
	display: block;
}

.woocommerce ul.products li.product .product-price-stock-wrapper .price del {
	color: #999;
	font-size: 14px;
	margin-right: 8px;
}

.woocommerce ul.products li.product .product-price-stock-wrapper .price ins {
	text-decoration: none;
	color: #e74c3c;
}

.woocommerce ul.products li.product .price del {
	color: #999;
	font-size: 14px;
	margin-right: 8px;
}

/* 库存信息 - 在价格库存包装器内 */
.woocommerce ul.products li.product .product-price-stock-wrapper .product-stock {
	font-size: 13px;
	color: #9ca3af;
	margin: 0;
	white-space: nowrap;
	display: block;
}

.product-stock.out-of-stock {
	color: #e74c3c;
}

/* 添加到购物车按钮 - 隐藏或调整位置 */
.woocommerce ul.products li.product .button {
	display: none; /* 暂时隐藏按钮，如果需要可以改为显示 */
	/* 如果需要显示按钮，可以使用以下样式：
	margin-top: 0;
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s;
	white-space: nowrap;
	*/
}

.woocommerce ul.products li.product .button:hover {
	background: #005a87;
}

/* 首页样式 */
.homepage-shop-wrapper {
	padding: 10px 0;
}

.homepage-layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	width: 100%;
}

/* 确保侧边栏和内容区域顶部对齐 */
.homepage-layout .product-categories-sidebar,
.homepage-layout .products-wrapper {
	margin-top: 0;
}

/* 覆盖 main-content 的负 margin，确保对齐 */
@media (min-width: 1020px) {
	.homepage-shop-wrapper .main-content {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.homepage-header {
	margin-bottom: 0;
}

.homepage-header .page-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 0;
}

/* 商品列表标题 */
.products-list-title {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 20px 0 0 0;
	padding: 10px 16px;
	line-height: 1.5;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
}

.homepage-shop-wrapper .products,
.homepage-shop-wrapper ul.products,
.homepage-shop-wrapper .woocommerce ul.products {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin-top: 0 !important;
	list-style: none !important;
	padding: 0 !important;
	margin-left: 0 !important;
}

.no-products,
.woocommerce-notice {
	text-align: center;
	padding: 40px;
	background: #f8f9fa;
	border-radius: 8px;
	margin-top: 20px;
}

/* 减少 site-content 的 margin */
.site-content {
	margin: 1rem 0 !important;
}

/* main-content 占 100% 宽度 */
#content.main-content {
	flex: 0 0 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* 移除 content-area 的左右 padding */
#primary.content-area {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* main-content 内的容器也占 100% */
#content.main-content .cs-container {
	max-width: 1400px !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: auto;
	margin-right: auto;
}

/* homepage-shop-wrapper 占 100% */
.homepage-shop-wrapper {
	width: 100% !important;
	max-width: 100% !important;
}

/* homepage-shop-wrapper 内的 cs-container 也占 100% */
.homepage-shop-wrapper .cs-container {
	max-width: 1400px !important;
	width: 100% !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	margin-left: auto;
	margin-right: auto;
}

/* 自定义页脚样式 */
.custom-footer {
	background: #000000 !important;
	color: #fff;
	padding: 60px 0 30px;
}

.footer-main {
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.footer-column-left .footer-logo {
	margin-bottom: 20px;
}

.footer-logo-link,
.footer-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 24px;
	font-weight: 600;
}

.footer-logo-link img {
	max-height: 40px;
	width: auto;
}

.footer-description {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	font-size: 14px;
}

.footer-column-title {
	color: #ffffff !important;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 12px;
}

.footer-links a {
	color: #ffffff !important;
	text-decoration: none;
	transition: color 0.3s;
	font-size: 14px;
}

.footer-links a:hover {
	color: #fff;
}

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 15px;
}

.contact-label {
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 500;
	min-width: 70px;
}

.footer-contact a {
	color: #ffffff !important;
	text-decoration: none;
	transition: color 0.3s;
	font-size: 14px;
}

.footer-contact a:hover {
	color: #fff;
}

.footer-bottom {
	padding-top: 30px;
	text-align: center;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
}

.social-link {
	color: #ffffff !important;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s;
	padding: 0 10px;
}

.social-link:hover {
	color: #fff;
}

.footer-copyright {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.footer-copyright a {
	color: #ffffff !important;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-copyright a:hover {
	color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.woocommerce-shop-wrapper .shop-layout,
	.homepage-layout {
		flex-direction: column;
	}

	.product-categories-sidebar {
		width: 100%;
		position: relative;
		top: 0;
		margin-bottom: 20px;
	}

	.custom-products-grid,
	.homepage-shop-wrapper .products {
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	
	/* 响应式时调整产品列表布局 */
	.woocommerce ul.products li.product {
		flex-wrap: wrap;
		padding: 12px 15px;
	}
	
	.woocommerce ul.products li.product .product-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.woocommerce ul.products li.product .product-price-stock {
		align-items: flex-start;
		width: 100%;
	}

	.navbar-custom-links {
		flex-wrap: wrap;
		gap: 10px;
	}

	/* 页脚响应式 */
	.footer-columns {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-main {
		padding-bottom: 30px;
	}

	.custom-footer {
		padding: 40px 0 20px;
	}
}

/* 商品图片样式已在上面定义 */

/* 公告栏样式 */
.notice-bar {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 20px;
	margin-bottom: 0;
	border-radius: 8px;
}

.notice-bar h4 {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #856404;
}

.notice-content {
	font-size: 14px;
	line-height: 1.6;
	color: #856404;
}

.notice-content p {
	margin: 0 0 10px 0;
}

.notice-content ul {
	margin: 10px 0;
	padding-left: 20px;
}

.notice-content li {
	margin-bottom: 8px;
}

.notice-content a {
	color: #0073aa;
	text-decoration: underline;
}

.notice-content a:hover {
	color: #005a87;
}

/* 产品搜索栏样式 */
.product-search-bar-wrapper {
	margin-bottom: 10px;
}

.product-search-form {
	width: 100%;
}

.search-input-group {
	display: flex;
	align-items: center;
	gap: 0;
	background: #ffffff !important;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.2s ease;
}

/* 移除分类选择框的样式，因为已经删除了 */
.product-category-select {
	display: none;
}

.search-input-group:focus-within {
	border-color: #e5e7eb;
	box-shadow: none;
}

.product-search-input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid transparent !important;
	outline: none;
	font-size: 14px;
	color: #1f2937;
	background: #ffffff !important;
	line-height: 1.5;
}

.product-search-input::placeholder {
	color: #9ca3af;
}

/* 搜索框清除按钮样式 */
.product-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background-color: #e5e7eb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
	border-radius: 50%;
	margin-right: 8px;
}

/* IE/Edge 清除按钮 */
.product-search-input::-ms-clear {
	display: block;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background-color: #e5e7eb;
	color: #6b7280;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
}

/* 分类选择框已移除 */

.product-search-submit {
	padding: 10px 16px;
	border: none;
	background: #ffffff !important;
	cursor: pointer;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
	min-width: 44px;
}

.product-search-submit:hover {
	color: #3b82f6;
	background-color: #f9fafb;
}

.product-search-submit:active {
	transform: scale(0.98);
}

.product-search-submit svg {
	width: 18px;
	height: 18px;
}

/* 响应式 */
@media (max-width: 768px) {
	.search-input-group {
		flex-wrap: nowrap;
	}

	.product-search-submit {
		flex-shrink: 0;
	}
}

/* 订单查询页面样式 */
.order-query-form {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 20px;
	margin-top: 0;
}

.form-group {
	margin-bottom: 16px;
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 14px;
	color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"] {
	width: 100%;
	padding: 10px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 14px;
	color: #1f2937;
	background: #ffffff;
	line-height: 1.5;
	transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
	outline: none;
	border-color: #3b82f6;
}

.form-group button.button {
	padding: 10px 24px;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.form-group button.button:hover {
	background: #2563eb;
}

.order-result {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 20px;
	margin-top: 0;
}

.order-result h2 {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 16px 0;
}

.order-details {
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
}

.order-details p {
	margin: 0 0 12px 0;
}

.order-details p:last-child {
	margin-bottom: 0;
}

.order-details strong {
	color: #1f2937;
	font-weight: 600;
}

.order-details h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 20px 0 12px 0;
}

.order-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.order-items-table th,
.order-items-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.order-items-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #1f2937;
	font-size: 14px;
}

.order-items-table td {
	color: #374151;
	font-size: 14px;
}

.order-items-table tr:last-child td {
	border-bottom: none;
}

.order-downloads {
	margin-top: 20px;
	padding: 16px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 4px;
}

.order-downloads h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 12px 0;
}

.order-downloads p {
	margin: 0 0 8px 0;
	font-size: 14px;
	color: #374151;
}

.order-error {
	background: #ffffff;
	border: 1px solid #fbbf24;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 16px;
	margin-top: 0;
}

.order-error p {
	margin: 0;
	font-size: 14px;
	color: #92400e;
}

.order-query-help {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 20px;
	margin-top: 0;
}

.order-query-help h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 12px 0;
}

.order-query-help ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}

.order-query-help li {
	margin-bottom: 8px;
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
}

.order-query-help li:last-child {
	margin-bottom: 0;
}

.order-query-help a {
	color: #3b82f6;
	text-decoration: none;
}

.order-query-help a:hover {
	text-decoration: underline;
}

/* 客服悬浮按钮 */
.customer-service-float {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
	animation: float-bounce 3s ease-in-out infinite;
}

.cs-float-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #4ade80;
	border-radius: 50% 50% 50% 20% / 60% 60% 40% 40%;
	box-shadow: 0 4px 16px rgba(74, 222, 128, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	text-decoration: none;
	position: relative;
	overflow: visible;
	transform: rotate(-5deg);
}

.cs-float-button::before {
	content: '';
	position: absolute;
	top: -3px;
	right: -3px;
	width: 70px;
	height: 70px;
	background: #4ade80;
	border-radius: 50% 50% 50% 20% / 60% 60% 40% 40%;
	opacity: 0.25;
	animation: pulse-ring 2s ease-out infinite;
	transform: rotate(-5deg);
}

.cs-float-button:hover {
	background: #22c55e;
	transform: rotate(-5deg) scale(1.08);
	box-shadow: 0 6px 24px rgba(74, 222, 128, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cs-float-button:active {
	transform: rotate(-5deg) scale(0.96);
}

.cs-float-button svg {
	width: 28px;
	height: 28px;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@keyframes float-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes pulse-ring {
	0% {
		transform: rotate(-5deg) scale(1);
		opacity: 0.25;
	}
	100% {
		transform: rotate(-5deg) scale(1.4);
		opacity: 0;
	}
}

/* 响应式设计 */
@media (max-width: 768px) {
	.customer-service-float {
		bottom: 20px;
		right: 20px;
	}
	
	.cs-float-button {
		width: 56px;
		height: 56px;
	}
	
	.cs-float-button::before {
		width: 62px;
		height: 62px;
	}
	
	.cs-float-button svg {
		width: 24px;
		height: 24px;
	}
}

/* 产品详情页面样式 */
.single-product-layout {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-details-panel {
	flex: 1;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 20px;
}

.product-title-purchase-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.purchase-box {
	background: #F7F8FA;
	border: none;
	border-radius: 0;
	padding: 24px;
	margin-top: 20px;
	position: static;
}

/* 产品标题（右侧） */
.product-title-main {
	font-size: 16px;
	font-weight: 500;
	color: #1f2937;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

/* 价格区域 */
.product-price-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.price-label {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.price-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.price-value {
	font-size: 32px;
	font-weight: 700;
	color: #f97316;
	line-height: 1.2;
}

.price-value .woocommerce-Price-amount {
	color: #f97316;
}

.limited-price-tag {
	display: inline-block;
	background: #dc2626;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 3px;
	line-height: 1.2;
}

/* 数量选择区域 */
.product-quantity-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.quantity-label {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 12px;
}

.quantity-row {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.product-quantity-section .quantity {
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}

.product-quantity-section .quantity .qty {
	width: 70px;
	height: 42px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-left: none;
	border-right: none;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	-moz-appearance: textfield;
	appearance: textfield;
}

.product-quantity-section .quantity .qty::-webkit-outer-spin-button,
.product-quantity-section .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product-quantity-section .quantity .minus,
.product-quantity-section .quantity .plus {
	width: 42px;
	height: 42px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	cursor: pointer;
	font-size: 20px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	user-select: none;
	color: #374151;
	padding: 0;
	margin: 0;
}

.product-quantity-section .quantity .minus {
	border-radius: 4px 0 0 4px;
	border-right: none;
}

.product-quantity-section .quantity .plus {
	border-radius: 0 4px 4px 0;
	border-left: none;
}

.product-quantity-section .quantity .minus:hover,
.product-quantity-section .quantity .plus:hover {
	background: #f9fafb;
	border-color: #3b82f6;
	color: #3b82f6;
}

.product-quantity-section .quantity .minus:active,
.product-quantity-section .quantity .plus:active {
	background: #f3f4f6;
}

.service-stock-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	justify-content: flex-end;
}

.service-link {
	font-size: 14px;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 4px;
}

.service-link a {
	color: #3b82f6;
	text-decoration: none;
}

.service-link a:hover {
	text-decoration: underline;
}

.stock-info {
	font-size: 14px;
	color: #374151;
	white-space: nowrap;
}

/* 说明区域 */
.product-instruction-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.instruction-label {
	font-size: 14px;
	font-weight: 500;
	color: #1f2937;
	margin-bottom: 8px;
}

.instruction-text {
	font-size: 14px;
	color: #10b981;
	line-height: 1.5;
	display: flex;
	align-items: center;
	gap: 8px;
}

.instruction-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #10b981;
	color: #ffffff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.instruction-text a {
	color: #3b82f6;
	text-decoration: none;
}

.instruction-text a:hover {
	text-decoration: underline;
}

/* 购买按钮 */
.purchase-box .single_add_to_cart_button {
	width: 100%;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.purchase-box .single_add_to_cart_button:hover {
	background: #2563eb;
}

.purchase-box .single_add_to_cart_button:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* 产品视觉展示横幅 */
.product-visual-banner {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 20px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
}

.product-logo-large {
	flex-shrink: 0;
	margin-bottom: 0;
}

.product-logo-large img {
	max-width: 200px;
	width: 200px;
	height: auto;
	object-fit: contain;
}

.product-title-main-banner {
	font-size: 18px;
	font-weight: 500;
	color: #1f2937;
	margin: 0;
	line-height: 1.6;
	text-align: left;
	flex: 1;
}

/* 商品详情部分 */
.product-details-section {
	margin-top: 20px;
}

.section-title {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 15px 0;
}

.card-format-section {
	margin-bottom: 20px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 4px;
	font-size: 14px;
}

.card-format-section strong {
	color: #1f2937;
	margin-right: 8px;
}

.card-format {
	color: #374151;
	font-family: monospace;
}

.product-description {
	margin-bottom: 20px;
}

.product-description strong {
	color: #1f2937;
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.product-features-list {
	list-style: disc;
	padding-left: 20px;
	margin: 0;
}

.product-features-list li {
	margin-bottom: 8px;
	color: #374151;
	font-size: 14px;
	line-height: 1.6;
}

.login-tutorials-section {
	margin-top: 20px;
}

.login-tutorials-section strong {
	color: #1f2937;
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.tutorial-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tutorial-links li {
	margin-bottom: 8px;
}

.tutorial-links a {
	color: #3b82f6;
	text-decoration: none;
	font-size: 14px;
}

.tutorial-links a:hover {
	text-decoration: underline;
}

/* 购买面板 */
.purchase-title {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 1px solid #e5e7eb;
}

/* 数量选择 */
.quantity {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.quantity .qty {
	width: 80px;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

.quantity-input-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.quantity-input-wrapper button {
	width: 32px;
	height: 32px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.quantity-input-wrapper button:hover {
	background: #f9fafb;
	border-color: #3b82f6;
	color: #3b82f6;
}

/* 购买表单 */
.purchase-box form.cart {
	margin-bottom: 20px;
}

.purchase-box .quantity {
	margin-bottom: 20px;
}

/* 购买按钮 */
.purchase-box .single_add_to_cart_button,
.purchase-box button[type="submit"],
.purchase-box .button {
	width: 100%;
	padding: 12px;
	background: #3b82f6;
	color: #ffffff !important;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
	margin-bottom: 0;
}

.purchase-box .single_add_to_cart_button:hover,
.purchase-box button[type="submit"]:hover,
.purchase-box .button:hover {
	background: #2563eb;
}

/* 购买提醒 */
.purchase-reminder {
	margin-top: 20px;
	padding: 15px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
}

.reminder-icon {
	font-size: 18px;
	margin-bottom: 10px;
}

.reminder-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.reminder-list li {
	margin-bottom: 8px;
	color: #991b1b;
	font-size: 13px;
	line-height: 1.5;
}

.reminder-list li:last-child {
	margin-bottom: 0;
}

.reminder-list a {
	color: #3b82f6;
	text-decoration: none;
}

.reminder-list a:hover {
	text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.single-product-layout {
		flex-direction: column;
	}

	.product-purchase-panel {
		width: 100%;
	}

	.purchase-box {
		position: static;
	}
}

@media (max-width: 768px) {
	.product-overview {
		flex-direction: column;
	}

	.product-icon-large {
		width: 100px;
		height: 100px;
	}

	.product-icon-large img {
		width: 100px !important;
		height: 100px !important;
	}
}

/* WooCommerce 面包屑导航样式 - 重新设计 */
.woocommerce-breadcrumb {
	font-size: 14px !important;
	line-height: 1.5;
	margin-bottom: 0 !important;
	padding: 16px 20px !important;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	color: #6b7280;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.woocommerce-breadcrumb a {
	font-size: 14px !important;
	color: #3b82f6 !important;
	text-decoration: none;
	transition: all 0.2s ease;
	padding: 2px 4px;
	border-radius: 2px;
}

.woocommerce-breadcrumb a:hover {
	color: #2563eb !important;
	background: #eff6ff;
	text-decoration: none;
}

/* 分隔符样式 */
.woocommerce-breadcrumb .separator {
	color: #9ca3af;
	margin: 0 4px;
	font-weight: 400;
}

/* 当前页面（非链接文本）样式 */
.woocommerce-breadcrumb > span:last-child:not(a),
.woocommerce-breadcrumb:not(a) {
	color: #1f2937 !important;
	font-weight: 500;
}

/* 大屏幕下容器更宽 */
@media (min-width: 1200px) {
	.cs-container {
		max-width: 1400px !important;
	}
}

