/*
Theme Name: ANDS Distribution Child
Theme URI: https://andsdistribution.co.nz/
Description: Update-safe customisations for the ANDS Distribution Vapier theme.
Author: ANDS Distribution
Template: vapier
Version: 1.0.0
Text Domain: vapier-child
*/

/* 手机端两列商品卡片缩小列间距，避免中间留白过大。 */
@media (max-width: 767px) {
	body.post-type-archive-product .products-list.grid,
	body.tax-product_cat .products-list.grid,
	body.tax-product_tag .products-list.grid {
		margin-left: -6px;
		margin-right: -6px;
	}

	body.post-type-archive-product .products-list.grid > li.product,
	body.tax-product_cat .products-list.grid > li.product,
	body.tax-product_tag .products-list.grid > li.product {
		padding-left: 6px;
		padding-right: 6px;
	}
}

/* Contact Form 7 專用排版：清除主題 Bootstrap 欄位寬度干擾，保持表單欄位整齊。 */
body.vv-contact-page .wpcf7 .contact-us-form {
	margin: 0;
}

body.vv-contact-page .wpcf7 .contact-us-form > .row {
	display: grid;
	gap: 16px;
	margin: 0 !important;
}

body.vv-contact-page .wpcf7 .contact-us-form > .row::before,
body.vv-contact-page .wpcf7 .contact-us-form > .row::after {
	content: none;
	display: none;
}

body.vv-contact-page .wpcf7 .contact-us-form > .row:first-child {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.vv-contact-page .wpcf7 .contact-us-form > .row:first-child .col-sm-12:nth-child(3) {
	grid-column: 1 / -1;
}

body.vv-contact-page .wpcf7 .contact-us-form > .row:not(:first-child) {
	grid-template-columns: minmax(0, 1fr);
	margin-top: 16px !important;
}

body.vv-contact-page .wpcf7 .contact-us-form .col-sm-12 {
	float: none !important;
	max-width: none !important;
	padding: 0 !important;
	width: auto !important;
}

body.vv-contact-page .wpcf7 .contact-us-form p {
	margin: 0 !important;
}

body.vv-contact-page .wpcf7 .contact-us-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

body.vv-contact-page .wpcf7 .contact-us-form input:not([type='submit']),
body.vv-contact-page .wpcf7 .contact-us-form textarea,
body.vv-contact-page .wpcf7 .contact-us-form select {
	display: block;
	margin: 0;
	width: 100% !important;
}

body.vv-contact-page .wpcf7 .contact-us-form textarea {
	min-height: 170px;
	resize: vertical;
}

body.vv-contact-page .wpcf7 .contact-us-form .button {
	margin-top: 22px;
}

body.vv-contact-page .wpcf7 .contact-us-form .button p {
	text-align: left;
}

body.vv-contact-page .wpcf7 .contact-us-form input[type='submit'] {
	min-width: 180px;
}

body.vv-contact-page .wpcf7 .wpcf7-response-output {
	border: 0;
	margin: 18px 0 0;
	padding: 0;
}

@media (max-width: 767px) {
	body.vv-contact-page .wpcf7 .contact-us-form > .row:first-child {
		grid-template-columns: minmax(0, 1fr);
	}

	body.vv-contact-page .wpcf7 .contact-us-form > .row:first-child .col-sm-12:nth-child(3) {
		grid-column: auto;
	}

	body.vv-contact-page .wpcf7 .contact-us-form > .row {
		gap: 12px;
	}

	body.vv-contact-page .wpcf7 .contact-us-form > .row:not(:first-child) {
		margin-top: 12px !important;
	}

	body.vv-contact-page .wpcf7 .contact-us-form textarea {
		min-height: 145px;
	}

	body.vv-contact-page .wpcf7 .contact-us-form .button {
		margin-top: 18px;
	}
}

/* Creditopay 支付插件默认将卡片 iframe 固定为 400px，造成表单下方留白。 */
.woocommerce-checkout #cartadicreditopay-card-element #WTP_iframe {
	height: 240px !important;
}

/* 手机端字段改为纵向排列，需要保留足够高度以避免 iframe 出现内部滚动条。 */
@media (max-width: 767px) {
	.woocommerce-checkout #cartadicreditopay-card-element #WTP_iframe {
		height: 310px !important;
	}
}

/* Checkout 保留原有流程，只统一为主页的浅灰背景和简洁白色卡片。 */
body.woocommerce-checkout,
body.woocommerce-checkout #bwp-main,
body.woocommerce-checkout #main-content {
	background: #f4f7fb;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout {
	column-gap: 28px;
	margin-bottom: 72px;
	margin-top: 42px;
}

body.woocommerce-checkout .wc-block-checkout__main {
	background: #fff;
	border: 1px solid #dce3eb;
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(12, 21, 41, 0.06);
	padding: clamp(24px, 2.5vw, 34px);
}

body.woocommerce-checkout .wc-block-checkout__main input:not([type='checkbox']):not([type='radio']),
body.woocommerce-checkout .wc-block-checkout__main select,
body.woocommerce-checkout .wc-block-checkout__main textarea {
	border-color: #d4dde8;
	border-radius: 9px;
}

body.woocommerce-checkout .wc-block-components-radio-control-accordion-option {
	border-color: #d4dde8;
	border-radius: 12px;
	overflow: hidden;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	align-self: flex-start;
	position: sticky;
	top: 28px;
}

/* 摘要保持为一个连续的白色卡片，不拆分为多块色块。 */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content {
	background: #fff;
	border: 1px solid #dce3eb;
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(12, 21, 41, 0.06);
	overflow: hidden;
}

/* 商品、优惠码、小计和总计为同一容器的直接子项，恢复为连续直角分段。 */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content > .wc-block-components-totals-wrapper {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

/* 以轻量分隔线区分商品、优惠码、小计和总计。 */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content > .wc-block-components-totals-wrapper:not(:empty):not(:last-child) {
	border-bottom: 1px solid #e2e8f0 !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-formatted-money-amount {
	color: #10a85f;
	font-weight: 800;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout #place_order {
	background: #0c1529 !important;
	border: 1px solid #0c1529 !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 22px rgba(12, 21, 41, 0.14);
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	min-height: 52px;
	text-transform: uppercase;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout #place_order:hover {
	background: #10a85f !important;
	border-color: #10a85f !important;
}

@media (max-width: 767px) {
	body.woocommerce-checkout .wp-block-woocommerce-checkout {
		margin-bottom: 44px;
		margin-top: 24px;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content {
		border-radius: 16px;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content {
		box-sizing: border-box;
		padding-left: 12px;
		padding-right: 12px;
	}

	body.woocommerce-checkout .wc-block-checkout__main {
		padding: 22px 18px;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar {
		position: static;
	}
}


/*
 * 自定义 Elementor 主页组件已包含 Hero 标题，使用该组件的页面应隐藏父主题
 * 自带的页面标题和面包屑，避免标题重复显示。
 */
body:has(.elementor-widget-vapevixa-homepage) .bwp-main > .page-title.bwp-title {
	display: none;
}

/*
 * 将 WooCommerce 缺货的产品卡片显示为灰色，方便客户区分。
 * 主题的 AJAX 筛选会移除 .outofstock class，但会保留 .product-stock 标签，
 * 因此同时用这两个标记判断缺货状态。
 */
.woocommerce ul.products li.product.outofstock,
.woocommerce ul.products li.product:has(.product-stock),
.woocommerce-page ul.products li.product.outofstock {
	filter: grayscale(1) !important;
	opacity: 0.52 !important;
}

.woocommerce-page ul.products li.product:has(.product-stock) {
	filter: grayscale(1) !important;
	opacity: 0.52 !important;
}

.woocommerce ul.products li.product.outofstock:hover,
.woocommerce ul.products li.product:has(.product-stock):hover,
.woocommerce-page ul.products li.product.outofstock:hover {
	filter: grayscale(1) !important;
	opacity: 0.68 !important;
}

.woocommerce-page ul.products li.product:has(.product-stock):hover {
	filter: grayscale(1) !important;
	opacity: 0.68 !important;
}

/* AJAX 脚本识别到的缺货产品使用稳定 class，避免主题重绘后灰色状态丢失。 */
.woocommerce ul.products li.product.vv-product-out-of-stock,
.woocommerce-page ul.products li.product.vv-product-out-of-stock,
.woocommerce .products-entry.vv-product-out-of-stock,
.woocommerce-page .products-entry.vv-product-out-of-stock {
	filter: grayscale(1) !important;
	opacity: 0.52 !important;
}

.woocommerce ul.products li.product.vv-product-out-of-stock:hover,
.woocommerce-page ul.products li.product.vv-product-out-of-stock:hover,
.woocommerce .products-entry.vv-product-out-of-stock:hover,
.woocommerce-page .products-entry.vv-product-out-of-stock:hover {
	filter: grayscale(1) !important;
	opacity: 0.68 !important;
}

/* 商品元信息隐藏后，保留购买区域与社交分享之间的视觉分隔。 */
.single-product .bwp-single-info .vv-single-product-divider {
	border-top: 1px solid #e5e5e5;
	clear: both;
	margin-top: 30px;
	padding-top: 25px;
	width: 100%;
}

/* 全站统一父主题的面包屑样式，避免普通页面与商城页面出现不同横幅。 */
#bwp-main .page-title.bwp-title {
	background-color: #0c1529 !important;
	background-image: none !important;
	border: 0;
	margin: 0 0 42px;
	padding: 25px 0;
}

#bwp-main .page-title.bwp-title .content-title-heading {
	display: none;
}

#bwp-main .page-title.bwp-title #breadcrumb,
#bwp-main .page-title.bwp-title #breadcrumb a,
#bwp-main .page-title.bwp-title #breadcrumb .current {
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

#bwp-main .page-title.bwp-title #breadcrumb .delimiter::before {
	color: #65df96;
}

/* WooCommerce 商城、分类和详情页沿用主页的深蓝、绿色和圆角卡片视觉体系。 */
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.single-product {
	--vv-shop-ink: #0c1529;
	--vv-shop-green: #16a35a;
	--vv-shop-green-soft: #dff8e9;
	--vv-shop-surface: #f5f7fa;
	--vv-shop-text: #56647a;
	--vv-shop-border: rgba(12, 21, 41, 0.11);
	background: var(--vv-shop-surface);
	color: var(--vv-shop-ink);
}

/* 统一商城页顶部面包屑区域，移除父主题原有的红色横幅风格。 */
body.post-type-archive-product .page-title.bwp-title,
body.tax-product_cat .page-title.bwp-title,
body.tax-product_tag .page-title.bwp-title,
body.single-product .page-title.bwp-title {
	background-color: var(--vv-shop-ink) !important;
	background-image: none !important;
	border: 0;
	margin: 0 0 42px;
	padding: 25px 0;
}

body.post-type-archive-product .page-title .breadcrumb,
body.tax-product_cat .page-title .breadcrumb,
body.tax-product_tag .page-title .breadcrumb,
body.single-product .page-title .breadcrumb,
body.post-type-archive-product .page-title a,
body.tax-product_cat .page-title a,
body.tax-product_tag .page-title a,
body.single-product .page-title a {
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Shop 和分类页的筛选栏。 */
body.post-type-archive-product .main-archive-product,
body.tax-product_cat .main-archive-product,
body.tax-product_tag .main-archive-product {
	margin-bottom: 90px;
}

body.post-type-archive-product .bwp-sidebar .widget,
body.tax-product_cat .bwp-sidebar .widget,
body.tax-product_tag .bwp-sidebar .widget {
	background: #fff;
	border: 1px solid var(--vv-shop-border);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(12, 21, 41, 0.04);
	overflow: hidden;
	padding: 0;
}

body.post-type-archive-product .bwp-sidebar .widget + .widget,
body.tax-product_cat .bwp-sidebar .widget + .widget,
body.tax-product_tag .bwp-sidebar .widget + .widget {
	margin-top: 20px;
}

body.post-type-archive-product .bwp-sidebar .widget-title,
body.tax-product_cat .bwp-sidebar .widget-title,
body.tax-product_tag .bwp-sidebar .widget-title {
	background: var(--vv-shop-ink);
	border: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0;
	padding: 18px 22px;
	text-transform: uppercase;
}

body.post-type-archive-product .bwp-sidebar .widget_product_categories ul,
body.tax-product_cat .bwp-sidebar .widget_product_categories ul,
body.tax-product_tag .bwp-sidebar .widget_product_categories ul {
	margin: 0;
	padding: 7px 0;
}

body.post-type-archive-product .bwp-sidebar .widget_product_categories li,
body.tax-product_cat .bwp-sidebar .widget_product_categories li,
body.tax-product_tag .bwp-sidebar .widget_product_categories li {
	border: 0;
	margin: 0;
	padding: 0;
}

body.post-type-archive-product .bwp-sidebar .widget_product_categories a,
body.tax-product_cat .bwp-sidebar .widget_product_categories a,
body.tax-product_tag .bwp-sidebar .widget_product_categories a {
	color: var(--vv-shop-text);
	display: block;
	font-size: 14px;
	font-weight: 650;
	padding: 11px 22px;
	transition: background 0.2s ease, color 0.2s ease;
}

body.post-type-archive-product .bwp-sidebar .widget_product_categories a:hover,
body.post-type-archive-product .bwp-sidebar .widget_product_categories .current-cat > a,
body.tax-product_cat .bwp-sidebar .widget_product_categories a:hover,
body.tax-product_cat .bwp-sidebar .widget_product_categories .current-cat > a,
body.tax-product_tag .bwp-sidebar .widget_product_categories a:hover,
body.tax-product_tag .bwp-sidebar .widget_product_categories .current-cat > a {
	background: var(--vv-shop-green-soft);
	color: var(--vv-shop-green);
}

body.post-type-archive-product .widget_price_filter,
body.tax-product_cat .widget_price_filter,
body.tax-product_tag .widget_price_filter {
	padding-bottom: 22px !important;
}

body.post-type-archive-product .widget_price_filter .price_slider_wrapper,
body.tax-product_cat .widget_price_filter .price_slider_wrapper,
body.tax-product_tag .widget_price_filter .price_slider_wrapper {
	padding: 0 22px;
}

body.post-type-archive-product .widget_price_filter .ui-slider .ui-slider-range,
body.tax-product_cat .widget_price_filter .ui-slider .ui-slider-range,
body.tax-product_tag .widget_price_filter .ui-slider .ui-slider-range {
	background: var(--vv-shop-green);
}

body.post-type-archive-product .widget_price_filter .ui-slider .ui-slider-handle,
body.tax-product_cat .widget_price_filter .ui-slider .ui-slider-handle,
body.tax-product_tag .widget_price_filter .ui-slider .ui-slider-handle {
	background: var(--vv-shop-green);
	border-color: var(--vv-shop-green);
}

body.post-type-archive-product .content-shop .bwp-top-bar,
body.tax-product_cat .content-shop .bwp-top-bar,
body.tax-product_tag .content-shop .bwp-top-bar {
	background: #fff;
	border: 1px solid var(--vv-shop-border);
	border-radius: 16px;
	margin-bottom: 28px;
	padding: 14px 16px;
}

body.post-type-archive-product .content-shop .content-top,
body.tax-product_cat .content-shop .content-top,
body.tax-product_tag .content-shop .content-top {
	align-items: center;
}

body.post-type-archive-product .content-shop .page-title,
body.tax-product_cat .content-shop .page-title,
body.tax-product_tag .content-shop .page-title {
	color: var(--vv-shop-ink);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 780;
	letter-spacing: -0.04em;
	margin: 0;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
	color: var(--vv-shop-text);
	font-size: 13px;
}

body.post-type-archive-product .content-topbar-bottom,
body.tax-product_cat .content-topbar-bottom,
body.tax-product_tag .content-topbar-bottom {
	background: transparent;
	margin-top: 14px;
}

body.post-type-archive-product .woocommerce-ordering .pwb-dropdown-toggle,
body.tax-product_cat .woocommerce-ordering .pwb-dropdown-toggle,
body.tax-product_tag .woocommerce-ordering .pwb-dropdown-toggle {
	border: 1px solid var(--vv-shop-border);
	border-radius: 9px;
	color: var(--vv-shop-ink);
	font-size: 13px;
	font-weight: 650;
	min-width: 150px;
}

/* 商品卡片使用主页同款白色圆角卡片和柔和悬浮效果。 */
body.post-type-archive-product .products-list.grid > li.product,
body.tax-product_cat .products-list.grid > li.product,
body.tax-product_tag .products-list.grid > li.product {
	margin-bottom: 28px;
}

body.post-type-archive-product .products-list.grid .product-wapper,
body.tax-product_cat .products-list.grid .product-wapper,
body.tax-product_tag .products-list.grid .product-wapper {
	background: #fff;
	border: 1px solid var(--vv-shop-border);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(12, 21, 41, 0.035);
	height: 100%;
	overflow: hidden;
	padding: 12px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.post-type-archive-product .products-list.grid .product-wapper:hover,
body.tax-product_cat .products-list.grid .product-wapper:hover,
body.tax-product_tag .products-list.grid .product-wapper:hover {
	box-shadow: 0 20px 44px rgba(12, 21, 41, 0.12);
	transform: translateY(-5px);
}

body.post-type-archive-product .products-list.grid .products-thumb,
body.tax-product_cat .products-list.grid .products-thumb,
body.tax-product_tag .products-list.grid .products-thumb {
	background: var(--vv-shop-surface);
	border-radius: 13px;
	overflow: hidden;
}

body.post-type-archive-product .products-list.grid .products-thumb img,
body.tax-product_cat .products-list.grid .products-thumb img,
body.tax-product_tag .products-list.grid .products-thumb img {
	mix-blend-mode: multiply;
	padding: 12px;
}

body.post-type-archive-product .products-list.grid .products-content,
body.tax-product_cat .products-list.grid .products-content,
body.tax-product_tag .products-list.grid .products-content {
	padding: 18px 10px 8px;
}

body.post-type-archive-product .products-list.grid .product-title,
body.tax-product_cat .products-list.grid .product-title,
body.tax-product_tag .products-list.grid .product-title {
	font-size: 15px;
	font-weight: 750;
	line-height: 1.35;
	margin: 7px 0;
}

body.post-type-archive-product .products-list.grid .product-title a,
body.tax-product_cat .products-list.grid .product-title a,
body.tax-product_tag .products-list.grid .product-title a {
	color: var(--vv-shop-ink);
}

body.post-type-archive-product .products-list.grid .price,
body.tax-product_cat .products-list.grid .price,
body.tax-product_tag .products-list.grid .price {
	color: var(--vv-shop-green) !important;
	font-size: 18px;
	font-weight: 800;
}

body.post-type-archive-product .products-list.grid .product-button .button,
body.tax-product_cat .products-list.grid .product-button .button,
body.tax-product_tag .products-list.grid .product-button .button {
	background: var(--vv-shop-ink);
	border: 1px solid var(--vv-shop-ink);
	border-radius: 9px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.post-type-archive-product .products-list.grid .product-button .button:hover,
body.tax-product_cat .products-list.grid .product-button .button:hover,
body.tax-product_tag .products-list.grid .product-button .button:hover {
	background: var(--vv-shop-green);
	border-color: var(--vv-shop-green);
}

/* 产品详情页采用双栏卡片布局，提升产品信息的层级和可读性。 */
body.single-product .bwp-single-product {
	margin-bottom: 82px;
}

body.single-product .bwp-single-image {
	align-self: flex-start;
	background: var(--vv-shop-surface);
	border: 1px solid var(--vv-shop-border);
	border-radius: 24px;
	box-sizing: border-box;
	height: auto;
	padding: 22px;
}

/* 图片列按自身内容收缩，避免 Bootstrap 行高把单图卡片拉出底部空白。 */
body.single-product .bwp-single-product > .row,
body.single-product .bwp-single-image .woocommerce-product-gallery > .row {
	align-items: flex-start;
}

body.single-product .bwp-single-image .woocommerce-product-gallery > .row > [class*="col-"] {
	align-self: flex-start;
}

/* 主图使用块级布局，清除 inline-block 图片底部的基线空隙。 */
body.single-product .bwp-single-image .image-additional {
	display: block;
	margin-bottom: 0;
	width: 100%;
}

body.single-product .bwp-single-image .image-additional > .woocommerce-product-gallery__image,
body.single-product .bwp-single-image .image-additional > .woocommerce-product-gallery__image img {
	display: block;
	max-width: 100%;
	width: 100%;
}

/* 只有主图时隐藏主题仍然输出的单个缩略图占位，保留多图产品的缩略图。 */
body.single-product .bwp-single-image .image-thumbnail:has(> .img-thumbnail:only-child),
body.single-product .bwp-single-image .image-thumbnail:has(.slick-slide:only-child) {
	display: none;
}

body.single-product .bwp-single-image .woocommerce-product-gallery > .row > [class*="col-"]:has(> .image-thumbnail:has(> .img-thumbnail:only-child)),
body.single-product .bwp-single-image .woocommerce-product-gallery > .row > [class*="col-"]:has(> .image-thumbnail:has(.slick-slide:only-child)) {
	display: none;
}

body.single-product .bwp-single-image .image-thumbnail,
body.single-product .bwp-single-image .content-image-thumbnail {
	margin-bottom: 0;
	margin-top: 10px;
}

body.single-product .bwp-single-image .woocommerce-product-gallery__image,
body.single-product .bwp-single-image .product-image {
	border-radius: 15px;
	overflow: hidden;
}

body.single-product .bwp-single-info .summary {
	background: #fff;
	border: 1px solid var(--vv-shop-border);
	border-radius: 24px;
	padding: clamp(28px, 4vw, 48px);
}

body.single-product .bwp-single-info .summary .product_title {
	color: var(--vv-shop-ink);
	font-size: 24px !important;
	font-weight: 780;
	letter-spacing: -0.02em;
	line-height: 1.25 !important;
}

body.single-product .bwp-single-info .price {
	color: var(--vv-shop-green) !important;
	font-size: 27px;
	font-weight: 800;
}

body.single-product .bwp-single-info .variations label {
	color: var(--vv-shop-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .bwp-single-info .variations select {
	border: 1px solid var(--vv-shop-border);
	border-radius: 10px;
	color: var(--vv-shop-ink);
	min-height: 52px;
	padding: 0 16px;
}

body.single-product .bwp-single-info .single_add_to_cart_button.button,
body.single-product .bwp-single-info .quick_buy_button {
	background: var(--vv-shop-ink) !important;
	border-color: var(--vv-shop-ink) !important;
	border-radius: 10px !important;
	font-weight: 800;
}

body.single-product .bwp-single-info .quick_buy_button {
	background: var(--vv-shop-green) !important;
	border-color: var(--vv-shop-green) !important;
}

body.single-product .bwp-single-info .single_add_to_cart_button.button:hover,
body.single-product .bwp-single-info .quick_buy_button:hover {
	background: var(--vv-shop-green) !important;
	border-color: var(--vv-shop-green) !important;
}

/* 购买区改为紧凑横向布局：数量、加入购物车和立即购买处于同一操作层级。 */
body.single-product .bwp-single-info .single_variation_wrap {
	align-items: stretch;
	display: flex !important;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}

body.single-product .bwp-single-info .single_variation_wrap .woocommerce-variation {
	flex: 0 0 100%;
}


body.single-product .bwp-single-info .single_variation_wrap .woocommerce-variation-add-to-cart {
	display: contents !important;
}

body.single-product .bwp-single-info .single_variation_wrap .quantity {
	flex: 0 0 150px;
	margin-right: 0;
	min-width: 150px;
	width: 150px;
}

body.single-product .bwp-single-info .single_variation_wrap .single_add_to_cart_button.button,
body.single-product .bwp-single-info .single_variation_wrap .quick-buy,
body.single-product .bwp-single-info .single_variation_wrap .quick_buy_button {
	align-items: center;
	display: inline-flex !important;
	float: none !important;
	height: 52px;
	justify-content: center;
	margin: 0;
	min-width: 0;
	width: auto !important;
}

body.single-product .bwp-single-info .single_variation_wrap .single_add_to_cart_button.button {
	clear: none !important;
	flex: 1 1 120px;
	max-width: 220px;
	min-width: 120px !important;
	width: auto !important;
}

body.single-product .bwp-single-info .single_variation_wrap .quick-buy,
body.single-product .bwp-single-info .single_variation_wrap .quick_buy_button {
	background: var(--vv-shop-green) !important;
	border-color: var(--vv-shop-green) !important;
	border-radius: 10px !important;
	flex: 0 0 160px;
	width: 160px !important;
}

/* 收藏和比较使用轻量图标文字操作，避免与主按钮争夺视觉权重。 */
body.single-product .bwp-single-info .woosw-wishlist,
body.single-product .bwp-single-info .wooscp-compare {
	display: inline-flex;
	float: none;
	margin: 16px 8px 0 0;
}

body.single-product .bwp-single-info .woosw-wishlist .woosw-btn,
body.single-product .bwp-single-info .wooscp-compare .woosc-btn {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--vv-shop-ink);
	font-size: 13px;
	min-height: 36px;
	padding: 0 10px;
}

@media (max-width: 767px) {
	body.single-product .bwp-single-info .single_variation_wrap .woocommerce-variation-add-to-cart {
		display: contents !important;
	}

	body.single-product .bwp-single-info .single_variation_wrap .quick-buy,
	body.single-product .bwp-single-info .single_variation_wrap .quick_buy_button {
		flex: 0 0 100%;
		width: 100% !important;
	}

	body.single-product .bwp-single-info .single_variation_wrap .single_add_to_cart_button.button {
		flex: 1 1 0;
		max-width: none;
		min-width: 0 !important;
		width: auto !important;
	}
}

/* 平板宽度下主题仍可能把立即购买按钮推到容器右侧，恢复紧凑的起始对齐。 */
@media (min-width: 768px) and (max-width: 991px) {
	body.single-product .bwp-single-info .single_variation_wrap {
		justify-content: flex-start !important;
	}

	body.single-product .bwp-single-info .single_variation_wrap .single_add_to_cart_button.button {
		flex: 0 1 220px;
		max-width: 220px;
	}

	body.single-product .bwp-single-info .single_variation_wrap .quick-buy,
	body.single-product .bwp-single-info .single_variation_wrap .quick_buy_button {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

body.single-product .woocommerce-tabs {
	background: #fff;
	border: 1px solid var(--vv-shop-border);
	border-radius: 22px;
	margin-top: 40px;
	padding: clamp(22px, 3vw, 42px);
}

body.single-product .woocommerce-tabs ul.tabs {
	border-bottom: 0;
	margin: 0;
	padding: 0 0 13px;
}

/* 父主题已提供完整宽度的 Tab 分隔线，避免与子主题边线重复。 */
body.single-product .woocommerce-tabs .content-ul-tab {
	margin-bottom: 28px;
}

body.single-product .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	margin: 0 25px 0 0;
	padding: 0;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	color: var(--vv-shop-text);
	font-size: 14px;
	font-weight: 750;
	padding: 0 0 10px;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
	border-bottom: 2px solid var(--vv-shop-green);
	color: var(--vv-shop-ink);
}

/* 购物车结算入口使用醒目的主页主按钮样式，避免显示为普通文字链接。 */
.cart_totals .wc-proceed-to-checkout {
	padding: 24px 0 0;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button,
.cart_totals .wc-proceed-to-checkout a.wc-forward {
	align-items: center;
	background: #0c1529 !important;
	border: 1px solid #0c1529 !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 26px rgba(12, 21, 41, 0.16);
	color: #fff !important;
	display: flex !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	justify-content: center;
	letter-spacing: 0.06em;
	min-height: 56px;
	padding: 12px 22px !important;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	width: 100%;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button::after,
.cart_totals .wc-proceed-to-checkout a.wc-forward::after {
	content: "→";
	font-size: 19px;
	line-height: 1;
	margin-left: 15px;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.cart_totals .wc-proceed-to-checkout a.wc-forward:hover {
	background: #16a35a !important;
	border-color: #16a35a !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* 新版 WooCommerce Cart Block 的结算按钮使用独立 class，需要单独覆盖。 */
.wc-block-cart__submit-container .wc-block-cart__submit-button {
	align-items: center !important;
	background: #0c1529 !important;
	border: 1px solid #0c1529 !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 26px rgba(12, 21, 41, 0.16) !important;
	color: #fff !important;
	display: flex !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	justify-content: center !important;
	letter-spacing: 0.06em;
	min-height: 56px;
	padding: 12px 22px !important;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	width: 100% !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button::after {
	content: "→";
	font-size: 19px;
	line-height: 1;
	margin-left: 15px;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover {
	background: #16a35a !important;
	border-color: #16a35a !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* WooCommerce Cart Block 使用与主页一致的双卡片结算布局。 */
.wp-block-woocommerce-cart {
	--vv-cart-ink: #0c1529;
	--vv-cart-green: #16a35a;
	--vv-cart-green-soft: #dff8e9;
	--vv-cart-surface: #f5f7fa;
	--vv-cart-text: #56647a;
	--vv-cart-border: rgba(12, 21, 41, 0.11);
	margin: 0 auto 90px;
	max-width: 1340px;
	padding: 28px 22px 52px;
}

.wp-block-woocommerce-cart .wc-block-cart__main,
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
	background: #fff;
	border: 1px solid var(--vv-cart-border);
	border-radius: 22px;
	box-shadow: 0 14px 38px rgba(12, 21, 41, 0.05);
}

.wp-block-woocommerce-cart .wc-block-cart__main {
	padding: clamp(22px, 3vw, 38px);
}

.wp-block-woocommerce-cart .wc-block-cart__sidebar {
	height: fit-content;
	padding: clamp(22px, 3vw, 32px);
}

.wp-block-woocommerce-cart .wc-block-cart-items {
	border: 0;
	margin: 0;
}

.wp-block-woocommerce-cart .wc-block-cart-items__header {
	border-bottom: 1px solid var(--vv-cart-border);
	color: var(--vv-cart-text);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding-bottom: 16px;
	text-transform: uppercase;
}

.wp-block-woocommerce-cart .wc-block-cart-items__row {
	border-bottom: 1px solid var(--vv-cart-border);
	padding: 25px 0;
}

.wp-block-woocommerce-cart .wc-block-cart-item__image img {
	background: var(--vv-cart-surface);
	border: 1px solid var(--vv-cart-border);
	border-radius: 14px;
	padding: 7px;
}

.wp-block-woocommerce-cart .wc-block-components-product-name {
	color: var(--vv-cart-ink);
	font-size: 16px;
	font-weight: 780;
	line-height: 1.35;
}

.wp-block-woocommerce-cart .wc-block-components-product-metadata,
.wp-block-woocommerce-cart .wc-block-components-product-metadata__description {
	color: var(--vv-cart-text);
	font-size: 13px;
}

.wp-block-woocommerce-cart .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-formatted-money-amount {
	color: var(--vv-cart-green);
	font-size: 18px;
	font-weight: 800;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
	border: 1px solid var(--vv-cart-border);
	border-radius: 10px;
	min-height: 40px;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector input {
	color: var(--vv-cart-ink);
	font-weight: 700;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button {
	color: var(--vv-cart-text);
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
	color: var(--vv-cart-text) !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: #c72e4d !important;
}

.wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
	border: 0;
	margin: 0;
	padding: 0;
}

.wp-block-woocommerce-cart .wc-block-components-totals-item,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon {
	border-bottom: 1px solid var(--vv-cart-border);
	padding: 17px 0;
}

.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__button {
	color: var(--vv-cart-ink);
	font-size: 13px;
	font-weight: 750;
}

.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--vv-cart-ink);
	font-size: 23px;
	font-weight: 800;
}

.wp-block-woocommerce-cart .wc-block-components-totals-coupon input {
	border: 1px solid var(--vv-cart-border);
	border-radius: 10px;
	color: var(--vv-cart-ink);
	min-height: 50px;
	padding: 0 14px;
}

.wp-block-woocommerce-cart .wc-block-components-totals-coupon button {
	background: var(--vv-cart-green-soft);
	border: 1px solid var(--vv-cart-green-soft);
	border-radius: 10px;
	color: var(--vv-cart-green);
	font-size: 12px;
	font-weight: 800;
	min-height: 50px;
	text-transform: uppercase;
}

.wp-block-woocommerce-cart .wc-block-components-totals-coupon button:hover {
	background: var(--vv-cart-green);
	border-color: var(--vv-cart-green);
	color: #fff;
}

@media (max-width: 767px) {
	body.post-type-archive-product .page-title.bwp-title,
	body.tax-product_cat .page-title.bwp-title,
	body.tax-product_tag .page-title.bwp-title,
	body.single-product .page-title.bwp-title {
		margin-bottom: 28px;
	}

	body.post-type-archive-product .bwp-sidebar,
	body.tax-product_cat .bwp-sidebar,
	body.tax-product_tag .bwp-sidebar {
		margin-bottom: 24px;
	}

	body.single-product .bwp-single-image,
	body.single-product .bwp-single-info .summary {
		border-radius: 18px;
	}

	body.single-product .bwp-single-info .summary {
		margin-top: 22px;
	}

	.wp-block-woocommerce-cart {
		margin-bottom: 58px;
		overflow-x: clip;
		padding: 0 18px 36px;
	}

	/* 手机端取消商品列表外层卡片，避免双层边框压缩内容空间。 */
	.wp-block-woocommerce-cart .wc-block-cart,
	.wp-block-woocommerce-cart .wc-block-cart__main,
	.wp-block-woocommerce-cart .wc-block-cart__sidebar {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.wp-block-woocommerce-cart .wc-block-cart__main {
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.wp-block-woocommerce-cart .wc-block-cart-items__header {
		display: none;
	}

	.wp-block-woocommerce-cart .wc-block-cart-items__row {
		background: transparent;
		border: 0;
		border-bottom: 1px solid var(--vv-cart-border);
		border-radius: 0;
		margin: 0;
		padding: 20px 0;
	}

	/* 汇总区以整块浅灰底呈现，保留层级但不使用多层框体。 */
	.wp-block-woocommerce-cart .wc-block-cart__sidebar,
	.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
	.wp-block-woocommerce-cart .wc-block-cart__totals-block {
		background: var(--vv-cart-surface);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin-top: 16px;
		padding: 24px 18px;
	}

	.wp-block-woocommerce-cart .wc-block-cart-item__image {
		max-width: 64px;
	}

	.wp-block-woocommerce-cart .wc-block-components-product-name {
		font-size: 14px;
	}

	.wp-block-woocommerce-cart .wc-block-cart__submit-container {
		border: 0;
		margin-top: 10px;
		padding-top: 0;
	}

	/* 手机端汇总区只保留优惠码下方的一条分隔线，避免按钮前出现多条横线。 */
	.wp-block-woocommerce-cart .wc-block-components-totals-item,
	.wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
		border-bottom: 0;
	}

	.wp-block-woocommerce-cart .wc-block-components-totals-coupon {
		border-bottom: 1px solid var(--vv-cart-border);
	}

	.wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
		padding-bottom: 8px;
	}
}

/* Contact 页面沿用首页的浅灰背景、深蓝标题和绿色强调色。 */
body.vv-contact-page {
	--vv-contact-ink: #0c1529;
	--vv-contact-green: #10a85f;
	--vv-contact-muted: #64748b;
	--vv-contact-line: #dce3eb;
	--vv-contact-surface: #ffffff;
	background: #f4f7fb;
}

body.vv-contact-page #bwp-main,
body.vv-contact-page #main-content,
body.vv-contact-page .entry-content {
	background: #f4f7fb;
}

body.vv-contact-page #main-content {
	padding: 26px 0 72px;
}

body.vv-contact-page .entry-content > .elementor,
body.vv-contact-page .entry-content > .vc_row {
	margin: 0 auto;
}

/* 表单放入清晰的内容卡片，保留原有字段及提交逻辑。 */
body.vv-contact-page .wpforms-container,
body.vv-contact-page .wpcf7 {
	background: var(--vv-contact-surface);
	border: 1px solid var(--vv-contact-line);
	border-radius: 24px;
	box-shadow: 0 18px 42px rgba(12, 21, 41, 0.08);
	box-sizing: border-box;
	margin: 0 !important;
	padding: 34px;
}

body.vv-contact-page .wpforms-container .wpforms-title,
body.vv-contact-page .wpcf7 h2,
body.vv-contact-page .wpcf7 h3 {
	color: var(--vv-contact-ink);
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

body.vv-contact-page .wpforms-container label,
body.vv-contact-page .wpcf7 label {
	color: var(--vv-contact-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.vv-contact-page .wpforms-container input,
body.vv-contact-page .wpforms-container textarea,
body.vv-contact-page .wpforms-container select,
body.vv-contact-page .wpcf7 input:not([type='submit']),
body.vv-contact-page .wpcf7 textarea,
body.vv-contact-page .wpcf7 select {
	background: #f8fafc;
	border: 1px solid var(--vv-contact-line);
	border-radius: 10px;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--vv-contact-ink);
	min-height: 50px;
	padding: 12px 14px;
}

body.vv-contact-page .wpforms-container textarea,
body.vv-contact-page .wpcf7 textarea {
	min-height: 150px;
}

body.vv-contact-page .wpforms-container input:focus,
body.vv-contact-page .wpforms-container textarea:focus,
body.vv-contact-page .wpforms-container select:focus,
body.vv-contact-page .wpcf7 input:not([type='submit']):focus,
body.vv-contact-page .wpcf7 textarea:focus,
body.vv-contact-page .wpcf7 select:focus {
	background: #ffffff;
	border-color: var(--vv-contact-green);
	box-shadow: 0 0 0 4px rgba(16, 168, 95, 0.13);
	outline: 0;
}

body.vv-contact-page .wpforms-container button[type='submit'],
body.vv-contact-page .wpforms-container input[type='submit'],
body.vv-contact-page .wpcf7 input[type='submit'] {
	background: var(--vv-contact-ink) !important;
	border: 1px solid var(--vv-contact-ink) !important;
	border-radius: 10px;
	box-shadow: 0 12px 24px rgba(12, 21, 41, 0.16);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	min-height: 50px;
	padding: 0 26px;
	text-transform: uppercase;
}

body.vv-contact-page .wpforms-container button[type='submit']:hover,
body.vv-contact-page .wpforms-container input[type='submit']:hover,
body.vv-contact-page .wpcf7 input[type='submit']:hover {
	background: var(--vv-contact-green) !important;
	border-color: var(--vv-contact-green) !important;
	transform: translateY(-1px);
}

/* 右侧联系信息采用同色系分段，增强扫描效率。 */
body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column .elementor-widget-container,
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column .elementor-widget-container {
	border-bottom: 1px solid var(--vv-contact-line);
	padding: 0 0 22px;
}

body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column .elementor-widget:not(:first-child),
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column .elementor-widget:not(:first-child) {
	margin-top: 24px;
}

body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column h1,
body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column h2,
body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column h3,
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column h1,
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column h2,
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column h3 {
	color: var(--vv-contact-ink);
	font-size: 20px;
	font-weight: 800;
}

body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column a,
body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column a {
	color: var(--vv-contact-green);
}

@media (max-width: 767px) {
	body.vv-contact-page #main-content {
		padding: 8px 0 44px;
	}

	body.vv-contact-page .wpforms-container,
	body.vv-contact-page .wpcf7 {
		border-radius: 18px;
		padding: 24px 18px;
	}

	body.vv-contact-page .elementor-column:has(.wpforms-container) + .elementor-column,
	body.vv-contact-page .elementor-column:has(.wpcf7) + .elementor-column {
		margin-top: 28px;
	}
}
