/* =========================================================
 * MOY 产品中心样式 v3 —— 复刻 AIXIO 商店模板风格
 * ---------------------------------------------------------
 * 核心复刻点：
 *  1. 大圆角产品图片（14px）
 *  2. hover 时图片底部滑出"毛玻璃操作条"（backdrop-filter blur）
 *     —— 去掉购物车/收藏，只留 View Details（黑胶囊 + 高亮箭头块）
 *  3. 卡片信息区：左侧标题 + CAS（原价格位），右侧纯度徽章（原评分位）
 *  4. 圆形分页、浅色页面（白底 + 淡紫渐变头）
 * ---------------------------------------------------------
 * 配色集中在 :root 变量，想换深蓝化工风改 3 个值即可。
 * ======================================================= */

:root {
	--moy-primary: #6366f1;        /* 主色（indigo 紫蓝） */
	--moy-primary-soft: #eef2ff;   /* 主色淡底 */
	--moy-primary-ink: #4f46e5;    /* 主色深字 */
	--moy-accent: #a3e635;         /* 点缀色（箭头块，原模板柠檬绿） */
	--moy-accent-ink: #1a2e05;
	--moy-dark: #171a26;           /* 深色（遮罩/按钮底） */
	--moy-title: #151827;          /* 标题文字 */
	--moy-text: #4b5063;           /* 正文文字 */
	--moy-muted: #9aa0b4;          /* 弱文字 */
	--moy-line: #e9eaf2;           /* 边框线 */
	--moy-bg-soft: #f6f7fc;        /* 浅灰底 */
	--moy-radius: 14px;
	--moy-transition: all .35s cubic-bezier(.2, .7, .3, 1);
}

/* =========================================================
 * 列表页布局：左侧边栏 + 右侧网格（复刻 shop-left-sidebar）
 * ======================================================= */
.moy-shop-wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px 70px;
	background:
		radial-gradient(900px 260px at 85% 0%, rgba(99, 102, 241, .10), transparent 60%),
		linear-gradient(180deg, #fafaff 0%, #ffffff 40%);
}

.moy-shop-head {
	text-align: center;
	padding: 56px 20px 34px;
}

.moy-shop-eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--moy-primary-ink);
	background: var(--moy-primary-soft);
	border: 1px solid rgba(99, 102, 241, .25);
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.moy-shop-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--moy-title);
	margin: 0 0 10px;
}

.moy-shop-sub {
	color: var(--moy-text);
	font-size: 15px;
	margin: 0;
}

/* 布局容器 */
.moy-shop-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 34px;
	align-items: start;
}

@media (max-width: 991px) {
	.moy-shop-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- 侧边栏 ---------- */
.moy-sidebar .moy-search-widget {
	position: relative;
	margin-bottom: 26px;
}

.moy-sidebar .moy-search-widget input {
	width: 100%;
	padding: 13px 46px 13px 16px;
	border: none;
	border-radius: 8px;
	background: var(--moy-primary);
	color: #fff;
	font-size: 14px;
	outline: none;
}

.moy-sidebar .moy-search-widget input::placeholder {
	color: rgba(255, 255, 255, .75);
}

.moy-sidebar .moy-search-widget button {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 44px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.moy-sidebar .moy-widget {
	background: var(--moy-bg-soft);
	border: 1px solid var(--moy-line);
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 24px;
}

.moy-sidebar .moy-widget h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--moy-title);
	margin: 0 0 14px;
}

.moy-sidebar .moy-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.moy-sidebar .moy-cat-list li + li {
	border-top: 1px dashed var(--moy-line);
}

.moy-sidebar .moy-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 2px;
	color: var(--moy-text);
	font-size: 14px;
	text-decoration: none;
	transition: var(--moy-transition);
}

.moy-sidebar .moy-cat-list a:hover,
.moy-sidebar .moy-cat-list a.moy-active {
	color: var(--moy-primary-ink);
	padding-left: 8px;
}

.moy-sidebar .moy-cat-list a .moy-arrow {
	font-size: 16px;
	color: var(--moy-muted);
	transition: var(--moy-transition);
}

.moy-sidebar .moy-cat-list a:hover .moy-arrow {
	color: var(--moy-primary);
	transform: translateX(3px);
}

/* ---------- 主区 ---------- */
.moy-shop-result-count {
	font-size: 13px;
	color: var(--moy-muted);
	margin-bottom: 16px;
}

/* 产品网格（2 列，复刻模板 col-md-6） */
.moy-shop-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

@media (max-width: 767px) {
	.moy-shop-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
 * 产品卡片（复刻 .product-card.style-one，去掉加购/收藏）
 * ======================================================= */
.moy-card {
	position: relative;
	display: block;
	text-decoration: none;
}

.moy-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--moy-radius);
	background: var(--moy-bg-soft);
	box-shadow: 0 10px 30px rgba(23, 26, 38, .08);
}

.moy-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: var(--moy-transition);
}

.moy-card:hover .moy-card-media img {
	transform: scale(1.06);
}

.moy-card-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--moy-muted);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* hover 毛玻璃操作条（原 product-action；只保留 View Details） */
.moy-card-action {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -80px;
	display: flex;
	justify-content: center;
	background: rgba(23, 26, 38, .55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-radius: 999px;
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transition: var(--moy-transition);
}

.moy-card:hover .moy-card-action {
	bottom: 14px;
	opacity: 1;
	visibility: visible;
}

/* View Details 按钮（复刻 .btn.style-seven：黑胶囊 + 高亮箭头块） */
.moy-btn-view {
	display: inline-flex;
	align-items: stretch;
	border-radius: 999px;
	overflow: hidden;
	background: var(--moy-dark);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: var(--moy-transition);
}

.moy-btn-view .moy-btn-txt {
	padding: 9px 18px;
}

.moy-btn-view .moy-btn-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	background: var(--moy-accent);
	color: var(--moy-accent-ink);
	font-size: 15px;
	font-weight: 700;
	transition: var(--moy-transition);
}

.moy-card:hover .moy-btn-view {
	background: var(--moy-primary);
}

.moy-card:hover .moy-btn-view .moy-btn-arrow {
	background: var(--moy-accent);
}

/* 卡片信息区：标题+CAS 左，纯度徽章右（原价格/评分位） */
.moy-card-info {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 4px 0;
}

.moy-card-info .moy-card-title {
	min-width: 0;
}

.moy-card-info h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--moy-title);
	margin: 0 0 4px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.moy-card-info h3 a {
	color: inherit;
	text-decoration: none;
	transition: color .25s ease;
}

.moy-card-info h3 a:hover {
	color: var(--moy-primary-ink);
}

.moy-cas {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--moy-primary-ink);
	background: var(--moy-primary-soft);
	padding: 3px 10px;
	border-radius: 6px;
	white-space: nowrap;
}

.moy-purity {
	flex-shrink: 0;
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--moy-accent-ink);
	background: rgba(163, 230, 53, .22);
	border: 1px solid rgba(163, 230, 53, .45);
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ---------- 圆形分页（复刻模板） ---------- */
.moy-pagination {
	margin-top: 46px;
	text-align: center;
}

.moy-pagination ul {
	display: inline-flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.moy-pagination a,
.moy-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--moy-line);
	font-size: 14px;
	font-weight: 600;
	color: var(--moy-title);
	text-decoration: none;
	background: #fff;
	transition: var(--moy-transition);
}

.moy-pagination a:hover {
	border-color: var(--moy-primary);
	color: var(--moy-primary-ink);
	transform: translateY(-2px);
}

.moy-pagination .current {
	background: var(--moy-primary);
	border-color: var(--moy-primary);
	color: #fff;
}

.moy-no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--moy-text);
}

/* =========================================================
 * 详情页（浅色模板风）
 * ======================================================= */
.moy-product-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 70px;
	background:
		radial-gradient(900px 260px at 85% 0%, rgba(99, 102, 241, .10), transparent 60%),
		linear-gradient(180deg, #fafaff 0%, #ffffff 40%);
}

.moy-breadcrumb {
	font-size: 13px;
	color: var(--moy-muted);
	margin-bottom: 24px;
}

.moy-breadcrumb a {
	color: var(--moy-primary-ink);
	text-decoration: none;
}

.moy-breadcrumb a:hover {
	text-decoration: underline;
}

.moy-breadcrumb .sep {
	margin: 0 8px;
	color: var(--moy-muted);
}

.moy-product-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 44px;
}

@media (max-width: 860px) {
	.moy-product-main {
		grid-template-columns: 1fr;
	}
}

.moy-product-gallery {
	border-radius: var(--moy-radius);
	overflow: visible;
	background: var(--moy-bg-soft);
	box-shadow: 0 16px 44px rgba(23, 26, 38, .10);
}

.moy-product-gallery .moy-product-img {
	width: 100%;
	height: auto;
	display: block;
}

/* 图片集：主图 + 缩略图切换 */
.moy-product-img-main {
	border-radius: var(--moy-radius);
	overflow: hidden;
	background: var(--moy-bg-soft);
	margin-bottom: 12px;
	aspect-ratio: 4 / 3;
}
.moy-product-img-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .3s ease;
}
.moy-product-thumbs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.moy-thumb {
	width: 74px;
	height: 56px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: var(--moy-bg-soft);
	transition: border-color .25s ease, transform .25s ease;
}
.moy-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.moy-thumb.moy-active,
.moy-thumb:hover {
	border-color: var(--pbmit-global-color, #00358d);
	transform: translateY(-2px);
}

.moy-product-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	color: var(--moy-muted);
}

.moy-product-name {
	font-size: clamp(24px, 3.4vw, 32px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--moy-title);
	margin: 0 0 12px;
	line-height: 1.2;
}

.moy-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.moy-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--moy-primary-soft);
	border: 1px solid rgba(99, 102, 241, .3);
	color: var(--moy-primary-ink);
}

.moy-badge-purity {
	background: rgba(163, 230, 53, .18);
	border-color: rgba(163, 230, 53, .5);
	color: var(--moy-accent-ink);
}

.moy-badge-grade {
	background: var(--moy-bg-soft);
	border-color: var(--moy-line);
	color: var(--moy-text);
}

.moy-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 18px;
	font-size: 14px;
	background: #fff;
	border: 1px solid var(--moy-line);
	border-radius: 10px;
	overflow: hidden;
}

.moy-spec-table th,
.moy-spec-table td {
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid var(--moy-line);
}

.moy-spec-table tr:last-child th,
.moy-spec-table tr:last-child td {
	border-bottom: none;
}

.moy-spec-table th {
	width: 38%;
	color: var(--moy-muted);
	font-weight: 500;
	background: var(--moy-bg-soft);
}

.moy-spec-table td {
	color: var(--moy-title);
	font-weight: 500;
}

.moy-certs,
.moy-docs {
	font-size: 14px;
	color: var(--moy-text);
}

.moy-doc-link {
	color: var(--moy-primary-ink);
	text-decoration: none;
	font-weight: 500;
}

.moy-doc-link:hover {
	text-decoration: underline;
}

.moy-product-cta {
	display: flex;
	gap: 12px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.moy-btn {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: var(--moy-transition);
}

.moy-btn-primary {
	background: var(--moy-primary);
	color: #fff;
	padding: 13px 30px;
	box-shadow: 0 10px 26px rgba(99, 102, 241, .30);
}

.moy-btn-primary:hover {
	background: var(--moy-primary-ink);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(99, 102, 241, .40);
}

.moy-btn-ghost {
	background: transparent;
	border: 1px solid var(--moy-line);
	color: var(--moy-title);
	padding: 12px 28px;
}

.moy-btn-ghost:hover {
	border-color: var(--moy-primary);
	color: var(--moy-primary-ink);
}

.moy-product-description,
.moy-product-apps,
.moy-related {
	margin-bottom: 44px;
}

.moy-product-description h2,
.moy-product-apps h2,
.moy-related h2,
.moy-inquiry-box h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--moy-title);
	margin: 0 0 14px;
}

.moy-product-description p,
.moy-product-apps p {
	font-size: 15px;
	line-height: 1.85;
	color: var(--moy-text);
}

/* 询盘区（浅色卡片版） */
.moy-inquiry-box {
	background: #fff;
	border: 1px solid var(--moy-line);
	border-radius: 16px;
	box-shadow: 0 16px 44px rgba(23, 26, 38, .08);
	padding: 32px;
	margin-bottom: 44px;
}

.moy-inquiry-tip {
	color: var(--moy-muted);
	font-size: 14px;
	margin-bottom: 20px;
}

/* 主题表单（contact-form）浅色适配 */
.moy-inquiry-box .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0;
}

.moy-inquiry-box .row .col-md-12 {
	grid-column: 1 / -1;
}

@media (max-width: 640px) {
	.moy-inquiry-box .row {
		grid-template-columns: 1fr;
	}
}

.moy-inquiry-box .form-control {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--moy-line);
	border-radius: 10px;
	background: var(--moy-bg-soft);
	color: var(--moy-title);
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: var(--moy-transition);
}

.moy-inquiry-box .form-control:focus {
	outline: none;
	border-color: var(--moy-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.moy-inquiry-box .form-control::placeholder {
	color: var(--moy-muted);
}

.moy-inquiry-box input[name="subject"] {
	color: var(--moy-primary-ink);
	font-weight: 600;
	background: var(--moy-primary-soft);
	cursor: default;
}

.moy-inquiry-box textarea.form-control {
	resize: vertical;
	min-height: 90px;
	line-height: 1.6;
}

.moy-inquiry-box .pbmit-btn.submit {
	display: inline-block;
	padding: 13px 34px;
	border: none;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	color: #fff;
	background: var(--moy-primary);
	box-shadow: 0 10px 26px rgba(99, 102, 241, .30);
	transition: var(--moy-transition);
}

.moy-inquiry-box .pbmit-btn.submit:hover {
	background: var(--moy-primary-ink);
	transform: translateY(-2px);
}

.moy-inquiry-box .pbmit-btn.submit:disabled {
	opacity: .7;
	cursor: not-allowed;
	transform: none;
}

.moy-inquiry-box .message-status {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
}

.moy-inquiry-box .message-status.success {
	color: #4d9f3c;
}

.moy-inquiry-box .message-status.error {
	color: #d64545;
}

.moy-related h2 {
	margin-bottom: 20px;
}

/* =========================================================
 * 滚动淡入动画（列表卡片 / 首页板块卡片）
 * ======================================================= */
.moy-fade {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.moy-fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}
