/* SweetCandy — 與參考 HTML 內聯 style 一致 */

@keyframes sweetcandy-pulse-neon {
	0%, 100% { text-shadow: 0 0 10px #ec4899, 0 0 20px #ec4899, 0 0 30px #ec4899; }
	50% { text-shadow: 0 0 20px #ec4899, 0 0 40px #ec4899, 0 0 60px #ec4899; }
}

@keyframes sweetcandy-pulse-neon-cyan {
	0%, 100% { text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #06b6d4; }
	50% { text-shadow: 0 0 20px #06b6d4, 0 0 40px #06b6d4, 0 0 60px #06b6d4; }
}

@keyframes sweetcandy-marquee {
	0% { transform: translateX(0%); }
	100% { transform: translateX(-50%); }
}

@keyframes sweetcandy-bass-drop {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@keyframes sweetcandy-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

body.sweetcandy-theme {
	background-color: #030712;
	color: #ffffff;
	overflow-x: hidden;
}

.sweetcandy-neon-text-pink {
	animation: sweetcandy-pulse-neon 2s infinite;
	color: #fff;
}

/* Alias classes from reference sweetcandy.html */
.neon-text-pink {
	animation: sweetcandy-pulse-neon 2s infinite;
	color: #fff;
}

.sweetcandy-neon-text-cyan {
	animation: sweetcandy-pulse-neon-cyan 2.5s infinite;
	color: #fff;
}

.sweetcandy-animate-marquee {
	display: flex;
	width: 200%;
	animation: sweetcandy-marquee 15s linear infinite;
}

.sweetcandy-animate-bass {
	animation: sweetcandy-bass-drop 0.8s ease-in-out infinite;
}

/* Home category pills and lineup cards (match reference HTML) */
[data-sweetcandy-cat-tabs] button {
	min-width: 132px;
	height: 46px;
	border-radius: 9999px;
	font-weight: 900;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
}

[data-sweetcandy-cat-tabs] button:not(.bg-cyan-500) {
	background: rgba(15, 23, 42, 0.82) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
	color: #9ca3af !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sweetcandy-lineup-card {
	min-height: 320px;
	border-radius: 1.85rem;
	background: linear-gradient(135deg, rgba(5, 8, 20, 0.92) 8%, rgba(9, 21, 36, 0.88) 58%, rgba(7, 25, 33, 0.9) 100%);
}

.sweetcandy-lineup-card-cat {
	letter-spacing: 0.14em;
}

.sweetcandy-lineup-card-emoji {
	font-size: 4.2rem;
	line-height: 1;
	margin-top: 0.7rem;
	margin-bottom: 0.8rem;
}

.sweetcandy-lineup-card-media {
	height: 7.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sweetcandy-lineup-card-image {
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.2));
}

.sweetcandy-lineup-card-media {
	position: relative;
	z-index: 1;
	height: 13.5rem !important;
	min-height: 13.5rem !important;
	max-height: 13.5rem !important;
	overflow: hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.sweetcandy-lineup-card-title {
	font-size: 1.75rem;
	letter-spacing: -0.03em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.2em;
}

.sweetcandy-lineup-card-flavor {
	font-size: 0.88rem;
	color: #9ca3af;
	margin-bottom: 0.8rem !important;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 1.2em;
}

.sweetcandy-lineup-card-info {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 2;
	margin-top: 0.9rem !important;
	padding-top: 0.35rem;
	min-height: 8.2rem;
}

.sweetcandy-lineup-card-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

.sweetcandy-lineup-card-footer {
	margin-top: auto;
	padding-top: 0.55rem;
}

.sweetcandy-lineup-card-price {
	font-size: 1.55rem;
	letter-spacing: 0.01em;
	text-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.sweetcandy-card-cart-btn {
	width: 58px;
	height: 58px;
	border-radius: 9999px;
	box-shadow:
		0 0 0 2px rgba(236, 72, 153, 0.25) inset,
		0 0 16px rgba(236, 72, 153, 0.7),
		0 0 36px rgba(236, 72, 153, 0.32);
}

.sweetcandy-card-cart-btn:hover {
	transform: translateY(-1px) scale(1.02);
}

.woocommerce-cart-form input[type="number"] {
	display: none !important;
}

.sweetcandy-cart-item {
	background: linear-gradient(135deg, rgba(8, 12, 26, 0.85), rgba(9, 20, 30, 0.8));
}

.sweetcandy-cart-item:hover {
	box-shadow: 0 0 18px rgba(236, 72, 153, 0.18);
}

.sweetcandy-cart-item .woocommerce-Price-amount {
	font-weight: 900;
}

.sweetcandy-cart-item .variation {
	margin: 0.25rem 0 0;
	font-size: 0.72rem;
	color: #9ca3af;
}

.sweetcandy-cart-item .variation dt,
.sweetcandy-cart-item .variation dd {
	display: inline;
	margin: 0;
}

@media (max-width: 767px) {
	.sweetcandy-lineup-card {
		min-height: 300px;
	}
	.sweetcandy-lineup-card-emoji {
		font-size: 3.6rem;
	}
	.sweetcandy-lineup-card-media {
		height: 10.8rem !important;
		min-height: 10.8rem !important;
		max-height: 10.8rem !important;
	}
	.sweetcandy-lineup-card-title {
		font-size: 1.5rem;
	}
	.sweetcandy-lineup-card-price {
		font-size: 1.35rem;
	}
	[data-sweetcandy-cat-tabs] button {
		min-width: 122px;
		height: 44px;
		font-size: 1rem;
	}
}

.sweetcandy-glass-panel {
	background: rgba(20, 20, 20, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
	background: rgba(20, 20, 20, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-sweetcandy-fullcart-modal] .glass-panel {
	border-radius: 1.5rem;
}

.sweetcandy-fade-in {
	animation: sweetcandy-fade-in 0.3s ease-out;
}

.sweetcandy-coupon-ticket {
	background:
		radial-gradient(circle at left, transparent 8px, rgba(20, 20, 20, 0.7) 8px),
		radial-gradient(circle at right, transparent 8px, rgba(20, 20, 20, 0.7) 8px);
	background-position: bottom left, bottom right;
	background-size: 50% 100%;
	background-repeat: no-repeat;
}

body.sweetcandy-theme ::-webkit-scrollbar {
	width: 8px;
}

body.sweetcandy-theme ::-webkit-scrollbar-track {
	background: #030712;
}

body.sweetcandy-theme ::-webkit-scrollbar-thumb {
	background: #ec4899;
	border-radius: 4px;
}

body.sweetcandy-theme ::-webkit-scrollbar-thumb:hover {
	background: #be185d;
}

/* WooCommerce 預設表格在本主題內收斂 */
.sweetcandy-theme .woocommerce table.shop_table {
	border-collapse: separate;
	border-spacing: 0;
}

.sweetcandy-theme .woocommerce .button.alt,
.sweetcandy-theme .woocommerce button.button.alt {
	background: linear-gradient(to right, #db2777, #0891b2);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sweetcandy-theme .woocommerce .button.alt:hover,
.sweetcandy-theme .woocommerce button.button.alt:hover {
	filter: brightness(1.08);
	color: #fff;
}

.sweetcandy-scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.sweetcandy-scrollbar-hide::-webkit-scrollbar {
	display: none;
}

html.sweetcandy-age-hidden .sweetcandy-age-gate,
body.sweetcandy-age-hidden .sweetcandy-age-gate {
	display: none !important;
}

/* 結帳欄位對齊 Tailwind 外觀 */
.sweetcandy-theme .woocommerce form .form-row input.input-text,
.sweetcandy-theme .woocommerce form .form-row textarea,
.sweetcandy-theme .woocommerce form .form-row select {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
}

/* Checkout focus state: soft cyan glow to match SweetCandy theme */
.sweetcandy-checkout-form .form-row input.input-text:focus,
.sweetcandy-checkout-form .form-row textarea:focus,
.sweetcandy-checkout-form .form-row select:focus {
	border-color: rgba(34, 211, 238, 0.95) !important;
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.22), 0 0 16px rgba(34, 211, 238, 0.18) !important;
	background: rgba(8, 20, 38, 0.72) !important;
	color: #ecfeff !important;
	outline: none !important;
}

.sweetcandy-checkout-form .form-row input.input-text::placeholder,
.sweetcandy-checkout-form .form-row textarea::placeholder {
	color: rgba(148, 163, 184, 0.88);
}

.sweetcandy-theme .woocommerce form .form-row label {
	color: #9ca3af;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
	display: block;
}

.sweetcandy-theme #payment .payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sweetcandy-theme #payment .payment_methods li {
	margin-bottom: 0.75rem;
}

.sweetcandy-theme #payment,
.sweetcandy-theme .woocommerce-checkout-review-order-table {
	background: transparent !important;
}

/* Custom checkout visual system (no native Woo look) */
.sweetcandy-checkout-form .woocommerce-checkout-review-order-table {
	width: 100%;
	border: 0 !important;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table th,
.sweetcandy-checkout-form .woocommerce-checkout-review-order-table td {
	border: 0 !important;
	padding: 0.45rem 0 !important;
	color: #d1d5db;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .order-total td,
.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .order-total th {
	color: #f472b6;
	font-size: 0.95rem;
	font-weight: 900;
	padding-top: 0.75rem !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .woocommerce-Price-amount {
	font-size: 0.95rem;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
	font-size: 1.35rem;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .cart-discount th,
.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .cart-discount td {
	color: #34d399;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order-table .product-total {
	color: #22d3ee;
	font-weight: 700;
}

.sweetcandy-checkout-form #payment .payment_methods > li {
	border: 1px solid rgba(236, 72, 153, 0.35);
	background: rgba(236, 72, 153, 0.08);
	padding: 0.85rem;
	border-radius: 0.9rem;
}

.sweetcandy-checkout-form #payment .payment_methods > li label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.sweetcandy-checkout-form #payment .payment_methods > li img {
	max-height: 1.15rem;
	width: auto;
}

.sweetcandy-checkout-form #payment .payment_methods .input-radio {
	margin-right: 0.5rem;
	transform: scale(1.1);
	accent-color: #ec4899;
}

.sweetcandy-checkout-form #payment .payment_methods label {
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sweetcandy-checkout-form #payment .place-order .button {
	width: 100% !important;
	padding: 1rem 1.25rem !important;
}

.sweetcandy-checkout-form #payment .place-order {
	display: none !important;
}

.sweetcandy-checkout-form #payment .payment_box {
	margin-top: 0.5rem;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 0.65rem 0.85rem;
	color: #cbd5e1;
	font-size: 0.85rem;
}

.sweetcandy-checkout-form .woocommerce-checkout-review-order {
	scrollbar-width: thin;
}

.sweetcandy-success-meta {
	display: grid;
	gap: 0.45rem;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.9rem;
	padding: 0.75rem 0.9rem;
}

.sweetcandy-success-meta > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.82rem;
	color: #9ca3af;
}

.sweetcandy-success-meta > div strong {
	color: #fff;
	font-weight: 800;
}

.sweetcandy-checkout-step-block .woocommerce-billing-fields__field-wrapper,
.sweetcandy-checkout-step-block .woocommerce-shipping-fields__field-wrapper,
.sweetcandy-checkout-step-block .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 768px) {
	.sweetcandy-checkout-step-block .woocommerce-billing-fields__field-wrapper,
	.sweetcandy-checkout-step-block .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sweetcandy-checkout-step-block .form-row-wide {
		grid-column: 1 / -1;
	}
}

.sweetcandy-checkout-step-block .woocommerce-additional-fields {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.sweetcandy-checkout-step-block textarea[name="order_comments"] {
	min-height: 82px;
	resize: vertical;
}

.sweetcandy-checkout-step-block .woocommerce-billing-fields h3,
.sweetcandy-checkout-step-block .woocommerce-shipping-fields h3,
.sweetcandy-checkout-step-block .woocommerce-additional-fields h3 {
	display: none;
}

/* 7-11 門市地圖/選點區塊：統一成參考 HTML 的霓虹卡片樣式 */
.sweetcandy-store-picker :is(button, a, input[type="button"], input[type="submit"]) {
	width: 100%;
	border: 2px dashed rgba(6, 182, 212, 0.5) !important;
	color: #22d3ee !important;
	background: transparent !important;
	padding: 1rem 0.9rem !important;
	border-radius: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	transition: all 0.2s ease;
}

.sweetcandy-store-picker :is(button, a, input[type="button"], input[type="submit"]):hover {
	color: #fff !important;
	border-color: #22d3ee !important;
	background: rgba(6, 182, 212, 0.2) !important;
}

.sweetcandy-store-picker :is(input[type="text"], select, textarea) {
	background: rgba(0, 0, 0, 0.5) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0.75rem !important;
	color: #fff !important;
}

/* common third-party store picker hooks */
.sweetcandy-store-picker [id*="store"],
.sweetcandy-store-picker [class*="store"],
.sweetcandy-store-picker [id*="cvs"],
.sweetcandy-store-picker [class*="cvs"],
.sweetcandy-store-picker [id*="ecpay"],
.sweetcandy-store-picker [class*="ecpay"] {
	color: #e5e7eb;
}

.sweetcandy-checkout-form #order_review .wc_payment_methods {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.sweetcandy-theme .woocommerce-error,
.sweetcandy-theme .woocommerce-info,
.sweetcandy-theme .woocommerce-message {
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #f3f4f6;
	border-radius: 0.8rem;
	padding: 0.85rem 1rem;
}

/* Hide plugin single-coupon widgets (e.g. Smart Coupons) in checkout/cart UI */
.sweetcandy-theme .wt_sc_single_coupon,
.sweetcandy-theme #wt_sc_single_coupon,
.sweetcandy-theme [data-wt_sc_single_coupon],
.sweetcandy-theme [class*="wt_sc_single_coupon"] {
	display: none !important;
}

/* Checkout submit overlay: keep page readable, remove white mask */
.sweetcandy-theme .blockUI.blockOverlay,
.sweetcandy-theme .woocommerce-checkout .blockUI.blockOverlay,
.sweetcandy-theme form.checkout.processing::after {
	background: transparent !important;
	opacity: 0 !important;
}

/* 導覽列滾動態樣（對齊參考 HTML glass-panel） */
.sweetcandy-nav.sweetcandy-nav--scrolled {
	background: rgba(20, 20, 20, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
}

/* 手機選單展開 */
#sweetcandy-mobile-panel {
	transform-origin: top;
}

#sweetcandy-mobile-panel.sweetcandy-mobile-open {
	transform: scaleY(1) !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	z-index: 70;
}

/* 裝備分類折疊：高度由主題 CSS 控制，避免 Tailwind `max-h-0` 蓋過展開狀態 */
[data-sweetcandy-mobile-cat-panel].sweetcandy-mobile-cat-panel-inner {
	max-height: 0;
	margin-bottom: 0;
	overflow: hidden;
}

[data-sweetcandy-mobile-cat-panel].sweetcandy-mobile-cat-open {
	/* 足够大的上限，讓分類列表完整展開（外層選單本身有 max-h 捲動） */
	max-height: 100vh !important;
	margin-bottom: 0.5rem;
	border-left: 2px solid #06b6d4;
	padding-left: 0.25rem;
}

[data-sweetcandy-mobile-cat-toggle].is-open .sweetcandy-chevron {
	transform: rotate(90deg);
	color: #22d3ee;
}

/* 單品頁加入購物車表單 */
.sweetcandy-single-summary form.cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}

@media (min-width: 640px) {
	.sweetcandy-single-summary form.cart {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

.sweetcandy-single-summary form.cart .quantity {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0.25rem 0.5rem;
	background: rgba(20, 20, 20, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
}

.sweetcandy-single-summary form.cart .quantity input.qty {
	width: 3rem;
	text-align: center;
	font-weight: 900;
	font-size: 1.125rem;
	background: transparent;
	border: 0;
	color: #fff;
	appearance: textfield;
	-moz-appearance: textfield;
}

.sweetcandy-single-summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.sweetcandy-single-summary form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sweetcandy-single-summary form.cart button.single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 9999px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 1rem 1.5rem !important;
	transition: background 0.2s, border-color 0.2s !important;
}

.sweetcandy-single-summary form.cart button.single_add_to_cart_button:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

.sweetcandy-single-summary .product-long-desc a {
	color: #22d3ee;
}

.sweetcandy-single-summary .product-long-desc img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

.sweetcandy-stock-badge {
	z-index: 30;
	pointer-events: none;
}

.sweetcandy-flavor-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
	padding: 0.15rem;
}

.sweetcandy-flavor-scroll {
	height: 220px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.75rem;
	padding: 0.45rem;
	background: rgba(2, 6, 23, 0.88);
}

.sweetcandy-flavor-chip {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(15, 23, 42, 0.78);
	color: #e5e7eb;
	padding: 0.58rem 0.6rem;
	min-height: 2.8rem;
	border-radius: 0.6rem;
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
	transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sweetcandy-flavor-chip:hover {
	background: rgba(30, 41, 59, 0.95);
	transform: translateY(-1px);
	color: #fff;
}

.sweetcandy-flavor-chip.is-active {
	background: #020617;
	border-color: #f97316;
	color: #fff;
	box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4), 0 0 14px rgba(249, 115, 22, 0.2);
}

.sweetcandy-qty-pill {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 168px;
	height: 56px;
	padding: 0 0.65rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(2, 6, 23, 0.8);
}

.sweetcandy-qty-btn {
	border: 0;
	background: transparent;
	color: #9ca3af;
	font-size: 1.4rem;
	line-height: 1;
	width: 36px;
	height: 36px;
	cursor: pointer;
	border-radius: 9999px;
	transition: color 0.2s, background 0.2s;
}

.sweetcandy-qty-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.sweetcandy-qty-input {
	width: 52px;
	text-align: center;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1;
}

.sweetcandy-qty-input:focus {
	outline: none;
}

.sweetcandy-qty-input::-webkit-outer-spin-button,
.sweetcandy-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

@media (max-width: 767px) {
	.sweetcandy-flavor-scroll {
		height: 186px;
		padding: 0.4rem;
	}
	.sweetcandy-flavor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.1rem;
	}
	.sweetcandy-flavor-chip {
		font-size: 0.92rem;
		min-height: 2.45rem;
	}
	.sweetcandy-qty-pill {
		min-width: 152px;
		height: 52px;
	}
	.sweetcandy-qty-input {
		font-size: 1.35rem;
		width: 48px;
	}
}

/* 會員中心 / 帳號頁 — 對齊深色霓虹 */
.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.4);
	color: #d1d5db;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.75rem;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	border-color: #ec4899;
	color: #f472b6;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content {
	background: rgba(20, 20, 20, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.sweetcandy-shop-pagination ul {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	padding: 0;
	margin: 0;
}

.sweetcandy-shop-pagination a,
.sweetcandy-shop-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.65rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
	color: #cbd5e1;
	font-weight: 700;
	text-decoration: none;
}

.sweetcandy-shop-pagination .current {
	background: #06b6d4;
	border-color: #22d3ee;
	color: #020617;
}

/* MyAccount login/register page (custom, no default Woo look) */
.sweetcandy-auth-card .woocommerce-notices-wrapper:empty {
	display: none;
}

.sweetcandy-auth-card .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

.sweetcandy-auth-forms {
	position: relative;
}

.sweetcandy-auth-form {
	display: none;
	animation: sweetcandy-fade-in 0.2s ease-out;
}

.sweetcandy-auth-form.is-active {
	display: block;
}

.sweetcandy-auth-card .woocommerce-form-row label {
	display: block;
	color: #9ca3af;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.45rem;
}

.sweetcandy-auth-card input.input-text {
	width: 100%;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.9rem 1rem;
	border-radius: 0.75rem;
	color: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.sweetcandy-auth-card input.input-text:focus {
	outline: none;
	border-color: rgba(236, 72, 153, 0.85);
	box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16);
}

.sweetcandy-auth-card .form-row {
	margin-bottom: 0.9rem;
}

.sweetcandy-auth-actions {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin-top: 1rem;
}

.sweetcandy-auth-card .woocommerce-form-login__rememberme {
	font-size: 0.8rem;
	color: #9ca3af;
}

.sweetcandy-auth-card .button,
.sweetcandy-auth-card button.button,
.sweetcandy-auth-card .woocommerce-button {
	width: 100%;
	border: 0 !important;
	border-radius: 0.75rem !important;
	padding: 0.95rem 1rem !important;
	font-weight: 900 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	color: #fff !important;
	background: linear-gradient(to right, #db2777, #7c3aed) !important;
	box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.sweetcandy-auth-card .lost_password {
	text-align: right;
	margin-top: 0.6rem;
	margin-bottom: 0;
}

.sweetcandy-auth-card .lost_password a {
	color: #22d3ee;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* MyAccount custom endpoints */
.sweetcandy-account-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.9rem;
}

@media (min-width: 768px) {
	.sweetcandy-account-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sweetcandy-account-tile {
	display: block;
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, rgba(8, 12, 26, 0.86), rgba(9, 20, 30, 0.75));
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-decoration: none;
	transition: transform 0.2s, border-color 0.2s;
}

.sweetcandy-account-tile:hover {
	transform: translateY(-2px);
	border-color: rgba(34, 211, 238, 0.5);
}

.sweetcandy-account-tile-title {
	display: block;
	font-weight: 900;
	color: #fff;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sweetcandy-account-tile-sub {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #94a3b8;
}

.sweetcandy-account-table-wrap {
	overflow-x: auto;
}

.sweetcandy-account-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.sweetcandy-account-table th,
.sweetcandy-account-table td {
	padding: 0.75rem 0.55rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #d1d5db;
	white-space: nowrap;
}

.sweetcandy-account-table th {
	color: #94a3b8;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sweetcandy-account-table .button {
	padding: 0.45rem 0.8rem !important;
	border-radius: 9999px !important;
	background: rgba(34, 211, 238, 0.16) !important;
	border: 1px solid rgba(34, 211, 238, 0.5) !important;
	color: #67e8f9 !important;
}

.sweetcandy-order-status {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 9999px;
	background: rgba(236, 72, 153, 0.15);
	border: 1px solid rgba(236, 72, 153, 0.4);
	color: #f9a8d4;
	font-weight: 700;
}

.sweetcandy-account-edit .form-row {
	margin-bottom: 0.9rem;
}

.sweetcandy-account-edit label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #94a3b8;
}

.sweetcandy-account-edit input.input-text,
.sweetcandy-account-edit input[type="email"],
.sweetcandy-account-edit input[type="password"] {
	width: 100%;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.75rem;
	padding: 0.82rem 0.95rem;
	color: #fff;
}

.sweetcandy-password-fieldset {
	margin-top: 1rem;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 0.9rem;
	padding: 1rem;
}

.sweetcandy-password-fieldset legend {
	padding: 0 0.4rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #22d3ee;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content th,
.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content td {
	padding: 0.7rem 0.55rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #d1d5db;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content address {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.8rem;
	padding: 0.9rem 1rem;
	color: #d1d5db;
}

.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content .button,
.sweetcandy-theme.woocommerce-account .woocommerce-MyAccount-content button.button {
	border-radius: 9999px !important;
	padding: 0.52rem 0.95rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.05em !important;
}

.sweetcandy-address-form .form-row {
	margin-bottom: 0.9rem;
}

.sweetcandy-address-form .form-row label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #94a3b8;
}

.sweetcandy-address-form .input-text,
.sweetcandy-address-form select,
.sweetcandy-address-form textarea {
	width: 100%;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.75rem;
	padding: 0.82rem 0.95rem;
	color: #fff;
}

/* Final visual parity sweep: shop/cart/checkout/single/account */
.sweetcandy-theme .sweetcandy-glass-panel {
	box-shadow: 0 10px 36px rgba(2, 6, 23, 0.42);
}

.sweetcandy-lineup-card {
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 12px 30px rgba(3, 7, 18, 0.45);
}

.sweetcandy-lineup-card:hover {
	transform: translateY(-4px);
	border-color: rgba(236, 72, 153, 0.55);
}

.sweetcandy-lineup-card-title {
	font-size: 1.75rem;
}

.sweetcandy-lineup-card-flavor {
	min-height: 1.5rem;
}

.sweetcandy-card-cart-btn {
	width: 52px;
	height: 52px;
}

.sweetcandy-cart-item {
	border-radius: 1rem;
	padding: 1rem;
}

.sweetcandy-cart-item h3 {
	font-size: 1.12rem;
	letter-spacing: -0.01em;
}

.sweetcandy-checkout-form .sweetcandy-coupon-ticket {
	min-height: 76px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sweetcandy-checkout-form .sweetcandy-coupon-ticket > div:first-child {
	line-height: 1;
}

.sweetcandy-checkout-form #customer_details,
.sweetcandy-checkout-form .sweetcandy-glass-panel.border-t-4 {
	box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
}

.sweetcandy-checkout-form #sweetcandy-place-order {
	min-height: 56px;
}

.sweetcandy-single-summary h1 {
	letter-spacing: -0.03em;
}

.sweetcandy-stock-badge {
	font-size: 0.68rem;
	letter-spacing: 0.11em;
}

@media (max-width: 767px) {
	.sweetcandy-lineup-card-title {
		font-size: 1.5rem;
	}
	.sweetcandy-lineup-card-image {
		max-width: 100%;
		max-height: 100%;
	}
	.sweetcandy-checkout-form .sweetcandy-coupon-ticket {
		min-height: 70px;
	}
}

/* Strongly scoped single-product controls (prevent external overrides) */
.sweetcandy-single-controls .sweetcandy-flavor-scroll {
	height: 220px !important;
	overflow-y: auto !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0.75rem !important;
	padding: 0.45rem !important;
	background: rgba(5, 8, 20, 0.92) !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 0.55rem !important;
	padding: 0.15rem !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-chip {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(10, 15, 28, 0.92)) !important;
	color: #e5e7eb !important;
	padding: 0.72rem 0.58rem !important;
	min-height: 4.25rem !important;
	border-radius: 0.55rem !important;
	font-weight: 800 !important;
	font-size: 0.95rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0.22rem !important;
	text-align: center !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-chip.is-active {
	background: linear-gradient(180deg, rgba(101, 16, 45, 0.8), rgba(45, 9, 26, 0.9)) !important;
	border-color: rgba(244, 114, 182, 0.95) !important;
	color: #fff !important;
	box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.45), 0 0 14px rgba(236, 72, 153, 0.22) !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-title {
	font-size: 1.04rem !important;
	font-weight: 900 !important;
	color: inherit !important;
	line-height: 1.15 !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-sub {
	font-size: 0.72rem !important;
	color: #9ca3af !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
}

.sweetcandy-single-controls .sweetcandy-flavor-chip.is-active .sweetcandy-flavor-sub {
	color: #f9a8d4 !important;
}

.sweetcandy-single-controls .sweetcandy-qty-pill {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	min-width: 168px !important;
	height: 56px !important;
	padding: 0 0.65rem !important;
	border-radius: 9999px !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	background: rgba(2, 6, 23, 0.8) !important;
}

.sweetcandy-single-controls .sweetcandy-qty-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	background: transparent !important;
	color: #9ca3af !important;
	font-size: 1.4rem !important;
	line-height: 1 !important;
	width: 36px !important;
	height: 36px !important;
	cursor: pointer !important;
	border-radius: 9999px !important;
}

.sweetcandy-single-controls .sweetcandy-qty-input {
	appearance: textfield !important;
	-moz-appearance: textfield !important;
	width: 52px !important;
	text-align: center !important;
	background: transparent !important;
	border: 0 !important;
	color: #fff !important;
	font-size: 1.5rem !important;
	font-weight: 900 !important;
	line-height: 1 !important;
}

@media (max-width: 767px) {
	.sweetcandy-single-controls .sweetcandy-flavor-scroll {
		height: 186px !important;
		padding: 0.4rem !important;
	}
	.sweetcandy-single-controls .sweetcandy-flavor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.5rem !important;
		padding: 0.1rem !important;
	}
	.sweetcandy-single-controls .sweetcandy-flavor-chip {
		font-size: 0.9rem !important;
		min-height: 3.8rem !important;
	}
	.sweetcandy-single-controls .sweetcandy-flavor-title {
		font-size: 0.96rem !important;
	}
	.sweetcandy-single-controls .sweetcandy-qty-pill {
		min-width: 152px !important;
		height: 52px !important;
	}
	.sweetcandy-single-controls .sweetcandy-qty-input {
		font-size: 1.35rem !important;
		width: 48px !important;
	}
}
