/* archive-product.php 商店/分类归档页内联样式提取 */
.category-list-content {
	padding-bottom: 30px;
	margin-top: 20px;
}

.category-list-content .product-list {
	padding: 0;
}

.checkbox {
	position: relative;
	height: 20px;
	width: 20px;
}

.checkbox input[type='checkbox'] {
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	opacity: 0;
}

.checkbox label {
	position: absolute;
	left: 30px;
	top: 0;
	height: 20px;
	line-height: 20px;
}

.checkbox label:before {
	content: '';
	position: absolute;
	left: -30px;
	top: 0;
	width: 20px;
	height: 20px;
	border: 1px solid #8c8c8c;
	border-radius: 10%;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
}

.checkbox label:after {
	content: '';
	position: absolute;
	left: -22px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: 0;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	background: #fff;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
}

.checkbox input[type='checkbox']:checked+label:before {
	background: #000;
	border-color: #000;
}

.checkbox input[type='checkbox']:checked+label:after {
	background: #000;
}

.vi-ci {
	background: #fff;
	padding: 0 30px;
}

.banner {
	width: 100%;
}

.banner-box {
	width: 100%;
	max-height: 15.625vw;
	overflow: hidden;
	position: relative;
}

.banner .banner-box img {
	width: 100%;
	height: auto;
	object-fit: cover;
	position: relative;
	top: 0;
	left: 0;
	max-height: 15.625vw;
}

.banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.category-name,
.gift-title {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	line-height: 19px;
	max-width: 8rem;
	text-align: left;
	left: 1rem;
	top: 2rem;
	height: 40px;
}

.vi-ci .normal.category-name {
	position: relative;
}

.gift-title .name-gift-top {
	font-size: 16px;
}

.gift-title .name-gift-bottom {
	text-transform: none;
	font-size: 14px;
}

.crumbs {
	margin: 0 0 12px;
	padding: 20px 0 0;
}

.crumbs>* {
	display: inline;
	line-height: 16px;
	color: #666666;
	font-size: 14px;
}

.crumbs a {
	text-decoration: underline;
	color: #666666;
}

.crumbs .iconfont {
	padding: 0 6px;
	font-size: 14px;
	line-height: 16px;
}

.catagory-title {
	font-size: 32px;
	margin: 12px 0 30px;
	color: #333;
	text-align: center;
   padding-bottom: 5px;
}

.empty-result-title {
	font-size: 14px;
	line-height: 14px;
	letter-spacing: -0.3px;
	margin: 0 20px;
	padding: 50px 0;
	position: relative;
	font-weight: 400;
}

.line-bottom::after {
	content: '';
	width: 100%;
	height: 1px;
	border-bottom: 1px solid #EBEBEB;
	position: absolute;
	bottom: 0;
	left: 0;
}

.ci-top {
	font-size: 14px;
	margin: 20px 0 0;
	padding: 0;
	line-height: 22px;
	position: relative;
	box-sizing: border-box;
}

.ci-top .count {
	line-height: 22px;
}

.ci-top+.category-child-content::before {
	content: '';
	width: calc(100% - 40px);
	height: 1px;
	margin: 0 20px;
	background-color: #EBEBEB;
	display: block;
}

.vi-ci .filtrate {
	margin: 0;
}

.vi-ci .sorticon {
	height: 50px;
	background: #F6F6F6;
	border-radius: 4px;
	padding: 0 14px;
	line-height: 48px;
	min-width: 170px;
	cursor: pointer;
}

.vi-ci .sortname,
.vi-ci .sort-result {
	font-size: 16px;
	line-height: 16px;
}

.vi-ci .sort-result {
	padding: 0 10px 0 4px;
}

.vi-ci .sorticon .iconfont {
	font-weight: bold;
	font-size: 20px;
	line-height: 1;
	margin-top: -5px;
	transition: all 0.1s ease;
}

.vi-ci .sorticon.active .iconfont {
	transform: rotate(180deg);
	transform-origin: center 13px;
}

.sortbtn .menu {
	display: none;
	background: #fff;
	top: 62px;
	right: 0;
	left: auto;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	height: -webkit-fit-content;
	height: -moz-fit-content;
	height: fit-content;
	width: 300px;
}

.sortbtn .menu-box {
	padding: 16px 0;
}

.sortbtn .menu-box::before {
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #fff;
	content: "";
	position: absolute;
	top: -8px;
	right: 60px;
	transform: translateX(-50%);
}

.sortbtn .menu-box::after {
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 9px solid rgba(0, 0, 0, 0.1);
	content: "";
	position: absolute;
	top: -10px;
	right: 60px;
	transform: translateX(-50%);
	z-index: -1;
	filter: blur(1px);
	-webkit-filter: blur(1px);
	opacity: 0.2;
}

.sortbtn .menu-item {
	font-size: 16px;
	min-height: 45px;
	padding: 14px 20px;
	cursor: pointer;
}

.sortbtn .menu-item:hover {
	background-color: #F3F3F3;
}

.sortbtn .menu-item.active {
	background-color: #F3F3F3;

}

.category-child-content {
	background-color: #FFF2E3;
	min-width: 800px;
}

.category-child-content .category-child-swiper {
	padding: 20px 40px;
	position: relative;
	overflow: hidden;
}

.category-child-content .category-child-swiper .swiper-wrapper {
	width: max-content;
	margin: 0 auto;
}

.category-child-content .child-item {
	padding: 10px;
	width: auto;
	margin-right: 30px;
}

.category-child-content .child-item:last-child {
	margin-right: 0;
}

.category-child-content .child-item .item-icon {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto;
	object-fit: cover;
	position: relative;
}

.category-child-content .child-item .item-title {
	font-size: 14px;
	margin-top: 14px;
	text-align: center;
	font-weight: 400;
}

.category-child-content .child-item:hover .item-icon {
	box-shadow: 0 0 0 3px #FFF2E3, 0 0 0 5px #FF9E2C;
}

.category-child-content .swiper-button-next,
.category-child-content .swiper-button-prev {
	display: none;
}

.category-child-content .swiper-container-initialized~.swiper-button-next,
.category-child-content .swiper-container-initialized~.swiper-button-prev {
	display: block !important;
}

.category-child-content .swiper-button-next,
.category-child-content .swiper-button-prev {
	position: absolute;
	top: 50%;
	--swiper-navigation-size: 18px;
	--swiper-theme-color: #333;
	--swiper-navigation-color: #333;
	border-radius: 4px;
	background: #F3E1CB;
	width: 30px;
	height: calc(var(--swiper-navigation-size) * 4.8);
	margin-top: calc(-1 * var(--swiper-navigation-size) * 2.4);
	z-index: 2;
	line-height: calc(var(--swiper-navigation-size) * 4.8);
	text-align: center;
}

.category-child-content .swiper-button-next {
	right: 0;
}

.category-child-content .swiper-button-prev {
	left: 0;
}

.category-child-content .swiper-button-disabled,
.category-child-content .swiper-button-hidden {
	opacity: 0;
}

.vi-ci .list-empty {
	margin: 40px auto 10px;
}

.vi-ci .list-empty>img {
	width: 120px;
	height: auto;
	margin: 0 auto;
	background-color: transparent;
}

.vi-ci .list-empty>p {
	font-size: 18px;
	line-height: 1;
	margin: 10px auto 0;
	text-align: center;
	width: 200px;
}

.empty-result-title img {
	height: 120px;
	width: auto;
	margin: 0 auto 20px;
	background-color: transparent;
}



/* new filter sort */

.filter-sort-dropdown {
	background-color: #F6F6F6;
	border-radius: 4px;
	padding: 8px;
	font-size: 0;
	cursor: pointer;
}

.filter-sort-dropdown>* {
	font-weight: bold;
	font-size: 16px;
	vertical-align: middle;
}

.filter-sort-dropdown .woocommerce-ordering {
	display: inline-block;
	margin: 0;
}

.filter-sort-dropdown .woocommerce-ordering select {
	background: transparent;
	border: 0;
	font-family: inherit;
	color: #333;
	cursor: pointer;
	height:24px;
}

.filter-sort-dropdown .woocommerce-ordering select:focus {
	outline: none;
}

/* ============ 移动端（<1200px）：与全站断点一致 ============ */
@media (max-width: 1199px) {

	/* 分类圆点区：解除桌面最小宽度，改横向滚动 */
	.category-child-content {
		min-width: 0;
	}
	.category-child-content .category-child-swiper {
		padding: 14px 25px;
	}
	
	.category-child-content .child-item {
		margin-right: 16px;
		padding: 6px;
	}
	.category-child-content .child-item .item-icon {
		width: 56px;
		height: 56px;
	}
	.category-child-content .child-item .item-title {
		font-size: 12px;
		margin-top: 8px;
	}
.category-child-content .swiper-button-next, .category-child-content .swiper-button-prev{
	    width: 20px;
    height: 50px; margin-top: -25px;line-height:50px;
}
.ci-top .count{
	font-size: 14px !important;
}
	/* 主体容器：收缩内边距 */
	.vi-ci {
		padding: 0 16px;
	}
	.crumbs {
		padding: 14px 0 0;
	}
	.catagory-title {
		font-size: 22px;
		margin: 10px 0 18px;
	}

	/* 顶部计数 + 排序：一行内紧凑排列 */
	.ci-top {
		align-items: center;
	}
	.ci-top-left {
		min-width: 0;
	}
	.filter-sort-dropdown {
		/* max-width: 60%; */
		padding: 6px 8px;
		white-space: nowrap;
	}
	.filter-sort-dropdown>* {
		font-size: 12px;
	}
	.filter-sort-dropdown .woocommerce-ordering select {
		font-size: 12px;
		max-width: 100px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
.icon.size-S{
	font-size: 12px; line-height: 12px; 
}
	/* 商品列表：四列改两列 */
	.product-list .list-item {
		width: calc((100% - 12px) / 2);
		margin-right: 12px;
		margin-bottom: 16px;
	}
	.product-list .list-item:nth-child(2n) {
		margin-right: 0;
	}
	.product-list .list-item .product-name {
		font-size: 13px;
	}
	.product-list .list-item .price {
		margin-top: 6px;
	}
	.product-list .list-item .price .new {
		font-size: 15px;
	}
}