/*
Theme Name:   	HelloBots
Theme URI:    	https://HelloBots.HelloBots
Author:		HelloBots
Author URI:	https://HelloBots.HelloBots
Template:     	blocksy
Description:  	HelloBots is a child theme for the official Martin theme - Martin. Martin supports the available settings in Martin Customizer and can be easily customized. Since Martin is a child theme of the Martin, you need to install the HelloBots theme as well as the WooCommerce before activating it.
Version:      	1.0.1.1
License:      	GNU General Public License v2 or later
License URI:  	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  	HelloBots
Tags:         	e-commerce
*/

@import url("../blocksy/style.css");

:root {
	--hb-bg: #f5f3ee;
	--hb-surface: #ece9e2;
	--hb-ink: #1d1b18;
	--hb-muted: #69645b;
	--hb-accent: #d4a816;
	--hb-accent-strong: #c29400;
	--hb-radius: 18px;
	--hb-shadow: 0 10px 28px rgba(22, 18, 6, 0.12);
	--hb-font-scale: 1;
	--hb-nav-mobile-height: 84px;
	--hb-nav-offset: 8px;
	--hb-nav-safe-extra: 18px;
	--hb-top-strip-height: 48px;
	--hb-nav-safe-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--hb-nav-offset));
	--hb-nav-space: calc(var(--hb-nav-mobile-height) + var(--hb-nav-safe-bottom) + var(--hb-nav-safe-extra));
}

html[data-hb-font-scale="small"] {
	--hb-font-scale: 0.9;
}

html[data-hb-font-scale="large"] {
	--hb-font-scale: 1.07;
}

body {
	font-size: calc(15px * var(--hb-font-scale));
	background: radial-gradient(circle at 20% -10%, #fff4c9 0%, rgba(255, 244, 201, 0) 40%), var(--hb-bg);
	padding-top: calc(var(--hb-top-strip-height) + env(safe-area-inset-top, 0px));
}

body.hb-app-layout,
body {
	padding-bottom: var(--hb-nav-space);
}

body.woocommerce-account {
	padding-top: 8px !important;
}

html.hb-compact body {
	font-size: calc(14px * var(--hb-font-scale));
}

.ct-header,
.site-header,
#header,
.header-main {
	position: sticky;
	top: 0;
	z-index: 35;
}

.ct-header-trigger,
.mobile-menu-toggle,
.ct-toggle-dropdown-mobile-menu {
	display: none !important;
}

.hb-top-strip {
	position: fixed;
	top: env(safe-area-inset-top, 0px);
	left: 8px;
	right: 8px;
	min-height: var(--hb-top-strip-height);
	z-index: 118;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	pointer-events: none;
	opacity: 1;
	transform: translateY(0);
	will-change: transform, opacity;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

html.hb-nav--hidden .hb-top-strip {
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
}

.hb-top-bar {
	pointer-events: auto;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	padding: 6px 8px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--hb-surface) 92%, white 8%);
	box-shadow: var(--hb-shadow);
	border: 1px solid rgba(145, 122, 46, 0.22);
	backdrop-filter: blur(8px);
}

.hb-top-nav-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
	min-width: 0;
	min-height: 34px;
	padding: 0 8px;
	border-radius: 14px;
	text-decoration: none;
	color: var(--hb-muted);
	font-weight: 700;
	font-size: calc(12px * var(--hb-font-scale));
	line-height: 1;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hb-top-nav-item .hb-icon-wrap {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.hb-top-item-label,
.hb-top-item-value {
	white-space: nowrap;
}

.hb-top-item-label {
	font-size: calc(11px * var(--hb-font-scale));
	font-weight: 700;
	line-height: 1;
	color: #6a6051;
}

.hb-top-item-value {
	font-size: calc(11px * var(--hb-font-scale));
	font-weight: 800;
	line-height: 1;
	color: #3f3729;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hb-top-item-value .woocommerce-Price-amount {
	font-size: 1em !important;
	font-weight: 800 !important;
	line-height: 1;
}

.hb-top-item-value .woocommerce-Price-amount bdi,
.hb-top-item-value .woocommerce-Price-currencySymbol {
	font-size: 1em !important;
	font-weight: 800 !important;
	line-height: 1;
}

.hb-top-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: #6a6051;
	flex: 0 0 auto;
}

.hb-top-cart-icon svg {
	width: 16px;
	height: 16px;
}

.hb-top-cart-icon svg path,
.hb-top-cart-icon svg circle {
	fill: currentColor;
	stroke: none;
}

.hb-top-nav-item:hover,
.hb-top-nav-item:focus-visible {
	background: linear-gradient(180deg, #f8d94f 0%, #e6bf20 100%);
	color: #1e1a11;
	transform: translateY(-1px);
}

.hb-app-nav {
	position: fixed;
	left: 8px;
	right: 8px;
	bottom: max(8px, env(safe-area-inset-bottom, 0px));
	z-index: 120;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
	border-radius: 20px;
	background: color-mix(in srgb, var(--hb-surface) 92%, white 8%);
	box-shadow: var(--hb-shadow);
	border: 1px solid rgba(145, 122, 46, 0.22);
	backdrop-filter: blur(8px);
	/* 🔥 自动隐藏过渡动画 */
	will-change: transform;
	opacity: 1;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* 导航栏隐藏状态（由 JS 在下滑时加到 <html> 上） */
html.hb-nav--hidden .hb-app-nav {
	transform: translateY(calc(100% + 16px)) !important;
	opacity: 0;
	pointer-events: none;
}

.hb-app-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 56px;
	text-decoration: none;
	color: var(--hb-muted);
	border-radius: 14px;
	font-weight: 700;
	font-size: calc(10px * var(--hb-font-scale));
	line-height: 1.1;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hb-app-nav-item:hover,
.hb-app-nav-item:focus-visible,
.hb-app-nav-item.is-active {
	background: linear-gradient(180deg, #f8d94f 0%, #e6bf20 100%);
	color: #1e1a11;
	transform: translateY(-1px);
}

.hb-icon-wrap {
	position: relative;
	width: 22px;
	height: 22px;
}

.hb-icon-wrap svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hb-badge {
	position: absolute;
	right: -8px;
	top: -7px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #d63638;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	font-style: normal;
}

.hb-settings-toggle {
	position: fixed;
	right: 10px;
	top: 12px;
	z-index: 121;
	height: 36px;
	border: 1px solid rgba(145, 122, 46, 0.35);
	border-radius: 999px;
	background: linear-gradient(180deg, #ffe27a 0%, #dbb522 100%);
	color: #201b10;
	padding: 0 14px;
	font-size: calc(12px * var(--hb-font-scale));
	font-weight: 700;
	cursor: pointer;
	display: none !important;
}

.hb-settings-panel {
	position: fixed;
	right: 10px;
	top: 56px;
	width: min(320px, calc(100vw - 20px));
	background: #fffdf7;
	border: 1px solid rgba(145, 122, 46, 0.3);
	border-radius: 16px;
	box-shadow: var(--hb-shadow);
	z-index: 122;
	padding: 14px;
	display: none;
	visibility: hidden;
	pointer-events: none;
}

.hb-settings-panel.is-open {
	display: block;
}

.hb-settings-panel h3 {
	margin: 0 0 10px;
	font-size: calc(15px * var(--hb-font-scale));
}

.hb-settings-panel label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	color: var(--hb-ink);
	font-size: calc(13px * var(--hb-font-scale));
}

.hb-settings-panel select {
	width: 100px;
	border: 1px solid #d6c79a;
	border-radius: 10px;
	padding: 4px 8px;
	background: #fff;
}

.hb-settings-tip {
	margin: 4px 0 0;
	color: #6e6656;
	font-size: calc(12px * var(--hb-font-scale));
}

html.hb-reduce-motion * {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
	scroll-behavior: auto !important;
}

@media (max-width: 390px) {
	.hb-app-nav-item {
		min-height: 52px;
		font-size: calc(10px * var(--hb-font-scale));
	}

	.hb-label {
		letter-spacing: -0.1px;
	}
}

@media (min-width: 1024px) {
	body {
		padding-left: 188px;
		padding-bottom: 16px;
		padding-top: 12px;
	}

	.hb-top-strip {
		display: none;
	}

	.hb-app-nav {
		left: 10px;
		right: auto;
		top: 76px;
		bottom: 12px;
		width: 166px;
		grid-template-columns: 1fr;
		grid-auto-rows: minmax(54px, auto);
		align-content: start;
		border-radius: 20px;
		padding: 10px;
	}

	.hb-app-nav-item {
		min-height: 54px;
		flex-direction: row;
		justify-content: flex-start;
		padding: 0 10px;
		gap: 10px;
		font-size: calc(13px * var(--hb-font-scale));
	}

	.hb-settings-toggle {
		right: 16px;
		top: 14px;
	}

	.hb-settings-panel {
		right: 16px;
		top: 58px;
	}
}

/* ------------------------------
   nmbot-like warm rounded system
------------------------------- */

:root {
	--hb-page-max: 980px;
	--hb-card-radius: 16px;
	--hb-card-bg: #f7f4ec;
	--hb-border: #d7ccad;
	--hb-title: #2a2418;
	--hb-body: #625948;
	--hb-account-edge-gap: clamp(4px, 1vw, 12px);
}

.site-content,
.ct-container,
.entry-content,
.woocommerce,
.woocommerce-page {
	color: var(--hb-body);
}

h1,
h2,
h3,
h4,
.entry-title,
.woocommerce .page-title {
	color: var(--hb-title);
	line-height: 1.25;
}

.entry-content h1,
.woocommerce .page-title {
	font-size: clamp(1.55rem, 4.2vw, 2.15rem);
}

.entry-content h2,
.woocommerce .woocommerce-MyAccount-content h2 {
	font-size: clamp(1.2rem, 3.6vw, 1.55rem);
}

.entry-content p,
.woocommerce .woocommerce-MyAccount-content p,
.woocommerce .woocommerce-MyAccount-content li,
.woocommerce .woocommerce-MyAccount-content a {
	font-size: clamp(0.92rem, 2.6vw, 1.02rem);
	line-height: 1.68;
}

.entry-content .button,
.woocommerce .button,
.woocommerce button,
.woocommerce input.button,
.woocommerce a.button {
	border-radius: 12px !important;
	padding: 10px 16px !important;
	font-size: clamp(0.86rem, 2.2vw, 0.95rem) !important;
	font-weight: 700 !important;
	min-height: 40px;
}

.woocommerce .quantity input.qty,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce form .form-row input.input-text {
	border-radius: 10px !important;
	min-height: 40px;
	font-size: clamp(0.9rem, 2.4vw, 0.98rem) !important;
}

.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	font-size: clamp(0.82rem, 2.2vw, 0.92rem) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 10px 8px !important;
	vertical-align: middle;
}

/* account page layout: one long warm card, aligned with shop page */
.woocommerce-account .ct-woo-account {
	display: block !important;
	width: calc(100vw - 8px) !important;
	max-width: calc(100vw - 8px) !important;
	margin: 4px auto 16px !important;
	padding: 14px;
	background: color-mix(in srgb, var(--hb-surface) 92%, white 8%);
	border: 1px solid rgba(145, 122, 46, 0.26);
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(22, 18, 6, 0.11);
	box-sizing: border-box;
}

body.woocommerce-account [data-sidebar] {
	--grid-template-columns: minmax(0, 1fr) !important;
	display: block !important;
}

body.woocommerce-account .hb-account-fullbleed {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 4px 0 !important;
	box-sizing: border-box;
}

body.woocommerce-account .hb-account-template,
body.woocommerce-account .hb-account-template .site-main,
body.woocommerce-account .hb-account-template__inner {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
}

body.woocommerce-account .hb-account-fullbleed > .woocommerce,
body.woocommerce-account .hb-account-fullbleed > .woocommerce-page {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

body.woocommerce-account [data-sidebar] > section,
body.woocommerce-account [data-sidebar] > article,
body.woocommerce-account .site-main,
body.woocommerce-account .content-area,
body.woocommerce-account .ct-content-area,
body.woocommerce-account .site-content,
body.woocommerce-account .entry-content,
body.woocommerce-account #main,
body.woocommerce-account main,
body.woocommerce-account .hero-section[data-type="type-1"] + .ct-container {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
}

body.woocommerce-account .hero-section,
body.woocommerce-account .page-header,
body.woocommerce-account .entry-header {
	display: none !important;
}

body.woocommerce-account [data-sidebar] > aside {
	display: none !important;
}

.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-page {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.woocommerce-account .ct-acount-nav,
.woocommerce-account .woocommerce-MyAccount-content {
	width: 100% !important;
	float: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	max-width: none;
}

.woocommerce-account .ct-acount-nav {
	margin: 0 !important;
	overflow: visible;
	border-radius: 0;
}

.woocommerce-account .ct-account-welcome {
	display: block !important;
	margin: 0 0 10px !important;
	padding: 16px 18px 10px !important;
	background: #f7f2e6;
	border: 1px solid #d8c7a0;
	border-radius: 20px 20px 0 0;
	border-bottom: none;
}

.woocommerce-account .ct-account-welcome [class*="ct-media-container"] {
	display: none !important;
}

.woocommerce-account .ct-account-welcome .ct-account-user-box {
	font-size: 0 !important;
	line-height: 0 !important;
	margin-inline-start: 0 !important;
	padding: 0 !important;
	color: #4d4333;
}

.woocommerce-account .ct-account-welcome .ct-account-user-box > span {
	display: flex !important;
	align-items: center;
	gap: 0;
	margin-top: 4px !important;
	font-size: clamp(0.86rem, 2.1vw, 0.95rem) !important;
	line-height: 1.35 !important;
	color: #6c6457;
}

.woocommerce-account .ct-account-welcome .ct-account-user-box > span a,
.woocommerce-account .ct-account-welcome .ct-account-user-box > span i {
	font-size: inherit !important;
	line-height: inherit !important;
	font-style: normal;
}

.woocommerce-account .ct-account-welcome .tgauth-account-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 0 !important;
	line-height: 1.2;
	min-width: 0;
}

.woocommerce-account .ct-account-welcome .tgauth-account-name {
	font-size: clamp(1.02rem, 3vw, 1.2rem) !important;
	font-weight: 800 !important;
	color: #2f2718 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.woocommerce-account .ct-account-welcome .tgauth-nav-balance {
	font-size: clamp(0.94rem, 2.6vw, 1.08rem) !important;
	font-weight: 800 !important;
	color: #2a2418 !important;
	white-space: nowrap;
	max-width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 0 12px !important;
	background: #f7f2e6 !important;
	border: 1px solid #d8c7a0 !important;
	border-top: none !important;
	border-radius: 0 0 20px 20px;
	box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0 0 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul::after {
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	min-width: 0;
	border: none !important;
	float: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	display: none !important;
	content: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto !important;
	min-height: 48px;
	padding: 10px 12px !important;
	font-size: clamp(0.84rem, 1.9vw, 0.94rem) !important;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	color: #6d624f;
	background: linear-gradient(180deg, #fff7de 0%, #f3ead2 100%);
	border: 1px solid rgba(212, 168, 22, 0.28);
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(42, 30, 7, 0.06);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus {
	color: #5f4700;
	background: linear-gradient(180deg, #fff5cf 0%, #efdfaf 100%);
	border-color: rgba(201, 157, 16, 0.55);
	transform: translateY(-1px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: #201b10;
	background: linear-gradient(180deg, #f8d94f 0%, #e6bf20 100%);
	border-color: #cea300;
	box-shadow: 0 8px 18px rgba(201, 157, 16, 0.22);
}

.woocommerce-account .woocommerce-MyAccount-content {
	padding: 18px 10px 8px !important;
	margin-top: 12px !important;
	border-top: 1px solid rgba(145, 122, 46, 0.22) !important;
	overflow-wrap: anywhere;
}

/* wallet-like pages and sections: cap huge headings/numbers */
[class*="wallet" i],
[id*="wallet" i],
[class*="balance" i],
[id*="balance" i] {
	max-width: min(100%, var(--hb-page-max));
	border-radius: var(--hb-card-radius);
}

[class*="wallet" i] h1,
[id*="wallet" i] h1,
[class*="wallet" i] h2,
[id*="wallet" i] h2,
[class*="wallet" i] h3,
[id*="wallet" i] h3 {
	font-size: clamp(1.05rem, 3.8vw, 1.55rem) !important;
	line-height: 1.3 !important;
}

[class*="wallet" i] .amount,
[class*="wallet" i] .balance,
[class*="wallet" i] [class*="total" i],
[class*="wallet" i] [class*="money" i],
[id*="wallet" i] .amount,
[id*="wallet" i] .balance {
	font-size: clamp(1.2rem, 5.4vw, 2rem) !important;
	line-height: 1.2 !important;
	word-break: break-word;
}

@media (max-width: 767px) {
	body.woocommerce-account {
		padding-top: 8px !important;
	}

	body {
		font-size: calc(14px * var(--hb-font-scale));
	}

	main,
	.site-content,
	.entry-content,
	.woocommerce,
	.woocommerce-page,
	.woocommerce-cart .woocommerce,
	.woocommerce-checkout .woocommerce,
	.woocommerce-account .woocommerce-MyAccount-content,
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woo-wallet-my-wallet-container {
		padding-bottom: 0 !important;
	}

	main,
	.entry-content,
	.woocommerce-account .woocommerce-MyAccount-content,
	.woocommerce-account .woocommerce-MyAccount-navigation {
		padding-inline: 0;
	}

	.woocommerce-account .ct-woo-account {
		width: calc(100vw - 4px) !important;
		max-width: calc(100vw - 4px) !important;
		margin: 8px auto 16px !important;
		padding: 6px 6px 10px !important;
		border-radius: 22px;
		box-sizing: border-box;
		overflow: hidden;
	}

	body.woocommerce-account .hb-account-fullbleed {
		padding-left: 2px !important;
		padding-right: 2px !important;
	}

	.woocommerce-account .ct-acount-nav,
	.woocommerce-account .woocommerce-MyAccount-content {
		min-width: 0 !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.woocommerce-account .ct-account-welcome {
		padding: 14px 14px 8px !important;
		margin-bottom: 8px !important;
		border-radius: 18px 18px 0 0;
		overflow: hidden;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		padding: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		min-height: 42px;
		padding: 8px 4px !important;
		font-size: 12px !important;
		border-radius: 14px;
	}

	.woocommerce-account .ct-account-welcome .tgauth-account-top {
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 0 !important;
	}

	.woocommerce-account .ct-account-welcome .ct-account-user-box > span {
		font-size: 12px !important;
		margin-top: 2px !important;
	}

	.woocommerce-account .ct-account-welcome .tgauth-account-name {
		font-size: 16px !important;
	}

	.woocommerce-account .ct-account-welcome .tgauth-nav-balance {
		font-size: 15px !important;
		white-space: normal !important;
		word-break: break-word;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		padding: 0 0 10px !important;
		border-radius: 0 0 18px 18px;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 14px 6px 4px !important;
		margin-top: 10px !important;
	}

	body.woocommerce-cart .ct-container,
	body.woocommerce-checkout .ct-container,
	body.woocommerce-account .ct-container,
	body.woocommerce-cart .site-content,
	body.woocommerce-checkout .site-content,
	body.woocommerce-account .site-content,
	body.woocommerce-cart .entry-content,
	body.woocommerce-checkout .entry-content,
	body.woocommerce-account .entry-content {
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Keep key action zones visible above fixed bottom nav in mini app */
	.woocommerce-cart .wc-proceed-to-checkout,
	.woocommerce-checkout #payment,
	.woocommerce-checkout .woocommerce-checkout-review-order,
	.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-content-area,
	.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-form-wrapper {
		margin-bottom: 0 !important;
		padding-bottom: 56px !important;
	}

	.woocommerce-checkout #payment #place_order,
	.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
	.woocommerce-account .woo-wallet-my-wallet-container .woo-add-to-wallet,
	.woocommerce-account .woo-wallet-my-wallet-container input[type="submit"] {
		position: relative;
		z-index: 2;
		min-height: 44px;
	}

	.woocommerce-account .woo-wallet-my-wallet-container,
	.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-content-area,
	.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-form-wrapper {
		overflow: visible !important;
	}

}

@media (max-width: 1023px) {
	body.woocommerce-account [data-sidebar],
	body.woocommerce-account [data-sidebar] > section,
	body.woocommerce-account [data-sidebar] > article,
	body.woocommerce-account .ct-container,
	body.woocommerce-account .site-content,
	body.woocommerce-account .entry-content,
	body.woocommerce-account #main,
	body.woocommerce-account main,
	body.woocommerce-account .site-main,
	body.woocommerce-account .content-area,
	body.woocommerce-account .ct-content-area,
	body.woocommerce-account .woocommerce {
		--theme-normal-container-max-width: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-inline: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* order + license tables */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table_responsive.my_account_orders,
.woocommerce-account .lmfwc-license-activations table.shop_table_responsive,
.woocommerce-account .woocommerce-table--order-details,
.woocommerce-account .woocommerce-table--order-downloads {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fffdfa;
	border: 1px solid var(--hb-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(42, 30, 7, 0.06);
	margin-bottom: 16px;
}

.woocommerce-account .woocommerce-orders-table thead th,
.woocommerce-account table.shop_table_responsive.my_account_orders thead th,
.woocommerce-account .lmfwc-license-activations table.shop_table_responsive thead th,
.woocommerce-account .woocommerce-table--order-details thead th,
.woocommerce-account .woocommerce-table--order-downloads thead th {
	background: #f4efe2;
	color: #4d4332;
	font-size: clamp(0.76rem, 2vw, 0.86rem) !important;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: none;
	white-space: nowrap;
	border-bottom: 1px solid #e5dbc0 !important;
	padding: 11px 12px !important;
}

.woocommerce-account .woocommerce-orders-table tbody td,
.woocommerce-account table.shop_table_responsive.my_account_orders tbody td,
.woocommerce-account .lmfwc-license-activations table.shop_table_responsive tbody td,
.woocommerce-account .woocommerce-table--order-details tbody td,
.woocommerce-account .woocommerce-table--order-downloads tbody td {
	font-size: clamp(0.8rem, 2.1vw, 0.9rem) !important;
	line-height: 1.45;
	color: #5d5444;
	white-space: nowrap;
	border-bottom: 1px dashed #e6dcc4 !important;
	padding: 12px !important;
	background: transparent;
}

.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
.woocommerce-account table.shop_table_responsive.my_account_orders tbody tr:last-child td,
.woocommerce-account .lmfwc-license-activations table.shop_table_responsive tbody tr:last-child td,
.woocommerce-account .woocommerce-table--order-details tbody tr:last-child td,
.woocommerce-account .woocommerce-table--order-downloads tbody tr:last-child td {
	border-bottom: none !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-number a,
.woocommerce-account .woocommerce-orders-table td a,
.woocommerce-account table.shop_table_responsive.my_account_orders td a {
	font-weight: 700;
	color: #8f6d00;
}

.woocommerce-account .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__cell-order-total,
.woocommerce-account .woocommerce-orders-table__cell-order-date,
.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account table.shop_table_responsive.my_account_orders td,
.woocommerce-account .lmfwc-license-activations table.shop_table_responsive td {
	vertical-align: middle !important;
	text-align: left !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account table.shop_table_responsive.my_account_orders .actions,
.woocommerce-account table.shop_table_responsive.my_account_orders .license-key-actions,
.woocommerce-account .lmfwc-license-activations .table-col-actions {
	min-width: 78px !important;
	white-space: nowrap !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button,
.woocommerce-account table.shop_table_responsive.my_account_orders .button,
.woocommerce-account table.shop_table_responsive.my_account_orders a.button,
.woocommerce-account .lmfwc-license-activations .button {
	min-height: 34px;
	min-width: 60px;
	padding: 6px 10px !important;
	font-size: clamp(0.78rem, 2vw, 0.88rem) !important;
	border-radius: 10px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}

.woocommerce-account .woocommerce-pagination,
.woocommerce-account nav.woocommerce-pagination,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin: 14px 0 112px !important;
	padding-bottom: 4px;
}

.woocommerce-account .woocommerce-pagination ul.page-numbers,
.woocommerce-account nav.woocommerce-pagination ul.page-numbers,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	margin: 0;
	list-style: none;
	border: 1px solid var(--hb-border);
	border-radius: 999px;
	background: #fffdfa;
	box-shadow: 0 8px 18px rgba(42, 30, 7, 0.06);
	flex-wrap: wrap;
}

.woocommerce-account .woocommerce-pagination ul.page-numbers::before,
.woocommerce-account .woocommerce-pagination ul.page-numbers::after,
.woocommerce-account nav.woocommerce-pagination ul.page-numbers::before,
.woocommerce-account nav.woocommerce-pagination ul.page-numbers::after {
	display: none !important;
}

.woocommerce-account .woocommerce-pagination .page-numbers li,
.woocommerce-account nav.woocommerce-pagination .page-numbers li {
	margin: 0;
	border: none;
}

.woocommerce-account .woocommerce-pagination .page-numbers a,
.woocommerce-account .woocommerce-pagination .page-numbers span,
.woocommerce-account nav.woocommerce-pagination .page-numbers a,
.woocommerce-account nav.woocommerce-pagination .page-numbers span {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border-radius: 999px;
	font-size: clamp(0.82rem, 2.1vw, 0.9rem);
	font-weight: 700;
	color: #625948;
	background: transparent;
	border: 1px solid transparent;
	text-decoration: none;
}

.woocommerce-account .woocommerce-pagination .page-numbers .current,
.woocommerce-account nav.woocommerce-pagination .page-numbers .current,
.woocommerce-account .woocommerce-pagination .page-numbers a:hover,
.woocommerce-account nav.woocommerce-pagination .page-numbers a:hover {
	background: linear-gradient(180deg, #f7d95a 0%, #d5ad1f 100%);
	color: #2a2418;
	border-color: rgba(145, 122, 46, 0.24);
}

@media (max-width: 767px) {
	.woocommerce-account .woocommerce-MyAccount-content {
		overflow: visible;
	}

	.woocommerce-account .woocommerce-orders-table,
	.woocommerce-account table.shop_table_responsive.my_account_orders,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive,
	.woocommerce-account .woocommerce-table--order-details,
	.woocommerce-account .woocommerce-table--order-downloads {
		display: block !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		border-radius: 14px;
	}

	.woocommerce-account .woocommerce-orders-table thead,
	.woocommerce-account table.shop_table_responsive.my_account_orders thead,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive thead,
	.woocommerce-account .woocommerce-table--order-details thead,
	.woocommerce-account .woocommerce-table--order-downloads thead {
		display: table-header-group !important;
	}

	.woocommerce-account .woocommerce-orders-table tbody,
	.woocommerce-account table.shop_table_responsive.my_account_orders tbody,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive tbody,
	.woocommerce-account .woocommerce-table--order-details tbody,
	.woocommerce-account .woocommerce-table--order-downloads tbody {
		display: table-row-group !important;
	}

	.woocommerce-account .woocommerce-orders-table tr,
	.woocommerce-account table.shop_table_responsive.my_account_orders tr,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive tr,
	.woocommerce-account .woocommerce-table--order-details tr,
	.woocommerce-account .woocommerce-table--order-downloads tr {
		display: table-row !important;
	}

	.woocommerce-account .woocommerce-orders-table th,
	.woocommerce-account .woocommerce-orders-table td,
	.woocommerce-account table.shop_table_responsive.my_account_orders th,
	.woocommerce-account table.shop_table_responsive.my_account_orders td,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive th,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive td,
	.woocommerce-account .woocommerce-table--order-details th,
	.woocommerce-account .woocommerce-table--order-details td,
	.woocommerce-account .woocommerce-table--order-downloads th,
	.woocommerce-account .woocommerce-table--order-downloads td {
		display: table-cell !important;
		width: auto !important;
		padding: 11px 10px !important;
	}

	.woocommerce-account .woocommerce-orders-table td::before,
	.woocommerce-account table.shop_table_responsive.my_account_orders td::before,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive td::before,
	.woocommerce-account .woocommerce-table--order-details td::before,
	.woocommerce-account .woocommerce-table--order-downloads td::before {
		display: none !important;
		content: none !important;
	}

	.woocommerce-account .woocommerce-orders-table,
	.woocommerce-account table.shop_table_responsive.my_account_orders,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive,
	.woocommerce-account .woocommerce-table--order-details,
	.woocommerce-account .woocommerce-table--order-downloads {
		min-width: 100%;
	}

	.woocommerce-account .woocommerce-orders-table thead th,
	.woocommerce-account .woocommerce-orders-table tbody td,
	.woocommerce-account table.shop_table_responsive.my_account_orders thead th,
	.woocommerce-account table.shop_table_responsive.my_account_orders tbody td,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive thead th,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive tbody td {
		font-size: 0.8rem !important;
	}

	.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
	.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button,
	.woocommerce-account table.shop_table_responsive.my_account_orders .button,
	.woocommerce-account table.shop_table_responsive.my_account_orders a.button,
	.woocommerce-account .lmfwc-license-activations .button {
		min-width: 56px;
		padding: 6px 8px !important;
	}

	.woocommerce-account .woocommerce-pagination,
	.woocommerce-account nav.woocommerce-pagination,
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
		margin-bottom: 118px !important;
	}

	.woocommerce-account .woocommerce-pagination ul.page-numbers,
	.woocommerce-account nav.woocommerce-pagination ul.page-numbers {
		gap: 6px;
		padding: 8px 10px;
	}

	.woocommerce-account .woocommerce-pagination .page-numbers a,
	.woocommerce-account .woocommerce-pagination .page-numbers span,
	.woocommerce-account nav.woocommerce-pagination .page-numbers a,
	.woocommerce-account nav.woocommerce-pagination .page-numbers span {
		min-width: 34px;
		height: 34px;
		padding: 0 12px;
		font-size: 0.8rem;
	}

	.woocommerce-account .woocommerce-table--order-details,
	.woocommerce-account .woocommerce-table--order-downloads,
	.woocommerce-account .woocommerce-orders-table,
	.woocommerce-account table.shop_table_responsive.my_account_orders,
	.woocommerce-account .lmfwc-license-activations table.shop_table_responsive {
		white-space: nowrap;
	}

	.woocommerce-account .woocommerce-orders-table__cell-order-actions,
	.woocommerce-account table.shop_table_responsive.my_account_orders .actions,
	.woocommerce-account table.shop_table_responsive.my_account_orders .license-key-actions,
	.woocommerce-account .lmfwc-license-activations .table-col-actions {
		position: sticky;
		right: 0;
		background: #fffdfa !important;
		box-shadow: -8px 0 12px rgba(247, 244, 236, 0.92);
	}

	.woocommerce-account .woocommerce-MyAccount-content,
	[class*="wallet" i],
	[id*="wallet" i] {
		border-radius: 12px;
	}

	.woocommerce-account .woocommerce-MyAccount-content p,
	.woocommerce-account .woocommerce-MyAccount-content li,
	.woocommerce-account .woocommerce-MyAccount-content a {
		font-size: clamp(0.84rem, 3.2vw, 0.95rem) !important;
	}

	.woocommerce-account .woocommerce-MyAccount-content h1,
	.woocommerce-account .woocommerce-MyAccount-content h2,
	.woocommerce-account .woocommerce-MyAccount-content h3 {
		font-size: clamp(1.02rem, 4.1vw, 1.35rem) !important;
	}

	.woocommerce table.shop_table,
	.woocommerce table.shop_table tbody,
	.woocommerce table.shop_table tr,
	.woocommerce table.shop_table td,
	.woocommerce table.shop_table th {
		font-size: 13px !important;
	}

	.woocommerce table.shop_table td,
	.woocommerce table.shop_table th {
		padding: 8px 6px !important;
	}
}

/* ------------------------------
   Mini App scroll hardening
------------------------------- */
@media (max-width: 767px) {
	html,
	body,
	body.woocommerce,
	body.woocommerce-page,
	body.woocommerce-cart,
	body.woocommerce-checkout,
	body.woocommerce-account {
		height: auto !important;
		min-height: 100% !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-y !important;
	}

	body.woocommerce-cart .site-content,
	body.woocommerce-checkout .site-content,
	body.woocommerce-account .site-content,
	body.woocommerce-cart .entry-content,
	body.woocommerce-checkout .entry-content,
	body.woocommerce-account .entry-content,
	body.woocommerce-cart .woocommerce,
	body.woocommerce-checkout .woocommerce,
	body.woocommerce-account .woocommerce,
	body.woocommerce-account .woo-wallet-my-wallet-container {
		overflow: visible !important;
		padding-bottom: 0 !important;
	}

	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .wc-proceed-to-checkout,
	body.woocommerce-checkout form.checkout,
	body.woocommerce-checkout #order_review,
	body.woocommerce-checkout #payment,
	body.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-content-area,
	body.woocommerce-account .woo-wallet-my-wallet-container .woo-wallet-form-wrapper {
		margin-bottom: 0 !important;
		padding-bottom: 56px !important;
	}

	body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
	body.woocommerce-checkout #payment #place_order,
	body.woocommerce-account .woo-wallet-my-wallet-container .woo-add-to-wallet,
	body.woocommerce-account .woo-wallet-my-wallet-container input[type="submit"] {
		display: block !important;
		width: 100% !important;
		min-height: 46px !important;
		margin-bottom: 0 !important;
	}
}

/* ==============================
   TG Mini App 窗口控制栏
   (展开高度 / 全屏 / 关闭)
   由 JS 在检测到 Telegram WebApp
   环境后显示；其他环境不显示。
============================== */
.hb-win-controls {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	/* display:flex 由 JS 设置 */
	flex-direction: row;
	align-items: stretch;
	background: rgba(20, 14, 6, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 0 0 0 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.hb-win-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.80);
	transition: background 0.15s, color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.hb-win-btn:hover,
.hb-win-btn:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	outline: none;
}

.hb-win-btn svg {
	width: 13px;
	height: 13px;
	pointer-events: none;
	overflow: visible;
}

/* 展开按钮：已处于最大高度时变灰 */
.hb-win-btn--expand.is-active {
	opacity: 0.35;
	cursor: default;
}

/* 全屏按钮图标切换 */
.hb-win-btn--fs .hb-icon-restore { display: none; }
.hb-win-btn--fs.is-fullscreen .hb-icon-expand { display: none; }
.hb-win-btn--fs.is-fullscreen .hb-icon-restore { display: block; }

/* 关闭按钮悬停变红 */
.hb-win-btn--close:hover,
.hb-win-btn--close:focus-visible {
	background: #c0392b !important;
	color: #fff !important;
}

/* ------------------------------
   Minimal Shop List
------------------------------- */

.tax-product_cat .hb-minishop,
.post-type-archive-product .hb-minishop,
.woocommerce-shop .hb-minishop {
	width: min(100%, 1120px);
	max-width: 1120px;
	margin: 10px auto 24px;
	padding: 14px;
	background: color-mix(in srgb, var(--hb-surface) 92%, white 8%);
	border: 1px solid rgba(145, 122, 46, 0.26);
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(22, 18, 6, 0.11);
}

/* 保留商店页顶部购物车图标（不再隐藏） */

.hb-minishop-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 2px 4px 10px;
}

.hb-minishop-title {
	margin: 0;
	font-size: clamp(1.1rem, 4.5vw, 1.45rem);
	font-weight: 800;
	color: var(--hb-ink);
	letter-spacing: 0.01em;
}

.hb-minishop-subtitle {
	margin: 0;
	font-size: clamp(0.72rem, 2.6vw, 0.86rem);
	color: var(--hb-muted);
	font-weight: 700;
}

.hb-minishop-table-wrap {
	border: 2px solid var(--hb-accent);
	border-radius: 18px;
	overflow: hidden;
	background: rgba(255, 250, 238, 0.84);
}

.hb-minishop-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.hb-col-name-width {
	width: 58%;
}

.hb-col-qty-width {
	width: 18%;
}

.hb-col-cart-width {
	width: 24%;
}

.hb-minishop-table thead th {
	padding: 12px 10px;
	text-align: left;
	font-size: clamp(0.86rem, 2.8vw, 1rem);
	font-weight: 800;
	color: var(--hb-accent-strong);
	background: rgba(255, 226, 122, 0.28);
	white-space: normal;
	word-break: break-word;
}

.hb-minishop-table tbody td {
	padding: 11px 10px;
	vertical-align: middle;
	border-top: 1px dashed rgba(145, 122, 46, 0.22);
	font-size: clamp(0.9rem, 2.8vw, 1.04rem);
	color: #6f5400;
	font-weight: 700;
}

.hb-minishop-table tbody tr:first-child td {
	border-top: none;
}

.hb-product-name a {
	color: #7a5b00;
	text-decoration: none;
	font-weight: 800;
	word-break: break-all;
	display: block;
}

.hb-product-name a:hover,
.hb-product-name a:focus-visible {
	color: #5f4700;
	text-decoration: underline;
}

.hb-col-qty,
.hb-col-cart {
	text-align: center;
}

.hb-qty-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.hb-qty-btn {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid rgba(145, 122, 46, 0.28);
	background: #fff8e1;
	color: #6d5500;
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.2s ease;
}

.hb-qty-btn:hover,
.hb-qty-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(0.97);
}

.hb-qty-input {
	width: 78px;
	height: 34px;
	padding: 2px 6px;
	border: 1px solid rgba(145, 122, 46, 0.35);
	border-radius: 10px;
	background: #fffdf7;
	font-weight: 800;
	font-size: 16px !important;
	line-height: 1.2;
	text-align: center;
	color: #5b4710 !important;
	-webkit-text-fill-color: #5b4710 !important;
	caret-color: #5b4710;
	font-variant-numeric: tabular-nums;
}

.hb-cart-btn {
	width: 56px;
	height: 56px;
	border: none !important;
	border-radius: 12px;
	background: transparent !important;
	color: #dbb522 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: none !important;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.hb-cart-btn svg {
	width: 36px;
	height: 36px;
	fill: none !important;
	stroke: #dbb522 !important;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hb-cart-btn svg * {
	fill: none !important;
	stroke: #dbb522 !important;
}

.hb-cart-btn:hover,
.hb-cart-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(0.95);
}

.hb-cart-btn.is-added {
	color: #a07a00;
}

.hb-out-stock {
	font-size: 0.84rem;
	font-weight: 700;
	color: #8a8070;
}

.hb-minishop-pagination {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}

.hb-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	min-width: 88px;
	padding: 0 12px;
	border-radius: 11px;
	border: 1px solid rgba(145, 122, 46, 0.34);
	background: #fff7da;
	text-decoration: none;
	color: #7a5b00;
	font-size: 0.92rem;
	font-weight: 800;
}

.hb-page-link.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.hb-minishop-empty {
	padding: 22px 10px;
	text-align: center;
	color: var(--hb-muted);
	font-weight: 700;
}

.hb-floating-cart {
	position: fixed;
	right: 14px;
	bottom: calc(var(--hb-nav-space) + 12px);
	z-index: 130;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	border: none;
	background: transparent;
	color: #dbb522;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	/* 🔥 跟随导航栏隐藏 */
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease, opacity 0.25s ease;
	will-change: transform, opacity;
}

html.hb-nav--hidden .hb-floating-cart {
	opacity: 0 !important;
	pointer-events: none;
}

.hb-floating-cart:hover,
.hb-floating-cart:focus-visible {
	transform: translateY(-1px);
	filter: brightness(0.96);
}

.hb-floating-cart-icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hb-floating-cart-icon svg * {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hb-floating-cart-badge {
	position: absolute;
	right: -7px;
	top: -8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hb-floating-cart-badge.is-empty {
	background: #878277;
	color: #f7f4ec;
}

.hb-minishop-bottom-space {
	/* 🔥 确保底部空间足够，不被导航栏遮挡 */
	height: var(--hb-nav-space);
}

/* 🔥 商店容器全宽：< 1024px 全部统一处理，彻底清除 Blocksy 容器边距 */
@media (max-width: 1023px) {
	.post-type-archive-product .ct-container,
	.tax-product_cat .ct-container,
	.woocommerce-shop .ct-container,
	.post-type-archive-product .site-content,
	.tax-product_cat .site-content,
	.woocommerce-shop .site-content,
	.post-type-archive-product .entry-content,
	.tax-product_cat .entry-content,
	.woocommerce-shop .entry-content,
	.post-type-archive-product #main,
	.tax-product_cat #main,
	.woocommerce-shop #main,
	.post-type-archive-product main,
	.tax-product_cat main,
	.woocommerce-shop main {
		/* 覆盖 Blocksy 动态 CSS 变量 + 所有 padding 写法 */
		--theme-normal-container-max-width: 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-inline: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-inline: 0 !important;
	}

	/* 商品卡片直接使用 100vw 宽，绕过父容器任何残余边距 */
	.hb-minishop {
		width: calc(100vw - 16px) !important;
		max-width: none !important;
		margin: 14px auto 16px !important;
		padding: 10px 8px;
		border-radius: 20px;
		box-sizing: border-box;
	}

	.hb-minishop-table-wrap {
		overflow: hidden;
	}

	.hb-minishop-table {
		min-width: 0;
	}
}

.hb-account-wallet-head {
	background: #f7f4ec;
	border: 1px solid #d7ccad;
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 12px;
	box-shadow: 0 6px 18px rgba(42, 30, 7, 0.08);
}

.hb-account-wallet-row1 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.hb-account-name {
	font-size: clamp(1rem, 3.2vw, 1.2rem);
	font-weight: 700;
	color: #4d4333;
}

.hb-account-balance {
	font-size: clamp(0.9rem, 2.7vw, 1.02rem);
	font-weight: 700;
	color: #2a2418;
	white-space: nowrap;
}

.hb-account-wallet-row2 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: clamp(0.86rem, 2.5vw, 0.95rem);
	color: #5f5647;
}

.hb-account-wallet-row2 a {
	color: #5f5647;
	text-decoration: none;
	font-weight: 700;
}

.hb-account-wallet-row2 a:hover,
.hb-account-wallet-row2 a:focus-visible {
	color: #8f6f00;
}

@media (max-width: 480px) {
	.hb-top-bar {
		padding: 5px 6px;
		gap: 4px;
	}

	.hb-top-nav-item {
		padding: 0 6px;
		font-size: 10.8px;
	}

	.hb-account-wallet-row1 {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* 极窄屏下进一步缩小字号和按钮 */
@media (max-width: 480px) {
	.hb-col-name-width {
		width: 44%;
	}

	.hb-col-qty-width {
		width: 28%;
	}

	.hb-col-cart-width {
		width: 28%;
	}

	.hb-minishop-table thead th,
	.hb-minishop-table tbody td {
		padding: 9px 4px;
		font-size: 13px;
	}

	.hb-minishop-table thead th {
		line-height: 1.2;
	}

	.hb-fixed-qty {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.hb-cart-btn {
		width: 50px;
		height: 50px;
		border-radius: 10px;
	}

	.hb-cart-btn svg {
		width: 32px;
		height: 32px;
	}

	.hb-minishop-pagination {
		gap: 8px;
	}

	.hb-page-link {
		min-width: 74px;
		height: 30px;
		padding: 0 8px;
		font-size: 12px;
	}

	.hb-floating-cart {
		width: 46px;
		height: 46px;
		right: 10px;
		bottom: calc(var(--hb-nav-space) + 10px);
		border-radius: 14px;
	}

	.hb-floating-cart-icon svg {
		width: 22px;
		height: 22px;
	}

	.hb-floating-cart-badge {
		min-width: 18px;
		height: 18px;
		line-height: 18px;
		font-size: 10px;
		right: -6px;
		top: -7px;
	}
}

@media (min-width: 1024px) {
	.hb-floating-cart {
		right: 22px;
		bottom: 20px;
	}

	.hb-minishop-bottom-space {
		height: 1.4em;
	}
}

/* ------------------------------
   Force overrides for TG WebView
------------------------------- */
body .hb-top-strip .hb-top-item-label {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

body .hb-top-strip .hb-top-item-value,
body .hb-top-strip .hb-top-item-value .woocommerce-Price-amount,
body .hb-top-strip .hb-top-item-value .woocommerce-Price-amount bdi,
body .hb-top-strip .hb-top-item-value .woocommerce-Price-currencySymbol {
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}

body .hb-minishop .hb-col-qty .hb-qty-input {
	width: 64px !important;
	min-width: 64px !important;
	height: 30px !important;
	padding: 0 2px !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em;
	text-align: center !important;
}

@media (max-width: 480px) {
	body .hb-minishop .hb-col-qty .hb-qty-input {
		width: 62px !important;
		min-width: 62px !important;
		height: 29px !important;
		font-size: 16px !important;
	}
}

/* ------------------------------
   Typography normalization (mobile/miniapp)
------------------------------- */
@media (max-width: 1023px) {
	body,
	body .entry-content,
	body .woocommerce,
	body .woocommerce-page,
	body .woo-wallet-my-wallet-container {
		font-size: 15px !important;
		line-height: 1.5;
	}

	body .entry-content p,
	body .entry-content li,
	body .woocommerce p,
	body .woocommerce li,
	body .woo-wallet-my-wallet-container p,
	body .woo-wallet-my-wallet-container li,
	body .woo-wallet-my-wallet-container label,
	body .woo-wallet-my-wallet-container input,
	body .woo-wallet-my-wallet-container button,
	body .woo-wallet-my-wallet-container a {
		font-size: 15px !important;
	}

	body .hb-app-nav-item,
	body .hb-app-nav-item .hb-label {
		font-size: 12px !important;
		font-weight: 800 !important;
	}

	body .hb-top-strip .hb-top-item-label,
	body .hb-top-strip .hb-top-item-value,
	body .hb-top-strip .hb-top-item-value .woocommerce-Price-amount,
	body .hb-top-strip .hb-top-item-value .woocommerce-Price-amount bdi,
	body .hb-top-strip .hb-top-item-value .woocommerce-Price-currencySymbol {
		font-size: 13px !important;
		font-weight: 800 !important;
		line-height: 1 !important;
	}
}