/* 无商品提示 */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-products-icon {
    font-size: 48px;
    color: #e02b41;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.no-products p {
    color: #666;
}

/* 列表视图样式 */
.products-grid.list-view {
    grid-template-columns: 1fr !important;
}

.products-grid.list-view .product-card {
    display: flex;
    height: 200px;
}

.products-grid.list-view .product-image {
    flex: 0 0 200px;
    height: 100%;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .product-title {
    height: auto;
    margin-bottom: 10px;
}

.products-grid.list-view .product-meta {
    margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
        height: auto;
    }
    
    .products-grid.list-view .product-image {
        flex: 0 0 auto;
        height: 200px;
    }
}
/* 分类导航 */
.category-breadcrumb {
	padding: 15px 0;
	font-size: 14px;
	color: #666;
}

.category-breadcrumb a {
	color: #e02b41;
	text-decoration: none;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-title {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	display: flex;
	align-items: center;
}

.category-title i {
	margin-right: 10px;
	color: #e02b41;
}

.category-filter {
	display: flex;
	align-items: center;
	gap: 15px;
}

.filter-select {
	padding: 8px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: white;
	font-size: 14px;
}

.view-options {
	display: flex;
	gap: 5px;
}

.view-option {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: white;
	cursor: pointer;
}

.view-option.active {
	background: #e02b41;
	color: white;
	border-color: #e02b41;
}

/* 分类筛选侧边栏 */
.category-content {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.category-sidebar {
	flex: 0 0 250px;
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	height: fit-content;
}

.filter-section {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
	border-bottom: none;
}

.filter-title {
	font-weight: bold;
	margin-bottom: 12px;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter-title i {
	color: #999;
	font-size: 12px;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.filter-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
}

.price-range {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.price-inputs {
	display: flex;
	gap: 10px;
}

.price-input {
	flex: 1;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
}

.price-slider {
	width: 100%;
	height: 5px;
	background: #ddd;
	border-radius: 5px;
	position: relative;
	margin: 10px 0;
}

.price-progress {
	height: 100%;
	left: 0%;
	right: 0%;
	position: absolute;
	background: #e02b41;
	border-radius: 5px;
}

.price-range-input {
	position: relative;
}

.price-range-input input {
	position: absolute;
	top: -5px;
	height: 5px;
	width: 100%;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	height: 17px;
	width: 17px;
	border-radius: 50%;
	background: #e02b41;
	pointer-events: auto;
	-webkit-appearance: none;
}

.filter-btn {
	width: 100%;
	padding: 10px;
	background: #e02b41;
	color: white;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 10px;
}

/* 商品网格 */
.category-products {
	flex: 1;
}

.products-count {
	margin-bottom: 15px;
	font-size: 14px;
	color: #666;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.product-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
	position: relative;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
	height: 200px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.product-card:hover .product-image img {
	transform: scale(1.05);
}

.product-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e02b41;
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
}

.product-info {
	padding: 15px;
}

.product-title {
	font-size: 16px;
	color: #333;
	margin-bottom: 10px;
	font-weight: 600;
	height: 44px;
	overflow: hidden;
	line-height: 1.4;
	cursor: pointer;
}

.product-price {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.current-price {
	font-size: 18px;
	color: #e02b41;
	font-weight: bold;
	margin-right: 10px;
}

.original-price {
	font-size: 14px;
	color: #666;
	text-decoration: line-through;
}

.product-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

.product-rating {
	display: flex;
	align-items: center;
}

.product-rating i {
	color: #ffa800;
	margin-right: 3px;
}

.product-favorites {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.product-favorites i {
	margin-right: 3px;
	transition: color 0.3s;
}

.product-favorites .far {
	color: #999;
}

.product-favorites .fas {
	color: #e02b41;
}

.product-favorites.active .far {
	display: none;
}

.product-favorites:not(.active) .fas {
	display: none;
}

.btn-add-to-cart {
	width: 100%;
	padding: 10px;
	background: #e02b41;
	color: white;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 15px;
	font-size: 14px;
	transition: background 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.btn-add-to-cart:hover {
	background: #c41e32;
}

/* 分页 */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 30px 0;
}

.pagination-item {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.pagination-item.active {
	background: #e02b41;
	color: white;
	border-color: #e02b41;
}

.pagination-item:hover {
	background: #f8f8f8;
}

.pagination-item.active:hover {
	background: #c41e32;
}

/* 分类特色区域 */
.category-featured {
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
}

.featured-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.featured-title {
	font-size: 20px;
	font-weight: bold;
	color: #333;
	display: flex;
	align-items: center;
}

.featured-title i {
	margin-right: 10px;
	color: #e02b41;
}

.featured-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

/* 媒体查询 - 响应式设计 */
@media (max-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.featured-products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	
	.featured-products {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.category-content {
		flex-direction: column;
	}
	
	.category-sidebar {
		flex: 1;
		width: 100%;
	}
}

@media (max-width: 768px) {
	
	.featured-products {
		grid-template-columns: 1fr;
	}
	
	.category-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.category-filter {
		width: 100%;
		justify-content: space-between;
	}
}