
.yc-cart { max-width: 1290px; margin: 0 auto; padding: 24px 24px 40px; }
.yc-cart-title { margin: 0 0 22px; font-size: 32px; font-weight: 700; color: #1c1c1c; }

.yc-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 32px; align-items: start; }

.yc-cart-loyalty {
	display: flex; align-items: center; gap: 18px;
	background: #d9cdf2; padding: 18px 20px; margin-bottom: 0;
	text-decoration: none; color: #1c1c1c; font-size: 14px;
}
.yc-cart-loyalty span:nth-child(2) { flex: 1; }
.yc-cart-loyalty-logo {
	font-size: 15px; font-weight: 700; line-height: .95; letter-spacing: .5px; text-align: center;
}
.yc-cart-loyalty-logo span { color: #6b4fb5; }

.yc-cart-card { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); }

.yc-cart-empty { padding: 46px 24px 40px; text-align: center; }
.yc-cart-empty-title { margin: 18px 0 2px; font-size: 20px; color: #1c1c1c; }
.yc-cart-empty-title strong { font-weight: 700; }
.yc-cart-empty-sub { margin: 0 0 26px; font-size: 14px; color: #333; }
.yc-cart-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 340px; height: 50px; padding: 0 26px; background: #014e2e; color: #fff;
	text-decoration: none; font: 700 14px Montserrat, sans-serif; border-radius: 2px;
}
.yc-cart-btn:hover { background: #0b6340; }

.yc-cart-items { list-style: none; margin: 0; padding: 0; }
.yc-cart-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #f0f0f0; }
.yc-cart-item-img img { width: 84px; height: 84px; object-fit: contain; background: #fff; }
.yc-cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.yc-cart-item-brand { font-size: 11px; color: #6b6b6b; text-transform: uppercase; }
.yc-cart-item-name { font-size: 14px; font-weight: 700; color: #1c1c1c; text-decoration: none; }
.yc-cart-item-price { font-size: 14px; font-weight: 700; }
.yc-cart-item-qty input { width: 52px; height: 34px; text-align: center; border: 1px solid #d9d9d9; }
.yc-cart-item-remove { font-size: 22px; color: #777; text-decoration: none; }

.yc-cart-block + .yc-cart-block { border-top: 1px solid #e6e6e6; }
.yc-cart-acc-head {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	background: none; border: 0; padding: 20px 20px; cursor: pointer;
	font: 700 16px Montserrat, sans-serif; color: #1c1c1c;
}
.yc-cart-acc-head svg { transition: transform .15s; }
.yc-cart-block.is-open .yc-cart-acc-head svg { transform: rotate(180deg); }
.yc-cart-acc-body { display: none; padding: 0 20px 22px; }
.yc-cart-block.is-open .yc-cart-acc-body { display: block; }

.yc-cart-coupon { display: flex; }
.yc-cart-coupon input {
	flex: 1; height: 46px; border: 1px solid #cfcfcf; border-right: 0; padding: 0 14px;
	font: 400 13px Montserrat, sans-serif;
}
.yc-cart-coupon button {
	width: 150px; height: 46px; border: 0; background: #014e2e; color: #fff;
	font: 700 12px Montserrat, sans-serif; letter-spacing: .5px; cursor: pointer;
}
.yc-cart-offers-title { margin: 22px 0 10px; font-size: 14px; font-weight: 700; }
.yc-cart-offer {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: #f4f4f4; padding: 14px 16px;
}
.yc-cart-offer strong { display: block; font-size: 13px; margin-bottom: 2px; }
.yc-cart-offer span { font-size: 12px; color: #333; }
.yc-cart-tag {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%; background: #014e2e; color: #fff;
	font-size: 10px; margin-right: 6px;
}
.yc-cart-offer button {
	background: #fff; border: 1px solid #1c1c1c; padding: 12px 20px;
	font: 700 12px Montserrat, sans-serif; letter-spacing: .5px; cursor: pointer;
}

.yc-cart-advantages { margin-top: 30px; border-top: 2px solid #1c1c1c; }
.yc-cart-advantages h2 { margin: 16px 0 4px; font-size: 22px; font-weight: 700; }
.yc-cart-adv-sub { margin: 0 0 8px; font-size: 13px; color: #333; }
.yc-cart-adv-note { margin: 0 0 14px; font-size: 14px; font-weight: 700; }

.yc-cart-gifts { display: flex; gap: 18px; }
.yc-cart-gift {
	flex: 0 0 180px; border: 1px solid #e6e6e6; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.yc-cart-gift-img { height: 110px; display: flex; align-items: center; justify-content: center; }
.yc-cart-gift-name { font-size: 13px; font-weight: 700; line-height: 1.3; min-height: 34px; }
.yc-cart-gift-foot { display: flex; align-items: center; justify-content: space-between; }
.yc-cart-gift-foot a { font-size: 12px; color: #1c1c1c; }
.yc-cart-radio { width: 16px; height: 16px; border: 1px solid #c3c3c3; border-radius: 50%; }

.yc-cart-prog {
	display: flex; align-items: center; gap: 22px;
	background: #d9cdf2; padding: 18px 22px;
}
.yc-cart-prog-img {
	width: 150px; height: 95px; background: #cbb9ef url('../img/store-hero.jpg') center/cover no-repeat;
	border-radius: 4px;
}
.yc-cart-prog-title { margin: 0 0 6px; font-weight: 700; letter-spacing: .5px; }
.yc-cart-prog-title span { color: #6b4fb5; }
.yc-cart-prog p { margin: 0 0 8px; font-size: 14px; }
.yc-cart-prog a { font-size: 13px; color: #1c1c1c; }

.yc-cart-suggest { margin-top: 34px; }
.yc-cart-suggest h2 { margin: 0 0 16px; font-size: 20px; font-weight: 400; }
.yc-cart-suggest ul { list-style: none; margin: 0; padding: 0; }
.yc-cart-srow {
	display: flex; align-items: center; gap: 18px;
	padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.yc-cart-simg img { width: 118px; height: 118px; object-fit: contain; background: #dfede0; }
.yc-cart-sinfo { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.yc-cart-sbrand { font-size: 11px; color: #6b6b6b; }
.yc-cart-sname { font-size: 15px; font-weight: 700; color: #1c1c1c; text-decoration: none; }
.yc-cart-svol { font-size: 12px; color: #6b6b6b; }
.yc-cart-srate { display: block; }
.yc-cart-sprice { font-size: 15px; font-weight: 700; }
.yc-cart-sadd {
	width: 74px; height: 74px; border: 0; background: #014e2e; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}

.yc-cart-summary { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); padding: 20px; }
.yc-cart-summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.yc-cart-summary-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.yc-cart-summary-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 0; font-size: 14px; border-bottom: 1px solid #e6e6e6;
}
.yc-cart-checkout {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 18px; height: 52px; padding: 0 18px;
	background: #014e2e; color: #fff; text-decoration: none;
	font: 700 14px Montserrat, sans-serif;
}
.yc-cart-checkout:hover { background: #0b6340; }

@media (max-width: 1000px) {
	.yc-cart-grid { grid-template-columns: 1fr; }
	.yc-cart-btn { min-width: 0; width: 100%; }
	.yc-cart-gifts { flex-wrap: wrap; }
}

.yc-lucky-notice {
	margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid #014e2e;
	background: #eef7ee; font-size: 14px; color: #1c1c1c;
}
.yc-lucky-hint { margin: 10px 0 0; font-size: 12px; color: #6b6b6b; }
.yc-cart-summary-row.yc-cart-summary-tax { font-size: 12px; color: #6b6b6b; }
.yc-cart-summary-row .yc-free-ship { font-style: normal; font-weight: 700; color: #014e2e; }

/* 购物车数量编辑 */
.yc-cart-item-qty { display: inline-flex; align-items: center; gap: 4px; }
.yc-cart-item-qty input {
	width: 56px; height: 38px; text-align: center; border: 1px solid #cfcfcf;
	font: 400 14px Montserrat, sans-serif; border-radius: 2px;
}
.yc-cart-item-update {
	width: 34px; height: 38px; border: 1px solid #cfcfcf; background: #fff;
	cursor: pointer; font-size: 15px; line-height: 1; border-radius: 2px;
}
.yc-cart-item-update:hover { background: #f2f2f2; }

/* ===== 移动端布局修正（购物车/结账）===== */
@media (max-width: 1000px) {
	body { overflow-x: hidden; }
	.yc-cart-grid { display: block !important; }
	.yc-cart-side { width: 100%; margin-top: 20px; }
	.yc-cart-item { flex-wrap: wrap; }
	.yc-cart-item-qty { margin-left: 0; }
	.yc-cart-summary, .yc-cart-block, .yc-cart-item { max-width: 100%; box-sizing: border-box; }
	.yc-cart-checkout { width: 100%; }
}


/* ===== 移动端：容器与卡片不超宽 ===== */
@media (max-width: 1000px) {
	html, body { overflow-x: hidden; }
	main.yc-cart, .yc-cart-grid, .yc-cart-main, .yc-cart-side,
	.yc-cart-card, .yc-cart-block, .yc-cart-item { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
	main.yc-cart { padding-left: 16px; padding-right: 16px; }
	.yc-cart-loyalty { flex-wrap: wrap; }
	.yc-cart-loyalty span, .yc-cart-loyalty p { white-space: normal !important; }
	.yc-cart-item { flex-wrap: wrap; row-gap: 10px; }
	.yc-cart-item-info { min-width: 0; flex: 1 1 140px; }
	.yc-cart-item-qty { margin-left: auto; }
	.yc-cart-summary-row, .yc-cart-checkout { flex-wrap: wrap; }
}


/* ===== 移动端：把订单摘要提到商品列表下面，避免被下方模块推得太远 ===== */
@media (max-width: 1000px) {
	.yc-cart-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
	}
	.yc-cart-main { display: contents !important; }
	.yc-cart-loyalty { order: 0; margin-bottom: 12px !important; }
	.yc-cart-card { order: 1; }
	.yc-cart-side { order: 2; margin: 14px 0 0 !important; }
	.yc-cart-advantages,
	.yc-cart-block,
	.yc-cart-suggest { order: 3; margin-top: 14px !important; }
	.yc-cart-summary { padding: 16px !important; }
	.yc-cart-summary-head { margin-bottom: 10px !important; }
	.yc-cart-summary-row { padding: 9px 0 !important; }
}




/* ===== 结账页：支付品牌图标网格 ===== */
.yc-paybrands {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
}
.yc-paybrands .yc-pb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	box-sizing: border-box;
}
.yc-paybrands .yc-pb img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 30px;
	object-fit: contain;
	object-position: center;
}
.yc-paybrands .yc-pb--secure { gap: 8px; }
.yc-paybrands .yc-pb--secure svg { height: 20px; width: auto; flex: 0 0 auto; }
.yc-paybrands .yc-pb--secure em {
	font-style: normal;
	font-size: 12px;
	line-height: 1.15;
	color: #3f4a45;
	text-align: left;
}
.yc-paybrands-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: #5b6660;
	line-height: 1.6;
	text-align: center;
}

/* 只有一个支付方式时，隐藏「◉ Carte bancaire + stripe」这一行 */
.yc-checkout-wrap ul.wc_payment_methods li > input.input-radio,
.yc-checkout-wrap ul.wc_payment_methods li > label {
	display: none !important;
}
.yc-checkout-wrap ul.wc_payment_methods li {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	margin: 0 !important;
}
.yc-checkout-wrap ul.wc_payment_methods { margin: 0 0 14px !important; }
.yc-checkout-wrap .payment_box {
	padding: 16px 18px !important;
	background: #fff !important;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}
.yc-checkout-wrap .payment_box p:first-child { margin-top: 0; }

@media (max-width: 1100px) {
	.yc-paybrands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.yc-paybrands { gap: 8px; }
	.yc-paybrands .yc-pb { height: 48px; padding: 6px 6px; }
	.yc-paybrands .yc-pb img { max-height: 25px; }
	.yc-paybrands .yc-pb--secure { flex-direction: column; gap: 2px; }
	.yc-paybrands .yc-pb--secure svg { height: 15px; }
	.yc-paybrands .yc-pb--secure em { font-size: 8.5px; text-align: center; }
	.yc-paybrands-note { font-size: 12px; margin-top: 10px; }
}

/* 购物车商品图：统一白底（与原站一致） */
.yc-cart-item-img,
.yc-cart-item-img img,
.yc-cart-sug img {
	background: #fff !important;
}


/* ===== 购物车数量步进器（− 数字 +） ===== */
.yc-cart-item-qty { display: flex; align-items: center; }
.yc-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	height: 38px;
}
.yc-cart-item-qty input[type="number"] {
	width: 46px !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	font: 700 14px Montserrat, sans-serif;
	color: #1c1c1c;
	-moz-appearance: textfield;
	appearance: textfield;
	background: #fff;
}
.yc-cart-item-qty input[type="number"]::-webkit-outer-spin-button,
.yc-cart-item-qty input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.yc-qty-btn {
	width: 34px;
	border: 0;
	background: #fff;
	color: #1c1c1c;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease;
}
.yc-qty-btn:hover { background: #014e2e; color: #fff; }
.yc-qty-btn:active { background: #013a22; color: #fff; }
.yc-qty-minus { border-right: 1px solid #e2e2e2; }
.yc-qty-plus { border-left: 1px solid #e2e2e2; }

@media (max-width: 767px) {
	.yc-qty-stepper { height: 36px; }
	.yc-qty-btn { width: 32px; font-size: 16px; }
	.yc-cart-item-qty input[type="number"] { width: 40px !important; font-size: 13px; }
}
