/* 固定全站顶部导航 */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 9999;
	background-color: #fff;
}

/* 已登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}
/* 固定全站顶部导航 */
:root {
	--site-header-height: 116px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	z-index: 9999;
	background-color: #fff;
}

header.wp-block-template-part::before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(50%);
	background: #fff;
	content: "";
}

/* 为脱离文档流的页眉保留原有空间 */
body {
	padding-top: var(--site-header-height);
}

/* 登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

body.admin-bar {
	padding-top: calc(var(--site-header-height) + 32px);
}

/* 产品页的 Details / Specs 等二级导航不被页眉遮挡 */
#igmk-details {
	top: var(--site-header-height);
}

body.admin-bar #igmk-details {
	top: calc(var(--site-header-height) + 32px);
}

@media screen and (max-width: 782px) {
	:root {
		--site-header-height: 80px;
	}

	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}

	body.admin-bar {
		padding-top: calc(var(--site-header-height) + 46px);
	}

	body.admin-bar #igmk-details {
		top: calc(var(--site-header-height) + 46px);
	}
}
/* 固定全站顶部导航 */
:root {
	--site-header-height: 116px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	background-color: #fff;
}

header.wp-block-template-part::before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(50%);
	background: #fff;
	content: "";
}

/* 为脱离文档流的页眉保留原有空间 */
body {
	padding-top: var(--site-header-height);
}

/* 登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

body.admin-bar {
	padding-top: calc(var(--site-header-height) + 32px);
}

/* 产品页的 Details / Specs 等二级导航不被页眉遮挡 */
#igmk-details {
	top: var(--site-header-height);
}

body.admin-bar #igmk-details {
	top: calc(var(--site-header-height) + 32px);
}

@media screen and (max-width: 782px) {
	:root {
		--site-header-height: 80px;
	}

	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}

	body.admin-bar {
		padding-top: calc(var(--site-header-height) + 46px);
	}

	body.admin-bar #igmk-details {
		top: calc(var(--site-header-height) + 46px);
	}
}
/* 固定全站顶部导航 */
:root {
	--site-header-height: 138px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	background-color: #fff;
}

header.wp-block-template-part::before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(50%);
	background: #fff;
	content: "";
}

/* 为脱离文档流的页眉保留原有空间 */
body {
	padding-top: var(--site-header-height);
}

/* 登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

body.admin-bar {
	padding-top: calc(var(--site-header-height) + 32px);
}

/* 产品页的 Details / Specs 等二级导航不被页眉遮挡 */
#igmk-details {
	top: var(--site-header-height);
}

body.admin-bar #igmk-details {
	top: calc(var(--site-header-height) + 32px);
}

@media screen and (max-width: 782px) {
	:root {
		--site-header-height: 80px;
	}

	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}

	body.admin-bar {
		padding-top: calc(var(--site-header-height) + 46px);
	}

	body.admin-bar #igmk-details {
		top: calc(var(--site-header-height) + 46px);
	}
}
/* 全站固定页眉：普通页面、商品页与商店归档 */
:root {
	--site-header-height: 138px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	background-color: #fff;
}

header.wp-block-template-part::before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(50%);
	background: #fff;
	content: "";
}

/* 为固定页眉保留内容空间 */
body {
	padding-top: var(--site-header-height);
}

/* 已登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

body.admin-bar {
	padding-top: calc(var(--site-header-height) + 32px);
}

/* 产品详情页的二级锚点导航避开固定页眉 */
#igmk-details {
	top: var(--site-header-height);
}

body.admin-bar #igmk-details {
	top: calc(var(--site-header-height) + 32px);
}

/* 首页使用独立的、嵌入页面内容的导航模板 */
body.home {
	--site-header-height: 91px;
}

body.home .wc-blocks-header-pattern.sticky-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	overflow: visible;
}

body.home.admin-bar .wc-blocks-header-pattern.sticky-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	:root {
		--site-header-height: 80px;
	}

	body.admin-bar header.wp-block-template-part,
	body.home.admin-bar .wc-blocks-header-pattern.sticky-header {
		top: 46px;
	}

	body.admin-bar {
		padding-top: calc(var(--site-header-height) + 46px);
	}

	body.admin-bar #igmk-details {
		top: calc(var(--site-header-height) + 46px);
	}

	body.home {
		--site-header-height: 80px;
	}
}
/* 全站固定页眉：普通页面、商品页与商店归档 */
:root {
	--site-header-height: 138px;
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	background-color: #fff;
}

header.wp-block-template-part::before {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(50%);
	background: #fff;
	content: "";
}

/* 为固定页眉保留内容空间 */
body {
	padding-top: var(--site-header-height);
}

/* 已登录后台时避开 WordPress 管理工具条 */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

body.admin-bar {
	padding-top: calc(var(--site-header-height) + 32px);
}

/* Developer Zone（页面 ID 732）使用带额外内边距的页眉模板 */
body.page-id-732 {
	--site-header-height: 171px;
}

/* 产品详情页的二级锚点导航避开固定页眉 */
#igmk-details {
	top: var(--site-header-height);
}

body.admin-bar #igmk-details {
	top: calc(var(--site-header-height) + 32px);
}

/* 首页使用独立的、嵌入页面内容的导航模板 */
body.home {
	--site-header-height: 91px;
}

body.home .wc-blocks-header-pattern.sticky-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	overflow: visible;
}

body.home.admin-bar .wc-blocks-header-pattern.sticky-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	:root {
		--site-header-height: 80px;
	}

	body.admin-bar header.wp-block-template-part,
	body.home.admin-bar .wc-blocks-header-pattern.sticky-header {
		top: 46px;
	}

	body.admin-bar {
		padding-top: calc(var(--site-header-height) + 46px);
	}

	body.admin-bar #igmk-details {
		top: calc(var(--site-header-height) + 46px);
	}

	body.home {
		--site-header-height: 80px;
	}
}
/* Footer Links */
.footercontent .footer-links .wp-block-navigation-item__content,
.footercontent .footer-links .wp-block-navigation-item__content:visited,
.footercontent .footer-links .wp-block-navigation-item__content:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.footercontent .footer-links .wp-block-navigation-item__content:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* 页脚 Links：与 Policies 一致的白色文字，悬浮时不显示下划线 */
footer .footercontent .wp-block-navigation .wp-block-navigation-item__content,
footer .footercontent .wp-block-navigation .wp-block-navigation-item__content:hover,
footer .footercontent .wp-block-navigation .wp-block-navigation-item__content:focus {
	color: #fff !important;
	text-decoration-line: none !important;
}

/* 首页图片轮播：保持 16:9 比例，避免在窄屏拉伸 */
.ub_image_slider {
	aspect-ratio: 16 / 9;
	height: auto !important;
	overflow: hidden;
}
.ub_image_slider .swiper-wrapper,
.ub_image_slider .swiper-slide,
.ub_image_slider .swiper-slide figure,
.ub_image_slider .swiper-slide img {
	height: 100% !important;
}
.ub_image_slider .swiper-slide img {
	width: 100% !important;
	object-fit: cover !important;
}


/* Ensure the global header stays above page content and its submenus remain unobstructed. */
header.wp-block-template-part {
  position: sticky !important;
  top: 0;
  z-index: 9999 !important;
  overflow: visible !important;
}

body.admin-bar header.wp-block-template-part {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.wp-block-template-part {
    top: 46px;
  }
}

header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation__responsive-container,
header.wp-block-template-part .wp-block-navigation__container,
header.wp-block-template-part .wp-block-navigation-item {
  overflow: visible !important;
}

header.wp-block-template-part .wp-block-navigation__submenu-container {
  z-index: 10000 !important;
}


/* Keep header-inner sticky wrappers from clipping dropdown menus. */
header.wp-block-template-part .is-position-sticky,
header.wp-block-template-part .wp-container-1 {
  z-index: 9999 !important;
  overflow: visible !important;
}


/* Compact the sticky header while preserving its existing layout. */
header.wp-block-template-part .wp-block-site-logo {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

header.wp-block-template-part .wp-block-site-logo img {
  width: auto !important;
  height: 72px !important;
}


/* Remove vertical whitespace from the header-only spacer without changing menu alignment. */
header.wp-block-template-part .wp-block-spacer {
  height: 0 !important;
}
.home-popular-products .wc-block-components-product-price,
.home-popular-products .wc-block-components-product-price * {
  color: #fff !important;
}
