/**
 * 商场模板样式（仅 UI）。
 *
 * 目标：
 * 1) 跟随主题整体视觉：白底、轻阴影、细边框、克制的动效
 * 2) 适配暗黑模式：跟随 html.is-dark-mode
 *
 * @package LangYuPro
 */

:root {
	/* 与主题变量对齐（亮色） */
	--shop-bg: var(--langyu-soft-bg, #f5f5f5);
	--shop-surface: var(--langyu-surface, #ffffff);
	--shop-text: var(--langyu-text, #222222);
	--shop-muted: var(--langyu-muted, #7a7a7a);
	--shop-border: var(--langyu-border, #d9d9d9);
	--shop-primary: var(--langyu-primary, #111111);
	--shop-primary-hover: var(--langyu-primary-hover, #2b2b2b);
	--shop-button-bg: var(--langyu-button-bg, #111111);
	--shop-button-text: var(--langyu-button-text, #ffffff);
	--shop-accent: var(--langyu-accent, #3f4e43);
	--shop-card: var(--langyu-card, #ffffff);

	--shop-radius-lg: 14px;
	--shop-radius-md: 12px;
	--shop-shadow: 0 1px 3px rgba(18, 18, 18, 0.06);
	--shop-shadow-hover: 0 6px 18px rgba(18, 18, 18, 0.10);

	--shop-product-image-border: rgba(18, 18, 20, 0.08);
	--shop-sale-bg: #3f4e43;
	--shop-sale-text: #ffffff;

	/* 极简模式：减少边框/阴影依赖 */
	--shop-shadow: none;
	--shop-shadow-hover: none;
}

html.is-dark-mode {
	--shop-bg: #121316;
	--shop-surface: #1f1f22;
	--shop-text: #e6eaf0;
	--shop-muted: #9aa3b2;
	--shop-border: #2a2f39;
	--shop-primary: #fff;
	--shop-primary-hover: rgba(255, 255, 255, 0.88);
	--shop-button-bg: #fff;
	--shop-button-text: #121316;
	--shop-accent: #5a7a6a;
	--shop-card: #1f1f22;
	--shop-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	--shop-shadow-hover: 0 14px 44px rgba(0, 0, 0, 0.45);
	--shop-product-image-border: rgba(255, 255, 255, 0.12);
	--shop-sale-bg: rgba(255, 255, 255, 0.16);
	--shop-sale-text: rgba(255, 255, 255, 0.92);
}

.langyu-shop-page {
	--langyu-admin-bar-height: 0px;
	/* 使用变量，避免暗黑模式下出现“浅色文字 + 白底”导致对比度异常 */
	background: var(--shop-bg);
	color: var(--shop-text);
	min-height: calc(100dvh - var(--langyu-header-height, 60px) - var(--langyu-admin-bar-height, 32px));
}

@media (min-width: 992px) {
	.langyu-shop-page {
		margin-top: var(--langyu-header-height, 60px);
		min-height: calc(100dvh - var(--langyu-header-height, 60px));
	}

	body.admin-bar .langyu-shop-page {
		margin-top: calc(var(--langyu-header-height, 60px) + var(--langyu-admin-bar-height, 32px));
		min-height: calc(100dvh - var(--langyu-header-height, 60px) - var(--langyu-admin-bar-height, 32px));
	}
}

.langyu-shop-page a {
	color: inherit;
	text-decoration: none;
}

.shop-empty,
.shop-filter-empty,
.shop-muted {
	color: var(--shop-muted);
	font-size: 13px;
	line-height: 1.7;
}

.shop-empty {
	padding: 24px 0;
	text-align: center;
}

.shop-shell {
	max-width: var(--langyu-site-width, 1050px);
	margin: 0 auto;
	padding: 28px 20px 40px;
}

/* =========================
 * 极简重构：全站页面一致
 * 不使用边框/卡片背景/阴影，通过留白与排版建立层级
 * ========================= */

.shop-page-head {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 28px;
	align-items: baseline;
}

.shop-page-title {
	font-size: 22px;
}

.shop-link {
	border: 0;
	background: transparent;
	box-shadow: none;
	height: auto;
	padding: 0;
	border-radius: 0;
	color: var(--shop-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.shop-link:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
	opacity: 0.8;
}

.shop-link.is-primary {
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--shop-button-bg);
	color: var(--shop-button-text);
}

.shop-link.is-primary:hover {
	background: var(--shop-primary-hover);
	opacity: 1;
}

.shop-btn {
	border: 0;
	background: transparent;
	padding: 0;
	height: auto;
	border-radius: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.shop-btn:hover {
	transform: none;
	background: transparent;
}

.shop-btn.is-primary {
	text-decoration: none;
	/* padding: 10px 16px; */
	border-radius: 999px;
	background: var(--shop-button-bg);
	color: var(--shop-button-text);
}

.shop-btn.is-primary:hover {
	background: var(--shop-primary-hover);
}

.shop-btn.is-wide {
	width: fit-content;
}

/* 下拉筛选菜单：去掉边框，保持轻量阴影 */
.shop-filter-menu {
	border: 0;
	box-shadow: 0 18px 60px rgba(18, 18, 18, 0.12);
}

html.is-dark-mode .shop-filter-menu {
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.shop-filter-menu-head {
	border-bottom: 0;
}

.shop-filter-item:hover {
	background: rgba(0, 0, 0, 0.04);
}

html.is-dark-mode .shop-filter-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.shop-filter-checkbox {
	border: 0;
	background: rgba(0, 0, 0, 0.06);
}

html.is-dark-mode .shop-filter-checkbox {
	background: rgba(255, 255, 255, 0.10);
}

.shop-filter-checkbox:checked {
	background: var(--shop-text);
}

/* 详情页 */
.shop-product-simple {
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 46px;
	align-items: start;
	margin-bottom: 34px;
}

.shop-product-simple-media,
.shop-product-simple-info {
	min-width: 0;
}

/* 详情页左侧：轮播主图 + 缩略图（极简，无边框） */
.shop-product-gallery {
	width: min(520px, 100%);
	margin: 0 auto;
	/* 覆盖旧样式：不使用边框/背景/卡片内边距 */
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.shop-product-gallery-main {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: transparent;
	overflow: hidden;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 18px;
}

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

.shop-product-gallery-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

.shop-product-gallery-thumbs {
	display: flex;
	gap: 10px !important;
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 0;
	justify-content: flex-start !important;
	align-items: center;
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
	word-spacing: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.shop-product-gallery-thumbs::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.shop-thumb {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity .18s ease, transform .18s ease;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 0 !important;
	margin: 0 !important;
	outline: none !important;
}

.shop-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.shop-thumb.is-active {
	opacity: 1;
	transform: none;
}

.shop-thumb:focus-visible {
	outline: none;
}

html.is-dark-mode .shop-thumb:focus-visible {
	outline: none;
}

.shop-product-simple-badge {
	color: var(--shop-muted);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.shop-product-simple-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.shop-thumb-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.92);
	font-size: 18px;
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.shop-thumb {
	position: relative;
}

.shop-product-simple-title {
	margin: 10px 0 8px;
	font-size: 26px;
	letter-spacing: -0.02em;
}

.shop-product-simple-sub {
	margin: 0;
	color: var(--shop-muted);
	line-height: 1.7;
}

.shop-product-simple-price {
	margin-top: 16px;
	display: flex;
	gap: 12px;
	align-items: baseline;
}

.shop-product-services {
	margin-top: 16px;
}

.shop-product-services-title {
	font-size: 13px;
	color: var(--shop-muted);
	margin-bottom: 8px;
}

.shop-product-services-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	color: var(--shop-text);
	font-size: 13px;
}

.shop-product-services-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.55;
}

.shop-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.35;
	flex: 0 0 auto;
}

.shop-product-simple-actions {
	margin-top: 18px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.shop-product-simple-note {
	margin-top: 14px;
	color: var(--shop-muted);
	font-size: 13px;
}

.shop-product-simple-content .shop-section-title {
	margin-bottom: 10px;
}

.shop-product-simple-text {
	margin: 0 0 12px;
	color: var(--shop-muted);
	line-height: 1.8;
}

/* 商品评价（极简） */
.shop-reviews {
	display: grid;
	gap: 18px;
	margin-top: 12px;
}

.shop-review-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.shop-review-user {
	font-weight: 700;
	font-size: 14px;
}

.shop-review-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--shop-muted);
	font-size: 12px;
	white-space: nowrap;
}

.shop-review-stars {
	color: var(--shop-text);
	letter-spacing: 0.08em;
	font-size: 12px;
}

.shop-review-text {
	margin: 8px 0 0;
	color: var(--shop-muted);
	line-height: 1.8;
	font-size: 13px;
}

/* 购物车 */
.shop-cart-simple {
	display: grid;
	gap: 22px;
}

.shop-cart-item {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 18px;
	align-items: center;
}

.shop-cart-media {
	border: 0;
	background: transparent;
	border-radius: 0;
	min-height: auto;
}

.shop-cart-media img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	display: block;
}

.shop-cart-title {
	font-size: 15px;
	margin: 0;
}

.shop-cart-row {
	margin-top: 10px;
}

.shop-qty {
	border: 0;
	background: rgba(0, 0, 0, 0.04);
}

html.is-dark-mode .shop-qty {
	background: rgba(255, 255, 255, 0.08);
}

.shop-cart-remove {
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.shop-cart-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.shop-cart-total-label {
	color: var(--shop-muted);
	margin-right: 10px;
}

/* 结算 */
.shop-checkout-columns {
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 46px;
}

.shop-input,
.shop-textarea {
	border: 0;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 10px;
}

html.is-dark-mode .shop-input,
html.is-dark-mode .shop-textarea {
	background: rgba(255, 255, 255, 0.08);
}

.shop-pay-option {
	border: 0;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 10px;
}

html.is-dark-mode .shop-pay-option {
	background: rgba(255, 255, 255, 0.08);
}

.shop-checkout-total {
	margin-top: 18px;
	display: grid;
	gap: 10px;
	color: var(--shop-text);
}

.shop-checkout-items {
	margin-top: 10px;
	display: grid;
	gap: 10px;
}

.shop-checkout-item-title {
	font-size: 13px;
	color: var(--shop-text);
	line-height: 1.35;
}

.shop-checkout-item-meta {
	margin-top: 2px;
	font-size: 12px;
	color: var(--shop-muted);
}

.shop-checkout-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
}

.shop-checkout-item-del {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--shop-muted);
	font-size: 16px;
	cursor: pointer;
	padding: 0;
	margin-left: 8px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.shop-checkout-item-del:hover {
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.08);
}

.shop-qty {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--shop-border);
	border-radius: 6px;
	overflow: hidden;
}

.shop-qty-btn {
	width: 28px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: var(--shop-soft-bg, #f5f5f5);
	color: var(--shop-text);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}

.shop-qty-btn:hover {
	background: var(--shop-border);
}

.shop-qty-btn:active {
	background: var(--shop-muted);
}

.shop-qty-num {
	width: 42px;
	height: 26px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-text);
	border: none;
	outline: none;
	background: transparent;
	padding: 0 4px;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

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

.shop-checkout-total-row {
	display: flex;
	justify-content: space-between;
	color: var(--shop-muted);
}

.shop-checkout-total-row.is-strong {
	color: var(--shop-text);
	font-weight: 700;
}

/* 支付弹窗（二维码） */
.shop-pay-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 9999;
}

.shop-pay-modal.is-open {
	display: flex;
}

.shop-pay-card {
	width: min(720px, 100%);
	background: var(--shop-surface);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius-lg);
	box-shadow: var(--shop-shadow);
	overflow: hidden;
}

.shop-pay-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid var(--shop-border);
}

.shop-pay-title {
	font-weight: 650;
	color: var(--shop-text);
}

.shop-pay-close {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--shop-muted);
}

.shop-pay-body {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 16px;
	padding: 16px;
}

@media (max-width: 680px) {
	.shop-pay-body {
		grid-template-columns: 1fr;
	}
}

.shop-pay-qr {
	display: grid;
	place-items: center;
	padding: 12px;
	border: 1px solid var(--shop-border);
	border-radius: 14px;
	background: rgba(0,0,0,0.02);
}

html.is-dark-mode .shop-pay-qr {
	background: rgba(255, 255, 255, 0.06);
}

.shop-pay-qr canvas {
	width: 220px;
	height: 220px;
	display: block;
	background: #fff;
}

.shop-pay-status {
	font-size: 16px;
	font-weight: 650;
	color: var(--shop-text);
}

.shop-pay-actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* 成功页 */
.shop-success-simple {
	max-width: 720px;
	margin: 40px auto 0;
	text-align: center;
}

.shop-success-meta {
	margin: 18px auto 0;
	max-width: 460px;
	border: 0;
	background: transparent;
	padding: 0;
}

.shop-success-row {
	padding: 8px 0;
}

@media (max-width: 920px) {
	.shop-product-simple,
	.shop-checkout-columns {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.shop-product-gallery {
		width: min(420px, 100%);
	}
}

@media (max-width: 520px) {
	.shop-thumb {
		width: 64px;
		height: 64px;
	}

	.shop-cart-item {
		grid-template-columns: 1fr;
	}

	.shop-cart-media img {
		width: 100%;
		height: 240px;
	}
}

/* =========================
 * 购物车抽屉组件
 * ========================= */

.shop-drawer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
}

.shop-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
	opacity: 0;
	transition: opacity 220ms ease;
}

html.is-dark-mode .shop-drawer-overlay {
	background: rgba(0, 0, 0, 0.45);
}

.shop-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 92vw);
	background: var(--shop-surface);
	transform: translateX(100%);
	transition: transform 320ms cubic-bezier(.2, .9, .18, 1);
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 18px 18px;
}

/* 不使用边框：仅用阴影/遮罩分离层级 */
.shop-drawer-panel {
	box-shadow: -24px 0 70px rgba(18, 18, 18, 0.14);
}

html.is-dark-mode .shop-drawer-panel {
	box-shadow: -24px 0 70px rgba(0, 0, 0, 0.55);
}

body.shop-cart-open .shop-drawer {
	pointer-events: auto;
}

body.shop-cart-open .shop-drawer-overlay {
	opacity: 1;
}

body.shop-cart-open .shop-drawer-panel {
	transform: translateX(0);
}

/* 抽屉打开时禁止页面滚动 */
body.shop-cart-open {
	overflow: hidden;
	height: 100%;
}

.shop-drawer-panel {
	/* 防止内部滚动影响页面（移动端更稳定） */
	overscroll-behavior: contain;
}

.shop-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
}

.shop-drawer-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.shop-drawer-close {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
	color: var(--shop-text);
}

.shop-drawer-body {
	overflow: auto;
	padding: 6px 0 10px;
}

/* 隐藏抽屉内部滚动条（仍允许滚动） */
.shop-drawer-body {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge legacy */
}

.shop-drawer-body::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.shop-drawer-empty {
	color: var(--shop-muted);
	padding: 16px 0;
}

.shop-drawer-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	padding: 12px 0;
}

.shop-drawer-item + .shop-drawer-item {
	border-top: 0;
}

.shop-drawer-item-media img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	display: block;
}

.shop-drawer-item-title {
	font-size: 14px;
	line-height: 1.35;
}

.shop-drawer-item-row {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.shop-drawer-item-price {
	color: var(--shop-text);
	font-weight: 700;
	font-size: 13px;
}

.shop-drawer-qty {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 999px;
	padding: 6px 10px;
}

html.is-dark-mode .shop-drawer-qty {
	background: rgba(255, 255, 255, 0.08);
}

.shop-drawer-qty button {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0 4px;
	font-size: 16px;
	line-height: 1;
	color: var(--shop-text);
}

.shop-drawer-qty span {
	min-width: 18px;
	text-align: center;
	font-size: 13px;
	color: var(--shop-text);
}

.shop-drawer-remove {
	margin-top: 8px;
	border: 0;
	background: transparent;
	color: var(--shop-muted);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	padding: 0;
	font-size: 13px;
}

.shop-drawer-foot {
	padding-top: 12px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.shop-drawer-total-label {
	color: var(--shop-muted);
	margin-right: 10px;
}

.shop-drawer-total-value {
	color: var(--shop-text);
	font-weight: 700;
}

.shop-cart-trigger,
.shop-cart-add {
	border: 0;
	background: transparent;
	color: var(--shop-text);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	font-size: 13px;
	padding: 0;
}

.shop-cart-add {
	margin-top: 10px;
}

/* -------------------------
 * 顶部标题区
 * ------------------------- */
.shop-topbar,
.shop-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 18px;
	background: var(--shop-surface);
	border: 0;
	border-radius: var(--shop-radius-lg);
	box-shadow: none;
}

.shop-kicker {
	color: var(--shop-muted);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.shop-title,
.shop-page-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--shop-text);
}

.shop-subtitle,
.shop-page-desc {
	margin: 8px 0 0;
	color: var(--shop-muted);
	font-size: 13px;
	line-height: 1.7;
}

.shop-topbar-right,
.shop-page-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.shop-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: var(--shop-surface);
	color: var(--shop-text);
	font-size: 13px;
	line-height: 1;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-link:hover {
	transform: translateY(-1px);
	box-shadow: var(--shop-shadow);
	border-color: rgba(0, 0, 0, 0.18);
}

html.is-dark-mode .shop-link:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

html.is-dark-mode .shop-filter-menu {
	background: var(--shop-surface);
	border-color: var(--shop-border);
	box-shadow: var(--shop-shadow);
}

html.is-dark-mode .shop-filter-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

html.is-dark-mode .shop-filter-checkbox {
	border-color: var(--shop-border);
}

html.is-dark-mode .shop-filter-checkbox:checked {
	background: var(--shop-accent);
	border-color: var(--shop-accent);
}

.shop-link.is-primary {
	background: var(--shop-button-bg);
	border-color: var(--shop-button-bg);
	color: var(--shop-button-text);
}

.shop-link.is-primary:hover {
	background: var(--shop-primary-hover);
	border-color: var(--shop-primary-hover);
}

/* -------------------------
 * 轮播 Banner
 * ------------------------- */
.shop-hero {
	margin-top: 14px;
	background: var(--shop-surface);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius-lg);
	box-shadow: var(--shop-shadow);
	overflow: hidden;
}

.shop-hero-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	transition: transform .45s cubic-bezier(.2, .9, .18, 1);
	will-change: transform;
}

.shop-hero-card {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	min-height: 320px;
}

.shop-hero-media {
	background-size: cover;
	background-position: center;
	position: relative;
}

.shop-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}

.shop-hero-body {
	padding: 22px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.shop-hero-badge {
	display: inline-flex;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--shop-bg);
	border: 1px solid var(--shop-border);
	color: var(--shop-text);
	font-size: 12px;
	line-height: 1;
}

.shop-hero-kicker {
	color: var(--shop-muted);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.shop-hero-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--shop-text);
}

.shop-hero-desc {
	margin: 0;
	color: var(--shop-muted);
	line-height: 1.7;
	font-size: 13px;
	max-width: 42ch;
}

.shop-hero-cta {
	margin-top: 2px;
	display: inline-flex;
	width: fit-content;
	padding: 9px 12px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: transparent;
	color: var(--shop-text);
	font-size: 13px;
}

.shop-hero-controls {
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid var(--shop-border);
	background: var(--shop-surface);
}

.shop-hero-nav {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: transparent;
	color: var(--shop-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease;
}

.shop-hero-nav:hover {
	transform: translateY(-1px);
	background: var(--shop-bg);
}

.shop-hero-dots {
	display: flex;
	gap: 8px;
}

.shop-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	border: 0;
	background: rgba(0, 0, 0, 0.18);
	cursor: pointer;
	padding: 0;
	transition: width .18s ease, background .18s ease;
}

html.is-dark-mode .shop-hero-dot {
	background: rgba(255, 255, 255, 0.22);
}

.shop-hero-dot.is-active {
	width: 22px;
	background: var(--shop-button-bg);
}

/* -------------------------
 * 通用区块标题
 * ------------------------- */
.shop-section {
	margin-top: 22px;
}

.shop-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.shop-section-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--shop-text);
	letter-spacing: -0.01em;
}

.shop-section-hint {
	color: var(--shop-muted);
	font-size: 12px;
}

/* -------------------------
 * 分类
 * ------------------------- */
.shop-categories-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.shop-category-card {
	padding: 14px 14px 12px;
	border-radius: var(--shop-radius-md);
	border: 1px solid var(--shop-border);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
	min-height: 88px;
}

.shop-category-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shop-shadow-hover);
}

.shop-category-name {
	font-weight: 700;
	color: var(--shop-text);
}

.shop-category-desc {
	margin-top: 6px;
	font-size: 12px;
	color: var(--shop-muted);
	line-height: 1.5;
}

.shop-category-go {
	margin-top: 10px;
	font-size: 12px;
	color: var(--shop-primary);
}

/* -------------------------
 * 商品列表
 * ------------------------- */
.shop-products-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 46px;
	align-items: start;
}

.shop-product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	transition: transform .18s ease;
}

.shop-product-card:hover {
	transform: translateY(-2px);
}

.shop-product-media {
	display: block;
	position: relative;
	width: min(360px, 100%);
	/* 显式高度，避免某些环境下 aspect-ratio 不生效导致容器高度为 0，从而“看不到图片” */
	height: 320px;
	aspect-ratio: 1 / 1;
	perspective: 1000px;
	line-height: 0;
	overflow: hidden;
	/* 按需求：不加边框和背景（保持纯图片） */
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* 直接使用两张 img 叠放，hover 时切换透明度（最稳的实现） */
.shop-product-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transform: perspective(900px) rotateY(-10deg) scale(0.985);
	transition: opacity 260ms ease, transform 520ms cubic-bezier(.2, .9, .18, 1);
}

.shop-product-img.is-front {
	opacity: 1;
	transform: perspective(900px) rotateY(0deg) scale(1);
}

.shop-product-card:hover .shop-product-img.is-front {
	opacity: 0;
	transform: perspective(900px) rotateY(-12deg) scale(0.985);
}

.shop-product-card:hover .shop-product-img.is-back {
	opacity: 1;
	transform: perspective(900px) rotateY(0deg) scale(1);
}

/* aspect-ratio fallback */
@supports not (aspect-ratio: 1 / 1) {
	.shop-product-media::before {
		content: "";
		display: block;
		padding-top: 100%;
	}

	.shop-product-img {
		position: absolute;
		inset: 0;
	}
}

.shop-product-tag-wrap {
	margin-top: 14px;
	min-height: 22px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.shop-product-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--shop-sale-bg);
	color: var(--shop-sale-text);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.02em;
}

.shop-product-body {
	padding: 16px 8px 0;
	width: min(360px, 100%);
}

.shop-product-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	min-height: 40px;
	color: var(--shop-text);
}

.shop-product-price {
	margin-top: 10px;
	display: flex;
	align-items: baseline;
	gap: 12px;
	justify-content: center;
}

.shop-price-now {
	font-weight: 700;
	color: var(--shop-text);
}

.shop-price-compare {
	font-size: 12px;
	color: var(--shop-muted);
	text-decoration: line-through;
}

/* Toolbar（参考设计稿） */
.shop-products-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 34px;
	color: var(--shop-muted);
	font-size: 13px;
}

.shop-products-filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.shop-products-filter-label {
	color: var(--shop-muted);
}

.shop-products-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: var(--shop-text);
	font-size: 13px;
	padding: 6px 0;
	cursor: pointer;
}

.shop-products-filter-caret {
	color: var(--shop-muted);
	font-size: 12px;
	transform: translateY(-1px);
}

.shop-products-count {
	color: var(--shop-muted);
}

/* 下拉菜单（参考设计稿） */
.shop-filter-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: min(340px, 78vw);
	background: var(--shop-surface);
	border: 1px solid var(--shop-border);
	box-shadow: 0 16px 40px rgba(18, 18, 18, 0.12);
	border-radius: 10px;
	overflow: hidden;
	display: none;
	z-index: 99;
}

.shop-products-filter.is-open .shop-filter-menu {
	display: block;
}

.shop-filter-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--shop-border);
	color: var(--shop-muted);
	font-size: 13px;
}

.shop-filter-reset {
	border: 0;
	background: transparent;
	color: var(--shop-text);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px 2px;
}

.shop-filter-menu-body {
	max-height: min(62vh, 560px);
	overflow: auto;
	padding: 6px 0;
}

.shop-filter-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	user-select: none;
	color: var(--shop-text);
}

.shop-filter-item:hover {
	background: var(--shop-bg);
}

.shop-filter-checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid var(--shop-border);
	background: transparent;
	border-radius: 2px;
	display: inline-block;
	position: relative;
	flex: 0 0 auto;
}

.shop-filter-checkbox:checked {
	background: var(--shop-text);
	border-color: var(--shop-text);
}

.shop-filter-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 6px;
	height: 10px;
	border: solid var(--shop-surface);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.shop-filter-name {
	font-size: 16px;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.shop-filter-count {
	color: var(--shop-muted);
	font-size: 16px;
	margin-left: auto;
	line-height: 1.2;
}

@media (max-width: 520px) {
	.shop-filter-name,
	.shop-filter-count {
		font-size: 15px;
	}
}

.shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: transparent;
	color: var(--shop-text);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.shop-btn:hover {
	transform: translateY(-1px);
	background: var(--shop-bg);
}

.shop-btn.is-primary {
	background: var(--shop-button-bg);
	border-color: var(--shop-button-bg);
	color: var(--shop-button-text);
}

.shop-btn.is-primary:hover {
	background: var(--shop-primary-hover);
	border-color: var(--shop-primary-hover);
}

.shop-btn.is-ghost {
	background: transparent;
}

.shop-btn:disabled,
.shop-btn.is-disabled,
.shop-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}

.shop-btn.is-wide {
	width: 100%;
}

/* -------------------------
 * 商品详情页
 * ------------------------- */
.shop-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--shop-muted);
	font-size: 13px;
	margin-bottom: 14px;
}

.shop-breadcrumb a {
	color: var(--shop-text);
}

.shop-product-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 14px;
	align-items: start;
}

.shop-product-summary,
.shop-detail-card,
.shop-form-card,
.shop-summary-card,
.shop-success-card {
	background: var(--shop-surface);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius-lg);
	box-shadow: var(--shop-shadow);
}

.shop-product-gallery {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.shop-product-gallery-main {
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	background: transparent;
	border: 0;
	overflow: hidden;
}

.shop-product-gallery-thumbs {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.shop-product-gallery-thumbs::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.shop-thumb {
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	width: 72px;
	height: 72px;
	flex: 0 0 auto;
	opacity: 0.55;
}

.shop-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	border-radius: 0;
}

.shop-thumb.is-active {
	opacity: 1;
}

/* 旧版缩略图背景块（不再使用，保留兼容不显示） */
.shop-thumb-img {
	display: none;
}

.shop-product-summary {
	padding: 18px 18px;
}

.shop-product-pill {
	display: inline-flex;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: var(--shop-bg);
	font-size: 12px;
	line-height: 1;
	color: var(--shop-text);
	width: fit-content;
}

.shop-product-h1 {
	margin: 12px 0 8px;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--shop-text);
}

.shop-product-sub {
	margin: 0;
	color: var(--shop-muted);
	line-height: 1.7;
	font-size: 13px;
}

.shop-product-price-row {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--shop-border);
}

.shop-product-cta {
	margin-top: 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.shop-product-meta {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--shop-border);
	display: grid;
	gap: 10px;
	font-size: 13px;
	color: var(--shop-text);
}

.shop-meta-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.shop-meta-label {
	color: var(--shop-muted);
	min-width: 44px;
}

.shop-product-actions-row {
	margin-top: 14px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.shop-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.shop-detail-card {
	padding: 16px;
}

.shop-detail-card h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.shop-ul {
	margin: 0;
	padding-left: 18px;
	color: var(--shop-muted);
	line-height: 1.8;
	font-size: 13px;
}

.shop-spec {
	display: grid;
	gap: 8px;
	font-size: 13px;
	color: var(--shop-text);
}

.shop-spec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--shop-bg);
	border: 1px solid var(--shop-border);
}

.shop-detail-banner {
	margin-top: 14px;
	padding: 16px;
	border-radius: var(--shop-radius-lg);
	border: 1px solid var(--shop-border);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.shop-detail-banner-kicker {
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--shop-muted);
	text-transform: uppercase;
}

.shop-detail-banner-title {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 700;
}

.shop-detail-banner-desc {
	margin-top: 6px;
	color: var(--shop-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* -------------------------
 * 购物车/结算
 * ------------------------- */
.shop-cart-grid,
.shop-checkout-grid {
	display: grid;
	grid-template-columns: 1.45fr 0.55fr;
	gap: 14px;
	align-items: start;
}

.shop-cart-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 14px;
	padding: 14px;
	border-radius: var(--shop-radius-lg);
	border: 1px solid var(--shop-border);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow);
	margin-bottom: 12px;
}

.shop-cart-media {
	border-radius: 12px;
	border: 1px solid var(--shop-border);
	background-size: cover;
	background-position: center;
	min-height: 120px;
}

.shop-cart-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.shop-cart-meta {
	margin-top: 6px;
	color: var(--shop-muted);
	font-size: 13px;
}

.shop-cart-row {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.shop-cart-price {
	font-weight: 700;
}

.shop-qty {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid var(--shop-border);
	background: var(--shop-bg);
	overflow: hidden;
}

.shop-qty-btn {
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: var(--shop-text);
	cursor: pointer;
}

.shop-qty-input {
	width: 44px;
	height: 34px;
	border: 0;
	background: transparent;
	color: var(--shop-text);
	text-align: center;
	font-size: 13px;
}

.shop-cart-remove {
	border: 0;
	background: transparent;
	color: var(--shop-muted);
	font-size: 13px;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 10px;
}

.shop-cart-remove:hover {
	background: var(--shop-bg);
}

.shop-summary-card {
	position: sticky;
	top: 18px;
	padding: 16px;
}

.shop-summary-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.shop-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--shop-text);
	font-size: 13px;
	padding: 8px 0;
}

.shop-summary-divider {
	height: 1px;
	background: var(--shop-border);
	margin: 8px 0;
}

.shop-summary-row.is-total {
	font-weight: 700;
}

.shop-summary-hint {
	margin-top: 10px;
	font-size: 12px;
	color: var(--shop-muted);
	line-height: 1.6;
}

.shop-form-card {
	padding: 16px;
	margin-bottom: 14px;
}

.shop-card-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.shop-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.shop-field.is-full {
	grid-column: 1 / -1;
}

.shop-field-label {
	display: block;
	font-size: 12px;
	color: var(--shop-muted);
	margin-bottom: 8px;
}

.shop-input,
.shop-textarea {
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--shop-border);
	background: var(--shop-bg);
	color: var(--shop-text);
	padding: 11px 12px;
	font-size: 13px;
	box-sizing: border-box;
}

.shop-input:disabled,
.shop-textarea:disabled {
	opacity: 0.7;
}

.shop-form-note {
	margin-top: 10px;
	font-size: 12px;
	color: var(--shop-muted);
	line-height: 1.6;
}

.shop-pay-grid {
	display: grid;
	gap: 12px;
}

.shop-pay-option input {
	display: none;
}

.shop-pay-option .shop-pay-pill {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid var(--shop-border);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.shop-pay-option .shop-pay-pill img {
	height: 24px;
	width: auto;
	object-fit: contain;
}

.shop-pay-option input:checked + .shop-pay-pill {
	border-color: var(--shop-primary);
	background: var(--shop-surface);
	box-shadow: 0 0 0 1px var(--shop-primary);
}

.shop-pay-option input:checked + .shop-pay-pill::after {
	content: '✓';
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	font-weight: 600;
	color: var(--shop-primary);
}

html.is-dark-mode .shop-pay-option input:checked + .shop-pay-pill {
	border-color: var(--shop-accent);
	box-shadow: 0 0 0 1px var(--shop-accent);
}

html.is-dark-mode .shop-pay-option input:checked + .shop-pay-pill::after {
	color: var(--shop-accent);
}

.shop-checkout-col .shop-btn.is-primary {
	margin-top: 24px;
	width: 100%;
	background: var(--shop-primary);
	color: var(--shop-button-text);
	font-size: 15px;
	padding: 14px;
}

html.is-dark-mode .shop-checkout-col .shop-btn.is-primary {
	background: var(--shop-button-bg);
	color: var(--shop-button-text);
}

/* -------------------------
 * 成功页
 * ------------------------- */
.shop-success-card {
	max-width: 720px;
	margin: 0 auto;
	padding: 30px 22px;
	text-align: center;
}

.shop-success-icon {
	width: 62px;
	height: 62px;
	margin: 0 auto 12px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--shop-bg);
	border: 1px solid var(--shop-border);
	color: var(--shop-text);
}

.shop-success-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.shop-success-desc {
	margin: 10px auto 0;
	max-width: 54ch;
	color: var(--shop-muted);
	line-height: 1.7;
	font-size: 13px;
}

.shop-success-meta {
	margin: 18px auto 0;
	max-width: 460px;
	border-radius: 12px;
	border: 1px solid var(--shop-border);
	background: var(--shop-bg);
	padding: 10px;
	text-align: left;
}

.shop-success-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px;
	color: var(--shop-text);
	font-size: 13px;
}

.shop-success-actions {
	margin-top: 18px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.shop-success-hint {
	margin-top: 14px;
	color: var(--shop-muted);
	font-size: 12px;
}

/* -------------------------
 * 响应式
 * ------------------------- */
@media (max-width: 1024px) {
	.shop-categories-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.shop-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 42px 22px;
	}

	.shop-product-media {
		height: 300px;
	}
}

@media (max-width: 820px) {
	.shop-topbar,
	.shop-page-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.shop-topbar-right,
	.shop-page-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.shop-hero-card {
		grid-template-columns: 1fr;
	}

	.shop-product-hero {
		grid-template-columns: 1fr;
	}

	.shop-cart-grid,
	.shop-checkout-grid {
		grid-template-columns: 1fr;
	}

	.shop-summary-card {
		position: relative;
		top: auto;
	}

	.shop-product-media {
		height: 280px;
	}
}

@media (max-width: 520px) {
	.shop-shell {
		padding: 22px 14px 32px;
	}

	.shop-title,
	.shop-page-title {
		font-size: 22px;
	}

	.shop-hero-card {
		min-height: 420px;
	}

	.shop-categories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shop-products-toolbar {
		margin-bottom: 22px;
	}


	.shop-product-cta {
		grid-template-columns: 1fr;
	}

	.shop-cart-item {
		grid-template-columns: 1fr;
	}

	.shop-cart-media {
		min-height: 160px;
	}

	.shop-form-grid {
		grid-template-columns: 1fr;
	}

	.shop-product-media {
		height: 240px;
	}
}

/* =========================
 * 强制覆盖：商品详情页缩略图
 * 目标：左对齐、紧贴、无边框/无卡片底
 * （放在文件末尾，确保覆盖旧版 .shop-product-gallery/.shop-thumb 样式）
 * ========================= */

.shop-product-page .shop-product-gallery {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.shop-product-page .shop-product-gallery-main {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.shop-product-page .shop-product-gallery-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.shop-product-page .shop-product-gallery-thumbs {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	gap: 10px !important;
	margin-top: 14px !important;
	padding: 0 !important;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.shop-product-page .shop-product-gallery-thumbs::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.shop-product-page .shop-thumb {
	width: 72px !important;
	height: 72px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	opacity: 0.55;
}

.shop-product-page .shop-thumb.is-active {
	opacity: 1;
}

.shop-product-page .shop-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 520px) {
	.shop-product-page .shop-thumb {
		width: 64px !important;
		height: 64px !important;
	}
}

.shop-product-page .shop-product-specs {
	margin-top: 20px;
}

.shop-product-page .shop-spec-group {
	margin-bottom: 16px;
}

.shop-product-page .shop-spec-group:last-child {
	margin-bottom: 0;
}

.shop-product-page .shop-spec-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-muted);
	margin-bottom: 10px;
}

.shop-product-page .shop-spec-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.shop-product-page .shop-spec-option {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-text);
	background: var(--shop-card);
	border: 1px solid var(--shop-border);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.shop-product-page .shop-spec-option:hover {
	border-color: var(--shop-accent);
	color: var(--shop-accent);
}

.shop-product-page .shop-spec-option.is-active {
	background: var(--shop-accent);
	border-color: var(--shop-accent);
	color: #fff;
}

.shop-product-page .shop-product-tabs {
	margin-top: 32px;
}

.shop-product-page .shop-tabs-nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--shop-border);
	margin-bottom: 24px;
}

.shop-product-page .shop-tab-btn {
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 500;
	color: var(--shop-muted);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	position: relative;
	bottom: -1px;
}

.shop-product-page .shop-tab-btn:hover {
	color: var(--shop-text);
}

.shop-product-page .shop-tab-btn.is-active {
	color: var(--shop-text);
	border-bottom-color: var(--shop-accent);
}

.shop-product-page .shop-tabs-content {
	position: relative;
}

.shop-product-page .shop-tab-panel {
	display: none;
	animation: fadeIn 0.3s ease;
}

.shop-product-page .shop-tab-panel.is-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.shop-product-page .shop-product-detail-content {
	color: var(--shop-text);
	font-size: 14px;
	line-height: 1.8;
}

.shop-product-page .shop-product-detail-content img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--shop-radius);
}

.shop-product-page .shop-product-detail-content figure {
	margin: 0 0 20px;
}

.shop-product-page .shop-product-detail-content figure img {
	width: 100%;
}

.shop-product-page .shop-product-detail-content p {
	margin: 0 0 16px;
}

.shop-product-page .shop-product-detail-content .shop-ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.shop-product-page .shop-product-detail-content .shop-ul li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 8px;
}

.shop-product-page .shop-product-detail-content .shop-ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	background: var(--shop-accent);
	border-radius: 50%;
}

.shop-product-page .shop-articles-masonry {
	column-count: 3;
	column-gap: 20px;
}

.shop-product-page .shop-articles-masonry .langyu-masonry-item {
	break-inside: avoid;
	margin-bottom: 20px;
	background: var(--shop-card);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-page .shop-articles-masonry .langyu-masonry-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.shop-product-page .shop-articles-masonry .masonry-thumbnail a {
	display: block;
}

.shop-product-page .shop-articles-masonry .masonry-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.shop-product-page .shop-articles-masonry .masonry-content {
	padding: 16px;
}

.shop-product-page .shop-articles-masonry .masonry-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.shop-product-page .shop-articles-masonry .masonry-title a {
	color: var(--shop-text);
	text-decoration: none;
}

.shop-product-page .shop-articles-masonry .masonry-title a:hover {
	color: var(--shop-accent);
}

.shop-product-page .shop-articles-masonry .masonry-author-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--shop-muted);
	font-size: 13px;
}

.shop-product-page .shop-articles-masonry .masonry-avatar-wrapper {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.shop-product-page .shop-articles-masonry .masonry-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.shop-product-page .shop-articles-masonry {
		column-count: 2;
	}
}

@media (max-width: 520px) {
	.shop-product-page .shop-articles-masonry {
		column-count: 1;
	}
}
