@charset "UTF-8";
/*!
 * xif — 购物车与加入购物车提示
 */

/* 产品页加入按钮 */
button.xif-buybox__add {
	width: 100%;
	border: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

button.xif-buybox__add.is-added {
	background: #0a7d4b;
}

/* 购物车页 */
.xif-cart-page {
	padding-top: 14px;
	padding-bottom: 50px;
	background: #fff;
}

.xif-cart-page .xif-crumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 10px;
	color: #6b6b6b;
	font-size: 12px;
	line-height: 1.6;
}

.xif-cart-page .xif-crumb a {
	color: #555;
}

.xif-cart-page .xif-crumb__home {
	display: inline-flex;
	align-items: center;
}

.xif-cart-page .xif-crumb__home .xif-icon {
	width: 15px;
	height: 15px;
}

.xif-cart-page .xif-crumb__sep {
	width: 12px;
	height: 12px;
	color: #b0b0b0;
}

.xif-cart-title {
	margin: 6px 0 18px;
	color: #1c1c1c;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
}

.xif-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.xif-cart-main {
	min-width: 0;
}

.xif-cart-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xif-cart-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 110px 90px 110px;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border: 1px solid #e3e3e3;
	border-radius: 2px;
	background: #fff;
}

.xif-cart-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid #f0f0f0;
	background: #f8f9fa;
	color: #666;
}

.xif-cart-item__icon .xif-icon {
	width: 34px;
	height: 34px;
}

.xif-cart-item__info {
	min-width: 0;
}

.xif-cart-item__info h2 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.xif-cart-item__info h2 a {
	color: #1c1c1c;
}

.xif-cart-item__info h2 a:hover {
	color: #2156a5;
}

.xif-cart-item__info p {
	margin: 0 0 6px;
	color: #888;
	font-size: 11.5px;
}

.xif-cart-remove {
	padding: 0;
	border: 0;
	background: none;
	color: #b32d2e;
	font-size: 11.5px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xif-cart-qty {
	display: flex;
	align-items: center;
	height: 34px;
	border: 1px solid #cfcfcf;
	background: #fff;
}

.xif-cart-qty button {
	width: 30px;
	height: 32px;
	border: 0;
	background: #f7f7f7;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.xif-cart-qty input {
	width: 100%;
	min-width: 0;
	height: 32px;
	padding: 0 4px;
	border: 0;
	background: #fff;
	color: #1c1c1c;
	font-size: 12px;
	text-align: center;
}

.xif-cart-item__price {
	color: #777;
	font-size: 12px;
}

.xif-cart-item__line {
	color: #1c1c1c;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.xif-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 20px;
	border: 1px dashed #d5d5d5;
	border-radius: 2px;
	background: #fafafa;
	color: #777;
	font-size: 13px;
	text-align: center;
}

.xif-cart-empty[hidden] {
	display: none;
}

.xif-cart-empty__icon {
	display: inline-flex;
	color: #b0b0b0;
}

.xif-cart-empty__icon .xif-icon {
	width: 48px;
	height: 48px;
}

.xif-cart-empty p {
	margin: 0;
}

.xif-cart-btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 2px;
	background: #2156a5;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}

.xif-cart-btn:hover {
	background: #1a4685;
	color: #fff;
}

.xif-cart-btn--block {
	display: block;
	margin-top: 14px;
}

.xif-cart-summary {
	position: sticky;
	top: 96px;
	padding: 18px;
	border: 1px solid #e3e3e3;
	border-radius: 2px;
	background: #fff;
}

.xif-cart-summary h2 {
	margin: 0 0 12px;
	color: #1c1c1c;
	font-size: 15px;
	font-weight: 700;
}

.xif-cart-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 9px;
	color: #666;
	font-size: 12px;
}

.xif-cart-summary__row strong {
	color: #1c1c1c;
	font-size: 13px;
	font-weight: 700;
}

.xif-cart-continue {
	display: block;
	margin-top: 10px;
	color: #2156a5;
	font-size: 12px;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xif-cart-note {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
	color: #999;
	font-size: 11px;
	line-height: 1.7;
}

/* 加入购物车提示 */
.xif-cart-toast {
	position: fixed;
	z-index: 9999;
	left: 50%;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100% - 32px);
	padding: 11px 16px;
	border-radius: 2px;
	background: #1d2327;
	color: #fff;
	font-size: 12.5px;
	line-height: 1.6;
	transform: translate(-50%, 10px);
	opacity: 0;
	transition: opacity .25s, transform .25s;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.xif-cart-toast.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

.xif-cart-toast a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

@media (max-width: 1000px) {
	.xif-cart-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.xif-cart-summary {
		position: static;
	}
}

@media (max-width: 700px) {
	.xif-cart-item {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 10px 12px;
	}

	.xif-cart-qty {
		grid-column: 1 / -1;
		max-width: 150px;
	}

	.xif-cart-item__price {
		display: none;
	}

	.xif-cart-item__line {
		grid-column: 1 / -1;
		text-align: left;
	}

	.xif-cart-title {
		font-size: 23px;
	}
}
