/*
Theme Name: Abeel Mall
Theme URI: https://abeelmall.com/
Author: Abeel Mall
Description: 面向手机壳与数码配件商城的定制 WooCommerce 主题。
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: abeelmall
*/

:root {
	--background: #101010;
	--surface: #191919;
	--surface-raised: #232323;
	--line: #343434;
	--text: #f5f3ef;
	--muted: #aaa8a3;
	--accent: #ff4269;
	--mint: #4ee5db;
	--sidebar-width: 260px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	color: var(--text);
	background: var(--background);
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

body.dialog-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

img {
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-shell {
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 30px 20px 22px;
	border-right: 1px solid var(--line);
	background: #131313;
}

.admin-bar .sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

.brand {
	display: grid;
	gap: 4px;
	padding: 2px 12px 30px;
}

.brand strong {
	color: var(--mint);
	font-size: 25px;
	line-height: 1;
}

.brand small {
	color: var(--muted);
	font-size: 10px;
}

.side-nav {
	display: grid;
	gap: 6px;
}

.side-nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 15px;
	border-left: 3px solid transparent;
	color: #d3d1cc;
	font-size: 14px;
	font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
	border-left-color: var(--mint);
	color: #fff;
	background: #282828;
}

.sidebar-contact {
	display: grid;
	gap: 8px;
	margin-top: auto;
	padding: 17px 12px 4px;
	border-top: 1px solid var(--line);
}

.sidebar-contact strong {
	font-size: 14px;
}

.sidebar-contact a {
	overflow-wrap: anywhere;
	color: var(--mint);
	font-size: 11px;
	line-height: 1.5;
}

.site-main {
	min-width: 0;
	padding: 0 34px 40px;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(260px, 720px) auto;
	justify-content: center;
	gap: 22px;
	align-items: center;
	min-height: 88px;
	margin: 0 -34px;
	padding: 16px 34px;
	border-bottom: 1px solid var(--line);
	background: rgba(16, 16, 16, .96);
	backdrop-filter: blur(12px);
}

.admin-bar .topbar {
	top: 32px;
}

.mobile-brand {
	display: none;
	color: var(--mint);
	font-size: 20px;
	font-weight: 900;
}

.search-box {
	display: flex;
	align-items: center;
	min-height: 50px;
	border: 1px solid #515151;
	border-radius: 7px;
	background: #292929;
}

.search-box:focus-within {
	border-color: var(--mint);
	box-shadow: 0 0 0 1px var(--mint);
}

.search-box input[type="search"] {
	width: 100%;
	min-width: 0;
	padding: 0 17px;
	border: 0;
	outline: 0;
	color: #fff;
	background: transparent;
	font-size: 15px;
}

.search-box input::placeholder {
	color: #898782;
}

.search-box button {
	min-width: 92px;
	min-height: 36px;
	margin-right: 6px;
	border: 0;
	border-radius: 5px;
	color: #151515;
	background: #fff;
	font-weight: 800;
}

.top-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	white-space: nowrap;
}

.quiet-button,
.account-button {
	display: grid;
	min-height: 40px;
	padding: 0 9px;
	place-items: center;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.quiet-button:hover,
.account-button:hover {
	color: #fff;
}

.bag-button {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 14px;
	border-radius: 5px;
	color: #171717;
	background: var(--accent);
	font-size: 13px;
	font-weight: 800;
}

.cart-count {
	display: grid;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	place-items: center;
	border-radius: 50%;
	color: #111;
	background: #fff;
	font-size: 11px;
}

.catalog-toolbar {
	position: sticky;
	top: 88px;
	z-index: 15;
	margin: 0 -34px;
	border-bottom: 1px solid var(--line);
	background: rgba(16, 16, 16, .97);
	backdrop-filter: blur(12px);
}

.admin-bar .catalog-toolbar {
	top: 120px;
}

.category-nav {
	display: flex;
	gap: 5px;
	min-width: 0;
	padding: 12px 34px 7px;
	overflow: hidden;
}

.category-scroll {
	display: flex;
	flex: 1 1 auto;
	gap: 5px;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar,
.product-filters::-webkit-scrollbar {
	display: none;
}

.category-filter,
.category-arrow,
.quick-filter,
.reset-filters {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: #bbb9b4;
	background: transparent;
	font-size: 13px;
	font-weight: 700;
}

.category-filter:hover,
.category-filter.active {
	border-color: rgba(255, 66, 105, .6);
	color: #fff;
	background: rgba(255, 66, 105, .14);
}

.category-arrow {
	display: grid;
	width: 34px;
	padding: 0;
	place-items: center;
	border-color: #3b3b3b;
	background: #191919;
	font-size: 22px;
}

.category-arrow:hover:not(:disabled) {
	border-color: var(--mint);
	color: var(--mint);
}

.category-arrow:disabled {
	opacity: .25;
	cursor: default;
}

.product-filters {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 34px 11px;
	overflow-x: auto;
	scrollbar-width: none;
}

.quick-filter,
.reset-filters {
	min-height: 32px;
	padding: 0 10px;
	border-color: #3c3c3c;
	background: #1a1a1a;
	font-size: 12px;
}

.quick-filter:hover,
.quick-filter.active {
	border-color: var(--mint);
	color: #101010;
	background: var(--mint);
}

.reset-filters {
	margin-left: auto;
	color: var(--muted);
}

.intro {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 30px;
	margin: 38px 0 24px;
}

.intro p,
.video-caption p,
.related-heading p,
.shop-heading p,
.business-band > div > p,
.company-section article > p,
.dialog-eyebrow {
	margin: 0 0 8px;
	color: var(--mint);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.intro h1 {
	max-width: 720px;
	margin: 0;
	font-size: 46px;
	line-height: 1.08;
	letter-spacing: 0;
}

.intro > span {
	max-width: 300px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.video-feed {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 18px;
	margin-bottom: 48px;
}

.featured-video {
	min-width: 0;
	overflow: hidden;
	background: #181818;
}

.video-stage {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #050505;
}

.video-stage video,
.video-stage > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-stage > img {
	filter: brightness(.82);
}

.video-placeholder-note {
	position: absolute;
	right: 16px;
	bottom: 16px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 4px;
	color: #fff;
	background: rgba(10, 10, 10, .82);
	font-size: 11px;
}

.video-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 19px 20px 21px;
}

.video-caption h2 {
	margin: 0 0 7px;
	font-size: 20px;
	letter-spacing: 0;
}

.video-caption span,
.shop-heading span,
.company-section article > span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}

.video-shop,
.primary-link,
.business-band > a {
	display: grid;
	flex: 0 0 auto;
	min-height: 42px;
	padding: 0 16px;
	place-items: center;
	border-radius: 5px;
	color: #171717;
	background: var(--accent);
	font-size: 13px;
	font-weight: 800;
}

.related-panel {
	padding: 0 20px 20px;
	border-top: 1px solid var(--line);
}

.related-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0 11px;
}

.related-heading p {
	margin: 0;
}

.related-heading span {
	color: var(--muted);
	font-size: 12px;
}

.related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.related-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px 0;
	color: var(--muted);
	font-size: 12px;
}

.related-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 72px;
	border-top: 1px solid var(--line);
}

.related-item img {
	width: 58px;
	height: 52px;
	object-fit: cover;
}

.related-item div {
	min-width: 0;
}

.related-item strong,
.related-item small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.related-item strong {
	font-size: 12px;
}

.related-item small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.related-item a {
	padding: 8px;
	border-radius: 4px;
	color: #111;
	background: var(--mint);
	font-size: 11px;
	font-weight: 800;
}

.video-rail {
	display: grid;
	align-content: start;
}

.video-choice {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	width: 100%;
	min-height: 96px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	background: transparent;
	text-align: left;
}

.video-choice:first-child {
	padding-top: 0;
}

.video-choice img {
	display: block;
	width: 108px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.video-choice strong,
.video-choice small {
	display: block;
}

.video-choice strong {
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.35;
}

.video-choice small {
	color: var(--muted);
	font-size: 11px;
}

.video-choice.active strong {
	color: var(--mint);
}

.shop-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 20px;
}

.shop-heading p {
	margin-bottom: 4px;
}

.shop-heading h2 {
	margin: 0;
	font-size: 28px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 27px 21px;
}

.product-card {
	min-width: 0;
}

.product-photo {
	position: relative;
	aspect-ratio: 4 / 3.1;
	overflow: hidden;
	border-radius: 7px;
	background: #252525;
}

.product-photo > a,
.product-photo > a > img,
.product-photo > img {
	display: block;
	width: 100%;
	height: 100%;
}

.product-photo img {
	object-fit: cover;
	transition: transform .35s ease, filter .35s ease;
}

.product-card:hover .product-photo img {
	transform: scale(1.04);
	filter: brightness(.76);
}

.product-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 8px;
	border-radius: 4px;
	color: #151515;
	background: var(--mint);
	font-size: 10px;
	font-weight: 800;
}

.card-actions {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.product-card:hover .card-actions,
.product-card:focus-within .card-actions {
	opacity: 1;
	transform: translateY(0);
}

.card-actions button,
.card-actions a {
	display: grid;
	min-height: 38px;
	padding: 0 11px;
	place-items: center;
	border: 0;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 800;
}

.quick-view {
	color: #171717;
	background: #fff;
}

.add-button {
	color: #fff;
	background: var(--accent);
}

.product-card h3 {
	margin: 13px 2px 7px;
	font-size: 16px;
	line-height: 1.4;
}

.product-card > p {
	min-height: 38px;
	margin: 0 2px 11px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}

.product-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0 2px;
	color: var(--muted);
}

.product-row strong {
	color: #fff;
	font-size: 14px;
}

.product-row small {
	font-size: 11px;
}

.empty-state {
	padding: 60px 20px;
	border: 1px dashed #444;
	color: var(--muted);
	text-align: center;
}

.business-band {
	display: grid;
	grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr) auto;
	gap: 28px;
	align-items: center;
	margin: 72px -34px 0;
	padding: 42px 34px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #171717;
}

.business-band h2,
.company-section h2 {
	margin: 0;
	font-size: 25px;
}

.business-band > p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.business-band > a {
	background: var(--mint);
}

.company-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin: 0 -34px;
	background: var(--line);
}

.company-section article {
	min-width: 0;
	padding: 48px 34px;
	background: #121212;
}

.company-section article > span {
	display: block;
	max-width: 600px;
	margin-top: 15px;
}

.company-section article > a {
	display: inline-block;
	margin-top: 18px;
	color: var(--mint);
	overflow-wrap: anywhere;
}

.site-footer {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 30px;
	align-items: center;
	margin: 0 -34px -40px;
	padding: 28px 34px;
	color: var(--muted);
	background: #0b0b0b;
	font-size: 12px;
}

.site-footer > div {
	display: grid;
	gap: 4px;
}

.site-footer strong {
	color: #fff;
	font-size: 16px;
}

.site-footer nav {
	display: flex;
	gap: 18px;
}

.site-footer a:hover {
	color: var(--mint);
}

dialog {
	padding: 0;
	border: 1px solid #494949;
	border-radius: 8px;
	color: #fff;
	background: #1d1d1d;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .8);
}

dialog::backdrop {
	background: rgba(0, 0, 0, .78);
}

.quick-view-dialog {
	width: min(820px, calc(100% - 32px));
	max-height: 90vh;
}

.dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid #5a5a5a;
	border-radius: 5px;
	color: #fff;
	background: #151515;
	font-size: 24px;
}

.dialog-close:hover {
	border-color: var(--mint);
	color: var(--mint);
}

.quick-view-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
}

.quick-view-layout > img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 440px;
	object-fit: cover;
	background: #242424;
}

.quick-view-layout > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 42px 34px;
}

.quick-view-layout h2 {
	margin: 0 0 12px;
	font-size: 27px;
}

.quick-view-layout p:not(.dialog-eyebrow) {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.quick-view-layout strong {
	margin-bottom: 22px;
	color: var(--accent);
	font-size: 21px;
}

.primary-link {
	align-self: flex-start;
}

.content-page,
.commerce-content {
	width: min(1180px, 100%);
	margin: 38px auto 70px;
}

.content-entry {
	color: #ddd;
	line-height: 1.75;
}

.content-entry h1,
.commerce-content h1 {
	color: #fff;
	font-size: 34px;
}

.commerce-content .woocommerce-breadcrumb,
.commerce-content .woocommerce-result-count,
.commerce-content .woocommerce-product-details__short-description,
.commerce-content .product_meta,
.commerce-content .woocommerce-tabs,
.commerce-content .woocommerce-message,
.commerce-content .woocommerce-info {
	color: var(--muted);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 3.1;
	object-fit: cover;
	border-radius: 7px;
	background: #252525;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: #fff;
	font-size: 16px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--accent);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 5px;
	color: #111;
	background: var(--mint);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	color: #111;
	background: #7ff0e9;
}

.woocommerce div.product div.images img {
	border-radius: 7px;
}

.woocommerce div.product .product_title,
.woocommerce div.product .woocommerce-tabs h2,
.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1 {
	color: #fff;
}

.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	border-color: var(--line);
	border-radius: 6px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--line);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid #515151;
	border-radius: 4px;
	color: #fff;
	background: #242424;
}

@media (max-width: 1180px) {
	:root {
		--sidebar-width: 92px;
	}

	.sidebar {
		align-items: center;
		padding-right: 12px;
		padding-left: 12px;
	}

	.brand {
		padding-right: 0;
		padding-left: 0;
	}

	.brand small,
	.sidebar-contact {
		display: none;
	}

	.side-nav a {
		justify-content: center;
		width: 58px;
		padding: 0;
		border-left: 0;
		font-size: 0;
	}

	.side-nav a::before {
		content: "•";
		color: var(--muted);
		font-size: 22px;
	}

	.side-nav a:hover::before,
	.side-nav a.active::before {
		color: var(--mint);
	}

	.topbar {
		grid-template-columns: minmax(240px, 1fr) auto;
	}

	.quiet-button {
		display: none;
	}

	.video-feed {
		grid-template-columns: minmax(0, 1fr) 250px;
	}

	.video-choice {
		grid-template-columns: 86px minmax(0, 1fr);
	}

	.video-choice img {
		width: 86px;
	}
}

@media (max-width: 900px) {
	.intro h1 {
		font-size: 36px;
	}

	.video-feed {
		grid-template-columns: 1fr;
	}

	.video-rail {
		grid-template-columns: repeat(3, minmax(190px, 1fr));
		overflow-x: auto;
	}

	.video-choice {
		grid-template-columns: 78px minmax(0, 1fr);
		padding: 10px;
		border: 1px solid var(--line);
	}

	.video-choice:first-child {
		padding-top: 10px;
	}

	.video-choice img {
		width: 78px;
	}

	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.business-band {
		grid-template-columns: 1fr 1fr;
	}

	.business-band > a {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 740px) {
	.site-shell {
		display: block;
	}

	.sidebar {
		display: none;
	}

	.site-main {
		padding: 0 16px 30px;
	}

	.topbar {
		grid-template-columns: 1fr auto;
		gap: 10px;
		min-height: 122px;
		margin: 0 -16px;
		padding: 10px 16px;
	}

	.admin-bar .topbar {
		top: 46px;
	}

	.mobile-brand {
		display: block;
	}

	.search-box {
		grid-column: 1 / -1;
		grid-row: 2;
		min-height: 44px;
	}

	.search-box button {
		min-width: 76px;
	}

	.top-actions {
		gap: 5px;
	}

	.account-button {
		display: none;
	}

	.bag-button {
		min-height: 38px;
		padding: 0 9px;
		font-size: 11px;
	}

	.catalog-toolbar {
		top: 122px;
		margin: 0 -16px;
	}

	.admin-bar .catalog-toolbar {
		top: 168px;
	}

	.category-nav {
		padding: 9px 16px 6px;
	}

	.category-arrow {
		display: none;
	}

	.product-filters {
		padding: 0 16px 9px;
	}

	.reset-filters {
		margin-left: 0;
	}

	.intro {
		display: block;
		margin: 26px 0 19px;
	}

	.intro h1 {
		font-size: 30px;
	}

	.intro > span {
		display: block;
		margin-top: 12px;
	}

	.video-feed {
		margin-bottom: 38px;
	}

	.video-caption {
		display: block;
		padding: 16px;
	}

	.video-caption h2 {
		font-size: 18px;
	}

	.video-shop {
		width: 100%;
		margin-top: 15px;
	}

	.related-panel {
		padding: 0 16px 16px;
	}

	.related-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.related-list {
		grid-template-columns: 1fr;
	}

	.video-rail {
		margin: 0 -16px;
		padding: 0 16px 3px;
	}

	.shop-heading {
		display: block;
	}

	.shop-heading h2 {
		font-size: 24px;
	}

	.shop-heading span {
		display: block;
		margin-top: 6px;
	}

	.product-grid,
	.woocommerce ul.products {
		gap: 23px 12px;
	}

	.card-actions {
		display: none;
	}

	.product-card h3 {
		font-size: 14px;
	}

	.product-card > p {
		min-height: 55px;
		font-size: 11px;
	}

	.product-row {
		display: grid;
		gap: 4px;
	}

	.business-band {
		grid-template-columns: 1fr;
		margin: 54px -16px 0;
		padding: 34px 16px;
	}

	.business-band > a {
		grid-column: auto;
	}

	.business-band h2,
	.company-section h2 {
		font-size: 22px;
	}

	.company-section {
		grid-template-columns: 1fr;
		margin: 0 -16px;
	}

	.company-section article {
		padding: 36px 16px;
	}

	.site-footer {
		grid-template-columns: 1fr;
		gap: 18px;
		margin: 0 -16px -30px;
		padding: 26px 16px;
	}

	.quick-view-layout {
		display: block;
	}

	.quick-view-layout > img {
		height: 300px;
		min-height: 0;
	}

	.quick-view-layout > div {
		padding: 25px 20px;
	}

	.content-entry h1,
	.commerce-content h1 {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.product-card > p {
		min-height: 0;
	}

	.video-placeholder-note {
		right: 9px;
		bottom: 9px;
		max-width: calc(100% - 18px);
	}
}

/* 完整商品快速查看弹窗 */
#product-dialog {
	width: min(1180px, calc(100% - 32px));
	max-height: calc(100vh - 24px);
	overflow: hidden;
}

#product-dialog[open] {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	height: min(920px, calc(100vh - 24px));
	max-height: calc(100vh - 24px);
	align-content: stretch;
}

#product-dialog .dialog-close {
	top: 12px;
	right: 12px;
	z-index: 20;
	width: 40px;
	height: 40px;
	border-color: #777;
	background: rgba(15, 15, 15, .94);
}

.dialog-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 55%) minmax(0, 45%);
	align-items: start;
	min-width: 0;
	height: 100%;
	max-height: none;
	overflow: hidden;
}

.dialog-gallery-column,
.dialog-content {
	min-width: 0;
	min-height: 0;
}

.dialog-gallery-column {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-items: stretch;
	overflow: auto;
	background: #171717;
}

.dialog-media {
	position: relative;
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	background: #171717;
}

.gallery-main {
	position: relative;
	display: grid;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-width: 0;
	overflow: hidden;
	place-items: center;
	border-radius: 6px;
	background: #252525;
}

.gallery-main > img,
.gallery-main > video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #111;
}

.gallery-main > [hidden],
.gallery-thumbnail[hidden] {
	display: none;
}

.gallery-main.video-playing > video {
	object-fit: cover;
}

.gallery-counter {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 5px 7px;
	border-radius: 4px;
	color: #fff;
	background: rgba(15, 15, 15, .75);
	font-size: 11px;
}

.gallery-thumbnails {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	padding: 2px;
	scrollbar-width: thin;
}

.gallery-thumbnail {
	position: relative;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #444;
	border-radius: 5px;
	background: #252525;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
	border-color: var(--mint);
}

.gallery-thumbnail.active {
	box-shadow: 0 0 0 1px var(--mint);
}

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

.gallery-video-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	color: #111;
	background: var(--mint);
	font-size: 10px;
}

.gallery-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 9px;
	border-radius: 4px;
	color: #111;
	background: var(--mint);
	font-size: 11px;
	font-weight: 800;
}

.dialog-description {
	padding: 14px 18px 16px;
	border-top: 1px solid var(--line);
	background: #1b1b1b;
}

.dialog-description strong {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
}

.dialog-description p {
	margin: 0 0 6px;
	color: #e5e3de;
	font-size: 13px;
	line-height: 1.55;
}

.dialog-description span {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
}

.dialog-content {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-self: start;
	overflow: hidden;
	background: #1d1d1d;
}

.dialog-details-scroll {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	padding: 22px 28px 12px;
}

.dialog-content h2 {
	margin: 0 44px 6px 0;
	font-size: 24px;
}

.dialog-eyebrow {
	margin: 0 0 8px !important;
	color: var(--mint) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
}

.dialog-tags,
.dialog-color-options,
.dialog-size-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dialog-tags {
	margin-bottom: 12px;
}

.dialog-tags span {
	min-height: 28px;
	padding: 6px 9px;
	border: 1px solid #3d3d3d;
	border-radius: 4px;
	color: #d8d6d1;
	font-size: 11px;
	font-weight: 700;
}

.dialog-tags span[hidden] {
	display: none;
}

.dialog-account-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(140px, .65fr);
	gap: 8px;
	margin-bottom: 12px;
}

.dialog-account-summary {
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid #3f3f3f;
	border-radius: 5px;
	background: #242424;
}

.dialog-account-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.dialog-account-heading strong {
	font-size: 13px;
}

.dialog-account-heading a {
	color: var(--mint);
	font-size: 11px;
}

.dialog-account-details {
	color: #d8d6d1;
	font-size: 11px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.dialog-product-code {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 1px solid #414141;
	border-radius: 4px;
	color: var(--muted);
	background: #202020;
	font-size: 11px;
}

.dialog-product-code strong {
	color: #fff;
	font-size: 12px;
}

.dialog-product-code small {
	margin-left: auto;
	color: #777;
	font-size: 10px;
}

.dialog-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 12px;
	background: var(--line);
}

.dialog-specs div {
	min-width: 0;
	padding: 8px 10px;
	background: #1d1d1d;
}

.dialog-specs dt {
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 10px;
}

.dialog-specs dd {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 12px;
	font-weight: 700;
}

.dialog-pricing {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 8px 10px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.dialog-sample-image {
	display: block;
	width: 62px;
	height: 76px;
	object-fit: cover;
	border: 1px solid #3f3f3f;
	border-radius: 5px;
	background: #292929;
}

.dialog-sample-image[hidden] {
	display: none;
}

.sample-price {
	min-width: 0;
}

.sample-price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px 8px;
}

.sample-price-line strong {
	color: var(--accent);
	font-size: 21px;
}

.sample-price-line span {
	color: #e8e6e1;
	font-size: 10px;
	font-weight: 700;
}

.sample-price-line del {
	color: #777;
	font-size: 11px;
}

.sample-price > p {
	margin: 4px 0 6px;
	color: var(--muted);
	font-size: 10px;
}

.dialog-purchase-selection {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 5px 0 5px;
	border: 1px solid #3f3f3f;
	border-radius: 5px;
	overflow: hidden;
	background: #242424;
}

.dialog-order-preview {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 7px;
	align-items: center;
	min-width: 0;
	padding: 4px 5px;
}

.dialog-order-preview-image {
	width: 34px;
	height: 34px;
	overflow: hidden;
	border-radius: 4px;
	background: #303030;
}

.dialog-order-preview-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dialog-order-preview-image img[hidden] {
	display: none;
}

.dialog-order-preview span,
.dialog-order-preview strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dialog-order-preview span {
	margin-bottom: 2px;
	color: var(--muted);
	font-size: 9px;
}

.dialog-order-preview strong {
	font-size: 10px;
}

.sample-quantity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 7px;
	border-left: 1px solid #3f3f3f;
	color: var(--muted);
	font-size: 10px;
}

.quantity-stepper {
	display: grid;
	grid-template-columns: 28px 40px 28px;
	align-items: center;
	height: 28px;
	border: 1px solid #444;
	border-radius: 4px;
	overflow: hidden;
	background: #202020;
}

.quantity-stepper button {
	height: 28px;
	padding: 0;
	border: 0;
	color: #fff;
	background: transparent;
}

.quantity-stepper button:hover {
	color: #111;
	background: var(--mint);
}

.quantity-stepper output {
	display: grid;
	height: 28px;
	place-items: center;
	border-right: 1px solid #444;
	border-left: 1px solid #444;
	color: #fff;
	font-size: 11px;
}

.tier-prices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-column: 1 / -1;
	gap: 4px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	color: #d8d6d1;
	font-size: 9px;
}

.tier-prices::before {
	grid-column: 1 / -1;
	content: "批量阶梯价";
	color: var(--muted);
}

.tier-prices span {
	padding: 4px;
	border-radius: 4px;
	background: #242424;
	text-align: center;
}

.dialog-sticky-footer {
	padding: 10px 28px 13px;
	border-top: 1px solid var(--line);
	background: rgba(29, 29, 29, .98);
}

.dialog-option {
	padding-bottom: 9px;
	margin-bottom: 9px;
	border-bottom: 1px solid var(--line);
}

.dialog-option-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.dialog-option-heading span {
	color: var(--muted);
	font-size: 11px;
}

.dialog-option-heading strong {
	font-size: 12px;
}

.dialog-color-button,
.dialog-size-button {
	border: 1px solid #444;
	border-radius: 5px;
	color: #d8d6d1;
	background: #202020;
	font-size: 11px;
	font-weight: 700;
}

.dialog-color-button {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 7px;
	align-items: center;
	min-width: 96px;
	min-height: 34px;
	padding: 2px 7px 2px 2px;
	text-align: left;
}

.dialog-color-button:hover,
.dialog-color-button.active,
.dialog-size-button:hover,
.dialog-size-button.active {
	border-color: var(--mint);
	color: #fff;
	background: #252525;
}

.dialog-color-preview {
	display: block;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
}

.dialog-size-button {
	min-height: 28px;
	padding: 0 9px;
}

.dialog-actions,
.dialog-final-actions {
	display: grid;
	gap: 7px;
}

.dialog-actions {
	grid-template-columns: 1fr 1fr;
}

.dialog-final-actions {
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	margin-top: 7px;
}

.dialog-actions button,
.dialog-add,
.dialog-view-bag {
	min-height: 38px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 800;
}

.dialog-sample {
	border: 1px solid #555;
	color: #fff;
	background: transparent;
}

.dialog-quote {
	display: grid;
	place-items: center;
	border-radius: 5px;
	color: #111;
	background: var(--mint);
	font-size: 11px;
	font-weight: 800;
}

.dialog-add {
	margin: 0;
	border: 0;
	color: #fff;
	background: var(--accent);
}

.dialog-add:disabled,
.dialog-sample:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.dialog-view-bag {
	display: grid;
	place-items: center;
	border: 1px solid #4a4a4a;
	color: #e8e6e1;
	background: transparent;
}

.dialog-feedback {
	min-height: 15px;
	margin: 6px 0 0 !important;
	color: var(--mint) !important;
	font-size: 11px;
}

.dialog-related {
	min-width: 0;
	padding: 12px 30px 14px;
	border-top: 1px solid var(--line);
	background: #191919;
}

.dialog-related-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.dialog-related-heading > div {
	display: flex;
	align-items: baseline;
	gap: 9px;
	min-width: 0;
}

.dialog-related-heading strong {
	font-size: 13px;
}

.dialog-related-heading span,
.dialog-related-heading small {
	color: var(--muted);
	font-size: 10px;
}

.dialog-related-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
}

.dialog-related-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 7px;
	align-items: center;
	min-width: 0;
	min-height: 54px;
	padding: 6px;
	border: 1px solid #363636;
	border-radius: 5px;
	background: #202020;
}

.dialog-related-image {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	overflow: hidden;
	border-radius: 4px;
	color: #777;
	background: #303030;
	font-size: 9px;
}

.dialog-related-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dialog-related-item > div:nth-child(2) {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.dialog-related-item strong,
.dialog-related-item span,
.dialog-related-item small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dialog-related-item strong {
	font-size: 10px;
}

.dialog-related-item span {
	color: var(--muted);
	font-size: 9px;
}

.dialog-related-item small {
	color: #fff;
	font-size: 10px;
}

.dialog-related-item a {
	min-height: 26px;
	padding: 6px 7px;
	border-radius: 4px;
	color: #111;
	background: var(--mint);
	font-size: 10px;
	font-weight: 800;
}

.dialog-related-empty {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--muted);
	font-size: 11px;
}

@media (max-width: 740px) {
	#product-dialog {
		width: calc(100% - 20px);
		max-height: calc(100vh - 16px);
		overflow-y: auto;
	}

	#product-dialog[open] {
		display: block;
	}

	.dialog-product-layout {
		display: block;
		max-height: none;
		overflow: visible;
	}

	.dialog-media {
		gap: 9px;
		padding: 12px 12px 9px;
	}

	.gallery-main {
		height: 280px;
		aspect-ratio: auto;
	}

	.gallery-thumbnail {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.dialog-details-scroll {
		overflow: visible;
		padding: 20px 16px 10px;
	}

	.dialog-content h2 {
		font-size: 21px;
	}

	.dialog-account-grid,
	.dialog-actions,
	.dialog-final-actions {
		grid-template-columns: 1fr;
	}

	.dialog-purchase-selection {
		grid-template-columns: 1fr;
	}

	.sample-quantity-row {
		border-top: 1px solid #3f3f3f;
		border-left: 0;
	}

	.dialog-sticky-footer {
		padding: 12px 16px 18px;
	}

	.dialog-related {
		padding: 14px 16px 18px;
	}

	.dialog-related-heading,
	.dialog-related-heading > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.dialog-related-products {
		grid-template-columns: 1fr;
	}
}
