/* ------------------------------------------------------------------
   fatty15 PDP —— 原页直出层的极小补丁
   只做「没有 Swiper/Shopify JS 时的等效布局切换」，不改源站视觉。
   源站 section CSS 已含 :not(.swiper-initialized) 的兜底布局规则。
   ------------------------------------------------------------------ */

/* 源站把主题色变量定义在被剥掉的整页壳里；片段内补一份默认值（各 section 自己的
   <style data-shopify> 会覆盖它），否则 CTA 按钮会变成无底色的浅色块 */
.f15-pdp-mirror {
  --button: #141b4d;
  --button_label: #ffffff;
  --color: #141b4d;
  --background: #f2f0eb;
  /* 源站 color-scheme 变量（RGB 三元组），缺失会让 .button--primary 变成浅灰 */
  --color-button: 20 27 77;
  --color-button-text: 255 255 255;
  --color-button-hover: 18 18 18;
  --color-secondary-button: 20 27 77;
}

/* 主 CTA：源站 color-scheme 变量在被剥掉的整页壳里；WooCommerce 插件 CSS 在主题之后加载，
   会把 .button--primary 刷成 #e9e6ed，这里用 #id 提升权重压住它（源站 section 自己的
   #shopify-block … .button 规则权重更高，仍然优先） */
#f15-pdp-root :is(.button--primary, .product-form__submit, .single-product__submit) {
  background-color: rgb(var(--color-button, 20,27,77));
  border-color: rgb(var(--color-button, 20,27,77));
  color: rgb(var(--color-button-text, 255,255,255));
}

/* 旧骨架 PDP 在 body 上锁了 overflow:hidden；原页直出页面必须可滚动 */
body.single-product:has(.f15-pdp-mirror) {
  overflow: visible;
}

/* 源站的 SEO h1 区块是 display:none（其 <style> 在被剥掉的整页壳里） */
#shopify-section-hidden-seo {
  display: none;
}

/* 主图：一张一屏 + 位移切换（等价 Swiper slideTo） */
.f15-pdp-mirror .subscription-products__gallery .subscription-products__swiper .swiper-wrapper {
  transition: transform .35s ease;
}

/* 缩略图条：可横向滚动（源站 4.5 张/屏，超出时能滑） */
.f15-pdp-mirror .subscription-products__thumbs .swiper-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.f15-pdp-mirror .subscription-products__thumbs .swiper-wrapper::-webkit-scrollbar {
  display: none;
}
.f15-pdp-mirror .subscription-products__thumbs .subscription-products__slide-thumb {
  cursor: pointer;
}

/* 视频：可点播放 */
.f15-pdp-mirror video {
  cursor: pointer;
}

/* 图集拖拽中：跟手，不参与过渡 */
.f15-pdp-mirror .f15-dragging {
  transition: none !important;
  cursor: grabbing;
}

/* 加购进行中 */.f15-pdp-mirror .f15-atc-busy,
.f15-pdp-mirror .f15-atc-busy * {
  pointer-events: none;
  opacity: .65;
}

/* 通用 swiper 兜底：无 Swiper JS 时横向可滑 */
.f15-pdp-mirror .collection-slider .swiper-wrapper,
.f15-pdp-mirror .product-suggestion .swiper-wrapper,
.f15-pdp-mirror .cross-sell .swiper-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
}
