/* BNW font tokens — set --bnw-font-mode by editing these two lines */
:root{--bnw-serif:'Reddit Sans',sans-serif;--bnw-sans:'Reddit Sans',sans-serif} /* 2026-11-13 恢复为预热模板 copy1 copy1 的字体（Reddit Sans）；原为 Playfair Display / Jost */
/* BNW site-wide layout fixes (2026-11-07 review). Loaded once from layout/theme.html. */

/* 1. Desktop header: give the main menu the free space next to the logo and keep it on one line.
      The previous 3-column grid reserved equal widths left and right, so long translations wrapped
      a single item (e.g. "Soutien", "Unterstützung") onto a second row. */
@media (min-width: 1024px) {
  /* Equal side columns keep the menu centred on the page; minmax(max-content, 1fr) lets them shrink
     to the logo / icons when space is tight so the menu still stays on one line. */
  .header.header--left-center {
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr) !important;
    column-gap: 24px;
  }
  .header.header--left-center .header__menu {
    justify-content: center !important;
  }
  .header__menu .nav-main__menu {
    flex-wrap: nowrap !important;
    column-gap: clamp(14px, calc((100vw - 1000px) / 18), 40px) !important;
  }
  .header__menu .nav-main__menu > li {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .header__menu .nav-main__menu > li > a,
  .header__menu .nav-main__menu > li summary,
  .header__menu .nav-main__menu > li > details > summary { font-size: 15px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Narrow laptops / tablets in landscape: if a long language still does not fit, wrap into centred rows
     instead of leaving one item alone on the second line. */
  .header__menu .nav-main__menu {
    flex-wrap: wrap !important;
    justify-content: center;
    row-gap: 4px;
    column-gap: 14px !important;
  }
}

/* 2. Rewards app button (#member-system-plugin): keep it clear of card titles, parameters and the
      add-to-cart buttons. Phones: slightly smaller, fully on screen; desktop: bottom-right corner.
      On product pages it always sits above the sticky add-to-cart bar. */
#member-system-plugin > button[aria-label] {
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 959px) {
  #member-system-plugin > button[aria-label] {
    right: 12px !important;
    bottom: 16px !important;
    transform: scale(.85);
    transform-origin: 100% 100%;
  }
  #member-system-plugin.bnw-lift-sticky > button[aria-label] { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (min-width: 960px) {
  #member-system-plugin > button[aria-label] {
    right: 16px !important;
    bottom: 16px !important;
  }
  #member-system-plugin.bnw-lift-sticky > button[aria-label] { bottom: 118px !important; }
}

/* 2b. Native Maison sticky buy button (block product/sticky-buy-button): keep the cart FAB out of its way. */
.bnw-cart-fab.bnw-lift-sticky{display:none !important}
/* 3. PDP section navigation: when the sticky header slides in/out (and when iOS Safari resizes its
      toolbars), the nav used to animate its own offset separately, leaving a gap where page content
      showed above it. Move it in one step and fill any momentary gap with the page background. */
.shopline-section:has(> #bnw-pdp-nav) {
  transition: none !important;
}
.shopline-section:has(> #bnw-pdp-nav)::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  height: var(--bnw-nav-top, 0px);
  background: inherit;
  pointer-events: none;
}

/* 2026-11-18: 线上版商品卡参数条样式已移至 bnw-card-specs-live.css（未加载），商品卡改回 C 版。 */
/* 5. Cart UX (bnw-cart-ux.js): phone add-to-cart notice, cart button in the sticky add-to-cart bar,
      floating cart button while the sticky header is hidden. */
.bnw-cart-ico{display:inline-flex;align-items:center;justify-content:center}
.bnw-cart-count{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#a94438;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
.bnw-cart-count[hidden]{display:none}
@keyframes bnw-bump{0%{transform:scale(1)}35%{transform:scale(1.35)}100%{transform:scale(1)}}
.bnw-bump{animation:bnw-bump .45s ease}

.bnw-sticky-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;margin-inline-end:8px;border:1px solid rgb(43 33 24 / .18);border-radius:50%;background:#fff;color:#2b2118;cursor:pointer}
.bnw-sticky-cart:hover{border-color:#3e5440}

.bnw-cart-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:40;display:none;align-items:center;justify-content:center;width:52px;height:52px;border:0;border-radius:50%;background:#3e5440;color:#fff;box-shadow:0 6px 18px rgb(0 0 0 / .18);cursor:pointer}
.bnw-cart-fab{display:none !important}
body.cart-page .bnw-cart-fab{display:none !important}
#member-system-plugin.bnw-lift > button[aria-label]{bottom:calc(80px + env(safe-area-inset-bottom, 0px)) !important}

.bnw-atc-notice{position:fixed;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:1000;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:12px;background:#fff;color:#2b2118;box-shadow:0 10px 30px rgb(0 0 0 / .18);transform:translateY(140%);opacity:0;transition:transform .28s ease,opacity .28s ease;pointer-events:none}
.bnw-atc-notice.is-open{transform:none;opacity:1;pointer-events:auto}
.bnw-atc-notice.bnw-lift-sticky{bottom:calc(92px + env(safe-area-inset-bottom, 0px))}
.bnw-atc-notice__img{width:44px;height:44px;flex:0 0 44px;border-radius:8px;object-fit:cover;background:#f5f0e8}
.bnw-atc-notice__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;line-height:1.3}
.bnw-atc-notice__title{font-size:14px;color:#3e5440}
.bnw-atc-notice__name{font-size:12px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bnw-atc-notice__btn{flex:0 0 auto;min-height:38px;padding:0 14px;border:0;border-radius:6px;background:#3e5440;color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.bnw-atc-notice__close{flex:0 0 auto;width:28px;height:28px;border:0;background:none;color:inherit;font-size:20px;line-height:1;opacity:.5;cursor:pointer}
@media (min-width:960px){.bnw-atc-notice{display:none}}
@media (prefers-reduced-motion: reduce){.bnw-atc-notice{transition:none}.bnw-bump{animation:none}}

/* 6. "Why you'll love it" (scroll-story layout), screens >=960px: the heading sits over the image column and the
      description over the steps column, so the header spans the same width as the content below. */
@media (min-width: 960px) {
  .bnw-signature--story .bnw-heading {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--grid-horizontal-spacing, 48px);
    align-items: end;
  }
  .bnw-signature--story .bnw-heading > .bnw-eyebrow { grid-column: 1 / -1; }
  .bnw-signature--story .bnw-heading > h2 { grid-column: 1; margin-bottom: 0; }
  .bnw-signature--story .bnw-heading > .bnw-signature-description { grid-column: 2; margin: 0; max-width: 560px; }
}


/* BNW: home "Best Sellers" / "New Arrivals" (official featured-collection) VIEW ALL as outlined button like the former BNW tab section */
:is(#shopline-section-template--index__bnw-best-sellers, #shopline-section-template--index__bnw-new-arrivals) .featured-collection-section .product-list > .button--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 12px 40px;
  border: 1px solid rgb(var(--color-text) / 0.35);
  border-radius: 4px;
  background: transparent;
  color: rgb(var(--color-text));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
:is(#shopline-section-template--index__bnw-best-sellers, #shopline-section-template--index__bnw-new-arrivals) .featured-collection-section .product-list > .button--secondary::before,
:is(#shopline-section-template--index__bnw-best-sellers, #shopline-section-template--index__bnw-new-arrivals) .featured-collection-section .product-list > .button--secondary::after {
  display: none;
}
@media (pointer: fine) {
  :is(#shopline-section-template--index__bnw-best-sellers, #shopline-section-template--index__bnw-new-arrivals) .featured-collection-section .product-list > .button--secondary:hover {
    border-color: rgb(var(--color-text));
    background: rgb(var(--color-text));
    color: rgb(var(--color-background));
  }
}



/* BNW custom sticky buy bar (components/product/sticky-buy-bar, body.has-pdp-sticky): keep the rewards button and ATC notice above it. Restored 2026-11-16 after importing the live base layer. */
@media (max-width: 959px) {
  body.has-pdp-sticky #member-system-plugin > button[aria-label] { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (min-width: 960px) {
  body.has-pdp-sticky #member-system-plugin > button[aria-label] { bottom: 100px !important; }
}
body.has-pdp-sticky .bnw-atc-notice{bottom:calc(92px + env(safe-area-inset-bottom, 0px))}

/* BNW hide cart taxes note (2026-11-18): 去掉购物车里 "Taxes and shipping will be added at checkout." 提示 */
.cart-taxes { display: none !important; }

/* BNW C-card (2026-11-18): 商品卡恢复 C 版，卡片上不显示 Compare 小按钮（卡片悬停图标里仍可对比） */
.product-card .bnw-compare-pill { display: none !important; }

/* BNW C-card specs (2026-11-18): 商品卡参数只留图标+数值（去掉 Difficulty/Pieces 等标签），三项等分、不横向滚动、完整显示；放不下的尺寸项隐藏。 */
.block-product-card .product-card__icons { display: flex !important; flex-wrap: nowrap !important; overflow: visible !important; mask-image: none !important; -webkit-mask-image: none !important; padding-inline: 0 !important; }
.block-product-card .product-card__icons-item { flex: 1 1 auto !important; min-width: max-content !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 4px !important; padding: 8px 2px !important; text-align: center !important; }
.block-product-card .product-card__icons-item--size, .block-product-card .product-card__icons-item:nth-child(n+4) { display: none !important; }
.block-product-card .product-card__icons-label { display: none !important; }
.block-product-card .product-card__icons-text { display: block !important; max-width: 100% !important; font-size: 12px !important; line-height: 1.2 !important; white-space: nowrap !important; letter-spacing: 0 !important; }
.block-product-card .product-card__icons-icon, .block-product-card .product-card__icons-item .icon { width: 16px !important; height: 16px !important; margin: 0 !important; }
@media (max-width: 959px) {
  .block-product-card .product-card__icons-item { padding: 6px 1px !important; gap: 3px !important; }
  .block-product-card .product-card__icons-text { font-size: 10.5px !important; }
  .block-product-card .product-card__icons-icon, .block-product-card .product-card__icons-item .icon { width: 14px !important; height: 14px !important; }
}

/* BNW recap image (2026-11-18): "Your next little world" 图片按原图比例完整显示（不裁切、不留灰边）。手机限高 440px。 */
.bnw-recap2__media { height: auto !important; aspect-ratio: auto !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.bnw-recap2__media img { position: static !important; width: 100% !important; height: auto !important; min-height: 220px; max-height: none !important; object-fit: contain !important; aspect-ratio: auto !important; }
@media (max-width: 959px) {
  .bnw-recap2__media img { width: auto !important; max-width: 100% !important; max-height: 440px !important; }
}

/* BNW Why-you'll-love-it (2026-11-18): 电脑显示原卖点区块（key-selling-points_pdp），手机显示官方多列（key-selling-points_mobile）。商品没有卖点元字段时整个区块不显示；某一项没填就隐藏那一项。 */
@media (max-width: 959px) { [id$="__key-selling-points_pdp"] { display: none !important; } }
@media (min-width: 960px) { [id$="__key-selling-points_mobile"] { display: none !important; } }
[id$="__key-selling-points_pdp"]:not(:has(.scroll-story__step)) { display: none !important; }
[id$="__key-selling-points_mobile"]:not(:has(.multicolumn-card .bnw-mf-filled)) { display: none !important; }
[id$="__key-selling-points_mobile"] .multicolumn-list__track > li:not(:has(.bnw-mf-filled)) { display: none !important; }

/* BNW PDP width (2026-11-18): 电脑端产品页下方自定义区块（Contents & specs、Ready to make it yours、Help 等）与上方官方区块同宽（官方 page-width：最宽 1500px，左右 30px）。 */
@media (min-width: 960px) {
  [id^="shopline-section-template--product"] .bnw-section { padding-inline: 30px !important; }
  [id^="shopline-section-template--product"] .bnw-section > .bnw-container { max-width: 1440px !important; width: 100% !important; }
}

/* BNW PDP video (2026-11-18): 采用「预热模板 5% 合并手风琴 copy1」的产品页视频设计：电脑左文右视频、手机上下排。原规则只在有 #bnw-pdp-nav 时生效，这里改为产品页都生效。 */
body.product-page .feature-video__heading { font-size: 40px; line-height: 1.2; text-transform: none !important; }
body.product-page .feature-video__description p { text-transform: none !important; font-size: 15px; }
body.product-page .feature-video-section { background: var(--bnw-bg); }
@media (max-width: 759px) { body.product-page .feature-video__heading { font-size: 30px; } }
body.product-page .feature-video { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0px, 1.35fr); gap: 48px; align-items: center; }
body.product-page .feature-video__header { text-align: left; margin: 0px; max-width: none; }
body.product-page .feature-video__media { width: 100%; min-width: 0px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px var(--bnw-shadow); }
@media (max-width: 759px) { body.product-page .feature-video { grid-template-columns: 1fr; gap: 24px; } }
body.product-page .feature-video__header { display: block; }
body.product-page .feature-video__heading, body.product-page .feature-video__description { max-width: 100%; width: 100%; margin-inline: 0px; }
body.product-page .feature-video__heading { margin-bottom: 20px; }
/* (不限制 1228px，和其他区块同宽) */
body.product-page .feature-video:not(:has(.feature-video__header)) { grid-template-columns: 1fr; }

/* BNW compare (2026-11-18): 产品对比区块的商品图底色与分类页商品卡一致（#f2f2f2），包括当前商品。 */
#bnw-compare .bnw-cmp__media { background-color: rgb(242, 242, 242) !important; }

/* BNW PDP typography (2026-11-18): 产品页各区块的小标题（eyebrow）和大标题统一。小标题统一用 bnw-eyebrow 的样式（大写、600、字距 1.6px、品牌绿）；大标题统一 46px/600（手机 30px）。不改第三方评价插件。 */
body.product-page #bnw-compare .bnw-cmp__eyebrow,
body.product-page [id$="__bnw_ugc_videos"] .block-subheading,
body.product-page [id$="__key-selling-points_mobile"] .block-subheading {
  font-size: 10px !important; font-weight: 600 !important; letter-spacing: 1.6px !important; text-transform: uppercase !important; color: rgb(62, 84, 64) !important; line-height: 1.4 !important;
}
body.product-page .feature-video__heading,
body.product-page #bnw-compare h2,
body.product-page [id$="__bnw_ugc_videos"] .block-heading,
body.product-page [id$="__recommended-product"] .block-heading {
  font-size: 46px !important; font-weight: 600 !important; line-height: 1.15 !important; text-transform: none !important;
}
@media (max-width: 959px) {
  body.product-page .feature-video__heading,
  body.product-page #bnw-compare h2,
  body.product-page [id$="__bnw_ugc_videos"] .block-heading,
  body.product-page [id$="__recommended-product"] .block-heading,
  body.product-page [id$="__key-selling-points_mobile"] h2.block-heading { font-size: 30px !important; font-weight: 600 !important; line-height: 1.15 !important; }
}

/* BNW trust bar mobile (2026-11-18): 手机端信任栏压成一行——图标在左，数字和说明在右，高度约 50px。电脑端不变。 */
@media (max-width: 959px) {
  body.product-page .bnw-trust { padding-block: 6px !important; }
  body.product-page .bnw-trust-inner { padding: 0 !important; }
  body.product-page .bnw-trust-grid { gap: 0 !important; align-items: center !important; }
  body.product-page .bnw-trust-metric { padding: 0 !important; min-height: 0 !important; }
  body.product-page .bnw-trust-metric__content { display: grid !important; grid-template-columns: auto auto !important; grid-template-rows: auto auto !important; column-gap: 6px !important; row-gap: 1px !important; align-items: center !important; justify-content: center !important; text-align: left !important; padding: 6px 2px !important; min-height: 0 !important; }
  body.product-page .bnw-trust-metric__content > svg { grid-row: 1 / span 2 !important; width: 16px !important; height: 16px !important; margin: 0 !important; }
  body.product-page .bnw-trust-value { font-size: 15px !important; line-height: 1.1 !important; margin: 0 !important; white-space: nowrap !important; }
  body.product-page .bnw-trust-value small, body.product-page .bnw-trust-value span { font-size: 11px !important; }
  body.product-page .bnw-trust-label { font-size: 10.5px !important; line-height: 1.2 !important; margin: 0 !important; white-space: nowrap !important; }
}
@media (max-width: 389px) {
  body.product-page .bnw-trust-metric__content { column-gap: 4px !important; }
  body.product-page .bnw-trust-label { font-size: 9.5px !important; }
  body.product-page .bnw-trust-value { font-size: 14px !important; }
}
