/* 商品列表：加入购物车 + Buy Now 同一行 */
[data-products] .product .cdp-woo-card-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	margin-top: auto;
}

[data-products] .product .cdp-woo-card-buttons .ct-woo-card-actions {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

[data-products] .product .cdp-woo-card-buttons .ct-woo-card-actions .button {
	flex: 1 1 auto;
	width: 100%;
	justify-content: center;
	text-align: center;
}

[data-products] .product .cdp-woo-card-buttons > .cdp-buy-now-archive {
	flex: 1 1 0;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	text-align: center;
	white-space: nowrap;
}

/* 商品详情页：数量单独一行，两个按钮并排 */
.entry-summary .ct-cart-actions .quantity {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
}

.entry-summary .ct-cart-actions .single_add_to_cart_button,
.entry-summary .ct-cart-actions .cdp-buy-now-single,
.entry-summary form.cart .single_add_to_cart_button,
.entry-summary form.cart .cdp-buy-now-single,
.entry-summary form.cart .button.single_add_to_cart_button,
.entry-summary form.cart a.button.cdp-buy-now-single {
	flex: 1 1 calc(50% - 5px);
	width: auto;
	max-width: none;
	--item-width: auto;
	--theme-button-font-size: 16px;
	--theme-button-font-weight: 600;
	min-height: 52px;
	padding: 14px 22px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: normal;
	line-height: 1.25 !important;
	justify-content: center;
	text-align: center;
	/* 避免 antialiased 导致文字发虚 */
	-webkit-font-smoothing: subpixel-antialiased;
	-moz-osx-font-smoothing: auto;
	text-rendering: auto;
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
	text-shadow: none !important;
	backface-visibility: hidden;
}

.entry-summary form.cart .cdp-buy-now-single {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: min(100%, 140px);
}

.entry-summary form.cart .quantity .qty {
	font-size: 16px !important;
	font-weight: 600 !important;
}

/* 分类 / SKU 元信息：更易读 */
.entry-summary .product_meta,
.entry-summary .product_meta > span,
.entry-summary .product_meta .sku,
.entry-summary .product_meta .posted_in,
.entry-summary .product_meta .tagged_as {
	font-size: 1rem !important;
	line-height: 1.55 !important;
	color: #374151 !important;
}

/* 分类名：略大于正文，避免过大 */
.entry-summary .product_meta a,
.entry-summary .product_meta .posted_in a,
.single-product .summary .product_meta .posted_in a,
.single-product .entry-summary .product_meta a {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

@media (max-width: 479.98px) {
	.entry-summary .ct-cart-actions .single_add_to_cart_button,
	.entry-summary .ct-cart-actions .cdp-buy-now-single,
	.entry-summary form.cart .single_add_to_cart_button,
	.entry-summary form.cart .cdp-buy-now-single,
	.entry-summary form.cart .button.single_add_to_cart_button,
	.entry-summary form.cart a.button.cdp-buy-now-single {
		flex: 1 1 100%;
		width: 100%;
		min-height: 54px;
		font-size: 16px !important;
		font-weight: 600 !important;
	}

	[data-products] .product .cdp-woo-card-buttons {
		flex-direction: column;
	}

	[data-products] .product .cdp-woo-card-buttons .ct-woo-card-actions,
	[data-products] .product .cdp-woo-card-buttons > .cdp-buy-now-archive {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* ========================================
   Cart / Checkout：字体更醒目
======================================== */

.woocommerce-cart .entry-header .entry-title,
.woocommerce-checkout .entry-header .entry-title,
.woocommerce-cart .woocommerce-products-header__title,
.woocommerce-checkout h1.entry-title {
	font-size: 2rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-cart .cart-empty,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .return-to-shop .button {
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	color: #111827 !important;
}

.woocommerce-cart .return-to-shop .button {
	padding: 12px 22px !important;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
	font-size: 1rem !important;
	color: #111827 !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td,
.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart .cart_totals table th,
.woocommerce-checkout table.shop_table th {
	font-weight: 700 !important;
}

.woocommerce-checkout .product-name a,
.woocommerce-checkout #order_review .product-name,
.woocommerce-checkout #order_review .product-name a {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-cart .product-name a {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	color: #111827 !important;
}

.woocommerce-checkout .amount,
.woocommerce-checkout .order-total .amount,
.woocommerce-checkout #order_review .amount {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-cart .amount,
.woocommerce-cart .cart_totals .order-total .amount {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-checkout .form-row label,
.woocommerce-checkout .woocommerce-form__label,
.woocommerce-checkout .woocommerce-billing-fields .form-row label,
.woocommerce-checkout .woocommerce-shipping-fields .form-row label,
.woocommerce-checkout .woocommerce-additional-fields .form-row label {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
	font-size: 17px !important;
	font-weight: 500 !important;
	color: #111827 !important;
}

.woocommerce-checkout #payment .payment_methods li label,
.woocommerce-checkout #payment .payment_box p {
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: #111827 !important;
}

.woocommerce-checkout #payment #place_order,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	font-size: 18px !important;
	font-weight: 700 !important;
	padding: 14px 24px !important;
}
