
.products_list-wrapper {
    width: 100%;
    margin: 30px auto 60px;
    box-sizing: border-box;
}

.product_list-container {
	max-width: 1200px;
	margin: 0 auto;
}

.product_list-header {
	text-align: center;
	margin-bottom: 40px;
}

.product_list-header h1 {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 16px;
}

.product_list-header p {
	font-size: 16px;
	color: #666;
	max-width: 600px;
	margin: 0 auto;
}

.product_list-main {
	display: flex;
	gap: 40px;
}

.product_list-container .sidebar {
	min-width: 240px;
}

.product_list-container .sidebar h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.filter-group {
	margin-bottom: 24px;
	border-top: 0.1rem solid rgba(var(--color-foreground),.1);
}

.filter-group h3 {
	font-size: 16px;
	font-size: 1.5rem;
	margin-bottom: 12px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filter-group h3 i {
    font-weight: 100;
    transition: transform 0.3s ease;
}

.filter-group h3 i.fa-chevron-up {
    font-weight: 100;
}

.filter-group h3.active i {
    transform: rotate(180deg);
}

.filter-group ul {
	list-style: none;
	padding-left: 0;
	margin-top: 8px;
	display: none;
 /* 默认折叠，可通过 JS 控制展开 */
}

.filter-group li {
	margin: 8px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-group input {
	margin: 0;
}

.filter-group label {
    user-select: none; /* 禁止文字被选中 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

/* 右侧产品列表 */
.products_list {
	flex: 1;
}

.sort-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #666;
}

.sort-bar select {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.product_list-grid {
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.products_list-wrapper .product-item {
    width: calc(33.333% - 20px); /* PC端4个产品，减去左右margin */
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 确保padding不会增加总宽度 */
    transition: box-shadow 0.3s ease;
}

.products_list-wrapper .product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 悬停时更明显的阴影 */
}

.products_list-wrapper .product-item img {
    width: 100%;
    height: auto;
}

.products_list-wrapper .product-item p {
    font-size: 12px;
    margin: 5px 0;
    white-space: nowrap;      /* 强制不换行 */
    overflow: hidden;         /* 超出部分隐藏 */
    text-overflow: ellipsis;
}

.products_list-wrapper .add-to-quote {
    display: inline-block;
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.products_list-wrapper .product-button {
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
}

.products_list-wrapper .product-button .view-all {
    margin-top: 20px;
    border-radius: 5px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .products_list-wrapper .product-item {
        width: calc(50% - 20px); /* 移动端2个产品，减去左右margin */
    }
    .product_list-main {
		flex-direction: column;
	}
	.sidebar {
		width: 100%;
	}
	.sort-bar {
		justify-content: flex-start;
	}
}