/* ============================================================
   单商品分栏布局 — 全部内联
   ============================================================ */
html {
	padding: 0 !important;
	margin: 0 !important;
}

.quantity-break__benefit {
	display: inline-block;
	font-size: 12px;
	background: #fff;
	color: #6d388b;
	border: solid 1px #6d388b;
	border-radius: 4px;
	word-break: break-word;
	white-space: normal;
	line-height: 1.3;
	padding: 0.3em 0.75em;
}

/* ---- 顶部横向滚动条 ---- */
.sp-top-ticker {
	background: #6d388b;
	color: #fff;
	padding: 0.6rem 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.sp-top-ticker__track {
	display: flex;
	align-items: center;
	width: fit-content;
}

.horizontal-ticker__container {
	display: flex;
	align-items: center;
	width: fit-content;
	animation: sp-ticker-scroll 30s linear infinite;
}

.horizontal-ticker__container:hover {
	animation-play-state: paused;
}

.horizontal-ticker__item {
	margin: 0;
	color: #fff;
	line-height: 1;
	white-space: nowrap;
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0 1.5rem;
}

@keyframes sp-ticker-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

header {
	display: none !important;
}

:root {
	--sp-primary: #222;
	--sp-secondary: #666;
	--sp-accent: #c00;
	--sp-bg: #f9f9f9;
	--sp-radius: 6px;
	--sp-gap: clamp(1rem, 2.5vw, 2.5rem);
	--color-foreground: 34, 34, 34;
	--color-base-text: 34, 34, 34;
}

/* ---- 主体包装 ---- */
.woocommerce.single-product-page {
	padding-top: 36px !important;
	margin-left: auto;
	margin-right: auto;
}

/* ---- 面包屑 ---- */
.woocommerce.single-product-page .woocommerce-breadcrumb {
	font-size: 0.85rem;
	color: var(--sp-secondary);
	margin-bottom: 1.25rem;
}

.woocommerce.single-product-page .woocommerce-breadcrumb a {
	color: var(--sp-secondary);
	text-decoration: none;
}

.woocommerce.single-product-page .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

/* ---- 分栏容器 ---- */
.sp-layout {
	margin: 0 auto;
	display: flex;
	width: 1400px;
	flex-wrap: wrap;
	padding: 0 50px;
	align-items: flex-start;
}

/* ---- 左栏：图库 sticky ---- */
.sp-layout__gallery {
	flex: 0 0 55%;
	max-width: 55%;
	width: calc(55% - var(--grid-desktop-horizontal-spacing, 2rem) / 2);
	position: sticky;
	top: 1.5rem;
	align-self: flex-start;
}

body.admin-bar .sp-layout__gallery {
	top: 3.25rem;
}

@media screen and (max-width: 782px) {
	body.admin-bar .sp-layout__gallery {
		top: 3rem;
	}
}

/* ---- 右栏 ---- */
.sp-layout__main {
	flex: 1 1 0;
	min-width: 0;
	max-width: 45%;
	width: calc(45% - var(--grid-desktop-horizontal-spacing, 2rem) / 2);
	padding: 0 0 0 50px;
}

/* ---- 摘要区（标题/评分/价格/简短描述/加入购物车/分类/分享） ---- */
.sp-layout__summary {
	width: 100%;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* 标题 */
.sp-layout__summary .product_title {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 700;
	color: var(--sp-primary);
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

/* 评分 */
.sp-layout__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: var(--sp-secondary);
	margin-bottom: 0.75rem;
}

.sp-layout__summary .star-rating {
	color: #f5a623;
	font-size: 0.9rem;
}

.sp-layout__summary .woocommerce-review-link {
	color: var(--sp-secondary);
	text-decoration: none;
	font-size: 0.82rem;
}

.sp-layout__summary .woocommerce-review-link:hover {
	text-decoration: underline;
}

/* 价格 */
.sp-layout__summary .price {
	font-size: 20px;
	font-weight: 700;
	color: var(--sp-primary);
	margin: 0.75rem 0 1rem;
	line-height: 1;
}

.sp-layout__summary .price del {
	font-size: 14px;
	font-weight: 400;
	color: #999;
	margin-right: 0.5rem;
}

.sp-layout__summary .price ins {
	text-decoration: none;
}

.sp-layout__summary .price .amount {
	font-family: Arial, sans-serif;
}

/* 简短描述 */
.sp-layout__summary .woocommerce-product-details__short-description {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--sp-secondary);
	margin-bottom: 1.25rem;
}

.sp-layout__summary .woocommerce-product-details__short-description p {
	margin: 0;
}

/* ---- 配送时效进度条 ---- */
dynamic-dates.shipping-checkpoints {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(var(--item-count), 1fr);
	justify-items: center;
	align-items: flex-start;
	column-gap: 1rem;
	--icon-size: 4rem;
	z-index: 0;
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoints__bar {
	position: absolute;
	top: calc(var(--icon-size) / 2);
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% / var(--item-count) * var(--item-count-sub));
	height: 0.2rem;
	z-index: 0;
	display: block;
	background: #000;
	border: 0;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 0;
	position: relative;
	z-index: 1;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon {
	width: var(--icon-size);
	height: var(--icon-size);
	border-radius: 50%;
	margin-bottom: 1rem;
	background: #000;
	color: #fff;
	position: relative;
	z-index: 1;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon svg {
	width: calc(var(--icon-size) / 2);
	height: calc(var(--icon-size) / 2);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon .material-icon,
dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon span {
	font-family: 'Material Symbols Outlined';
	font-size: calc(var(--icon-size) / 2);
	line-height: 1;
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: 0;
	color: #000;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint p + p {
	margin-top: 0.5rem;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__top strong {
	font-weight: 700;
	color: #000;
}

dynamic-dates.shipping-checkpoints .shipping-checkpoint__bottom {
	font-weight: 400;
	color: #000;
	font-size: 1rem;
	text-transform: none;
}

@media (max-width: 500px) {
	dynamic-dates.shipping-checkpoints {
		--icon-size: 3.25rem;
		column-gap: 0.5rem;
		margin-top: 1.5rem;
		margin-bottom: 1.5rem;
	}
	dynamic-dates.shipping-checkpoints .shipping-checkpoint p {
		font-size: 0.85rem;
	}
}

/* ---- 表单（数量/按钮） ---- */
.sp-layout__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
}

.sp-layout__summary .quantity {
	display: flex;
	align-items: center;
	gap: 0;
}

.sp-layout__summary .quantity label {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--sp-primary);
	margin-right: 0.5rem;
	display: none;
}

.sp-layout__summary .qty {
	width: 60px;
	height: 46px;
	border: 1.5px solid #ddd;
	border-radius: var(--sp-radius);
	text-align: center;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s;
}

.sp-layout__summary .qty:focus {
	border-color: var(--sp-primary);
}

/* 添加到购物车按钮 */
.sp-layout__summary .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 2rem;
	background: var(--sp-primary);
	color: #fff;
	border: none;
	border-radius: var(--sp-radius);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
	text-decoration: none;
}

.sp-layout__summary .single_add_to_cart_button:hover {
	background: #444;
	transform: translateY(-1px);
}

.sp-layout__summary .single_add_to_cart_button:active {
	transform: translateY(0);
}

.sp-layout__summary .single_add_to_cart_button.alt {
	background: var(--sp-accent);
}

.sp-layout__summary .single_add_to_cart_button.alt:hover {
	background: #a00;
}

/* 选中的可变商品提示 */
.sp-layout__summary .woocommerce-variation-price {
	margin-bottom: 0.75rem;
}

.sp-layout__summary .woocommerce-variation-description {
	font-size: 0.9rem;
	color: var(--sp-secondary);
	margin-bottom: 0.75rem;
}

.sp-layout__summary .reset_variations {
	display: inline-block;
	font-size: 0.8rem;
	color: var(--sp-secondary);
	text-decoration: underline;
	margin-top: 0.4rem;
}

/* 缺货提示 */
.sp-layout__summary .stock {
	font-size: 0.85rem;
	color: var(--sp-accent);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.sp-layout__summary .stock.in-stock {
	color: #2a7d2a;
}

.sp-layout__summary .stock.out-of-stock {
	color: var(--sp-accent);
}

/* ---- WooCommerce 可变产品：Quantity breaks ---- */
.variations_form .variations.qb-wc-variations-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.variations_form:has(.quantity-breaks) .reset_variations {
	display: none !important;
}

.quantity-breaks {
	width: 100%;
	--accent-color: 124, 58, 237;
	--badge-font-size: 1.5rem;
	--badge-line-height: 1.6;
	--badge-border-radius: 0.2em;
	--label-font-size: 1.6rem;
	--benefit-font-size: 1rem;
	--benefit-border-radius: 0.6em;
	--caption-font-size: 1.3rem;
	--price-font-size: 1.6rem;
	--compare-price-font-size: 1.4rem;
	--border-width: 0.2rem;
	--border-radius: 1rem;
	--column-gap: 0.75rem;
	--row-gap: 0.85rem;
	margin: 0 0 1.5rem;
}

.quantity-breaks__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 1.3rem;
	font-size: 14px;
	line-height: 1;
	font-weight: 700;
	color: var(--sp-primary);
}

.quantity-breaks__title span:nth-of-type(1),
.quantity-breaks__title span:nth-of-type(3) {
	flex-grow: 1;
	height: 2px;
	background: rgb(var(--accent-color));
}

/* Selected price display above cards */
.sp-qb-selected-price {
	display: none;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
}

.sp-qb-selected-price.is-visible {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

#sp-qb-selected-price .visually-hidden,
#sp-qb-selected-price .visually-hidden--inline {
	position: absolute !important;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap !important;
}

#sp-qb-selected-price .price__container {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	min-width: 0;
}

#sp-qb-selected-price .price__sale {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
}

#sp-qb-selected-price .sp-qb-badge-sale[hidden] {
	display: none !important;
}

#sp-qb-selected-price .price__badge-sale {
	border: 1px solid transparent;
	border-radius: 0.6em;
	font-size: 12px;
	letter-spacing: 0.1rem;
	text-align: center;
	background-color: #6d388b;
	border-color: #6d388b;
	font-weight: 700;
	line-height: 1.75em;
	padding: 0 0.5em;
	display: inline-flex;
	align-items: center;
	column-gap: 0.4em;
}

#sp-qb-selected-price .price__badge-sale .icon {
	flex-shrink: 0;
}

/* 有促销价时的样式 */
#sp-qb-selected-price.has-sale .price__sale .sp-qb-sale-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: #6d388b;
}

/* 有促销价时，原价带删除线 */
#sp-qb-selected-price.has-sale .price__regular .sp-qb-reg-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--sp-primary);
	margin: 0.75rem 0 1rem;
	line-height: 1;
	text-decoration: line-through;
	opacity: 0.7;
}

/* 无促销价时，只显示促销价（实际是原价），用促销价样式 */
#sp-qb-selected-price:not(.has-sale) .price__sale,
#sp-qb-selected-price:not(.has-sale) .price__regular .sp-qb-reg-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: #6d388b;
}

#sp-qb-selected-price:not(.has-sale) .price__regular {
	display: none;
}

.single_variation_wrap img {
	width: 100%;
}

.sp-qb-selected-price__label {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.sp-qb-selected-price__value {
	font-size: 1.5rem;
	font-weight: 800;
	color: rgb(var(--accent-color));
}

.quantity-breaks-container {
	position: relative;
	display: grid;
	align-items: flex-start;
	grid-template-columns: repeat(1, 1fr);
	column-gap: var(--column-gap);
	row-gap: var(--row-gap);
}

.quantity-breaks-container input {
	opacity: 0;
	width: 0;
	height: 0;
	cursor: pointer;
	position: absolute;
}

.quantity-break {
	cursor: pointer;
	border-radius: var(--border-radius);
	background: rgba(var(--accent-color), 0.02);
	border: solid 2px #d1c0db;
	position: relative;
	z-index: 0;
	--padding-y: 1.75rem;
	--padding-x: 1.75rem;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.quantity-break:hover:not(.quantity-break--unavailable) {
	border-color: rgba(var(--accent-color), 0.55);
	box-shadow: 0 4px 18px rgba(var(--accent-color), 0.12);
}

.quantity-break--unavailable {
	cursor: not-allowed;
	opacity: 0.62;
}

.quantity-breaks-container .quantity-break__radio-input:checked + .quantity-break:not(.quantity-break--unavailable) {
	background: rgba(var(--accent-color), 0.09);
	border-color: #6d388b;
	border-width: 2px;
	box-shadow: 0 4px 22px rgba(var(--accent-color), 0.18);
}

.quantity-break__wrapper {
	position: relative;
	padding: 17px 17px;
}

.quantity-break--badge .quantity-break__wrapper {
	padding-top: 20.35px;
}

.quantity-break__badge {
	position: absolute;
	top: -1rem;
	right: -1rem;
	margin: 0;
	padding: 0.35rem 1rem 0.45rem;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	background: #6d388b;
	border-radius: var(--badge-border-radius);
	transform: rotate(3deg);
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quantity-break__badge-text {
	display: block;
	white-space: nowrap;
}

.quantity-break__image-and-content {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quantity-breaks__title span:nth-of-type(1),
.quantity-breaks__title span:nth-of-type(3) {
	display: block;
	height: 2px;
	flex-grow: 1;
	background: #6d388b;
}

.quantity-break__image {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 0.65rem;
	overflow: hidden;
	background: #f3f3f3;
}

.quantity-break__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.quantity-break__content {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.quantity-break__left {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.quantity-break__label-text {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--sp-primary);
}

.quantity-break__caption {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--sp-secondary);
	line-height: 1.35;
}

.quantity-break__right--price-first-vertical {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	flex-shrink: 0;
}

.quantity-break__price {
	display: flex;
	align-items: baseline;
	gap: 0.15em;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	color: #6d388b;
	text-align: right;
}

.quantity-break__price .price,
.quantity-break__price .amount,
.quantity-break__price .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	display: flex;
	flex-direction: column-reverse;
	align-items: baseline;
	gap: 0.1em;
}

.quantity-break__price del {
	font-size: var(--compare-price-font-size);
	font-weight: 500;
	color: rgba(var(--accent-color), 0.55);
	display: block;
	text-align: right;
}

.quantity-break__price ins {
	text-decoration: none;
}

/* ── single_variation_wrap ── */
.single_variation_wrap {
	margin-top: 1.25rem;
	border-radius: 1rem;
	background: rgba(var(--accent-color), 0.04);
	border: 2px solid rgba(var(--accent-color), 0.22);
	box-shadow: 0 4px 24px rgba(var(--accent-color), 0.08);
	display: flex !important;
	flex-direction: column;
	gap: 1.25rem;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	max-height: none !important;
}

.woocommerce-variation {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(var(--accent-color), 0.15);
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	max-height: none !important;
}

.woocommerce-variation-description {
	width: 100%;
	font-size: 0.9rem;
	color: var(--sp-secondary);
	line-height: 1.5;
	margin-bottom: 0.25rem;
}

.woocommerce-variation-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	width: 100%;
}

.woocommerce-variation-price {
	font-size: 1.6rem;
	font-weight: 800;
	color: rgb(var(--accent-color));
	line-height: 1;
}

.woocommerce-variation-price .price,
.woocommerce-variation-price .amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.woocommerce-variation-price del {
	font-size: 1.1rem;
	font-weight: 500;
	color: rgba(var(--accent-color), 0.5);
	text-decoration: line-through;
	margin-right: 0.5rem;
}

.woocommerce-variation-price ins {
	text-decoration: none;
}

.woocommerce-variation-availability .stock {
	margin: 0;
	padding: 0.3rem 0.85rem;
	border-radius: 2rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.woocommerce-variation-availability .stock.in-stock {
	background: rgba(34, 197, 94, 0.12);
	color: #16a34a;
}

.woocommerce-variation-availability .stock.out-of-stock {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

/* Quantity stepper + Buy now — lavender UI */
.woocommerce-variation-add-to-cart {
	--sp-qty-border: #d4c4f5;
	--sp-qty-bg: #f7f4ff;
	--sp-qty-bg-focus: #f3eeff;
	--sp-qty-number: #2563eb;
	--sp-qty-icon: #1f2937;
	--sp-qty-sep: rgba(139, 92, 246, 0.22);
	--sp-buy-bg: #6d388b;
	--sp-buy-bg-hover: #6d388b;
	display: flex !important;
	align-items: center;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.woocommerce-variation-add-to-cart .quantity.sp-qty-stepper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	flex-shrink: 0;
	min-width: 0;
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__label {
	display: block;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__control {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-width: 11.5rem;
	max-width: 16rem;
	border: 1px solid var(--sp-qty-border);
	border-radius: 12px;
	background: var(--sp-qty-bg);
	overflow: hidden;
	box-sizing: border-box;
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__btn {
	flex: 0 0 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1;
	color: var(--sp-qty-icon);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__btn:hover {
	background: rgba(139, 92, 246, 0.08);
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__btn:active {
	background: rgba(139, 92, 246, 0.14);
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__btn--minus {
	border-right: 1px solid var(--sp-qty-sep);
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__btn--plus {
	border-left: 1px solid var(--sp-qty-sep);
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__input.qty {
	flex: 1 1 auto;
	width: 3rem;
	min-width: 2.5rem;
	height: auto;
	min-height: 2.85rem;
	margin: 0;
	padding: 0.35rem 0.25rem;
	border: none;
	border-radius: 0;
	font-size: 1.1rem;
	font-weight: 700;
	text-align: center;
	color: var(--sp-qty-number);
	background: transparent;
	outline: none;
	transition: background 0.15s;
	appearance: textfield;
	-moz-appearance: textfield;
	box-shadow: none;
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__input.qty:focus {
	background: var(--sp-qty-bg-focus);
}

.woocommerce-variation-add-to-cart .sp-qty-stepper__input.qty::-webkit-inner-spin-button,
.woocommerce-variation-add-to-cart .sp-qty-stepper__input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 160px;
	min-height: 2.85rem;
	padding: 0.65rem 1.5rem;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--sp-buy-bg);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
	text-transform: none;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
	background: var(--sp-buy-bg-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button.sp-btn--loading {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button.sp-btn--added {
	background: #16a34a !important;
	transform: none !important;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
	opacity: 1 !important;
	cursor: pointer !important;
	transform: none !important;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
}

@media (max-width: 600px) {
	.single_variation_wrap {
		padding: 1.25rem 1.1rem 1.5rem;
	}
	.woocommerce-variation-add-to-cart {
		flex-direction: column;
		align-items: stretch;
	}
	.woocommerce-variation-add-to-cart .single_add_to_cart_button {
		width: 100%;
		min-width: unset;
	}
	.woocommerce-variation-add-to-cart .sp-qty-stepper__control {
		max-width: none;
	}
}

/* Cart preview */
.sp-cart-preview {
	width: 100%;
	margin: 0.75rem 0 0;
	padding: 0.75rem 0;
	border-top: 1px solid var(--es-fields-border, #d9d9d9);
}

.sp-cart-preview__item {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 6px 0;
}

.sp-cart-preview__image-wrap {
	position: relative;
	flex-shrink: 0;
}

.sp-cart-preview__image-container {
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 6px;
	background: #e6e6e6;
}

.sp-cart-preview__image {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	vertical-align: middle;
}

.sp-cart-preview__qty-badge {
	position: absolute;
	top: -4px;
	left: 100%;
	transform: translate(-50%, -50%);
	display: inline-table;
	vertical-align: middle;
	width: 21px;
	height: 21px;
	background-color: #7c7c7c;
	border-radius: 100%;
	font-size: 12px;
	text-align: center;
	color: #fff;
	font-weight: 700;
	line-height: 21px;
}

.sp-cart-preview__info {
	flex: 1;
	min-width: 0;
	margin: 0 0.5rem;
}

.sp-cart-preview__title-link {
	text-decoration: none;
	color: var(--es-form-color, #000);
	display: block;
}

.sp-cart-preview__title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	text-overflow: ellipsis;
}

.sp-cart-preview__variant {
	font-size: 0.8rem;
	color: var(--es-form-color, #000);
	font-weight: 400;
	opacity: 0.7;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-cart-preview__price-col {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-end;
}

.sp-cart-preview__price {
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--es-form-color, #000);
}

.sp-cart-preview__remove-col {
	flex-shrink: 0;
	margin-left: 0.5rem;
	display: flex;
	align-items: flex-start;
	padding-top: 2px;
}

.sp-cart-preview__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #aaa;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.sp-cart-preview__remove:hover {
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

.sp-cart-preview__remove:focus {
	outline: 2px solid #dc2626;
	outline-offset: 2px;
}

.sp-cart-preview__remove--loading {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Order success page */
.sp-order-success {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #f0fdf4;
	border: 2px solid #16a34a;
	border-radius: 12px;
	margin: 1.5rem 0;
	max-width: 540px;
}

.sp-order-success__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	line-height: 1;
}

.sp-order-success__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #15803d;
	margin: 0 0 0.75rem;
}

.sp-order-success__msg {
	font-size: 1.05rem;
	color: #166534;
	margin: 0 0 0.5rem;
	line-height: 1.6;
}

.sp-order-success__total {
	font-size: 1.1rem;
	color: #14532d;
	margin: 0 0 0.75rem;
}

.sp-order-success__note {
	font-size: 0.9rem;
	color: #4d7c0f;
	margin: 0;
}

/* Upsell success */
.sp-checkout-form .sp-order-success.sp-order-success--upsell {
	text-align: center;
	padding: 0.5rem 0.35rem 1rem;
	background: transparent;
	border: none;
	margin: 0;
	max-width: none;
	border-radius: 0;
	box-shadow: none;
}

.sp-upsell__h1 {
	font-size: 1.05rem;
	font-weight: 800;
	color: #111;
	margin: 0 0 0.65rem;
	line-height: 1.35;
}

.sp-upsell__h2 {
	font-size: 0.95rem;
	font-weight: 800;
	color: #e60000;
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.sp-upsell__timer-label {
	font-size: 0.88rem;
	font-weight: 700;
	color: #e60000;
	margin: 0 0 0.35rem;
}

.sp-upsell__timer-wrap {
	display: inline-block;
	min-width: 5.5rem;
	padding: 0.45rem 1.1rem;
	margin: 0 auto 1rem;
	background: #ffe8ec;
	border: 1px solid #e60000;
	border-radius: 10px;
}

.sp-upsell__timer-wrap span {
	font-size: 1.35rem;
	font-weight: 800;
	color: #e60000;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.sp-upsell__figure {
	margin: 0 0 1rem;
}

.sp-upsell__figure-inner {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
	max-width: 320px;
	margin: 0 auto;
}

.sp-upsell__img {
	display: block;
	width: 100%;
	height: auto;
}

.sp-upsell__cart-pill {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	background: #e60000;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	white-space: nowrap;
}

.sp-upsell__slogan {
	position: absolute;
	top: 38px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: #0a7a3c;
	font-size: 0.78rem;
	font-weight: 900;
	text-shadow: 0 0 1px #fff;
	white-space: nowrap;
}

.sp-upsell__badge-80 {
	position: absolute;
	bottom: 12px;
	right: 10px;
	z-index: 2;
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	background: #e60000;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 900;
	line-height: 1.1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.2rem;
	box-sizing: border-box;
}

.sp-upsell__carousel-arr {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	color: rgba(0, 0, 0, 0.35);
	font-size: 1.25rem;
	font-weight: 700;
	pointer-events: none;
}

.sp-upsell__prod-name {
	font-size: 0.95rem;
	font-weight: 700;
	margin-top: 0.5rem;
	color: #111;
}

.sp-upsell__body {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #222;
	margin: 0 0 1rem;
	text-align: center;
}

.sp-upsell__pct {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.35rem 1rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

.sp-upsell__prices {
	font-size: 1.35rem;
	margin: 0 0 0.65rem;
}

.sp-upsell__prices del {
	color: #6b7280;
	font-size: 1rem;
	font-weight: 600;
	margin-right: 0.35rem;
}

.sp-upsell__prices strong {
	font-weight: 800;
	color: #111;
}

.sp-upsell__xmas {
	font-size: 0.82rem;
	line-height: 1.45;
	color: #374151;
	margin: 0 0 1rem;
}

.sp-upsell__qty-label {
	display: block;
	margin: 0 0 0.85rem;
}

.sp-upsell__select {
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
	display: block;
	padding: 0.55rem 0.75rem;
	font-size: 0.88rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}

.sp-upsell__cta {
	display: block;
	width: 100%;
	max-width: 340px;
	margin: 0 auto 1rem;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: #fff;
	background: #111;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-sizing: border-box;
}

.sp-upsell__cta:hover {
	background: #000;
}

.sp-upsell__order-ref {
	font-size: 0.85rem;
	color: #374151;
	margin: 0 0 0.35rem;
}

.sp-upsell__thanks {
	font-size: 0.82rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.45;
}

/* Inline COD checkout form */
.sp-checkout-form {
	width: 100%;
	margin-top: 1rem;
	padding: 1rem 1.15rem 1.15rem;
	box-sizing: border-box;
	color: rgb(0, 0, 0) !important;
	font-size: 16px !important;
	background: rgb(255, 255, 255) !important;
	border: 2px solid rgb(243, 188, 21) !important;
	border-radius: 6px !important;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 7px 0px !important;
}

.sp-checkout-form__total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #eee;
}

.sp-checkout-form__total-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
}

.sp-checkout-form__total-value {
	font-size: 1.15rem;
	font-weight: 800;
	color: #111827;
}

/* Dostawa — shipping option card */
.sp-shipping-container {
	margin: 1rem 0 0.85rem;
}

.sp-shipping-header {
	font-weight: 700;
	font-size: 1rem;
	color: #111827;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
}

.sp-shipping-box {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.85rem 1rem 0.9rem;
	background: #fff;
}

.sp-shipping-line {
	margin: 0;
}

.sp-shipping-label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	cursor: pointer;
	margin: 0;
	font-weight: normal;
	position: relative;
}

.sp-shipping-radio {
	position: absolute;
	width: 1.125rem;
	height: 1.125rem;
	left: 0;
	top: 0.2rem;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.sp-shipping-label:has(.sp-shipping-radio:focus-visible) .sp-shipping-radio-visual {
	outline: 2px solid #6d388b;
	outline-offset: 2px;
}

.sp-shipping-radio-visual {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2rem;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-shipping-label:hover .sp-shipping-radio-visual {
	border-color: #9ca3af;
}

.sp-shipping-radio:checked + .sp-shipping-radio-visual {
	border-color: #111827;
	border-width: 2px;
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 10px #111827;
}

.sp-shipping-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	line-height: 1.45;
	font-size: 0.9rem;
	color: #111827;
}

.sp-shipping-line1 {
	display: block;
	font-weight: 400;
}

.sp-shipping-line2 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.sp-shipping-line2-text {
	flex: 1;
	min-width: 8rem;
	font-weight: 400;
}

.sp-shipping-price {
	font-weight: 700;
	font-size: 0.9rem;
	color: #111827;
	white-space: nowrap;
}

.sp-shipping-description {
	display: block;
	font-size: 0.82rem;
	color: #9ca3af;
	margin-top: 0.15rem;
	font-weight: 400;
}

.sp-checkout-form__subtitle {
	font-size: 0.9rem;
	color: #16a34a;
	margin: 0 0 1rem;
	font-weight: 500;
}

.sp-checkout-form__fields {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.sp-checkout-form__field {
	display: flex;
	margin: 0;
	width: 100%;
}

.sp-checkout-form__field label {
	display: block;
	min-width: 26%;
	padding-right: 10px;
	font-size: 16px !important;
	font-weight: 700;
	color: rgb(0, 0, 0) !important;
	margin-bottom: 0.35rem;
}

.sp-checkout-form__field label span {
	color: #dc2626;
	font-weight: 700;
}

.sp-checkout-form__input-group {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-checkout-form__input-group:focus-within {
	border-color: rgb(243, 188, 21);
	box-shadow: 0 0 0 2px rgba(243, 188, 21, 0.25);
}

.sp-checkout-form__input-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.1rem;
	flex-shrink: 0;
	background: #f3f4f6;
	border-right: 1px solid #e5e7eb;
	color: #374151;
}
.sp-checkout-form__input-icon svg {
	width: 18px;
	height: 18px;
	color: inherit;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.sp-checkout-form__input-icon .material-icon,
.sp-checkout-form__input-icon .material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-size: 1.4rem;
	line-height: 1;
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
}

.sp-checkout-form__field .sp-checkout-form__input-group input {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0.65rem 0.85rem;
	font-size: 16px !important;
	border: none;
	border-radius: 0;
	background: #fff;
	color: rgb(0, 0, 0) !important;
	box-sizing: border-box;
}

.sp-checkout-form__field .sp-checkout-form__input-group input::placeholder {
	color: #9ca3af;
}

.sp-checkout-form__field .sp-checkout-form__input-group input:focus {
	outline: none;
}

.sp-checkout-btn {
	width: 100%;
	padding: 0.7rem 1rem;
	margin-top: 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fff !important;
	background: rgb(252, 185, 0) !important;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: background 0.2s, transform 0.15s;
	animation: sp-btn-pulse 2s ease-in-out infinite;
}

@keyframes sp-btn-pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 4px 14px rgba(252, 185, 0, 0.35);
	}
	50% {
		transform: scale(1.03);
		box-shadow: 0 6px 24px rgba(252, 185, 0, 0.5);
	}
}

.sp-checkout-btn:hover {
	background: rgb(237, 168, 0) !important;
	animation: none;
	transform: translateY(-1px);
}

.sp-checkout-btn:active {
	transform: translateY(0);
}

.sp-checkout-btn.sp-checkout--loading {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
	animation: sp-spin 0.8s linear infinite;
}

.sp-icon--loading {
	animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
	to {
		transform: rotate(360deg);
	}
}

.sp-checkout--loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ---- 多规格产品选择（关联产品 / 手动配置，非可变商品） ---- */
.sp-qty-breaks {
	margin: 0 0 1.5rem;
}

.sp-qty-breaks__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--sp-primary);
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sp-qty-breaks__title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(var(--accent-color, 180, 80, 80), 0.3);
}

.sp-qty-breaks__title span {
	font-size: 0.78rem;
	color: #f43b3b;
	background: #fff0f0;
	border: 1px solid #f43b3b;
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
	font-weight: 600;
	white-space: nowrap;
}

.sp-qty-breaks__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

/* 隐藏原生 radio */
.sp-qty-breaks__list > input[type="radio"] {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
	pointer-events: none;
}

/* 选项卡片 */
.sp-qty-break-card {
	display: flex;
	align-items: center;
	border-radius: 12px;
	border: 2px solid #eee;
	padding: 0.9rem 1rem;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	background: #fff;
	gap: 0.75rem;
	position: relative;
}

.sp-qty-break-card:hover {
	border-color: #ccc;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* 选中态 */
.sp-qty-breaks__list > input[type="radio"]:checked + .sp-qty-break-card {
	border-color: var(--sp-accent, #c00);
	background: #fff8f8;
	box-shadow: 0 3px 14px rgba(192, 0, 0, 0.12);
}

/* 左侧图标区 */
.sp-qty-break-card__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
}

/* 中间内容 */
.sp-qty-break-card__content {
	flex: 1;
	min-width: 0;
}

.sp-qty-break-card__label {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--sp-primary);
	margin-bottom: 0.15rem;
	line-height: 1.3;
}

.sp-qty-break-card__caption {
	font-size: 0.78rem;
	color: #888;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* 右侧价格区 */
.sp-qty-break-card__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
}

.sp-qty-break-card__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--sp-primary);
	white-space: nowrap;
}

.sp-qty-break-card__price del {
	font-size: 0.75rem;
	color: #aaa;
	font-weight: 400;
	display: block;
	text-align: right;
}

/* 徽章 */
.sp-qty-break-card__badge {
	position: absolute;
	top: -1px;
	right: 1rem;
	background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: 0 0 8px 8px;
	letter-spacing: 0.02em;
}

/* 选中指示器 */
.sp-qty-break-card__check {
	width: 18px;
	height: 18px;
	border: 2px solid #ddd;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s, background 0.2s;
	font-size: 0;
	color: #fff;
}

.sp-qty-breaks__list > input[type="radio"]:checked + .sp-qty-break-card .sp-qty-break-card__check {
	border-color: var(--sp-accent, #c00);
	background: var(--sp-accent, #c00);
	font-size: 10px;
}

/* 数量输入框（选中后显示） */
.sp-qty-breaks__qty-row {
	display: none;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #eee;
}

.sp-qty-breaks__list > input[type="radio"]:checked ~ .sp-qty-breaks__qty-row {
	display: flex;
}

.sp-qty-breaks__qty-row label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sp-primary);
}

.sp-qty-breaks__qty-row .qty {
	width: 56px;
	height: 40px;
	border: 1.5px solid #ddd;
	border-radius: var(--sp-radius);
	text-align: center;
	font-size: 0.95rem;
	outline: none;
}

.sp-qty-breaks__qty-row .qty:focus {
	border-color: var(--sp-primary);
}

/* 选中后显示加购按钮 */
.sp-qty-breaks__add-row {
	display: none;
	margin-top: 1rem;
}

.sp-qty-breaks__list > input[type="radio"]:checked ~ .sp-qty-breaks__add-row {
	display: block;
}

.sp-qty-breaks__add-btn {
	width: 100%;
	padding: 0.85rem;
	background: var(--sp-accent, #c00);
	color: #fff;
	border: none;
	border-radius: var(--sp-radius);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.sp-qty-breaks__add-btn:hover {
	background: #a00;
	transform: translateY(-1px);
}

/* ---- 分享按钮 ---- */
.sp-layout__summary .social-share {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.sp-layout__summary .social-share span {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--sp-primary);
}

/* ---- 选项卡（描述/评价/自定义） ---- */
.sp-tabs {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 2px solid #eee;
}

.wc-tabs-wrapper ul.tabs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #eee;
}

.wc-tabs-wrapper ul.tabs li {
	margin: 0;
}

.wc-tabs-wrapper ul.tabs li a {
	display: block;
	padding: 0.75rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sp-secondary);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s, border-color 0.2s;
}

.wc-tabs-wrapper ul.tabs li a:hover,
.wc-tabs-wrapper ul.tabs li.active a {
	color: var(--sp-primary);
	border-bottom-color: var(--sp-primary);
}

.wc-tabs-wrapper .panel {
	padding: 1.5rem 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--sp-secondary);
}

.wc-tabs-wrapper .panel h2 {
	font-size: 1.1rem;
	color: var(--sp-primary);
	margin: 0 0 0.75rem;
}

/* 评价列表 */
.wc-tabs-wrapper #reviews #comments {
	margin-bottom: 1.5rem;
}

.wc-tabs-wrapper #reviews #comments .woocommerce-Reviews-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sp-primary);
	margin-bottom: 1rem;
}

.wc-tabs-wrapper #reviews .commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wc-tabs-wrapper #reviews .commentlist .comment {
	border-bottom: 1px solid #eee;
	padding: 1rem 0;
}

.wc-tabs-wrapper #reviews .comment_container {
	display: flex;
	gap: 0.75rem;
}

.wc-tabs-wrapper #reviews .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.wc-tabs-wrapper #reviews .comment-text {
	flex: 1;
}

.wc-tabs-wrapper #reviews .star-rating {
	color: #f5a623;
	margin-bottom: 0.3rem;
}

.wc-tabs-wrapper #reviews .meta {
	font-size: 0.8rem;
	color: #999;
	margin-bottom: 0.4rem;
}

.wc-tabs-wrapper #reviews .description {
	font-size: 0.9rem;
	color: var(--sp-secondary);
}

/* 评价表单 */
.wc-tabs-wrapper #review_form #respond {
	margin-top: 1.5rem;
}

.wc-tabs-wrapper #review_form .comment-reply-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sp-primary);
	display: block;
	margin-bottom: 0.75rem;
}

.wc-tabs-wrapper #review_form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sp-primary);
	margin-bottom: 0.3rem;
}

.wc-tabs-wrapper #review_form input[type="text"],
.wc-tabs-wrapper #review_form input[type="email"],
.wc-tabs-wrapper #review_form textarea {
	width: 100%;
	max-width: 500px;
	border: 1.5px solid #ddd;
	border-radius: var(--sp-radius);
	padding: 0.6rem 0.8rem;
	font-size: 0.9rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
}

.wc-tabs-wrapper #review_form input:focus,
.wc-tabs-wrapper #review_form textarea:focus {
	border-color: var(--sp-primary);
}

.wc-tabs-wrapper #review_form textarea {
	resize: vertical;
	min-height: 100px;
}

.wc-tabs-wrapper #review_form .comment-form-rating {
	margin-bottom: 1rem;
}

.wc-tabs-wrapper #review_form .stars {
	display: flex;
	gap: 0.25rem;
}

.wc-tabs-wrapper #review_form .stars a {
	font-size: 1.2rem;
	color: #ccc;
	text-decoration: none;
}

.wc-tabs-wrapper #review_form .stars a.active,
.wc-tabs-wrapper #review_form .stars a:hover {
	color: #f5a623;
}

.wc-tabs-wrapper #review_form .form-submit .submit {
	padding: 0.7rem 1.8rem;
	background: var(--sp-primary);
	color: #fff;
	border: none;
	border-radius: var(--sp-radius);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.wc-tabs-wrapper #review_form .form-submit .submit:hover {
	background: #444;
}

/* ---- 相关商品 / Upsell ---- */
.related.products,
.up-sells {
	display: none !important;
}

/* ---- WooCommerce 原生图片/灯箱 + 底部缩略图轮播 ---- */
.sp-layout__gallery .woocommerce-product-gallery {
	position: relative;
}

.sp-layout__gallery .woocommerce-product-gallery__wrapper {
	border-radius: 1rem;
	overflow: hidden;
}

.sp-layout__gallery .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

.sp-layout__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	text-decoration: none;
	color: var(--sp-primary);
	z-index: 10;
	transition: background 0.2s;
	cursor: pointer;
}

.sp-layout__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
	background: #fff;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-direction-nav a {
	cursor: pointer;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-direction-nav a:before {
	text-shadow: none;
}

/* 底部缩略图条 */
.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 0 2.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	list-style: none;
	zoom: 1;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: auto;
	flex: 0 0 auto;
	min-width: 4.75rem;
	max-width: 6.25rem;
	margin: 0;
	position: relative;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs li img,
.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs .thumbnail {
	position: relative;
	top: auto;
	left: auto;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	padding: 0;
	margin: 0;
	border-radius: 1rem;
	border: 2px solid transparent;
	box-sizing: border-box;
	background-color: #fff;
	color: rgb(var(--color-base-text));
	cursor: pointer;
	opacity: 1;
	transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs li img:hover {
	opacity: 0.92;
}

.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs .thumbnail[aria-current] {
	box-shadow: 0 0 0 0.5px rgb(var(--color-foreground));
	border-color: rgb(var(--color-foreground));
	opacity: 1;
}

.sp-layout__gallery button:not([disabled]),
.sp-layout__gallery .cursor-pointer:not([disabled]) {
	cursor: pointer;
}

@media (max-width: 991px) {
	.sp-layout__gallery {
		position: relative;
		top: auto;
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
	}
	.sp-layout__main {
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
		padding: 0;
	}
}

/* ---- 手机端 (max-width: 600px) ---- */
@media (max-width: 600px) {
	/* 容器与布局 */
	.sp-layout {
		width: 100%;
		padding: 0 15px;
	}

	.sp-layout__gallery {
		margin-bottom: 1.25rem;
	}

	.sp-layout__main {
		padding: 0;
	}

	/* 面包屑 */
	.woocommerce.single-product-page .woocommerce-breadcrumb {
		font-size: 0.75rem;
		margin-bottom: 0.75rem;
		padding: 0 15px;
	}

	/* 主体容器内边距 */
	.woocommerce.single-product-page {
		padding-top: 20px !important;
	}

	/* ---- 商品图库 ---- */
	.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs {
		padding: 0 0.35rem;
		gap: 0.5rem;
	}

	.sp-layout__gallery .woocommerce-product-gallery .flex-control-thumbs li {
		min-width: 3.25rem;
		max-width: 4.5rem;
	}

	.sp-layout__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
		width: 32px;
		height: 32px;
		top: 0.5rem;
		right: 0.5rem;
	}

	/* ---- 标题 ---- */
	.sp-layout__summary .product_title {
		font-size: clamp(1.1rem, 5vw, 1.5rem);
		line-height: 1.3;
	}

	/* ---- 评分 ---- */
	.sp-layout__summary .woocommerce-product-rating {
		font-size: 0.8rem;
		margin-bottom: 0.5rem;
	}

	.sp-layout__summary .star-rating {
		font-size: 0.8rem;
	}

	.sp-layout__summary .woocommerce-review-link {
		font-size: 0.75rem;
	}

	/* ---- 价格 ---- */
	.sp-layout__summary .price {
		font-size: 1.15rem;
		margin: 0.5rem 0 0.75rem;
	}

	.sp-layout__summary .price del {
		font-size: 0.82rem;
	}

	/* ---- 简短描述 ---- */
	.sp-layout__summary .woocommerce-product-details__short-description {
		font-size: 0.85rem;
		line-height: 1.6;
		margin-bottom: 1rem;
	}

	/* ---- 购买按钮 ---- */
	.sp-layout__summary .single_add_to_cart_button {
		font-size: 0.9rem;
		padding: 0.75rem 1.5rem;
		width: 100%;
		justify-content: center;
	}

	/* ---- 表单 ---- */
	.sp-layout__summary form.cart {
		gap: 0.5rem;
	}

	.sp-layout__summary .qty {
		width: 50px;
		height: 40px;
		font-size: 0.9rem;
	}

	/* ---- 配送进度条 ---- */
	dynamic-dates.shipping-checkpoints {
		--icon-size: 2.75rem;
		column-gap: 0.25rem;
		margin-top: 1.25rem;
		margin-bottom: 1.25rem;
	}

	dynamic-dates.shipping-checkpoints .shipping-checkpoint p {
		font-size: 0.65rem;
	}

	dynamic-dates.shipping-checkpoints .shipping-checkpoint__bottom {
		font-size: 0.65rem;
	}

	dynamic-dates.shipping-checkpoints .shipping-checkpoint__icon {
		margin-bottom: 0.5rem;
	}

	/* ---- 选项卡 ---- */
	.sp-tabs {
		margin-top: 1.25rem;
	}

	.wc-tabs-wrapper ul.tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
	}

	.wc-tabs-wrapper ul.tabs li a {
		font-size: 0.8rem;
		padding: 0.55rem 0.8rem;
		white-space: nowrap;
	}

	.wc-tabs-wrapper .panel {
		font-size: 0.85rem;
		padding: 1rem 0;
		line-height: 1.6;
	}

	.wc-tabs-wrapper .panel h2 {
		font-size: 1rem;
	}

	.wc-tabs-wrapper #reviews .star-rating {
		font-size: 0.85rem;
	}

	.wc-tabs-wrapper #reviews .description {
		font-size: 0.82rem;
	}

	.wc-tabs-wrapper #reviews .meta {
		font-size: 0.75rem;
	}

	.wc-tabs-wrapper #review_form input[type="text"],
	.wc-tabs-wrapper #review_form input[type="email"],
	.wc-tabs-wrapper #review_form textarea {
		font-size: 14px;
	}

	/* ---- 数量阶梯 (Quantity Breaks) ---- */
	.sp-qty-breaks {
		margin-bottom: 1.25rem;
	}

	.sp-qty-breaks__title {
		font-size: 0.78rem;
		gap: 0.5rem;
	}

	.sp-qty-breaks__title span {
		font-size: 0.7rem;
		padding: 0.1rem 0.4rem;
	}

	.sp-qty-break-card {
		padding: 0.75rem 0.85rem;
		border-radius: 10px;
	}

	.sp-qty-break-card__icon {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
		flex: 0 0 40px;
	}

	.sp-qty-break-card__label {
		font-size: 0.82rem;
		line-height: 1.25;
	}

	.sp-qty-break-card__caption {
		font-size: 0.7rem;
	}

	.sp-qty-break-card__price {
		font-size: 0.95rem;
	}

	.sp-qty-break-card__check {
		width: 16px;
		height: 16px;
	}

	.sp-qty-break-card__badge {
		font-size: 0.6rem;
		padding: 0.15rem 0.5rem;
	}

	/* 数量阶梯（可变商品卡片） */
	.quantity-breaks__title {
		font-size: 0.78rem;
		margin-bottom: 1rem;
	}

	.quantity-breaks__title span {
		font-size: 0.7rem;
	}

	.quantity-break__label-text {
		font-size: 13px;
	}

	.quantity-break__caption {
		font-size: 11px;
	}

	.quantity-break__price {
		font-size: 13px;
	}

	.quantity-break__benefit {
		font-size: 11px;
	}

	/* ---- 结账表单 ---- */
	.sp-checkout-form {
		padding: 0.75rem 0.85rem 1rem;
	}

	.sp-checkout-form__subtitle {
		font-size: 0.82rem;
		margin-bottom: 0.75rem;
	}

	.sp-checkout-form__total-row {
		margin-bottom: 0.4rem;
		padding-bottom: 0.5rem;
	}

	.sp-checkout-form__total-label {
		font-size: 0.85rem;
	}

	.sp-checkout-form__total-value {
		font-size: 1rem;
	}

	.sp-checkout-form__field {
		gap: 0;
	}

	.sp-checkout-form__field label {
		font-size: 13px !important;
		min-width: 32%;
		padding-right: 8px;
		margin-bottom: 0.25rem;
	}

	.sp-checkout-form__field .sp-checkout-form__input-group {
		flex-direction: column;
	}

	.sp-checkout-form__input-icon {
		display: none;
	}

	.sp-checkout-form__field .sp-checkout-form__input-group input {
		font-size: 14px !important;
		padding: 0.55rem 0.7rem;
	}

	.sp-checkout-btn {
		font-size: 0.9rem;
		padding: 0.75rem 1rem;
	}

	/* ---- 配送信息卡片 ---- */
	.sp-shipping-header {
		font-size: 0.9rem;
	}

	.sp-shipping-box {
		padding: 0.75rem 0.85rem;
	}

	.sp-shipping-info {
		font-size: 0.82rem;
	}

	.sp-shipping-price {
		font-size: 0.82rem;
	}

	.sp-shipping-description {
		font-size: 0.72rem;
	}

	/* ---- 购物车预览 ---- */
	.sp-cart-preview {
		padding: 0.5rem 0;
	}

	.sp-cart-preview__title {
		font-size: 0.82rem;
	}

	.sp-cart-preview__variant {
		font-size: 0.72rem;
	}

	.sp-cart-preview__price {
		font-size: 0.85rem;
	}

	.sp-cart-preview__image-container,
	.sp-cart-preview__image {
		width: 48px;
		height: 48px;
	}

	/* ---- 成功订单页 ---- */
	.sp-order-success {
		padding: 2rem 1rem;
		margin: 1rem 0;
	}

	.sp-order-success__title {
		font-size: 1.35rem;
	}

	.sp-order-success__msg {
		font-size: 0.9rem;
	}

	/* ---- Upsell 区块 ---- */
	.sp-upsell__h1 {
		font-size: 0.9rem;
	}

	.sp-upsell__h2 {
		font-size: 0.85rem;
	}

	.sp-upsell__timer-label {
		font-size: 0.78rem;
	}

	.sp-upsell__timer-wrap span {
		font-size: 1.15rem;
	}

	.sp-upsell__pct {
		font-size: 0.9rem;
		padding: 0.25rem 0.8rem;
	}

	.sp-upsell__prices {
		font-size: 1.15rem;
	}

	.sp-upsell__prices del {
		font-size: 0.85rem;
	}

	.sp-upsell__body {
		font-size: 0.82rem;
	}

	.sp-upsell__xmas {
		font-size: 0.75rem;
	}

	.sp-upsell__select {
		font-size: 0.82rem;
	}

	.sp-upsell__cta {
		font-size: 0.85rem;
		padding: 0.75rem 1rem;
	}

	/* ---- 底部固定购买栏 ---- */
	.sp-sticky-atc__inner {
		padding: 8px 12px;
		gap: 10px;
	}

	.sp-sticky-atc__img {
		width: 44px;
		height: 44px;
	}

	.sp-sticky-atc__title {
		font-size: 0.7rem;
		-webkit-line-clamp: 1;
		line-clamp: 1;
	}

	.sp-sticky-atc__price {
		font-size: 0.9rem;
	}

	.sp-sticky-atc__price-compare {
		font-size: 0.7rem;
	}

	.sp-sticky-atc__variant {
		max-width: 100px;
		font-size: 0.72rem;
		padding: 5px 8px;
	}

	.sp-sticky-atc__btn {
		padding: 9px 14px;
		min-width: 100px;
		font-size: 0.8rem;
	}

	.sp-sticky-atc__success {
		bottom: 80px;
		font-size: 0.75rem;
		padding: 8px 16px;
	}

	/* ---- 通用 HTML 元素 ---- */
	p {
		font-size: 0.88rem;
		line-height: 1.6;
	}

	h1 {
		font-size: clamp(1.1rem, 5vw, 1.5rem);
	}

	h2 {
		font-size: clamp(1rem, 4vw, 1.2rem);
	}

	h3 {
		font-size: clamp(0.9rem, 3.5vw, 1.05rem);
	}

	/* 缺货/库存文字 */
	.sp-layout__summary .stock {
		font-size: 0.78rem;
	}

	.woocommerce-variation-description {
		font-size: 0.82rem;
	}

	/* single_variation_wrap */
	.single_variation_wrap {
		padding: 1rem 0.85rem 1.25rem;
		gap: 1rem;
	}

	.woocommerce-variation-price {
		font-size: 1.3rem;
	}

	.woocommerce-variation-price del {
		font-size: 0.9rem;
	}

	.woocommerce-variation-availability .stock {
		font-size: 0.75rem;
		padding: 0.25rem 0.7rem;
	}

	/* 变体购买区 */
	.woocommerce-variation-add-to-cart {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.woocommerce-variation-add-to-cart .single_add_to_cart_button {
		width: 100%;
		min-width: unset;
		font-size: 0.9rem;
	}

	.woocommerce-variation-add-to-cart .sp-qty-stepper__control {
		max-width: none;
	}

	.woocommerce-variation-add-to-cart .sp-qty-stepper__label {
		font-size: 0.85rem;
	}

	.woocommerce-variation-add-to-cart .sp-qty-stepper__input.qty {
		font-size: 1rem;
	}

	/* ---- 相关商品 ---- */
	.related.products ul.products,
	.up-sells ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	/* ---- Shopify 按钮样式 ---- */
	#sp-product-form-buttons {
		gap: 10px;
	}

	#sp-product-form-buttons .main-product-atc,
	#sp-product-form-buttons #ProductSubmitButton-template--main {
		font-size: 0.85rem;
		padding: 0.75rem 1rem;
		min-height: 2.6rem;
	}

	#sp-product-form-buttons shopify-buy-it-now-button > .shopify-payment-button__button.shopify-payment-button__button--unbranded:first-of-type,
	#sp-product-form-buttons #opc-override-dyn-c-btn {
		font-size: 0.85rem;
		padding: 0.75rem 1rem !important;
		min-height: 2.6rem;
	}

	/* ---- 滚动条隐藏 ---- */
	.wc-tabs-wrapper ul.tabs,
	.sp-checkout-form__fields {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.wc-tabs-wrapper ul.tabs::-webkit-scrollbar,
	.sp-checkout-form__fields::-webkit-scrollbar {
		display: none;
	}
}

/* ── 底部固定购买栏 ── */
.sp-sticky-atc {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-sticky-atc.sp-sticky-atc--visible {
	transform: translateY(0);
}

.sp-sticky-atc__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.sp-sticky-atc__img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.sp-sticky-atc__info {
	flex: 1;
	min-width: 0;
}

.sp-sticky-atc__title {
	font-size: 0.8rem;
	font-weight: 600;
	color: #111;
	margin: 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-sticky-atc__price-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sp-sticky-atc__price {
	font-size: 1rem;
	font-weight: 700;
	color: #111;
}

.sp-sticky-atc__price-compare {
	font-size: 0.78rem;
	color: #999;
	text-decoration: line-through;
}

.sp-sticky-atc__save-badge {
	font-size: 0.68rem;
	font-weight: 700;
	background: #fee2e2;
	color: #dc2626;
	padding: 1px 6px;
	border-radius: 4px;
}

.sp-sticky-atc__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.sp-sticky-atc__variant {
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.78rem;
	color: #111;
	background: #f9fafb;
	cursor: pointer;
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-sticky-atc__btn {
	padding: 10px 20px;
	background: #6d388b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
	position: relative;
	min-width: 120px;
	text-align: center;
}

.sp-sticky-atc__btn:hover {
	background: #5b2b73;
}

.sp-sticky-atc__btn:disabled {
	background: #a78bca;
	cursor: not-allowed;
}

.sp-sticky-atc__btn.sp-sticky-atc__btn--loading {
	color: transparent;
}

.sp-sticky-atc__btn .atc-spinner {
	display: none;
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sp-sticky-spin 0.7s linear infinite;
}

.sp-sticky-atc__btn--loading .atc-spinner {
	display: block;
}

@keyframes sp-sticky-spin {
	to { transform: rotate(360deg); }
}

.sp-sticky-atc__success {
	display: none;
	position: fixed;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%);
	background: #111;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	z-index: 10000;
	pointer-events: none;
}

.sp-sticky-atc__success.sp-sticky-atc__success--show {
	display: block;
	animation: sp-fade-up 2s forwards;
}

@keyframes sp-fade-up {
	0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
	15% { opacity: 1; transform: translateX(-50%) translateY(0); }
	80% { opacity: 1; }
	100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* 变体下拉 */
.sp-sticky-atc__variant-wrap {
	position: relative;
	display: none;
}

.sp-sticky-atc__variant-wrap.sp-sticky-atc__variant-wrap--show {
	display: block;
}

.sp-sticky-atc__variant-list {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	z-index: 10001;
	max-height: 240px;
	overflow-y: auto;
	display: none;
}

.sp-sticky-atc__variant-list.sp-sticky-atc__variant-list--open {
	display: block;
}

.sp-sticky-atc__variant-item {
	padding: 8px 12px;
	font-size: 0.78rem;
	color: #111;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
	transition: background 0.15s;
}

.sp-sticky-atc__variant-item:last-child {
	border-bottom: none;
}

.sp-sticky-atc__variant-item:hover,
.sp-sticky-atc__variant-item.sp-sticky-atc__variant-item--active {
	background: #f5f0ff;
}

.sp-sticky-atc__variant-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.6rem;
	color: #9ca3af;
	pointer-events: none;
	transition: transform 0.2s;
}

.sp-sticky-atc__variant-wrap--open .sp-sticky-atc__variant-arrow {
	transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 600px) {
	.sp-sticky-atc__img {
		width: 44px;
		height: 44px;
	}

	.sp-sticky-atc__title {
		font-size: 0.72rem;
	}

	.sp-sticky-atc__variant {
		max-width: 120px;
	}

	.sp-sticky-atc__btn {
		padding: 9px 14px;
		min-width: 100px;
		font-size: 0.8rem;
	}
}

/* ── 正常付款模式：Shopify 风格三按钮（#sp-product-form-buttons） ── */
#sp-product-form-buttons {
	--sp-pfb-purple: #703d8d;
	--sp-pfb-purple-hover: #5f3378;
	--sp-pfb-radius: 10px;
	--sp-pfb-gap: 12px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--sp-pfb-gap);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 0.5rem;
}

#sp-product-form-buttons .product-form__quantity-and-btn {
	width: 100%;
	margin: 0;
}

#sp-product-form-buttons .main-product-atc,
#sp-product-form-buttons #ProductSubmitButton-template--main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #fff !important;
	background: var(--sp-pfb-purple) !important;
	border: 2px solid var(--sp-pfb-purple) !important;
	border-radius: var(--sp-pfb-radius);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(112, 61, 141, 0.28);
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

#sp-product-form-buttons .main-product-atc:hover,
#sp-product-form-buttons #ProductSubmitButton-template--main:hover {
	background: var(--sp-pfb-purple-hover) !important;
	border-color: var(--sp-pfb-purple-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(112, 61, 141, 0.35);
}

#sp-product-form-buttons .main-product-atc:active,
#sp-product-form-buttons #ProductSubmitButton-template--main:active {
	transform: translateY(0);
}

#sp-product-form-buttons .main-product-atc:focus-visible,
#sp-product-form-buttons #ProductSubmitButton-template--main:focus-visible {
	outline: 3px solid rgba(112, 61, 141, 0.45);
	outline-offset: 2px;
}

#sp-product-form-buttons .main-product-atc[data-unavailable="true"],
#sp-product-form-buttons .main-product-atc:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none;
}

#sp-product-form-buttons .main-atc__label,
#sp-product-form-buttons .main-atc__label__text {
	color: inherit;
	font: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
}

#sp-product-form-buttons .loading-overlay__spinner.hidden {
	display: none !important;
}

#sp-product-form-buttons .shopify-payment-button {
	width: 100% !important;
	margin: 0 !important;
	max-width: 100%;
	box-sizing: border-box;
}

/* 只样式可见的「Buy it now」 */
#sp-product-form-buttons shopify-buy-it-now-button > .shopify-payment-button__button.shopify-payment-button__button--unbranded:first-of-type,
#sp-product-form-buttons #opc-override-dyn-c-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 3rem;
	padding: 0.85rem 1.25rem !important;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--sp-pfb-purple) !important;
	background: #fff !important;
	border: 2px solid var(--sp-pfb-purple) !important;
	border-radius: var(--sp-pfb-radius) !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
	visibility: visible !important;
	opacity: 1 !important;
	-webkit-tap-highlight-color: transparent;
}

#sp-product-form-buttons shopify-buy-it-now-button > .shopify-payment-button__button.shopify-payment-button__button--unbranded:first-of-type:hover,
#sp-product-form-buttons #opc-override-dyn-c-btn:hover {
	background: rgba(112, 61, 141, 0.06) !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 12px rgba(112, 61, 141, 0.12);
}

#sp-product-form-buttons shopify-buy-it-now-button > .shopify-payment-button__button.shopify-payment-button__button--unbranded:first-of-type:active,
#sp-product-form-buttons #opc-override-dyn-c-btn:active {
	transform: translateY(0);
}

#sp-product-form-buttons shopify-buy-it-now-button > .shopify-payment-button__button.shopify-payment-button__button--unbranded:first-of-type:focus-visible,
#sp-product-form-buttons #opc-override-dyn-c-btn:focus-visible {
	outline: 3px solid rgba(112, 61, 141, 0.35);
	outline-offset: 2px;
}

/* Mobile ticker (inside CSS file, not blocked by @import) */
@media (max-width: 600px) {
	.horizontal-ticker__item {
		font-size: 0.75rem;
		padding: 0 1rem;
	}
}
