/* SiteForge interaction layer — blackdiamondequipment.com
 * 捕获标记的交互状态、覆盖层、提示条、骨架屏与动画。
 */

.wc-toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; }
.wc-toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: min(92vw, 380px); padding: 13px 16px; background: var(--wc-text); color: var(--wc-bg); border-radius: var(--wc-radius); box-shadow: var(--wc-shadow); font-size: 13.5px; animation: wc-toast-in .28s var(--wc-ease); }
.wc-toast--error { background: #b3261e; }
.wc-toast--success { background: #1a7f37; }
.wc-toast a { text-decoration: underline; text-underline-offset: 3px; margin-left: auto; white-space: nowrap; }
.wc-toast.is-leaving { animation: wc-toast-out .22s var(--wc-ease) forwards; }
@keyframes wc-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wc-toast-out { to { opacity: 0; transform: translateY(8px); } }

.woocommerce-header-capture [aria-label*="search" i],
.woocommerce-header-capture [class*="search"],
.woocommerce-header-capture a[href*="search"] {
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 6;
}
.woocommerce-drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.woocommerce-drawer__toggle svg { width: 16px; height: 16px; transition: transform .2s var(--wc-ease); }

.wc-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--wc-ease), transform .6s var(--wc-ease); }
.wc-reveal.is-visible { opacity: 1; transform: none; }
body:not(.wc-ready) .woocommerce-captured { opacity: 0; }
body.wc-ready .woocommerce-captured { opacity: 1; transition: opacity .25s var(--wc-ease); }

.wc-skeleton { background: linear-gradient(90deg, var(--wc-surface) 25%, var(--wc-surface-2) 37%, var(--wc-surface) 63%); background-size: 400% 100%; animation: wc-shimmer 1.4s ease-in-out infinite; border-radius: var(--wc-radius); }
@keyframes wc-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.woocommerce-search__results a mark, .wc-mark { background: var(--wc-surface-2); color: inherit; padding: 0 2px; }

/* 捕获站点的自定义元素在无 JS 时必须仍然可见 */
.woocommerce-captured [data-woocommerce-deferred] { opacity: 1 !important; }

/* 加购中的卡片态 */
.card-product.is-loading { opacity: .6; pointer-events: none; }
.card-product.is-added .card-product-quick-buy::before { content: '✓'; margin-right: 4px; }

/* 视频卡片 */
[data-collection-video-card] { position: relative; }
[data-collection-video-toggle] { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--wc-bg); color: var(--wc-text); display: grid; place-items: center; box-shadow: var(--wc-shadow-sm); }
[data-collection-video-card].is-playing [data-collection-video-toggle] { background: var(--wc-text); color: var(--wc-bg); }

/* 账户布局与通知条 */
.wc-account-layout { margin-block: var(--wc-space-6); }
.wc-notice--success { border-color: #1a7f37; }
.wc-notice--error { border-color: #b3261e; }
.wc-notice a { text-decoration: underline; }

/* 渐进增强：无 JS 时隐藏仅交互用的控件 */
.no-js .wc-js-only { display: none; }

/* —— 捕获保真守卫（最后入队，压过未分层冲突与缺失 Vue） —— */
[v-cloak] { display: none !important; }
footer #CartDrawer,
.site-footer #CartDrawer,
#PageContainer > #CartDrawer,
body > #CartDrawer:not([data-woocommerce-cart-drawer-root]) { display: none !important; }
[data-woocommerce-header] [data-header-content-desktop],
[data-woocommerce-header] [data-testid="header-desktop"],
.woocommerce-header-capture [data-header-content-desktop],
.woocommerce-header-capture [data-testid="header-desktop"] { display: none !important; }
[data-woocommerce-header] [data-header-content-mobile],
[data-woocommerce-header] [data-testid="header-mobile"],
.woocommerce-header-capture [data-header-content-mobile],
.woocommerce-header-capture [data-testid="header-mobile"] { display: flex !important; }
@media (min-width: 64rem) {
  [data-woocommerce-header] [data-header-content-mobile],
  [data-woocommerce-header] [data-testid="header-mobile"],
  .woocommerce-header-capture [data-header-content-mobile],
  .woocommerce-header-capture [data-testid="header-mobile"] { display: none !important; }
  [data-woocommerce-header] [data-header-content-desktop],
  [data-woocommerce-header] [data-testid="header-desktop"],
  .woocommerce-header-capture [data-header-content-desktop],
  .woocommerce-header-capture [data-testid="header-desktop"] { display: flex !important; }
}

/* PDP 捕获壳：弱化 SiteForge 自建层，隐藏原生 WC 下拉（色卡/尺码走源站 DOM） */
.woocommerce-pdp-capture .wc-pdp,
.woocommerce-pdp-capture .wc-usp { display: none !important; }
/* 原站 media-gallery / 自定义元素保持可见，避免灰块空壳 */
.woocommerce-pdp-capture media-gallery,
.woocommerce-pdp-capture slider-component,
.woocommerce-pdp-capture product-info,
.woocommerce-pdp-capture .product__media-wrapper,
.woocommerce-pdp-capture .product__info-wrapper,
.woocommerce-pdp-capture .product__media-list {
  visibility: visible !important;
  opacity: 1 !important;
}
.woocommerce-pdp-capture media-gallery:not(:defined),
.woocommerce-pdp-capture slider-component:not(:defined),
.woocommerce-pdp-capture product-info:not(:defined) {
  display: block !important;
  /* 勿 width:100%——会压扁 Bootstrap row-cols-lg-2 双列 */
  max-width: 100%;
  box-sizing: border-box;
}

/* BD PDP 桌面双列：仅 media + info；mobile-product-info 绝不可占一列 */
@media screen and (min-width: 990px) {
  .woocommerce-pdp-capture .product.product--stacked.row,
  .woocommerce-pdp-capture .product--stacked.row,
  .woocommerce-pdp-capture .product.row.row-cols-lg-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  /* Bootstrap row-cols-lg-2 会把所有子项（含 mobile-info）设成 50% → 强制干掉 */
  .woocommerce-pdp-capture .product--stacked > .mobile-product-info,
  .woocommerce-pdp-capture .product.row > .mobile-product-info {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
  }
  .woocommerce-pdp-capture .product--stacked > .product__media-wrapper,
  .woocommerce-pdp-capture .product.row > .product__media-wrapper,
  .woocommerce-pdp-capture .row.row-cols-lg-2 > .product__media-wrapper {
    flex: 0 0 52% !important;
    width: 52% !important;
    max-width: 52% !important;
    order: 1;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  .woocommerce-pdp-capture .product--stacked > .product__info-wrapper,
  .woocommerce-pdp-capture .product.row > .product__info-wrapper,
  .woocommerce-pdp-capture .row.row-cols-lg-2 > .product__info-wrapper {
    flex: 0 0 48% !important;
    width: 48% !important;
    max-width: 48% !important;
    order: 2;
    position: sticky;
    top: 88px;
    align-self: flex-start;
    box-sizing: border-box;
    padding-left: clamp(20px, 2vw, 36px);
    padding-right: clamp(12px, 1.5vw, 28px);
    z-index: 2;
    background: #fff;
    overflow: visible !important;
  }
  /* 买盒占满右栏：去掉 36rem/60rem 等窄限制 */
  .woocommerce-pdp-capture .product__info-container,
  .woocommerce-pdp-capture .sidebar__inner,
  .woocommerce-pdp-capture .sidebar__inner-padding,
  .woocommerce-pdp-capture .product__info-wrapper .product-form,
  .woocommerce-pdp-capture product-form.product-form {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .woocommerce-pdp-capture .product__info-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .woocommerce-pdp-capture .sidebar__inner-padding {
    padding-top: 0.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .woocommerce-pdp-capture .product-form__submit,
  .woocommerce-pdp-capture button[name="add"],
  .woocommerce-pdp-capture .product-form__buttons,
  .woocommerce-pdp-capture .product-form__buttons button {
    width: 100% !important;
    max-width: none !important;
  }
  .woocommerce-pdp-capture .product--stacked > .product__media-wrapper media-gallery,
  .woocommerce-pdp-capture .product--stacked > .product__media-wrapper slider-component {
    width: 100% !important;
    max-width: 100%;
  }
  .woocommerce-pdp-capture .product__info-wrapper .price,
  .woocommerce-pdp-capture .product__info-wrapper .price-item {
    display: inline;
  }
  /* BD 图库两列：恢复 Dawn .grid flex，冲掉 style.css 里误加的 display:block */
  .woocommerce-pdp-capture .product__media-list {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    column-gap: var(--grid-desktop-horizontal-spacing, 20px) !important;
    row-gap: var(--grid-desktop-vertical-spacing, 20px) !important;
    overflow: visible !important;
  }
  .woocommerce-pdp-capture .product--stacked .product__media-list .product__media-item,
  .woocommerce-pdp-capture .product__media-list .product__media-item--variant_current,
  .woocommerce-pdp-capture .product__media-list .product__media-item[data-sf-media-live="1"],
  .woocommerce-pdp-capture .product__media-list .grid__item.product__media-item--full {
    width: calc(50% - var(--grid-desktop-horizontal-spacing, 20px) / 2) !important;
    max-width: calc(50% - var(--grid-desktop-horizontal-spacing, 20px) / 2) !important;
    flex: 0 0 calc(50% - var(--grid-desktop-horizontal-spacing, 20px) / 2) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .woocommerce-pdp-capture .product__media-list .product__media-item--variant_current .product__media,
  .woocommerce-pdp-capture .product__media-list .product__media-item[data-sf-media-live="1"] .product__media {
    aspect-ratio: 3 / 4 !important;
    padding-top: 0 !important;
    background: #e8e8e8 !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .woocommerce-pdp-capture .product__media-list .product__media-item--variant_current .product__media img,
  .woocommerce-pdp-capture .product__media-list .product__media-item[data-sf-media-live="1"] .product__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
  }
}

/* 标题/价/描述间距：禁止叠在主图上 */
.woocommerce-pdp-capture .product__title {
  position: relative !important;
  z-index: 2;
  margin: 0 0 12px !important;
  background: transparent;
}
.woocommerce-pdp-capture .product__title h1,
.woocommerce-pdp-capture .product__title h2,
.woocommerce-pdp-capture .product__title .h1,
.woocommerce-pdp-capture .product__title .h2 {
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}
.woocommerce-pdp-capture .product__info-container > * + * {
  margin-top: 10px;
}
.woocommerce-pdp-capture .short-description,
.woocommerce-pdp-capture .short-des-mobile,
.woocommerce-pdp-capture .product__description {
  margin: 12px 0 16px !important;
  line-height: 1.5;
}
.woocommerce-pdp-capture .price {
  margin: 8px 0 12px !important;
}

/* 色块：独立一行，圆形 36px，勿和 COLOR 文案挤 */
.woocommerce-pdp-capture .woocommerce-colorways,
.woocommerce-pdp-capture [data-woocommerce-colorways],
.woocommerce-pdp-capture .wc-pdp-colorways-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 10px 0 16px;
  clear: both;
}
.woocommerce-pdp-capture .woocommerce-colorways .color-swatch,
.woocommerce-pdp-capture .woocommerce-colorway,
.woocommerce-pdp-capture a.color-swatch {
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden;
  font-size: 0 !important; /* 隐藏 Cherrywood 等文字泄漏 */
  line-height: 0 !important;
  color: transparent !important;
}
.woocommerce-pdp-capture .woocommerce-colorways .color-swatch span,
.woocommerce-pdp-capture .woocommerce-colorway span {
  display: none !important;
}
.woocommerce-pdp-capture .woocommerce-colorways .color-swatch img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* 未打开的 mega / cart 浮层兜底 */
.woocommerce-header-capture details.mega-menu:not([open]) > .mega-menu__content {
  display: none !important;
}
.woocommerce-pdp-capture img {
  max-width: 100%; height: auto; opacity: 1 !important; visibility: visible !important;
}
.woocommerce-pdp-capture [data-woocommerce-filter-drawer],
.woocommerce-pdp-capture [data-woocommerce-collection-hero],
.woocommerce-pdp-capture .wc-collection-hero,
.woocommerce-pdp-capture .wc-toolbar { display: none !important; }
.woocommerce-pdp-capture .min-h-screen,
.woocommerce-pdp-capture .h-screen,
.woocommerce-pdp-capture [class*="min-h-screen"] {
  min-height: 0 !important; height: auto !important;
}
.woocommerce-pdp-capture img.object-cover,
.woocommerce-pdp-capture .object-cover,
.woocommerce-pdp-capture [class*="hero"] img,
.woocommerce-pdp-capture [class*="slideshow"] img {
  height: auto !important; max-height: min(82vh, 900px); object-fit: contain !important;
}
.woocommerce-pdp-main-wrap,
.woocommerce-pdp-capture figure:has(> img[data-woocommerce-pdp-main]) {
  min-width: 0; width: 100%;
}
.woocommerce-pdp-capture .wc-pdp-stack img[data-woocommerce-pdp-main],
.woocommerce-pdp-capture .wc-pdp-stack img[data-gallery-main],
.woocommerce-pdp-capture .wc-pdp-stack img[data-woocommerce-gallery-slide] {
  width: 100%; height: auto; max-height: none; object-fit: contain; display: block !important;
}
.woocommerce-pdp-capture .product-main-image[hidden] { display: none !important; }
.woocommerce-pdp-capture [data-gallery-thumb] { cursor: pointer; }
.woocommerce-pdp-capture img[data-woocommerce-extra-thumb] { display: none !important; }
.woocommerce-pdp-capture .wc-pdp-thumbs img,
.woocommerce-pdp-capture [data-woocommerce-pdp-thumbs] img,
.woocommerce-pdp-capture .wc-pdp-thumb img {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
}
.woocommerce-pdp-capture img[data-woocommerce-extra-thumb],
.woocommerce-pdp-capture [hidden][data-woocommerce-extra-thumb] {
  display: none !important; width: 0 !important; height: 0 !important;
}
.woocommerce-pdp-capture .wc-pdp-buy [class*="thumbnail-list"],
.woocommerce-pdp-capture .wc-pdp-buy [class*="thumbnails"],
.woocommerce-pdp-capture .wc-pdp-buy slider-component[class*="thumbnail"],
.woocommerce-pdp-capture .wc-pdp-buy .product__media-list { display: none !important; }
/* 买盒里不要再露出捕获残留的图库，中间列用 .wc-pdp-stack 上下铺图 */
.woocommerce-pdp-capture .wc-pdp-buy [data-woocommerce-pdp-thumbs],
.woocommerce-pdp-capture .wc-pdp-buy .wc-pdp-thumbs,
.woocommerce-pdp-capture .wc-pdp-buy .woocommerce-pdp-main-wrap,
.woocommerce-pdp-capture .wc-pdp-buy .product-main-image,
.woocommerce-pdp-capture .wc-pdp-buy img[data-woocommerce-gallery-slide],
.woocommerce-pdp-capture .wc-pdp-buy img[data-woocommerce-pdp-main],
.woocommerce-pdp-capture .wc-pdp-buy img[data-gallery-main],
.woocommerce-pdp-capture .wc-pdp-buy img[data-gallery-thumb] {
  display: none !important;
}
.woocommerce-pdp-capture .wc-pdp-buy .color-swatch img,
.woocommerce-pdp-capture .wc-pdp-buy [data-color-swatch] img {
  display: block !important; width: 100%; height: 100%;
}
/* 仅隐藏 WC 原生 variations；捕获买盒 select/尺码保留 */
.woocommerce-pdp-capture .variations select,
.woocommerce-pdp-capture table.variations {
  display: none !important;
}
html body .woocommerce-pdp-capture > .woocommerce-pdp-live-panel,
html body .woocommerce-pdp-capture > [data-woocommerce-live-panel],
html body .woocommerce-pdp-capture .wc-wc-buybox-sr,
html body .woocommerce-pdp-capture [data-woocommerce-native-atc],
html body .woocommerce-pdp-capture .woocommerce-pdp-atc,
html body .woocommerce-pdp-atc-slot {
  display: none !important; position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  pointer-events: none !important;
}
.woocommerce-colorways .color-swatch,
.woocommerce-colorway,
.woocommerce-pdp-capture a.color-swatch,
.woocommerce-pdp-capture [data-color-swatch] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--wc-border, #ddd); border-radius: 50%; overflow: hidden;
  background: var(--wc-surface, #f5f5f5); text-decoration: none; font-size: 11px; color: inherit;
  padding: 0; vertical-align: middle;
}
.woocommerce-colorways .color-swatch img,
.woocommerce-colorway img,
.woocommerce-pdp-capture a.color-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.woocommerce-colorways .is-active,
.woocommerce-colorways .is-current,
.woocommerce-colorway.is-active { outline: 1px solid var(--wc-text, #111); box-shadow: 0 0 0 1px var(--wc-text, #111) inset; }
.woocommerce-pdp-live-panel { display: none !important; margin: 0 !important; }
.woocommerce-pdp-live-panel.is-relocated,
.woocommerce-pdp-colorways-mount { display: none !important; }
/* WC 表单不进买盒，加购走 AJAX */
.woocommerce-pdp-options [type="submit"],
.woocommerce-pdp-options [name="add"],
.woocommerce-pdp-capture [data-woocommerce-captured-options] button {
  cursor: pointer;
}
.woocommerce-pdp-capture [data-woocommerce-recs] a > img:first-of-type,
.woocommerce-pdp-recs a > img:first-of-type,
[data-woocommerce-recs] a > img:first-of-type,
.woocommerce-pdp-capture [data-woocommerce-recs] figure:first-of-type img,
[data-woocommerce-recs] figure:first-of-type img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block;
}
.wc-card-has-hover { position: relative; overflow: hidden; display: block; }
.wc-card-has-hover img:nth-of-type(2),
.wc-card-has-hover figure + figure,
.wc-card-has-hover > img + img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: cover; opacity: 0; pointer-events: none; margin: 0;
}
.wc-card-has-hover:hover img:nth-of-type(2),
.wc-card-has-hover:hover figure + figure,
.wc-card-has-hover:hover > img + img { opacity: 1; }
/* 仅兜底网格强制列；勿碰 Dawn #product-grid.product-grid */
.woocommerce-capture-grid,
.wc-products[data-woocommerce-hydrated-grid],
ul.products[data-woocommerce-hydrated-grid] {
  list-style: none; margin: 0; padding: 0;
  display: grid !important;
  grid-template-columns: repeat(var(--wc-cols, 4), minmax(0, 1fr)) !important;
  gap: clamp(8px, 1.4vw, 20px);
  width: 100%;
}
.woocommerce-card-item { list-style: none; margin: 0; min-width: 0; max-width: 100%; }

/* —— Account hub last-layer（压过捕获 styles.css 花括号泄漏） —— */
.woocommerce-account-capture,
.woocommerce-account-capture[data-woocommerce-account-captured],
.woocommerce-account-capture[data-woocommerce-account-hub] {
  width: 100% !important;
  max-width: 100% !important;
  background: #f3f3f3 !important;
  box-sizing: border-box !important;
}
.woocommerce-account-capture .account-page-container,
.woocommerce-account-capture [data-sf-account-layout] {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 3rem !important;
  align-items: start !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 6rem 2rem 4rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce-account-capture .desktop-view {
  grid-column: 1 !important;
  display: block !important;
  min-width: 0 !important;
}
.woocommerce-account-capture .account-main-content,
.woocommerce-account-capture [data-sf-account-main] {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  visibility: visible !important;
}
.woocommerce-account-capture .account-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem 2rem !important;
}
/* 桌面：强制完整侧栏 + 隐藏移动图标列表（覆盖 styles.css 泄漏的 display:none） */
@media (min-width: 769px) {
  .woocommerce-account-capture .account-details-new,
  .woocommerce-account-capture [data-sf-account-mobile-nav],
  .woocommerce-account-capture .account-detail-with-dashboard,
  .woocommerce-account-capture .account-details-logout,
  .woocommerce-account-capture [data-sf-account-mobile-only],
  .woocommerce-account-capture .account-details-col,
  .woocommerce-account-capture .account-details-inner-wrapper {
    display: none !important;
  }
  .woocommerce-account-capture .desktop-view,
  .woocommerce-account-capture .desktop-view .account-sidebar,
  .woocommerce-account-capture .desktop-view .account-sidebar ul {
    display: block !important;
  }
  .woocommerce-account-capture .desktop-view .account-sidebar ul li,
  .woocommerce-account-capture .desktop-view .account-sidebar ul li.active,
  .woocommerce-account-capture .desktop-view .account-sidebar ul li:not(.active) {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .woocommerce-account-capture .account-card,
  .woocommerce-account-capture .gift-card-section,
  .woocommerce-account-capture .welcome-section {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 1000px;
  }
}
@media (max-width: 768px) {
  .woocommerce-account-capture .account-page-container,
  .woocommerce-account-capture [data-sf-account-layout] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    padding: 3rem 1.25rem 4rem !important;
    gap: 1.5rem !important;
  }
  .woocommerce-account-capture .desktop-view { display: none !important; }
  .woocommerce-account-capture .account-main-content,
  .woocommerce-account-capture [data-sf-account-main] { grid-column: auto !important; }
  .woocommerce-account-capture .account-details-new,
  .woocommerce-account-capture [data-sf-account-mobile-nav] { display: block !important; }
  .woocommerce-account-capture .account-card,
  .woocommerce-account-capture .gift-card-section { display: none !important; }
}
.woocommerce-account-capture[data-endpoint="dashboard"] .wc-account-panel { display: none !important; }

/* —— Home rails / THE BD EXPERIENCE：隐藏横向滚动条，箭头可点 —— */
.featured-blog-section .swiper-container,
.featured-blog-section .featured-blog-slider,
.featured-blog-section .swiper-wrapper,
.product-new-featured .swiper-container,
.product-new-featured .swiper-wrapper,
.new-featured-container .swiper-container,
.new-featured-container .swiper-wrapper,
[data-woocommerce-home-rail] {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.featured-blog-section .swiper-container::-webkit-scrollbar,
.featured-blog-section .featured-blog-slider::-webkit-scrollbar,
.featured-blog-section .swiper-wrapper::-webkit-scrollbar,
.product-new-featured .swiper-container::-webkit-scrollbar,
.product-new-featured .swiper-wrapper::-webkit-scrollbar,
.new-featured-container .swiper-container::-webkit-scrollbar,
.new-featured-container .swiper-wrapper::-webkit-scrollbar,
[data-woocommerce-home-rail]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.featured-blog-section .swiper.swiper-initialized,
.featured-blog-section .featured-blog-slider.swiper-initialized,
.product-new-featured .swiper.swiper-initialized {
  overflow: hidden !important;
}
.featured-blog-section .featured-blog-arrow.swiper-button-next,
.featured-blog-section .featured-blog-arrow.swiper-button-prev,
.product-new-featured .swiper-button-next,
.product-new-featured .swiper-button-prev,
.new-featured-container .swiper-button-next,
.new-featured-container .swiper-button-prev {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 5 !important;
}

/* —— Header search open（fig2）：写入 interactions 避免 style.css ver 缓存 —— */
html.sf-header-search-open .woocommerce-header-capture details[open] > .search-modal,
.woocommerce-header-capture details-modal.header__search details[open] > .search-modal,
.woocommerce-header-capture .header__search details[open] > .search-modal,
.woocommerce-header-capture details[open] > .search-modal.modal__content {
  position: fixed !important;
  top: var(--sf-header-search-top, 7.2rem) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1.2rem 0 1.6rem !important;
  background: #000 !important;
  border-bottom: 0 !important;
  opacity: 1 !important;
  z-index: 60 !important;
  display: block !important;
  transform: none !important;
  box-sizing: border-box !important;
}
.woocommerce-header-capture details[open] .header-new-search.search-modal__content,
.woocommerce-header-capture details[open] .search-modal__content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 2rem !important;
  background: transparent !important;
  position: relative !important;
}
.woocommerce-header-capture details[open] .header-new-search predictive-search,
.woocommerce-header-capture details[open] .header-new-search form.search {
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
  width: 100% !important;
  max-width: 110rem !important;
  margin: 0 auto !important;
}
.woocommerce-header-capture details[open] .header-new-search .field {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 5.6rem !important;
  background: #000 !important;
  border: 1px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}
.woocommerce-header-capture details[open] .header-new-search .field::before,
.woocommerce-header-capture details[open] .header-new-search .field::after {
  content: none !important;
  display: none !important;
}
.woocommerce-header-capture details[open] .header-new-search .search__input.field__input,
.woocommerce-header-capture details[open] .header-new-search input[type="search"] {
  background: #000 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  caret-color: #fff !important;
  min-height: 5.6rem !important;
  height: 5.6rem !important;
  padding: 1.8rem 4.8rem 0.8rem 1.6rem !important;
  font-size: 1.6rem !important;
  opacity: 1 !important;
}
.woocommerce-header-capture details[open] .header-new-search .field__label {
  color: rgba(255, 255, 255, 0.65) !important;
  left: 1.6rem !important;
}
.woocommerce-header-capture details[open] .header-new-search .search__button.field__button {
  position: absolute !important;
  right: 0.4rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #fff !important;
  background: transparent !important;
  width: 4.4rem !important;
  height: 4.4rem !important;
  z-index: 2 !important;
}
.woocommerce-header-capture details[open] .header-new-search .search__button .icon,
.woocommerce-header-capture details[open] .header-new-search .search-modal__close-button .icon {
  fill: none !important;
  color: #fff !important;
  stroke: #fff !important;
}
.woocommerce-header-capture details[open] .header-new-search .search-modal__close-button {
  position: static !important;
  color: #fff !important;
  flex: 0 0 auto !important;
  width: 4.4rem !important;
  height: 4.4rem !important;
}
/* 打开时顶栏图标行保持原位，不被搜索条挤扁 */
.woocommerce-header-capture .header__icons details-modal:has(details[open]),
.woocommerce-header-capture .header__icons .header__search:has(details[open]) {
  max-height: 4.4rem !important;
  overflow: visible !important;
}
.woocommerce-header-capture details[open] .header-new-search .predictive-search:not([open]) {
  display: none !important;
}

/* —— Mega dropdown：白字修复 + 多列栅格 —— */
.woocommerce-header-capture details.mega-menu[open] > .mega-menu__content .mega-menu__list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 1.25rem 2rem !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  column-count: unset !important;
}
.woocommerce-header-capture .mega-menu__list > li {
  width: auto !important;
  min-width: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.woocommerce-header-capture .mega-menu__list > li.megamenu-image {
  width: auto !important;
  max-width: 280px !important;
}
.woocommerce-header-capture .mega-menu__content a.mega-menu__link {
  color: #111 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.woocommerce-header-capture .megamenu-banner .title,
.woocommerce-header-capture .megamenu-banner__content { color: #fff !important; }
.woocommerce-header-capture .mega-menu__list > li:empty { display: none !important; }

/* —— Header layout：logo | nav | icons 三栏，图标贴右 —— */
@media screen and (min-width: 990px) {
  .woocommerce-header-capture header-drawer,
  .woocommerce-header-capture .menu-drawer-container {
    display: none !important;
  }
  .woocommerce-header-capture .header.header--middle-left {
    display: grid !important;
    grid-template-areas: "heading navigation icons" !important;
    grid-template-columns: auto auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
  }
  .woocommerce-header-capture .header__heading { grid-area: heading !important; }
  .woocommerce-header-capture .header__inline-menu { grid-area: navigation !important; display: block !important; }
  .woocommerce-header-capture .header__icons {
    grid-area: icons !important;
    justify-self: end !important;
    display: flex !important;
  }
  .woocommerce-header-capture .header__inline-menu .list-menu--inline {
    display: flex !important;
    gap: clamp(12px, 1.4vw, 28px) !important;
    flex-wrap: nowrap !important;
  }
  .woocommerce-header-capture .header-wrapper.color-accent-1,
  .woocommerce-header-capture sticky-header.header-wrapper {
    background: #000 !important;
    color: #fff !important;
    --color-foreground: 255, 255, 255;
    --color-background: 0, 0, 0;
  }
  .woocommerce-header-capture .header__heading img,
  .woocommerce-header-capture .header__heading-link img {
    filter: none !important;
    max-height: 28px;
    width: auto;
  }
  .woocommerce-header-capture .header__menu-item,
  .woocommerce-header-capture .header__menu-item a,
  .woocommerce-header-capture .unstyled-header-menu {
    color: #fff !important;
  }
}
