:root {
	--brand-shell-border: #ececec;
	--brand-shell-text: #111827;
	--brand-shell-muted: #6b7280;
	--brand-shell-footer-bg: #111827;
	--brand-shell-footer-text: #d1d5db;
	--brand-shell-footer-rich-bg: #f7f7f7;
	--brand-shell-footer-rich-feature-bg: #ffffff;
	--brand-shell-footer-subscribe-btn: #006ba4;

	/* Header search (override in child theme for pill shape, accent icon, etc.) */
	--brand-shell-search-width: 272px;
	--brand-shell-search-height: 42px;
	--brand-shell-search-border: 1px solid #d1d5db;
	--brand-shell-search-radius: 6px;
	--brand-shell-search-bg: #ffffff;
	--brand-shell-search-color: #111827;
	--brand-shell-search-placeholder: #6b7280;
	--brand-shell-search-icon-color: #111827;
	--brand-shell-search-icon-size: 18px;
	--brand-shell-search-padding-left: 14px;
	--brand-shell-search-padding-right: 40px;

	/* Single product title (Minimog-style token; default 400) */
	--brand-shell-typography-product-title-font-weight: 400;

	/* Primary typeface (Google Fonts: Jost) */
	--brand-shell-font-family: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Quantity / body tokens (Minimog-style names mapped for product form) */
	--brand-shell-qty-control-size: 44px;
	--brand-shell-typography-body-font-weight: 400;
	--brand-shell-color-heading: #111827;
}

body,
button,
input,
select,
textarea {
	font-family: var(--brand-shell-font-family);
}
table.variations .reset_variations {
    margin: 0px 0px 0px 10px;
}
.brand-shell-page .col-full {
	max-width: 1240px;
}

/* Header shell */
.brand-shell-masthead.site-header {
	background: #fff;
	border-bottom: 1px solid var(--brand-shell-border);
	padding: 10px 0;
	/* Storefront: .home… / .no-wc-breadcrumb .site-header { margin-bottom: ~4.24em } — not wanted */
	margin-bottom: 0 !important;
}

.brand-shell-header-inner {
	display: grid;
	align-items: center;
	gap: 22px;
}

/*
 * Storefront .col-full uses ::before/::after clearfix. Those pseudo-elements count as
 * extra grid items here (same element has col-full + grid), which auto-place before/after
 * real children and push logo/nav/actions onto the wrong rows.
 */
.brand-shell-masthead .col-full.brand-shell-header-inner::before,
.brand-shell-masthead .col-full.brand-shell-header-inner::after {
	content: none;
	display: none;
}

/* Presets: three-column row (default Customizer layouts) */
.brand-shell-header-layout--three_col .brand-shell-header-inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

/*
 * Centered nav: balanced left/right tracks so the nav sits in a true center column.
 * (auto 1fr auto puts nav in a wide middle cell and can push the actions column to row 2 when space is tight.)
 */
.brand-shell-header-layout--three_col_centered .brand-shell-header-inner {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-rows: auto;
}

.brand-shell-header-layout--three_col .brand-shell-nav,
.brand-shell-header-layout--three_col_centered .brand-shell-nav,
.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
	min-width: 0;
}

/* DOM order: branding → nav → actions; grid places nav | logo | actions */
.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-branding {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	min-width: 0;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-actions {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	flex-wrap: nowrap;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav > ul {
	justify-content: flex-start;
}

.brand-shell-header-layout--three_col_centered .brand-shell-branding {
	justify-self: start;
	min-width: 0;
}

.brand-shell-header-layout--three_col_centered .brand-shell-nav {
	justify-self: center;
}

.brand-shell-header-layout--three_col_centered .brand-shell-header-actions {
	justify-self: end;
	flex-wrap: nowrap;
}

.brand-shell-header-layout--three_col_centered .brand-shell-nav > ul {
	justify-content: center;
}

.brand-shell-header-layout--three_col .brand-shell-nav > ul {
	justify-content: flex-start;
}

/* Stacked: logo + actions row, full-width nav below (DOM stays brand → nav → actions) */
.brand-shell-header-layout--stacked .brand-shell-header-inner {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 22px;
	row-gap: 12px;
}

.brand-shell-header-layout--stacked .brand-shell-branding {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.brand-shell-header-layout--stacked .brand-shell-header-actions {
	grid-column: 2;
	grid-row: 1;
}

.brand-shell-header-layout--stacked .brand-shell-nav {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
}

.brand-shell-header-layout--stacked .brand-shell-nav > ul {
	justify-content: center;
	flex-wrap: wrap;
}

.brand-shell-logo {
	display: inline-flex;
	align-items: center;
	color: var(--brand-shell-text);
}

.brand-shell-logo .custom-logo-link {
	display: inline-flex;
}

.brand-shell-logo .custom-logo {
	max-height: 44px;
	width: auto;
}

.brand-shell-logo-text {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.2px;
}

.brand-shell-nav {
	/* Width comes from grid tracks; min-width avoids overflow in middle column */
	min-width: 0;
}

.brand-shell-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex !important;
	align-items: center;
	flex-direction: row !important;
	gap: 18px;
}

.brand-shell-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.brand-shell-nav > ul > li {
	position: relative;
}

.brand-shell-nav a {
    font-family: Jost;
	display: inline-block;
	color: var(--brand-shell-text);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1px;
	line-height: 22px;
}

@media (min-width: 768px) {
	.brand-shell-nav .sub-menu {
		list-style: none;
		margin: 0;
		padding: 8px 0;
		position: absolute;
		left: 0;
		top: 100%;
		min-width: 200px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border: 1px solid var(--brand-shell-border);
		border-radius: 8px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
		z-index: 10030;
	}

	.brand-shell-nav .sub-menu .sub-menu {
		left: 100%;
		top: 0;
	}

	.brand-shell-nav li:hover > .sub-menu,
	.brand-shell-nav li:focus-within > .sub-menu {
		display: flex;
	}

	.brand-shell-nav .sub-menu a {
		display: block;
		padding: 10px 14px;
		font-size: 13px;
		font-weight: 600;
		white-space: nowrap;
	}

	.brand-shell-nav .sub-menu li {
		width: 100%;
	}

	/* 桌面端由 hover 控制子菜单，不需要 JS 注入的展开按钮 */
	.brand-shell-submenu-toggle {
		display: none !important;
	}
}

.brand-shell-header-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
}

.brand-shell-search-block {
	display: inline-flex;
	align-items: center;
	position: relative;
}

@media (min-width: 768px) {
	.brand-shell-search-toggle {
		display: none !important;
	}

	.brand-shell-search-close {
		display: none !important;
	}

	.brand-shell-search-panel {
		position: static;
		display: block;
		width: auto;
		height: auto;
		background: transparent;
		padding: 0;
		margin: 0;
		overflow: visible;
	}

	.brand-shell-search-panel-inner {
		position: static;
		padding: 0;
		margin: 0;
		background: transparent;
		box-shadow: none;
		border-radius: 0;
		max-width: none;
	}
}

.brand-shell-search-form {
	position: relative;
	margin: 0;
	display: inline-flex;
	align-items: center;
}

/*
 * Specificity beats Storefront `input[type=search]` (#f2f2f2 background).
 */
.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input {
	width: var(--brand-shell-search-width);
	height: var(--brand-shell-search-height);
	border: var(--brand-shell-search-border);
	border-radius: var(--brand-shell-search-radius);
	padding: 0 var(--brand-shell-search-padding-right) 0 var(--brand-shell-search-padding-left);
	font-size: 13px;
	color: var(--brand-shell-search-color);
	background-color: var(--brand-shell-search-bg);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input:focus {
	background-color: var(--brand-shell-search-bg);
	color: var(--brand-shell-search-color);
}

.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input::placeholder {
	color: var(--brand-shell-search-placeholder);
}

.brand-shell-search-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: max(22px, var(--brand-shell-search-icon-size));
	height: max(22px, var(--brand-shell-search-icon-size));
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-shell-search-icon-color);
}

.brand-shell-search-btn svg {
	width: var(--brand-shell-search-icon-size);
	height: var(--brand-shell-search-icon-size);
	fill: currentColor;
}

.brand-shell-search-form button[type='submit'] {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
}

.brand-shell-account-link,
.brand-shell-cart-link {
	position: relative;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-shell-text);
}

.brand-shell-account-link svg,
.brand-shell-cart-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.brand-shell-cart-count {
	position: absolute;
	top: -7px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	font-weight: 700;
	text-align: center;
}

/* Main content shell */
.brand-shell-content-inner {
	padding-top: 28px;
	padding-bottom: 40px;
}

/* Default: main column uses full row when parent is flex (e.g. block / theme wrappers). */
.brand-shell-page #primary {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Default no sidebar: hide #secondary if a plugin still hooks into storefront_sidebar */
.brand-shell-no-sidebar #secondary.widget-area {
	display: none !important;
}

/* Front page only: hide breadcrumb strip (e.g. Home / Tienda). `home` is WP body class on is_front_page(). */
body.home .feature-header {
	display: none !important;
}

/* Fallback: static front page title bar if anything still prints .entry-header (plugins/blocks). */
body.home.page .site-main .hentry > .entry-header:first-of-type {
	display: none !important;
}

.brand-shell-banner {
	min-height: 420px;
	border-radius: 10px;
	background: linear-gradient(120deg, #fb7185 0%, #f43f5e 35%, #e11d48 100%);
	display: flex;
	align-items: center;
	padding: 56px;
	color: #fff;
}

.brand-shell-banner-content {
	max-width: 620px;
}

.brand-shell-banner h1 {
	margin: 0 0 14px;
	font-size: 48px;
	line-height: 1.15;
	color: #fff;
}

.brand-shell-banner p {
	margin: 0 0 24px;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.92);
}

.brand-shell-banner-btn {
	display: inline-block;
	background: #fff;
	color: #e11d48;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 700;
}

.brand-shell-new-products {
	padding-top: 40px;
}

.brand-shell-new-products h2 {
	font-size: 28px;
	margin: 0 0 20px;
}

/* Footer shell — Classic & Minimal：深色底栏 */
.brand-shell-footer.brand-shell-footer--classic.site-footer,
.brand-shell-footer.brand-shell-footer--minimal.site-footer,
.brand-shell-footer-layout--classic .brand-shell-footer.site-footer,
.brand-shell-footer-layout--minimal .brand-shell-footer.site-footer {
	background: var(--brand-shell-footer-bg);
	color: var(--brand-shell-footer-text);
	padding: 38px 0 24px;
}

/*
 * Storefront Customizer 会输出 .site-footer a:not(.button):not(.components-button){ color: footer_link_color }
 *（常为深灰），优先级高于子主题里仅含 .brand-shell-footer-links a 的规则，导致黑底黑字。此处用相同 :not() + 更高类名权重覆盖。
 */
.brand-shell-footer.site-footer .brand-shell-footer-links a:not(.button):not(.components-button) {
	color: #cbd5e1;
}

.brand-shell-footer.site-footer .brand-shell-footer-links a:not(.button):not(.components-button):hover {
	color: #fff;
}

.brand-shell-footer.brand-shell-footer--minimal.site-footer .brand-shell-footer-nav-minimal a:not(.button):not(.components-button) {
	color: #e5e7eb;
}

.brand-shell-footer.brand-shell-footer--minimal.site-footer .brand-shell-footer-nav-minimal a:not(.button):not(.components-button):hover {
	color: #fff;
}

.brand-shell-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 16px;
}

.brand-shell-footer-links a {
	color: #cbd5e1;
	font-size: 14px;
}

.brand-shell-footer-links a:hover {
	color: #fff;
}

.brand-shell-footer-bottom {
	border-top: 1px solid #374151;
	padding-top: 14px;
	font-size: 13px;
	color: #9ca3af;
}

/* Minimal：居中、紧凑 */
.brand-shell-footer--minimal .brand-shell-footer-minimal-inner,
.brand-shell-footer-layout--minimal .brand-shell-footer-minimal-inner {
	text-align: center;
	max-width: 960px;
	margin: 0 auto;
}

.brand-shell-footer-nav-minimal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 14px;
	padding: 0;
}

.brand-shell-footer-nav-minimal a {
	color: #e5e7eb;
	font-size: 13px;
	text-decoration: none;
}

.brand-shell-footer-nav-minimal a:hover {
	color: #fff;
	text-decoration: underline;
}

.brand-shell-footer-minimal-copy {
	margin: 0;
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.5;
}

/* Rich：浅色多段（顶栏四格 + 四列 + 底条） */
.brand-shell-footer.brand-shell-footer--rich.site-footer,
.brand-shell-footer-layout--rich .brand-shell-footer.site-footer {
	background: transparent;
	color: #111827;
	padding: 0;
}

.brand-shell-footer-rich {
	width: 100%;
}

/*
 * Rich 区块内 .col-full 与 grid 叠在同一元素上；Storefront .col-full 的 clearfix 伪元素
 * 会计入 grid，出现「前三格 + 伪元素占行、第四格换行」等错乱（与头部相同机理）。
 */
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-features-inner::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-features-inner::after,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-columns::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-columns::after,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-bar::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-bar::after {
	content: none;
	display: none;
}

.brand-shell-footer-rich-features {
	background: var(--brand-shell-footer-rich-feature-bg);
	padding: 36px 0 32px;
	border-top: 1px solid var(--brand-shell-border);
}

.brand-shell-footer-rich-features-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 32px;
	align-items: start;
}

.brand-shell-footer-feature {
	text-align: center;
}

.brand-shell-footer-feature-icon {
	display: flex;
	justify-content: center;
	color: #111827;
	margin-bottom: 10px;
}

.brand-shell-footer-feature-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.brand-shell-footer-feature-text {
	margin: 0;
	font-size: 13px;
	color: var(--brand-shell-muted);
	line-height: 1.45;
}

.brand-shell-footer-rich-columns-wrap {
	background: var(--brand-shell-footer-rich-bg);
	padding: 40px 0 36px;
}

.brand-shell-footer-rich-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
}

.brand-shell-footer-rich-col {
	padding-right: 20px;
	border-right: 1px solid #e5e7eb;
	min-width: 0;
}

.brand-shell-footer-rich-col:last-child {
	border-right: none;
	padding-right: 0;
}

.brand-shell-footer-rich-heading {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.brand-shell-footer-rich-email {
	margin: 0;
	font-size: 14px;
}

.brand-shell-footer-rich-email a {
	color: #111827;
	text-decoration: underline;
}

.brand-shell-footer-rich-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-shell-footer-rich-list li {
	margin: 0 0 10px;
}

.brand-shell-footer-rich-list a {
	color: #374151;
	font-size: 14px;
	text-decoration: none;
}

.brand-shell-footer-rich-list a:hover {
	text-decoration: underline;
	color: #111827;
}

.brand-shell-footer-rich-subscribe-intro {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--brand-shell-muted);
}

.brand-shell-footer-subscribe-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 100%;
}

.brand-shell-footer-subscribe-form input[type="email"] {
	width: 100%;
	max-width: 280px;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #111827;
}

.brand-shell-footer-subscribe-btn {
	align-self: flex-start;
	padding: 10px 22px;
	border: none;
	border-radius: 4px;
	background: var(--brand-shell-footer-subscribe-btn);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.brand-shell-footer-subscribe-btn:hover {
	filter: brightness(1.06);
}

.brand-shell-footer-rich-bar-wrap {
	background: var(--brand-shell-footer-rich-bg);
	padding: 0 0 28px;
	border-top: 1px solid #e5e7eb;
}

.brand-shell-footer-rich-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-top: 20px;
}

.brand-shell-footer-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	justify-self: start;
}

.brand-shell-footer-pay-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.brand-shell-footer-pay-icon img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 56px;
	object-fit: contain;
}

.brand-shell-footer-rich-copyright {
	margin: 0;
	justify-self: center;
	grid-column: 2;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.brand-shell-footer-rich-bar-spacer {
	grid-column: 3;
}

@media (max-width: 1024px) {
	.brand-shell-footer-rich-features-inner,
	.brand-shell-footer-rich-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-shell-footer-rich-col {
		border-right: none;
		padding-right: 0;
		border-bottom: 1px solid #e5e7eb;
		padding-bottom: 20px;
		margin-bottom: 8px;
	}

	.brand-shell-footer-rich-col:nth-child(2n) {
		padding-left: 16px;
	}

	.brand-shell-footer-rich-bar {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.brand-shell-footer-payments {
		justify-self: center;
		justify-content: center;
	}

	.brand-shell-footer-rich-copyright {
		grid-column: 1;
	}

	.brand-shell-footer-rich-bar-spacer {
		display: none;
	}
}

@media (max-width: 600px) {
	.brand-shell-footer-rich-features-inner,
	.brand-shell-footer-rich-columns {
		grid-template-columns: 1fr;
	}

	.brand-shell-footer-rich-col:nth-child(2n) {
		padding-left: 0;
	}
}

@media (max-width: 1024px) {
	.brand-shell-header-layout--three_col .brand-shell-header-inner,
	.brand-shell-header-layout--three_col_centered .brand-shell-header-inner,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.brand-shell-header-layout--nav_left_logo_center .brand-shell-branding,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-actions {
		grid-column: auto;
		grid-row: auto;
		justify-self: stretch;
	}

	.brand-shell-header-layout--three_col .brand-shell-nav,
	.brand-shell-header-layout--three_col_centered .brand-shell-nav,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
		width: 100%;
	}

	.brand-shell-header-layout--stacked .brand-shell-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 16px;
		row-gap: 10px;
	}

	.brand-shell-header-layout--stacked .brand-shell-branding {
		grid-column: 1;
		grid-row: 1;
	}

	.brand-shell-header-layout--stacked .brand-shell-header-actions {
		grid-column: 2;
		grid-row: 1;
	}

	.brand-shell-header-layout--stacked .brand-shell-nav {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.brand-shell-nav {
		width: 100%;
	}

	.brand-shell-nav > ul {
		gap: 16px;
		flex-wrap: wrap;
	}

	.brand-shell-nav a {
		font-size: 13px;
	}

	.brand-shell-search-input {
		--brand-shell-search-width: 220px;
	}
}

@media (max-width: 768px) {
	.brand-shell-logo .custom-logo {
		max-height: 36px;
	}

	.brand-shell-logo-text {
		font-size: 26px;
	}

	.brand-shell-search-input {
		--brand-shell-search-width: 180px;
		--brand-shell-search-height: 38px;
	}

	.brand-shell-header-actions {
		justify-content: flex-start;
	}

	.brand-shell-banner {
		min-height: 300px;
		padding: 32px;
	}

	.brand-shell-banner h1 {
		font-size: 34px;
	}

	.brand-shell-banner p {
		font-size: 16px;
	}
}

/* -------------------------------------------------------------------------
 * 移动端：汉堡菜单 + 折叠主导航（≤767px，覆盖上方 1024px 单列堆叠）
 * ------------------------------------------------------------------------- */
.brand-shell-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--brand-shell-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	color: var(--brand-shell-text);
}

.brand-shell-menu-toggle-bars,
.brand-shell-menu-toggle-bars::before,
.brand-shell-menu-toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	position: relative;
}

.brand-shell-menu-toggle-bars::before,
.brand-shell-menu-toggle-bars::after {
	content: '';
	position: absolute;
	left: 0;
}

.brand-shell-menu-toggle-bars::before {
	top: -6px;
}

.brand-shell-menu-toggle-bars::after {
	top: 6px;
}

.brand-shell-masthead.is-menu-open .brand-shell-menu-toggle {
	border-color: #111827;
}

.brand-shell-menu-close,
.brand-shell-menu-overlay {
	display: none;
}

body.brand-shell-menu-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.brand-shell-menu-toggle {
		display: inline-flex;
	}

	.brand-shell-masthead .col-full.brand-shell-header-inner {
		/* 左右等宽 1fr，中间 logo 为 auto —— 视觉居中；两侧仍为左汉堡 / 右操作区 */
		grid-template-columns: 1fr auto 1fr !important;
		grid-template-rows: auto !important;
		align-items: center;
		column-gap: 10px;
		row-gap: 0;
	}

	.brand-shell-branding {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		text-align: center;
		min-width: 0;
	}

	.brand-shell-menu-toggle {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.brand-shell-header-actions {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		flex-wrap: nowrap;
	}

	.brand-shell-search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		color: var(--brand-shell-text);
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.brand-shell-search-toggle svg {
		width: 20px;
		height: 20px;
		fill: currentColor;
	}

	.brand-shell-search-panel {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 10020;
		align-items: flex-start;
		justify-content: center;
		padding: 16px;
		padding-top: max(16px, env(safe-area-inset-top));
		background: rgba(0, 0, 0, 0.45);
		box-sizing: border-box;
		overflow-y: auto;
	}

	.brand-shell-masthead.is-search-open .brand-shell-search-panel {
		display: flex;
	}

	.brand-shell-search-panel-inner {
		position: relative;
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
		padding: 48px 16px 16px;
		background: #fff;
		border-radius: 10px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	}

	.brand-shell-search-close {
		position: absolute;
		top: 4px;
		right: 4px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		font-size: 28px;
		line-height: 1;
		color: #374151;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		-webkit-appearance: none;
		appearance: none;
	}

	.brand-shell-search-panel-inner .brand-shell-search-form {
		width: 100%;
	}

	.brand-shell-search-panel-inner .brand-shell-search-input {
		--brand-shell-search-width: 100%;
		max-width: 100%;
	}

	body.brand-shell-search-open {
		overflow: hidden;
	}

	.brand-shell-nav {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 10010;
		width: 70vw !important;
		max-width: 70vw !important;
		height: 100dvh;
		background: #fff !important;
		box-shadow: none;
		border-right: 1px solid #ececec;
		transform: translateX(-100%);
		transition: transform 0.28s ease;
		overflow-y: auto;
		pointer-events: none;
	}

	.brand-shell-menu-close {
		display: none;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		z-index: 1;
		width: 100%;
		height: 52px;
		border: 0;
		background: #7c1d1d;
		color: #fff;
		font-size: 32px;
		line-height: 1;
		cursor: pointer;
	}

	.brand-shell-nav ul {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start;
		flex-wrap: nowrap !important;
		gap: 0;
		padding: 8px 0 14px;
		margin: 0;
	}

	.brand-shell-nav li {
		display: block;
		width: 100%;
		border-bottom: 0;
	}

	/* 有子菜单：一行里链接 + 展开按钮；子级默认隐藏，.is-submenu-open 时展开 */
	.brand-shell-nav li.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.brand-shell-nav li.menu-item-has-children > a {
		flex: 1 1 auto;
		min-width: 0;
		align-self: center;
	}

	.brand-shell-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 44px;
		width: 44px;
		min-height: 44px;
		padding: 0;
		margin: 0;
		border: 0;
		background: transparent;
		color: var(--brand-shell-text);
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
		align-self: center;
	}

	.brand-shell-submenu-toggle-icon {
		display: flex;
		transition: transform 0.2s ease;
	}

	.brand-shell-nav li.is-submenu-open > .brand-shell-submenu-toggle .brand-shell-submenu-toggle-icon {
		transform: rotate(180deg);
	}

	.brand-shell-nav .sub-menu {
		position: static;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 8px;
		margin: 0;
		width: 100%;
		flex-basis: 100%;
		display: none !important;
	}

	.brand-shell-nav li.is-submenu-open > .sub-menu {
		display: block !important;
	}

	.brand-shell-nav a {
		display: block;
		padding: 14px 18px;
		font-size: 15px;
		line-height: 1.35;
	}

	.brand-shell-nav .sub-menu a {
		padding: 10px 18px 10px 24px;
		font-size: 14px;
		font-weight: 500;
	}

	.brand-shell-menu-overlay {
		display: block;
		position: fixed;
		inset: 0 0 0 70vw;
		z-index: 10000;
		border: 0;
		background: rgba(0, 0, 0, 0.4) !important;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.brand-shell-masthead.is-menu-open .brand-shell-nav {
		transform: translateX(0);
		pointer-events: auto;
	}

	.brand-shell-masthead.is-menu-open .brand-shell-menu-overlay {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.brand-shell-masthead.is-menu-open .brand-shell-menu-close {
		display: inline-flex;
	}
}

/* -------------------------------------------------------------------------
 * WooCommerce：单品页标题 / 变体标签 / 下拉圆角 / Buy Now + 加入购物车样式
 * ------------------------------------------------------------------------- */
body.woocommerce.single-product div.product .product_title,
body.woocommerce.single-product div.product .entry-title {
	font-size: 30px;
	font-weight: var(--brand-shell-typography-product-title-font-weight);
	line-height: 1.54;
	margin: 0;
	text-transform: capitalize;
}

/* 单品页价格 */
body.woocommerce.single-product div.product p.price,
body.woocommerce.single-product div.product span.price,
body.woocommerce.single-product div.product .woocommerce-variation-price,
body.woocommerce.single-product div.product .woocommerce-variation-price .price {
	color: #000;
}

body.woocommerce.single-product div.product .price .woocommerce-Price-amount,
body.woocommerce.single-product div.product .woocommerce-variation-price .woocommerce-Price-amount {
	color: #000;
}

/* 变体行：属性名与选框同一行，并去掉 Storefront 默认的错位样式。 */
body.woocommerce.single-product div.product table.variations,
body.woocommerce.single-product div.product table.variations tbody {
	--brand-shell-variation-row-height: 46px;
	--brand-shell-pdp-attr-select-max-width: 380px;
	display: block;
	width: 100%;
}

body.woocommerce.single-product div.product table.variations tr {
	display: grid;
	grid-template-columns: var(--brand-shell-pdp-attr-label-width, 90px) minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

body.woocommerce.single-product div.product table.variations th,
body.woocommerce.single-product div.product table.variations td {
	display: block;
	padding: 0;
	list-style: none;
	background-color: transparent;
}

body.woocommerce.single-product div.product table.variations th.label {
	width: var(--brand-shell-pdp-attr-label-width, 90px);
	min-width: var(--brand-shell-pdp-attr-label-width, 90px);
	white-space: nowrap;
	display: flex;
	align-items: center;
	min-height: var(--brand-shell-variation-row-height);
	font-weight: 500;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product table.variations td.value {
	width: 100%;
	min-width: 0;
	margin-bottom: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product table.variations td.value::before,
body.woocommerce.single-product div.product table.variations td.value::after {
	content: none !important;
	display: none !important;
}

body.woocommerce.single-product table.variations th.label label,
body.woocommerce.single-product table.variations td.label label,
body.woocommerce.single-product form.variations_form .variations label {
	display: block;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	color: var(--brand-shell-text);
	text-transform: capitalize;
}

/* 购物车表单 select（简单商品等；变体行下条规则覆盖） */
body.woocommerce.single-product div.product form.cart select {
	border-radius: 12px;
	padding: 10px 36px 10px 14px;
	border: 1px solid #d1d5db;
	min-height: 44px;
	background-color: #fff;
	box-sizing: border-box;
}

/* 变体下拉：与参考样式一致 */
body.woocommerce.single-product div.product form.cart .variations select {
	margin-right: 0;
	background-position: center right 13px;
	padding: 3px 34px 3px 13px;
	min-width: 0;
	width: auto;
	max-width: min(100%, var(--brand-shell-pdp-attr-select-max-width, 380px));
	border-radius: 5px;
	border: 1px solid #d1d5db;
	min-height: var(--brand-shell-variation-row-height, 46px);
	background-color: #fff;
	box-sizing: border-box;
}

/* 数量：可见 “Quantity” 标签 + 输入区样式 */
body.woocommerce.single-product div.product form.cart .quantity {
	--size: var(--brand-shell-qty-control-size);
	margin-right: 12px;
	margin-left: 0 !important;
	margin-bottom: 0;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 36px;
	align-items: center;
	column-gap: 0;
	row-gap: 10px;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

body.woocommerce.single-product div.product form.cart .quantity .brand-shell-qty-label {
	display: block;
	grid-column: 1 / -1;
	font-weight: 500;
	color: var(--brand-shell-text);
	line-height: 1.2;
	background: transparent;
	border: 0;
	padding: 0;
}

body.woocommerce.single-product div.product form.cart .quantity input.qty {
	padding: 0;
	width: 100%;
	min-width: 3.631em;
	min-height: var(--size);
	background-color: #f1f1f1;
	border-color: #f1f1f1;
	text-align: center;
	font-size: 16px;
	line-height: 1;
	font-weight: var(--brand-shell-typography-body-font-weight);
	color: var(--brand-shell-color-heading);
	appearance: textfield;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* 简单商品：数量（标签在上）与「加入购物车」同一行 */
body.woocommerce.single-product div.product form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

body.woocommerce.single-product div.product form.cart:not(.variations_form) .quantity {
	margin-right: 0;
}

body.woocommerce.single-product div.product form.cart:not(.variations_form) .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
}

/* 可变商品：数量 + 加入购物车一行，Buy Now 单独占满一行 */
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	max-width: 560px;
	margin-left: 0;
	padding-left: 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity {
	margin-right: 0;
	padding-left: 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1 1 0;
	min-width: 0;
	min-height: var(--brand-shell-qty-control-size);
	border-radius: 6px;
}

body.woocommerce.single-product div.product form.cart .single_add_to_cart_button {
	background: #fff !important;
	color: #111827 !important;
	border: 1px solid #111827 !important;
	box-shadow: none !important;
	font-weight: 500;
	border-radius: 6px;
}

body.woocommerce.single-product div.product form.cart .single_add_to_cart_button:hover {
	background: #f9fafb !important;
	color: #111827 !important;
}

body.woocommerce.single-product .brand-shell-buy-now-btn {
	display: block !important;
	width: 100%;
	flex: 1 1 100%;
	margin-top: 8px;
	clear: both;
	padding: 13px 20px;
	font-weight: 600;
	border-radius: 6px;
	background: #252a31 !important;
	color: #fff !important;
	border: 1px solid #252a31 !important;
	box-shadow: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.woocommerce.single-product .brand-shell-buy-now-btn:hover:not(:disabled) {
	background: #111827 !important;
	color: #fff !important;
}

body.woocommerce.single-product div.product form.cart .quantity .qty {
	order: 2;
	border-radius: 0;
	border: 0;
	background: #f1f1f1;
	height: var(--size);
}

body.woocommerce.single-product div.product form.cart .quantity .plus,
body.woocommerce.single-product div.product form.cart .quantity .minus {
	min-height: var(--brand-shell-qty-control-size);
	border: 0;
	background: #f1f1f1;
	width: 36px;
	padding: 0;
	line-height: 1;
	font-size: 24px;
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	color: #111827;
	cursor: pointer;
}

body.woocommerce.single-product div.product form.cart .quantity .minus {
	order: 1;
	grid-column: 1;
	border-radius: 8px 0 0 8px;
}

body.woocommerce.single-product div.product form.cart .quantity .plus {
	order: 3;
	grid-column: 3;
	border-radius: 0 8px 8px 0;
}

body.woocommerce.single-product .brand-shell-buy-now-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * WooCommerce 单品页：按样板做最终对齐（属性行 / 数量行 / 按钮比例）
 * ------------------------------------------------------------------------- */
body.woocommerce.single-product div.product form.variations_form table.variations {
	margin: 0 0 18px;
}

body.woocommerce.single-product div.product form.variations_form table.variations tr {
	display: grid;
	grid-template-columns: var(--brand-shell-pdp-attr-label-width, 90px) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

body.woocommerce.single-product div.product form.variations_form table.variations td.value {
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

body.woocommerce.single-product div.product form.variations_form table.variations td.value::before,
body.woocommerce.single-product div.product form.variations_form table.variations td.value::after {
	content: none !important;
	display: none !important;
}

body.woocommerce.single-product div.product form.variations_form table.variations label {
	display: block;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	text-transform: capitalize;
}

body.woocommerce.single-product div.product form.variations_form table.variations select {
	min-height: var(--brand-shell-variation-row-height, 46px);
	padding: 3px 34px 3px 12px;
	background-position: center right 12px;
	width: auto;
	max-width: min(100%, var(--brand-shell-pdp-attr-select-max-width, 380px));
	border: 1px solid #d1d5db;
	border-radius: 5px;
	background-color: #fff;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .quantity .brand-shell-qty-label {
	display: block;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	margin: 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0;
}



body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity {
	--size: 44px;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	row-gap: 10px;
	column-gap: 0;
	flex: 0 0 35%;
	min-width: 0;
	margin: 0 !important;
	background: transparent;
	border: 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .brand-shell-qty-label {
	grid-column: 1 / -1;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .minus,
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .plus,
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity input.qty {
	min-height: var(--size);
	background: #f1f1f1;
	border: 0;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .minus {
	grid-column: 1;
	width: 34px;
	border-radius: 8px 0 0 8px;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity input.qty {
	grid-column: 2;
	width: 100%;
	min-width: 0 !important;
	max-width: 100%;
	border-radius: 0;
	text-align: center;
	font-size: 26px;
	line-height: 1;
	padding: 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .plus {
	grid-column: 3;
	width: 34px;
	border-radius: 0 8px 8px 0;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 0 0 50%;
	min-width: 0;
	min-height: 44px;
	border-radius: 6px;
}

body.woocommerce.single-product div.product form.cart .brand-shell-buy-now-btn {
	flex: 1 1 100%;
	width: 100%;
	min-height: 44px;
	border-radius: 6px;
	margin-top: 8px;
}

/* 简单商品与可变商品统一：第一行 35% + 50%，Buy Now 下一行并左右对齐 */
body.woocommerce.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

body.woocommerce.single-product div.product form.cart > .quantity {
	flex: 0 0 35%;
	min-width: 0;
}

body.woocommerce.single-product div.product form.cart > .single_add_to_cart_button {
	flex: 0 0 50%;
	min-width: 0;
}

body.woocommerce.single-product div.product form.cart > .brand-shell-buy-now-btn,
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart + .brand-shell-buy-now-btn {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 10px;
}

/* -------------------------------------------------------------------------
 * WooCommerce：移动端商品列表每行 2 个
 * ------------------------------------------------------------------------- */
@media (max-width: 767px) {
	body.woocommerce ul.products,
	.woocommerce ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px 10px !important;
		width: 100% !important;
		margin: 0 !important;
		clear: both !important;
	}

	body.woocommerce ul.products::before,
	body.woocommerce ul.products::after,
	.woocommerce ul.products::before,
	.woocommerce ul.products::after {
		display: none !important;
		content: none !important;
	}

	body.woocommerce ul.products li.product,
	.woocommerce ul.products li.product {
		width: 100% !important;
		max-width: none !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* -------------------------------------------------------------------------
 * WooCommerce PDP final layout lock (consolidated)
 * Row 1: Quantity ~38% | Add to cart 1fr（中间用 column-gap，非第三列占位）
 * Row 2: Buy Now 跨满行
 * ------------------------------------------------------------------------- */
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: grid !important;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: end;
	row-gap: 16px;
	column-gap: 12px;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart > .quantity {
	grid-column: 1;
	grid-row: 1;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	--size: 44px;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	grid-column: 2;
	grid-row: 1;
	width: 100% !important;
	min-width: 0 !important;
	height: 44px !important;
	min-height: 44px !important;
	border: 1px solid #000 !important;
	color: #111827 !important;
	box-sizing: border-box;
	white-space: nowrap;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart > .brand-shell-buy-now-btn {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-top: 0;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .minus,
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .plus,
body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity input.qty {
	height: 44px !important;
	min-height: 44px !important;
	box-sizing: border-box;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .minus {
	grid-column: 1;
	width: 34px;
	border-radius: 8px 0 0 8px;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity input.qty {
	grid-column: 2;
	width: 100%;
	min-width: 0 !important;
	max-width: 100%;
	border-radius: 0;
	text-align: center !important;
	font-size: 26px;
	line-height: 1;
	padding: 0 !important;
}

body.woocommerce.single-product div.product form.cart .woocommerce-variation-add-to-cart .quantity .plus {
	grid-column: 3;
	width: 34px;
	border-radius: 0 8px 8px 0;
}

/* Remove qty border/focus artifacts */
body.woocommerce.single-product div.product form.cart .quantity input.qty,
body.woocommerce.single-product div.product form.cart .quantity input.qty:focus,
body.woocommerce.single-product div.product form.cart .quantity input.qty:active,
body.woocommerce.single-product div.product form.cart .quantity input.qty:focus-visible {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline: 0 !important;
	text-align: center !important;
	text-align-last: center !important;
	text-indent: 0 !important;
}

body.woocommerce.single-product div.product form.cart .quantity .minus,
body.woocommerce.single-product div.product form.cart .quantity .plus,
body.woocommerce.single-product div.product form.cart .quantity .minus:hover,
body.woocommerce.single-product div.product form.cart .quantity .plus:hover,
body.woocommerce.single-product div.product form.cart .quantity .minus:focus,
body.woocommerce.single-product div.product form.cart .quantity .plus:focus {
	font-weight: 400 !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Mobile number quirks (iOS/Safari) */
@media (max-width: 767px) {
	body.woocommerce.single-product div.product form.cart .quantity input.qty,
	body.woocommerce.single-product div.product form.cart .quantity input.qty[type='number'] {
		appearance: textfield !important;
		-webkit-appearance: none !important;
		-moz-appearance: textfield !important;
		text-align: center !important;
		text-align-last: center !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-inline: 0 !important;
		text-indent: 0 !important;
		line-height: 44px !important;
		direction: ltr;
		font-variant-numeric: tabular-nums;
		font-feature-settings: "tnum" 1;
	}

	body.woocommerce.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
	body.woocommerce.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
		-webkit-appearance: none !important;
		appearance: none !important;
		margin: 0 !important;
		display: none !important;
	}
}