/* ------------------------------------------------------------------
   armra-pdp.css — 商品页（PDP）专用样式
   只做 base.css 没有覆盖到的结构性缺口，不改源站排版数值：
     ① 购买区：图库（缩略图滑条 / 移动端圆点）、价格行、档位、加购按钮
     ② 两处 splide 轮播：宽度/滚动吸附由本文件接管（源站由 JS 内联写在元素上）
     ③ content-tabs：源站用 JS 绝对定位面板，这里改成文档流（无 JS 也能看到内容）
     ④ 评论墙：源站是 WiseReviews（tailwind 类），这里用自有选择器重写
     ⑤ 卡片组对齐（§20.1：标题等高 / 描述顶对齐 / CTA 底对齐）
   禁：不在这里写 @import，不生成 CSSOM
   ------------------------------------------------------------------ */

/* ========== ① 购买区 ========== */
#MainProduct-armra-pdp__main .product {
	margin-top: 0;
	/* 源站 main 段末尾有 .sticky-atc-footer-spacer（32px 折叠后留着 2rem 下间距），
	   我方没有那个 spacer，就直接补同一段间距，段高才与源站对齐 */
	margin-bottom: 2rem;
}

/* 图库：11 张 1:1 商品图，桌面显示 1 张 + 5 个缩略图，移动端横滑 + 圆点 */
#MediaGallery-armra-pdp__main .product__media-list {
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
#MediaGallery-armra-pdp__main .product__media-list::-webkit-scrollbar {
	display: none;
}
#MediaGallery-armra-pdp__main .product__media-item {
	scroll-snap-align: start;
}
#MediaGallery-armra-pdp__main .product-media-container {
	background: rgb(var(--color-background));
}
#MediaGallery-armra-pdp__main .product__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* 缩略图：一排 5 个，箭头左右滚动（源站由 slider 组件接管，这里用原生 scroll） */
#GalleryThumbnails-armra-pdp__main .thumbnail-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	margin: 0;
	padding: 0;
}
#GalleryThumbnails-armra-pdp__main .thumbnail-list::-webkit-scrollbar {
	display: none;
}
#GalleryThumbnails-armra-pdp__main .thumbnail-list__item {
	flex: 0 0 calc((100% - 4rem) / 5);
	max-width: none;
	width: auto;
	height: auto;
	margin: 0;
	padding-bottom: 0;
}
#GalleryThumbnails-armra-pdp__main .thumbnail {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: var(--media-radius, 0);
	overflow: hidden;
	cursor: pointer;
}
#GalleryThumbnails-armra-pdp__main .thumbnail img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}
#GalleryThumbnails-armra-pdp__main .thumbnail[aria-current='true']::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 0.2rem solid rgb(var(--color-foreground));
	border-radius: inherit;
	pointer-events: none;
}
#GalleryThumbnails-armra-pdp__main .slider-button[disabled] {
	opacity: 0.35;
	cursor: default;
}

#GalleryThumbnails-armra-pdp__main .thumbnail-slider,
#GalleryThumbnails-armra-pdp__main:not(.thumbnail-slider) {
	position: relative;
}
#GalleryThumbnails-armra-pdp__main > .slider-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(var(--color-background), 0.9);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}
#GalleryThumbnails-armra-pdp__main > .slider-button--prev {
	left: -1.2rem;
}
#GalleryThumbnails-armra-pdp__main > .slider-button--next {
	right: -1.2rem;
}
#GalleryThumbnails-armra-pdp__main > .slider-button svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: currentColor;
	display: block;
}
#GalleryThumbnails-armra-pdp__main > .slider-button--prev svg {
	transform: scaleX(-1);
}
#GalleryThumbnails-armra-pdp__main > .slider-button[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* 移动端圆点 */
#MediaGallery-armra-pdp__main .slider-counter__link--dots .dot {
	display: block;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: rgba(var(--color-foreground), 0.25);
}
#MediaGallery-armra-pdp__main .slider-counter__link--active .dot {
	background: rgb(var(--color-foreground));
}
#MediaGallery-armra-pdp__main .slider__dots {
	gap: 0.6rem;
}

/* 价格行：现价 + 划线价并排（源站用 price__sale--price-second 变体，这里直接对齐） */
.product-page-price .price__sale {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.8rem;
}
.product-page-price .price__compare-price s {
	opacity: 0.6;
	font-weight: 400;
}

/* 星级：两层（灰底 + 黄填充）叠放，与 base.css 的 --overlay 规则配套 */
main#MainContent .rating-stars-and-text {
	position: relative;
}
main#MainContent .rating-stars__container--overlay {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}
main#MainContent .rating-stars {
	font-size: var(--font-size, 1.2rem);
}

/* 档位：三行卡片，选中态跟随 input:checked */
quantity-breaks .quantity-break {
	cursor: pointer;
	position: relative;
	display: block;
}
quantity-breaks input[type='radio'] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
quantity-breaks .quantity-break::before {
	content: '';
	position: absolute;
	left: 1.6rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.6rem;
	height: 1.6rem;
	border: 0.2rem solid rgba(var(--color-foreground), 0.35);
	border-radius: 50%;
}
quantity-breaks input[type='radio']:checked + .quantity-break::before {
	border-color: rgb(var(--accent-color));
	box-shadow: inset 0 0 0 0.35rem rgb(var(--accent-color));
}
quantity-breaks input[type='radio']:focus-visible + .quantity-break {
	outline: 0.2rem solid rgb(var(--color-foreground));
	outline-offset: 0.2rem;
}
quantity-breaks .quantity-break__compare-price {
	display: block;
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 1.4rem;
}
/* 徽标 / 权益标签：base.css 走的是 --badge-* / --benefit-font-size 变量（源站由 JS 注入），
   这里给出确定值，否则 var() 无 fallback 会被整条丢弃（表现为 "Buy 314" 糊在一起） */
main#MainContent quantity-breaks {
	--label-font-size: 2rem;
	--price-font-size: 2rem;
	--benefit-font-size: 1.1rem;
	--badge-font-size: 1.2rem;
	--badge-line-height: 1.5;
	--badge-border-radius: 0.4rem;
}
main#MainContent quantity-breaks .quantity-break__benefit {
	display: inline-block;
	margin-left: 0.6rem;
	padding: 0.2rem 0.6rem;
	border: 0.1rem solid currentColor;
	border-radius: 0.3rem;
	font-size: 1.1rem;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
main#MainContent quantity-breaks .quantity-break__badge {
	position: absolute;
	top: 0;
	right: 1.5rem;
	transform: translateY(-50%);
	margin: 0;
	padding: 0.3rem 0.9rem;
	border-radius: 0.4rem;
	background: rgb(var(--color-base-accent-1));
	color: #121212;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	z-index: 2;
}

/* 加购按钮里的 spinner（提交中） */
.main-product-atc.is-loading .loading-overlay__spinner {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.8rem;
	height: 1.8rem;
	margin: -0.9rem 0 0 -0.9rem;
}
.main-product-atc.is-loading .main-atc__label {
	opacity: 0;
}
.main-product-atc {
	position: relative;
}

/* sticky 加购条：滚过主按钮后才出现（源站 data-after-scroll=true 的行为） */
sticky-atc.sticky-atc {
	--sticky-image: 60px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}
sticky-atc.sticky-atc.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
/* WooCommerce 的 .woocommerce-page img{height:auto} 会在产品页压过段落内联样式，
   这里用 id 提高一级（购买区/折叠图/缩略图都是这一类） */
main#MainContent sticky-atc .sticky-atc__image,
main#MainContent sticky-atc .sticky-atc__image img {
	flex: 0 0 var(--sticky-image, 60px);
	width: var(--sticky-image, 60px);
	height: var(--sticky-image, 60px);
	max-width: var(--sticky-image, 60px);
	object-fit: contain;
	display: block;
}
main#MainContent #shopify-section-armra-pdp__1793338946f1152db9 .ai-accordion__image-ass8rdlnam05lzg1nraigenblock1eb3c44kewfjc {
	height: 200px;
	width: 100%;
	object-fit: cover;
	display: block;
}
@media screen and (max-width: 749px) {
	main#MainContent #shopify-section-armra-pdp__1793338946f1152db9 .ai-accordion__image-ass8rdlnam05lzg1nraigenblock1eb3c44kewfjc {
		height: 220px;
	}
}

/* ========== ② 轮播（源站 splide 由 JS 内联定宽；这里交给 CSS） ========== */
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__track,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__track {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__track::-webkit-scrollbar,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__track::-webkit-scrollbar {
	display: none;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__list,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__list {
	height: auto;
	align-items: stretch;
}
/* 源站 splide 由 JS 把每条 slide 的宽度写在内联样式里；没有 JS 时这里用 flex 接管，
   桌面 3 列并排（等价于源站的 grid），移动端 1 列横滑 */
main#MainContent #shopify-section-armra-pdp__multicolumn_YrNWnK .splide__list,
main#MainContent #shopify-section-armra-pdp__multicolumn_JXJh4F .splide__list {
	display: flex;
	flex-wrap: nowrap;
	grid-template-columns: none;
	align-items: stretch;
	height: auto;
	/* base.css 的 .splide__list 带 gap，源站靠 slide 的 margin-right 出间距 →
	   两者叠加会多出 80px（第三卡被裁），这里只保留 margin */
	gap: 0;
}
main#MainContent #shopify-section-armra-pdp__multicolumn_YrNWnK .splide__slide,
main#MainContent #shopify-section-armra-pdp__multicolumn_JXJh4F .splide__slide {
	display: flex;
	flex: 0 0 calc(100% - 1.5rem);
	width: calc(100% - 1.5rem);
	min-width: 0;
	margin-right: 1.5rem;
	scroll-snap-align: start;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__slide > .splide__slide__container,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__slide > .splide__slide__container {
	width: 100%;
}
@media screen and (min-width: 750px) {
	main#MainContent #shopify-section-armra-pdp__multicolumn_YrNWnK .splide__slide,
	main#MainContent #shopify-section-armra-pdp__multicolumn_JXJh4F .splide__slide {
		flex: 0 0 calc((100% - 8rem) / 3);
		width: calc((100% - 8rem) / 3);
		margin-right: 4rem;
	}
	main#MainContent #shopify-section-armra-pdp__multicolumn_YrNWnK .splide__slide:last-child,
	main#MainContent #shopify-section-armra-pdp__multicolumn_JXJh4F .splide__slide:last-child {
		margin-right: 0;
	}
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__arrow,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__arrow {
	cursor: pointer;
	border: 0;
	background: transparent;
	padding: 0;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__arrow--disabled,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__arrow--disabled {
	opacity: 0.3;
	cursor: default;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__pagination__page,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__pagination__page {
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0.4rem;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .splide__pagination__page.is-active::after,
#shopify-section-armra-pdp__multicolumn_JXJh4F .splide__pagination__page.is-active::after {
	transform: scale(1.35);
}
/* 桌面端第三卡与源站一致：三列等宽，卡片等高 */
#shopify-section-armra-pdp__multicolumn_YrNWnK .multicolumn-card,
#shopify-section-armra-pdp__multicolumn_JXJh4F .multicolumn-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .multicolumn-card__image-wrapper,
#shopify-section-armra-pdp__multicolumn_JXJh4F .multicolumn-card__image-wrapper {
	flex: 0 0 auto;
}
#shopify-section-armra-pdp__multicolumn_YrNWnK .multicolumn-card__info,
#shopify-section-armra-pdp__multicolumn_JXJh4F .multicolumn-card__info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
/* §20.1 ②：三列描述顶对齐（列内标题占同一高度） */
@media screen and (min-width: 750px) {
	#shopify-section-armra-pdp__multicolumn_YrNWnK .multicolumn-card h3 {
		min-height: 2.6em;
	}
	#shopify-section-armra-pdp__multicolumn_JXJh4F .multicolumn-card h3 {
		min-height: 2.6em;
	}
}

/* ========== ③ content-tabs：改成文档流 + 真实切换 ========== */
#shopify-section-armra-pdp__content_tabs_JepdRL .content-tabs__tabs {
	height: auto !important;
	overflow: visible;
	position: relative;
	display: block;
}
/* 面板回到文档流；只隐藏非活动页，活动页保留它自己的 display（2 列 grid / flex） */
#shopify-section-armra-pdp__content_tabs_JepdRL .content-tab {
	position: static;
	opacity: 1;
	visibility: visible;
	z-index: 0;
	transition: none;
}
#shopify-section-armra-pdp__content_tabs_JepdRL .content-tab:not(.content-tab--active) {
	display: none;
}
#shopify-section-armra-pdp__content_tabs_JepdRL .content-tab-button {
	cursor: pointer;
	border: 0;
	background: none;
}
#shopify-section-armra-pdp__content_tabs_JepdRL .content-tab-buttom__active-bg {
	transition: left 0.35s ease, width 0.35s ease;
}

/* ========== ④ 评论墙 ========== */
.armra-reviews {
	max-width: 1300px;
	margin: 0 auto;
	padding: 24px 0 40px;
	color: rgb(var(--color-foreground));
}
.armra-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	padding: 20px 0 28px;
}
.armra-reviews__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	min-height: 96px;
	background: rgba(var(--color-foreground), 0.05);
	border-radius: 6px;
}
.armra-reviews__score-value {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
}
.armra-reviews__score-count {
	margin-top: 6px;
	font-size: 1.3rem;
}
.armra-reviews__bars {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 320px;
	flex: 1 1 320px;
}
.armra-reviews__bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.2rem;
}
.armra-reviews__bar-stars {
	display: inline-flex;
	gap: 1px;
	flex: 0 0 auto;
}
.armra-star {
	width: 1.4rem;
	height: 1.4rem;
	fill: #ffcc00;
}
.armra-star--empty {
	fill: #dcdcdc;
}
.armra-reviews__bar-track {
	flex: 1 1 auto;
	height: 8px;
	background: rgba(var(--color-foreground), 0.12);
	border-radius: 99px;
	overflow: hidden;
}
.armra-reviews__bar-fill {
	display: block;
	height: 100%;
	background: #ffcc00;
	border-radius: 99px;
}
.armra-reviews__bar-pct {
	min-width: 4rem;
	text-align: right;
	font-weight: 600;
}
.armra-reviews__media-strip {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.armra-reviews__media-item img {
	display: block;
	width: 98px;
	height: 98px;
	object-fit: cover;
	border-radius: 4px;
}
.armra-reviews__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0 24px;
	border-bottom: 1px solid rgba(var(--color-foreground), 0.1);
}
.armra-reviews__tabs {
	display: flex;
	gap: 8px;
}
.armra-reviews__tab {
	cursor: pointer;
	border: 0;
	background: rgba(var(--color-foreground), 0.05);
	padding: 10px 18px;
	font-size: 1.4rem;
	border-radius: 4px;
	color: inherit;
}
.armra-reviews__tab--active {
	background: rgba(var(--color-foreground), 0.12);
	font-weight: 700;
}
.armra-reviews__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
}
.armra-reviews__sort select {
	padding: 8px 12px;
	border: 1px solid rgba(var(--color-foreground), 0.25);
	border-radius: 4px;
	background: rgb(var(--color-background));
	color: inherit;
	font-size: 1.3rem;
}
.armra-reviews__panel {
	padding-top: 24px;
}
.armra-reviews__list {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}
.armra-reviews__col {
	flex: 1 1 0;
	min-width: 0;
}
.armra-review {
	break-inside: avoid;
	display: block;
	margin: 0 0 24px;
	border: 1px solid rgba(var(--color-foreground), 0.12);
	border-radius: 8px;
	overflow: hidden;
	background: rgb(var(--color-background));
}
.armra-review__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.armra-review__body {
	padding: 16px;
}
.armra-review__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.armra-review__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(var(--color-foreground), 0.12);
	font-size: 1.5rem;
	font-weight: 700;
	flex: 0 0 auto;
}
.armra-review__name {
	font-weight: 600;
	font-size: 1.4rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.armra-review__stars {
	display: inline-flex;
	gap: 1px;
	margin-bottom: 10px;
}
.armra-review__text {
	margin: 0 0 12px;
	font-size: 1.4rem;
	line-height: 2rem;
}
.armra-review__helpful,
.armra-review__date {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.6rem;
	opacity: 0.6;
}
.armra-review__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}
.armra-review__helpful-btn {
	cursor: pointer;
	border: 1px solid rgba(var(--color-foreground), 0.25);
	border-radius: 99px;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1.6rem;
	padding: 6px 14px;
}
.armra-review__helpful-btn[aria-pressed='true'] {
	background: rgba(var(--color-foreground), 0.12);
	font-weight: 700;
}
.armra-reviews__empty {
	margin: 0;
	padding: 32px 0;
	font-size: 1.4rem;
	opacity: 0.7;
}
@media screen and (max-width: 1099px) {
	.armra-reviews__list {
		gap: 16px;
	}
	.armra-reviews__col {
		flex-basis: 0;
	}
}
@media screen and (max-width: 749px) {
	.armra-reviews {
		padding-top: 8px;
	}
	.armra-reviews__summary {
		gap: 16px;
	}
	.armra-reviews__bar-row {
		font-size: 1.1rem;
	}
	/* 移动端与源站一致：两列瀑布流（用多列排版，列容器 display:contents 退出布局） */
	.armra-reviews__list {
		display: block;
		column-count: 2;
		column-gap: 12px;
	}
	.armra-reviews__col {
		display: contents;
	}
	.armra-review {
		margin-bottom: 12px;
	}
	.armra-review__body {
		padding: 12px;
	}
}

/* ---- 2026-11-30 照抄回补：pickup-availability（源站购买区下方的同名组件） ---- */
.product__pickup-availabilities {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.pickup-availability-preview {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pickup-availability-preview > svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.pickup-availability-info p {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.pickup-availability-button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ---- 2026-11-30 照抄回补：评论墙署名（Powered by WiseReviews） ----
   注：本条在 23:28 被并发写覆盖过一次，重放标记 = ".armra-reviews__powered" */
.armra-reviews__powered {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  color: rgb(var(--color-foreground, 18, 18, 18));
  opacity: 0.7;
}

.armra-reviews__powered a {
  color: inherit;
  text-decoration: none;
}

.armra-reviews__powered .wise-font-bold {
  font-weight: 700;
}