/**
 * ywx-mould-one 产品列表 / 分类列表页：视觉 + 响应式（对齐 case-list-page 网格策略）
 */
:root {
	--ywx-product-list-media-radius: 16px;
	--ywx-product-list-gap: 24px;
}

/* ========== 顶部分类筛选 ========== */
body.product-list-page section.page-title {
	padding: 1.75rem 0 0.75rem;
	background: #fff;
	border-bottom: 1px solid var(--ywx-inner-border, #e8ebef);
}

body.product-list-page section.page-title .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: none;
}

body.product-list-page section.page-title .col-md-9 {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

body.product-list-page #options,
body.product-list-page ul#filters {
	float: none !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
}

body.product-list-page ul#filters.ywx-pro-classify-nav {
	max-width: 100%;
}

body.product-list-page ul#filters .filters-li {
	float: none !important;
	display: block;
	margin: 0;
	padding: 0;
}

body.product-list-page ul#filters .filters-li a {
	display: inline-block;
	padding: 0.45rem 1rem;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

body.product-list-page ul#filters .ywx-pro-classify-more {
	position: relative;
}

body.product-list-page ul#filters .ywx-pro-classify-more > .dropdown-menu {
	min-width: 11rem;
	max-height: 18rem;
	overflow-y: auto;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

body.product-list-page ul#filters .ywx-pro-classify-more > .dropdown-menu > li > a {
	display: block;
	padding: 0.55rem 1rem;
	font-size: 14px;
	font-weight: 500;
	border-radius: 0;
	white-space: normal;
	word-break: break-word;
}

body.product-list-page ul#filters .ywx-pro-classify-more > .dropdown-menu > li > a.selected,
body.product-list-page ul#filters .ywx-pro-classify-more > .dropdown-menu > li > a.active {
	font-weight: 700;
}

body.product-list-page ul#filters .ywx-pro-classify-more > a.dropdown-toggle .caret {
	margin-left: 0.35rem;
}

body.product-list-page ul#filters .filters-li.ywx-pro-classify-has-children {
	position: relative;
}

body.product-list-page ul#filters .product_nav_2,
body.product-list-page ul#filters .product_more_2 {
	display: none;
	position: absolute;
	left: 0;
	top: calc(100% + 4px);
	z-index: 30;
	min-width: 11rem;
	max-width: 16rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

body.product-list-page ul#filters .ywx-pro-classify-more .product_more_2 {
	left: calc(100% + 4px);
	top: 0;
}

body.product-list-page ul#filters .product_nav_2 a,
body.product-list-page ul#filters .product_more_2 a {
	display: block;
	padding: 0.5rem 0.85rem;
	font-size: 13px;
	font-weight: 500;
	border-radius: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.product-list-page ul#filters .product_nav_2 a.selected,
body.product-list-page ul#filters .product_nav_2 a.active,
body.product-list-page ul#filters .product_more_2 a.selected,
body.product-list-page ul#filters .product_more_2 a.active {
	font-weight: 700;
}

body.product-list-page ul#filters .filters-li > a.on {
	font-weight: 700;
}

body.product-list-page section.content-wrapper {
	padding-bottom: 2.5rem;
}

/* ========== 分类大图区（产品首页） ========== */
body.product-list-page .box-big[ywx-variable="classify-index-list"] {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	overflow: visible;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"]::after {
	display: none;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img,
body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img:nth-child(odd) {
	float: none !important;
	flex: 0 0 calc(25% - 12px);
	max-width: calc(25% - 12px);
	width: auto !important;
	height: auto;
	margin: 0 0 24px !important;
	box-sizing: border-box;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img a {
	display: block;
	text-decoration: none;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img .box-left {
	border-radius: var(--ywx-product-list-media-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img a:hover .box-left {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img img {
	width: 100% !important;
	float: none !important;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img a:hover img {
	transform: scale(1.04);
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img .text {
	width: 100% !important;
	max-width: none;
	height: auto !important;
	min-height: 60px;
	float: none !important;
	display: block;
	box-sizing: border-box;
}

body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img .text p {
	max-width: none;
}

/* ========== 分类页产品网格 ========== */
body.product-list-page .row.product-list[ywx-variable="product-list"],
body.product-list-page .row.product-list {
	display: flex;
	flex-wrap: wrap;
	margin-left: calc(var(--ywx-product-list-gap) / -2);
	margin-right: calc(var(--ywx-product-list-gap) / -2);
}

body.product-list-page .row.product-list .gallery-item,
body.product-list-page .row.product-list .gallery-item.pro-item2,
body.product-list-page .row.product-list .gallery-item.pro-item3 {
	float: none !important;
	width: auto !important;
	height: auto !important;
	max-height: none !important;
	flex: 0 0 calc(25% - var(--ywx-product-list-gap));
	max-width: calc(25% - var(--ywx-product-list-gap));
	margin: 0 calc(var(--ywx-product-list-gap) / 2) 28px !important;
	padding: 0;
	padding-bottom: 0 !important;
	text-align: left;
	background: #fff;
	border-radius: var(--ywx-product-list-media-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.product-list-page .row.product-list .gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

body.product-list-page .row.product-list .gallery-item .pro-a {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--ywx-product-list-media-radius) var(--ywx-product-list-media-radius) 0 0;
	position: relative;
	cursor: pointer;
}

body.product-list-page .row.product-list .gallery-item .pro-a img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	display: block !important;
	object-fit: cover !important;
	float: none !important;
	transition: transform 0.35s ease;
}

body.product-list-page .row.product-list .gallery-item:hover .pro-a img {
	transform: scale(1.04);
}

body.product-list-page .row.product-list .gallery-item .pro_name {
	padding: 0.85rem 1rem 1rem;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #1a1a1a;
	text-align: center;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	height: auto !important;
}

/* ========== Hub / 分类扩展区 ========== */
body.product-list-page .product-list-hub-intro,
body.product-list-page .product-list-hub-faq,
body.product-list-page .product-category-hub-intro,
body.product-list-page .product-category-hub-faq {
	clear: both;
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

body.product-list-page .product-list-hub-faq .faq-block h3.faq-question,
body.product-list-page .product-category-hub-faq .faq-block h3.faq-question {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0;
	color: inherit;
	line-height: 1.45;
}

body.product-list-page details.faq-block.faq-block--accordion {
	margin-bottom: 8px;
}

body.product-list-page details.faq-block .faq-block-summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 1.25rem;
}

body.product-list-page details.faq-block .faq-block-summary::-webkit-details-marker {
	display: none;
}

body.product-list-page details.faq-block .faq-block-summary::after {
	width: 5px;
	height: 5px;
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	font: normal normal normal 12px/12px FontAwesome;
	color: #333;
	content: '\f078';
}

body.product-list-page details.faq-block[open] .faq-block-summary::after {
	content: '\f077';
}

body.product-list-page details.faq-block .faq-answer {
	display: block;
	background: #f8f8f8;
	padding: 16px 20px;
	margin: 10px 0 0;
	font-size: 0.95rem;
	line-height: 1.65;
}

body.product-list-page #footer .ywx-footer-certs a {
	cursor: zoom-in;
}

/* ========== 响应式断点 ========== */
@media (max-width: 991px) {
	body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img,
	body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img:nth-child(odd) {
		flex: 0 0 calc(50% - 8px);
		max-width: calc(50% - 8px);
	}

	body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img img {
		height: auto !important;
		aspect-ratio: 4 / 3;
	}

	body.product-list-page .row.product-list .gallery-item,
	body.product-list-page .row.product-list .gallery-item.pro-item2,
	body.product-list-page .row.product-list .gallery-item.pro-item3 {
		flex: 0 0 calc(33.333% - var(--ywx-product-list-gap));
		max-width: calc(33.333% - var(--ywx-product-list-gap));
	}
}

@media (max-width: 767px) {
	body.product-list-page section.page-title {
		padding-top: 1.25rem !important;
		padding-bottom: 0.5rem;
	}

	body.product-list-page ul#filters {
		justify-content: center;
		gap: 0.4rem;
	}

	body.product-list-page ul#filters .filters-li a {
		padding: 0.4rem 0.85rem;
		font-size: 13px;
	}

	body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img,
	body.product-list-page .box-big[ywx-variable="classify-index-list"] .clz-img:nth-child(odd) {
		flex: 0 0 100%;
		max-width: 100%;
		margin: 0 0 20px !important;
	}

	body.product-list-page .row.product-list .gallery-item,
	body.product-list-page .row.product-list .gallery-item.pro-item2,
	body.product-list-page .row.product-list .gallery-item.pro-item3 {
		flex: 0 0 calc(50% - var(--ywx-product-list-gap));
		max-width: calc(50% - var(--ywx-product-list-gap));
		margin-bottom: 20px !important;
	}

	body.product-list-page .row.product-list .gallery-item .pro_name {
		font-size: 14px;
		padding: 0.75rem 0.65rem 0.85rem;
	}
}

@media (max-width: 479px) {
	body.product-list-page .row.product-list .gallery-item,
	body.product-list-page .row.product-list .gallery-item.pro-item2,
	body.product-list-page .row.product-list .gallery-item.pro-item3 {
		flex: 0 0 calc(100% - var(--ywx-product-list-gap));
		max-width: calc(100% - var(--ywx-product-list-gap));
	}
}
