/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/*** 头部背景颜色 ***/
.elementor-7 .elementor-element.elementor-element-6b61b2f:not(.elementor-motion-effects-element-type-background),
.elementor-7 .elementor-element.elementor-element-6b61b2f>.elementor-motion-effects-container>.elementor-motion-effects-layer {
	background-color: #ff6701 !important;
}

.block_newsletter .alert:before {
	left: 10px;
	top: 8px;
}

/* logo 设置更大一点 */
@media (min-width: 768px) {
	.elementor-7 .elementor-element.elementor-element-36de781 {
		width: 20% !important;
	}
}

@media (min-width: 1200px) {
	.header-nav-h1 .center-wr .menu-wr {
		width: 50% !important;
	}
}

/***** 底部导航栏 *****/
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	display: none;
	/* 默认隐藏底部导航 */
	justify-content: space-around;
	align-items: center;
	z-index: 1000;
}

/* 只在移动设备上显示的样式  包括 底部导航栏 */
@media (max-width: 767px) {

	/******* 手机版 隐藏 ********/
	span.grid-select.grid-select-list.view-list,
	span.grid-select.grid-select-grid.view-3,
	span.grid-select.grid-select-grid.view-4 {
		display: none !important;
	}

	/******* End 手机版 隐藏 ********/

	.bottom-nav {
		display: flex;
		/* 在移动设备上显示 */
	}

	/* 在移动设备上添加底部内边距 */
	body {
		padding-bottom: 60px;
	}

	/* 调整back top元素的位置，避免被底部菜单栏遮挡 */
	#back-top,
	.leo-fly-cart.solo.type-fixed.enable-slidebar.offset-left {
		bottom: 65px !important;
		/* 确保在底部菜单栏上方 */
	}

	/* 确保所有可能被遮挡的底部元素都有足够的边距 */
	.footer-bottom {
		margin-bottom: 50px !important;
	}

	.category-grid {
		display: grid !important;
	}

	.category-item .icon-placeholder {
		width: 36px !important;
		height: 36px !important;
		margin: 1px;
	}

	.category-item .icon-placeholder,
	.category-item p {
		font-size: 0.8rem;
	}


	.flex-wr .product-price-and-shipping span.price {
		font-size: 1.2rem !important;
	}


	#service-QR {
		display: block !important;
	}


	#service-QR .wechat-QR,
	#service-QR .whatsapp-QR {
		float: unset !important;
		margin: 1rem 0rem !important;
	}
	
	#service-QR img {
	    width: 100%;
	}

}

/************ end  只在移动设备上显示的样式  包括 底部导航栏 ***************/


.bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #666;
	text-decoration: none;
	font-size: 12px;
	padding: 8px 0;
}

.bottom-nav a i {
	font-size: 20px;
	margin-bottom: 4px;
}

.bottom-nav a.active {
	color: #020d81;
}

/***** End 部导航栏 *****/

/******* 产品页面 ********/

.block-category div#js-product-list-header {
	display: none !important;
}

#wrapper .container .block-category {
	margin-bottom: 1rem;
}

.product-variants-item span.radio-label {
	min-width: 77px;
	width: auto !important;
	padding: 0px 20px;
	white-space: nowrap;
}

.product-variants>.product-variants-item .color:before {
	text-shadow:
		-2px -2px 4px #a5a5a5,
		/* 左上 */
		2px -2px 4px #a5a5a5,
		/* 右上 */
		-2px 2px 4px #a5a5a5,
		/* 左下 */
		2px 2px 4px #a5a5a5;
	/* 右下 */
	color: #ff0000;
}

/******* End 产品页面 ********/

/*** 分类列表 ***/
.category-container {
	width: 100%;
	margin: 0 auto;
	background-color: #fff;
	overflow-x: hidden;
}

.category-grid {
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background-color: #eee;
	padding: 10px 5px 5px 5px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.category-item {
	background-color: #fff;
	text-align: center;
	padding: 8px 2px;
	font-size: 11px;
	color: #333;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
	/* 轻微的点击反馈 */
	position: relative;
	user-select: none;
	/* 防止文本被选中 */
	cursor: pointer;
	/* 添加指针样式 */
	transition: transform 0.1s;
	/* 添加点击效果的过渡 */

	flex: 1 1 calc(10% - 50px);
	margin: 2px;
}

.category-item:active {
	background-color: #f9f9f9;
	/* 点击时的背景色变化 */
	transform: scale(0.98);
	/* 轻微缩小效果 */
}

/* 链接样式 */
.category-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	text-decoration: none;
	color: inherit;
}

/* 确保内容在链接上方显示 */
.category-item .icon-placeholder,
.category-item p {
	position: relative;
	z-index: 2;
	font-size: 0.8rem;
}

.category-item .icon-placeholder {
	width: 100px;
	height: 100px;
	background-color: #e0e0e0;
	border-radius: 8px;
	margin-bottom: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	overflow: hidden;
}


.category-item .icon-placeholder img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.category-item p {
	margin: 0;
	line-height: 1.2;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	width: 100%;
	padding: 0 2px;
	box-sizing: border-box;
}

@media screen and (max-width: 360px) {
	.category-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.category-item {
		font-size: 10px;
		min-height: 65px;
	}

	.category-item .icon-placeholder {
		width: 32px;
		height: 32px;
	}
}

/* 快速滚动优化 */
@media (pointer: coarse) {
	.category-grid {
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
	}
}

/*** End 分类列表 ***/


/**** 产品列表 产品页面 *****/
#js-product-list-top .row.sort-by-row span.col-md-3 {
	width: 28% !important;
}

.thumbnail-container .product-title a,
.product-meta h3 .product-title a {
	display: inline-block !important;
	line-height: 1.2rem;
	/* 调整行距 */
	height: 2.5rem;
	/* 使其占用两行的高度 */
	overflow: hidden;

}


.flex-wr .product-price-and-shipping span.price {
	font-size: 1.8rem;
}

.product-description img {
	width: 100% !important;
	height: 100% !important;
}

/**** End 产品列表 产品页面 *****/

/**** 订单相关 *****/
#service-QR {
	width: 100%;
	display: inline-flex;
}

#service-QR .wechat-QR,
#service-QR .whatsapp-QR {
	float: left;
	margin: 1rem;
}

#service-QR img {
	border: 1px #555555 solid;
	border-radius: 20px;
	max-width: 400px;
}

#content-hook_payment_return a{
	color: #DE3431 !important;
	text-decoration: underline;
}
/**** End 订单相关 *****/