/* ===== 商品页：价格下方水平折扣表格 ===== */

.qd-woo-table-wrapper {
	margin: 14px 0 18px;
	padding: 12px 14px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.qd-woo-table-title {
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 5px;
	
	letter-spacing: 0.3px;
}

.qd-woo-table {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.qd-woo-tier {
	flex: 1 1 0;
	min-width: 100px;
	text-align: center;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 10px 8px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.qd-woo-tier:hover {
	border-color: #cf2e2e;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.qd-woo-tier-qty {
	font-size: 12px;
	color: #555;
	margin-bottom: 4px;
}

.qd-woo-tier-percent {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	background: #C6A66B;
	padding: 2px 8px;
	border-radius: 20px;
	margin-bottom: 6px;
}

.qd-woo-tier-price {
	font-size: 13px;
	font-weight: 700;
	color: #444;
}



/* 为上方折扣标签预留空间 */
.qd-woo-table {
    padding-top: 12px;
    row-gap: 24px;
}

/* 卡片作为定位参照 */
.qd-woo-tier {
    position: relative;
    overflow: visible;
    padding-top: 15px;
}

/* 折扣标签居中压在上边框上 */
.qd-woo-tier-percent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    white-space: nowrap;
    z-index: 1;
}





/* 移动端：换成 2 列，避免挤成一团 */
@media (max-width: 480px) {
	.qd-woo-tier {
		flex: 1 1 calc(50% - 10px);
	}
}


/* ===== 购物车页：原价划线 + 折扣价 ===== */

.qd-woo-cart-price .qd-original {
	text-decoration: line-through;
	color: #999;
	margin-right: 6px;
	font-size: 0.9em;
}

.qd-woo-cart-price .qd-discounted {
	color: #cf2e2e;
	font-weight: 700;
}

.qd-woo-cart-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	background: #cf2e2e;
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
}

span.qd-woo-cart-badge {
        display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #C6A66B;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
