/* ==========================================================================
   YY Product Customizer 2.0 — Woodmart 深色单产品页定制选配
   主色取自站点 --wd-primary-color（默认 #595EE0）
   ========================================================================== */

.yy-pc-container {
	--yy-accent: var(--wd-primary-color, #595ee0);
	--yy-line: rgba(255, 255, 255, .12);
	--yy-line-soft: rgba(255, 255, 255, .07);
	--yy-fill: rgba(255, 255, 255, .035);
	--yy-fill-hover: rgba(255, 255, 255, .07);
	--yy-text: rgba(255, 255, 255, .92);
	--yy-text-dim: rgba(255, 255, 255, .55);
	--yy-radius: 12px;

	position: relative;
	margin: 26px 0 22px;
	padding: 24px 22px 20px;
	border: 1px solid var(--yy-line);
	border-radius: var(--yy-radius);
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(89, 94, 224, .10) 0%, rgba(89, 94, 224, 0) 55%),
		rgba(255, 255, 255, .015);
	color: var(--yy-text);
	font-size: 14px;
	line-height: 1.5;
}

.yy-pc-container *,
.yy-pc-container *::before,
.yy-pc-container *::after {
	box-sizing: border-box;
}

/* ------------------------------- 区块标题 ------------------------------- */
.yy-pc-head {
	margin: 0 0 20px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--yy-line);
}

.yy-pc-heading {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: .01em;
	color: #fff;
}

.yy-pc-heading::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 17px;
	margin-right: 10px;
	border-radius: 2px;
	background: var(--yy-accent);
	vertical-align: -2px;
}

.yy-pc-sub {
	margin: 8px 0 0 13px;
	font-size: 13px;
	color: var(--yy-text-dim);
}

/* --------------------------------- 步骤 --------------------------------- */
.yy-pc-step {
	padding: 16px 0;
	border-bottom: 1px solid var(--yy-line-soft);
}

.yy-pc-step:first-child {
	padding-top: 2px;
}

.yy-pc-step:last-child {
	border-bottom: 0;
	padding-bottom: 8px;
}

.yy-pc-step-head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 11px;
	flex-wrap: wrap;
}

.yy-pc-step-num {
	flex: 0 0 auto;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 6px;
	background: rgba(89, 94, 224, .16);
	color: #a9adf5;
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	letter-spacing: .04em;
}

.yy-pc-step-title {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.yy-pc-req {
	color: #f2665f;
	font-weight: 700;
	margin-left: 2px;
}

.yy-pc-step--text .yy-pc-req {
	display: none;
}

.yy-pc-step-value {
	flex: 0 0 auto;
	max-width: 46%;
	font-size: 12px;
	color: var(--yy-accent);
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity .15s ease;
}

.yy-pc-step.has-value .yy-pc-step-value {
	opacity: 1;
}

/* ------------------------------ 选项卡片 ------------------------------ */
.yy-pc-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 8px;
	margin: 0;
}

.yy-pc-opt {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.yy-pc-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.yy-pc-opt-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--yy-line);
	border-radius: 9px;
	background: var(--yy-fill);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.yy-pc-opt:hover .yy-pc-opt-box {
	border-color: rgba(255, 255, 255, .28);
	background: var(--yy-fill-hover);
}

.yy-pc-radio:checked + .yy-pc-opt-box {
	border-color: var(--yy-accent);
	background: rgba(89, 94, 224, .15);
	box-shadow: 0 0 0 1px var(--yy-accent) inset;
}

.yy-pc-radio:checked + .yy-pc-opt-box .yy-pc-opt-label {
	color: #fff;
}

.yy-pc-radio:focus-visible + .yy-pc-opt-box {
	outline: 2px solid var(--yy-accent);
	outline-offset: 2px;
}

.yy-pc-opt-body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	flex: 1 1 auto;
}

.yy-pc-opt-label {
	font-size: 13px;
	line-height: 1.35;
	color: var(--yy-text);
	word-break: break-word;
}

.yy-pc-opt-price {
	font-size: 11.5px;
	font-weight: 600;
	color: #a9adf5;
	white-space: nowrap;
}

/* 带图片的选项：上图上字 */
.yy-pc-options--images {
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 10px;
}

.yy-pc-options--images .yy-pc-opt-box {
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
	padding: 6px 6px 8px;
	min-height: 0;
}

.yy-pc-opt-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, .05);
}

.yy-pc-opt-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yy-pc-options--images .yy-pc-opt-body {
	align-items: center;
	text-align: center;
}

.yy-pc-options--images .yy-pc-opt-label {
	font-size: 12px;
	line-height: 1.3;
}

/* 放大镜 */
.yy-pc-zoom {
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 21px;
	height: 21px;
	line-height: 21px;
	text-align: center;
	border-radius: 5px;
	background: rgba(0, 0, 0, .58);
	color: #fff;
	font-size: 12px;
	cursor: zoom-in;
	user-select: none;
	opacity: 0;
	transition: opacity .15s ease;
}

.yy-pc-opt-thumb:hover .yy-pc-zoom,
.yy-pc-info:hover .yy-pc-zoom {
	opacity: 1;
}

/* 说明图片 */
.yy-pc-infogallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 11px;
}

.yy-pc-info {
	position: relative;
	width: 78px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--yy-line);
	cursor: zoom-in;
}

.yy-pc-info img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ------------------------------ 文本输入 ------------------------------ */
.yy-pc-textwrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.yy-pc-text {
	flex: 1 1 auto;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--yy-line);
	border-radius: 9px;
	background: var(--yy-fill);
	color: #fff;
	font-size: 13.5px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.yy-pc-text::placeholder {
	color: rgba(255, 255, 255, .35);
}

.yy-pc-text:focus {
	outline: none;
	border-color: var(--yy-accent);
	box-shadow: 0 0 0 3px rgba(89, 94, 224, .18);
}

.yy-pc-text-price {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: #a9adf5;
}

/* ------------------------------ 价格面板 ------------------------------ */
.yy-pc-price-panel {
	margin: 6px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--yy-line);
}

.yy-pc-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--yy-text-dim);
}

#yy-pc-extra {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #a9adf5;
}

.yy-pc-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px dashed rgba(255, 255, 255, .16);
}

.yy-pc-total-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .10em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .60);
}

#yy-pc-total {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.yy-pc-note {
	margin: 10px 0 0;
	font-size: 11.5px;
	color: rgba(255, 255, 255, .38);
}

/* ------------------------------ 提示 / 校验 ------------------------------ */
.yy-pc-msg {
	display: none;
	margin-top: 12px;
	padding: 10px 13px;
	border-radius: 8px;
	border: 1px solid rgba(242, 102, 95, .45);
	background: rgba(242, 102, 95, .12);
	color: #ffb3ae;
	font-size: 13px;
}

.yy-pc-msg.is-visible {
	display: block;
}

.yy-pc-step.yy-pc-error .yy-pc-step-num {
	background: rgba(242, 102, 95, .22);
	color: #ffb3ae;
}

.yy-pc-step.yy-pc-error .yy-pc-options {
	border-radius: 9px;
	box-shadow: 0 0 0 1px rgba(242, 102, 95, .55);
	padding: 4px;
}

/* ------------------------------ 已选清单 ------------------------------ */
.yy-pc-summary {
	margin-top: 14px;
}

.yy-pc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid var(--yy-line);
	border-radius: 7px;
	background: transparent;
	color: rgba(255, 255, 255, .78);
	font-size: 12.5px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.yy-pc-toggle:hover,
.yy-pc-toggle.active {
	border-color: var(--yy-accent);
	color: #fff;
}

.yy-pc-toggle-icon {
	font-size: 10px;
	transition: transform .2s ease;
}

.yy-pc-toggle.active .yy-pc-toggle-icon {
	transform: rotate(180deg);
}

.yy-pc-details {
	display: none;
	margin-top: 11px;
	padding: 12px 14px;
	border: 1px solid var(--yy-line-soft);
	border-radius: 9px;
	background: rgba(0, 0, 0, .22);
}

.yy-pc-detail-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 5px 0;
	font-size: 12.5px;
	border-bottom: 1px dashed var(--yy-line-soft);
}

.yy-pc-detail-row:last-child {
	border-bottom: 0;
}

.yy-pc-detail-step {
	flex: 0 0 auto;
	max-width: 42%;
	color: rgba(255, 255, 255, .52);
}

.yy-pc-detail-value {
	flex: 1 1 auto;
	color: var(--yy-text);
	text-align: right;
	word-break: break-word;
}

.yy-pc-detail-price {
	flex: 0 0 auto;
	min-width: 62px;
	text-align: right;
	color: #a9adf5;
	font-variant-numeric: tabular-nums;
}

.yy-pc-empty {
	margin: 0;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .42);
}

/* -------------------------------- 灯箱 -------------------------------- */
.yy-pc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yy-pc-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .82);
}

.yy-pc-lightbox-content {
	position: relative;
	max-width: min(720px, 92vw);
	max-height: 88vh;
	padding: 14px;
	overflow: auto;
	border: 1px solid var(--yy-line, rgba(255, 255, 255, .14));
	border-radius: 12px;
	background: #0e0e10;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}

.yy-pc-lightbox-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.yy-pc-lightbox-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.yy-pc-lightbox-close {
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .6);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.yy-pc-lightbox-close:hover {
	color: #fff;
}

.yy-pc-lightbox-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* -------------------------------- 响应式 -------------------------------- */
@media (max-width: 1024px) {
	.yy-pc-options {
		grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	}
}

@media (max-width: 768px) {
	.yy-pc-container {
		padding: 18px 15px 16px;
		margin: 20px 0 18px;
	}

	.yy-pc-heading {
		font-size: 18px;
	}

	.yy-pc-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yy-pc-options--images {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.yy-pc-step-value {
		max-width: 100%;
		width: 100%;
		text-align: left;
	}

	#yy-pc-total {
		font-size: 21px;
	}
}

/* ---------------------- 清掉该模板里遗留的占位标题 ----------------------
   产品 29305 的 Elementor 单产品模板里有两个未完成的标题块：
   1) “Add Your Heading Text Here” + 分隔线
   2) “Blade Length” + “Blade Length Styles” + 分隔线（紧贴定制选配上方）
   注意：这里只隐藏这些小工具本身，绝不能隐藏它们所在的容器，
   否则会连带把“加入购物车”一起隐藏掉。
   在 Elementor 里把这几个小工具删掉后，可删除本段。
   ---------------------------------------------------------------------- */
.postid-29305 .elementor-element-718a4ee,
.postid-29305 .elementor-element-b57e32c,
.postid-29305 .elementor-element-4140cd9,
.postid-29305 .elementor-element-dbf2fbe,
.postid-29305 .elementor-element-ae156c9 {
	display: none !important;
}

/* ------------------ 产品页使用「上图 / 下文」单列排版 -------------------
   图片列(9323716)在上、信息列(12e66c4)在下，各占满一整行。
   如需恢复左右两栏，把 flex-direction 改回 row，并给两列各设 50% 宽。
   ---------------------------------------------------------------------- */
@media (min-width: 1025px) {
	.postid-29305 .e-con-inner:has(> .elementor-element-9323716) {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		align-items: stretch !important;
		gap: 34px !important;
	}

	.postid-29305 .elementor-element-9323716,
	.postid-29305 .elementor-element-12e66c4 {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* 单列时图片区不再需要限宽撑满，保持居中且不过高 */
	.postid-29305 .elementor-element-9323716 .woocommerce-product-gallery {
		max-width: 640px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* =============== 单产品页下方：描述 Tab + 相关推荐 ===============
   插件 2.2.0 新增。Elementor 模板没有 tabs / related 区块，
   这里用纯 CSS tab（radio + :checked）输出，不依赖 JS。
   ---------------------------------------------------------------- */
.yy-after {
	--yy-after-line: rgba(255, 255, 255, 0.12);
	max-width: 1180px;
	margin: 48px auto 0;
	padding-bottom: 34px;
	color: rgba(255, 255, 255, 0.75);
}

.yy-tabs {
	border: 1px solid var(--yy-after-line);
	border-radius: 12px;
	background: #111114;
	padding: 4px 24px 24px;
	margin-bottom: 40px;
}

.yy-tab-in {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.yy-tab-head {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--yy-after-line);
	margin-bottom: 20px;
}

.yy-tab-btn {
	position: relative;
	padding: 16px 2px 14px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: color 0.2s ease;
}

.yy-tab-btn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: transparent;
	transition: background 0.2s ease;
}

.yy-tab-btn:hover {
	color: rgba(255, 255, 255, 0.85);
}

.yy-tab-pane {
	display: none;
	font-size: 14.5px;
	line-height: 1.78;
	color: rgba(255, 255, 255, 0.72);
}

.yy-tab-pane p {
	margin: 0 0 13px;
}

.yy-tab-pane p:last-child {
	margin-bottom: 0;
}

#yy-after-tab-1:checked ~ .yy-tab-head label[for="yy-after-tab-1"],
#yy-after-tab-2:checked ~ .yy-tab-head label[for="yy-after-tab-2"] {
	color: #fff;
}

#yy-after-tab-1:checked ~ .yy-tab-head label[for="yy-after-tab-1"]::after,
#yy-after-tab-2:checked ~ .yy-tab-head label[for="yy-after-tab-2"]::after {
	background: #595ee0;
}

#yy-after-tab-1:checked ~ .yy-tab-body .yy-pane-1,
#yy-after-tab-2:checked ~ .yy-tab-body .yy-pane-2 {
	display: block;
}

/* 相关推荐 */
.yy-related-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
}

.yy-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.yy-rel-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 10px 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 12px;
	background: #111114;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.yy-rel-card:hover {
	border-color: #595ee0;
	transform: translateY(-2px);
}

.yy-rel-thumb {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #0b0b0d;
	aspect-ratio: 1 / 1;
}

.yy-rel-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.yy-rel-card:hover .yy-rel-thumb img {
	transform: scale(1.04);
}

.yy-rel-name {
	font-size: 13px;
	line-height: 1.45;
	color: #fff;
	min-height: 2.9em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yy-rel-price {
	font-size: 13px;
	font-weight: 600;
	color: #a9adf5;
}

.yy-rel-price del {
	color: rgba(255, 255, 255, 0.35);
	font-weight: 400;
}

@media (max-width: 1024px) {
	.yy-after {
		margin-top: 38px;
		padding: 0 16px;
	}

	.yy-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.yy-tabs {
		padding: 4px 16px 20px;
	}
}
