/**
 * EDM猜你喜歡機制 edmBgw2025.js v2506.4
 * *******************************************************************
 * v2506.4  jphsu  2025.06.24 【JS】調整momoj(window).load(()後執行
 * v2506.3  jphsu  2025.06.16 【JS】將 edmPageYouMaybeLike function內呼叫 API 的時機改為分次呼叫 【HTML】將 看更多按鈕 inline script 改放到 edmBgw2025.js 做
 * v2506.2  tsshih 2025.06.09 【JS】載入時機提前500px 【CSS】未加載資料狀態--灰底 
 * v2506.1  tsshih 2025.06.04 【JS】監聽 EDM 區塊是否進入可視範圍，進入後才載入「你可能會喜歡」商品區塊
 * v2505.2  tsshih 2025.05.28 【JS】HTML可設定推薦商品數量 b268goodsnum="30" 【CSS】num=""新增2、3、4、8、9
 * v2505.1  tsshih 2025.05.16 3P大網上線，IT機制改版直接呼叫線上bgw.js、增加type樣式切換brn、swiper設定
 * *******************************************************************
 */
 
 /* 6品邊線隱藏 */
 @media screen and (min-width: 768px) {
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(6n) {border-right: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(1) {border-top: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(2) {border-top: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(3) {border-top: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(4) {border-top: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(5) {border-top: none}
  .bt_0_layout_b268_2025 .PD_layout[data-pd-col-pc="6"] li:nth-child(6) {border-top: none}
}
/* 店+預購押標 */
.bt_0_layout_b268_2025 .PD h4 { -webkit-line-clamp: 2; max-height: inherit; height: 3em; text-align: left; margin: 0 .5em}
.bt_0_layout_b268_2025 .icon-group { display: -webkit-inline-box !important; display: -ms-inline-flexbox !important; display: inline-flex !important; -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; gap: 4px; float: none !important; margin: 0 0 0 4px !important; padding: 0 !important; vertical-align: text-bottom; width: auto !important; height: auto !important}
.bt_0_layout_b268_2025 .icon-group img { border-radius: 2px !important; display: inline-block; max-width: 100%; width: auto !important; height: 18px !important; margin-top: 0 !important}
.bt_0_layout_b268_2025 .icon-group>span { padding: 0 !important; margin-top: 0 !important}
.bt_0_layout_b268_2025 .icon-store { border-radius: 2px; display: inline; float: left; overflow: hidden; width: 24px !important; height: 18px !important; background-color: #5e6999}
.bt_0_layout_b268_2025 .icon-store>img {width: 24px !important}
.bt_0_layout_b268_2025 .icon-preorder { border-radius: 2px; display: inline; float: left; overflow: hidden; width: 18px !important; height: 18px !important; background-color: #ff960a}
.bt_0_layout_b268_2025 .Price .strPrice { font-size: .5em}
/* 樣式1: type="btn"展開更多按鈕  */
@media screen and (max-width: 767px) {
  .bt_0_layout_b268_2025[type="btn"] .PD_layout-b268 { padding: 0 .5em 3vw; grid-gap: 10px;}
}
.bt_0_layout_b268_2025[type="btn"] .PD_layout-b268.PD_layout li { display: none;}
.bt_0_layout_b268_2025[type="btn"][num="2"] .PD_layout-b268.PD_layout li:nth-child(-n+2) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="3"] .PD_layout-b268.PD_layout li:nth-child(-n+3) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="4"] .PD_layout-b268.PD_layout li:nth-child(-n+4) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="5"] .PD_layout-b268.PD_layout li:nth-child(-n+5) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="6"] .PD_layout-b268.PD_layout li:nth-child(-n+6) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="8"] .PD_layout-b268.PD_layout li:nth-child(-n+8) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="9"] .PD_layout-b268.PD_layout li:nth-child(-n+9) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="10"] .PD_layout-b268.PD_layout li:nth-child(-n+10) { display: list-item;}
.bt_0_layout_b268_2025[type="btn"][num="12"] .PD_layout-b268.PD_layout li:nth-child(-n+12) { display: list-item;}
/* 樣式2: type="swiper"輪播 */
.bt_0_layout_b268_2025[type="swiper"] .PD_layout-btn { display: none;}
/* 未加載資料狀態--灰底 */
.b268_swiper-slide:not([gcode]) .PD_img img { display: none;}
.b268_swiper-slide:not([gcode]) .PD_img:after { background-color: #f2f2f2; content: ""; width: 100%; aspect-ratio: 1 / 1; display: block;}
.b268_swiper-slide:not([gcode]) h4, .b268_swiper-slide:not([gcode]) p * { background-color: #f2f2f2;}
.b268_swiper-slide:not([gcode]) h4 * { background-color: #f2f2f2 !important; color: #f2f2f2 !important;}
.b268_swiper-slide:not([gcode]) h4 img,
.b268_swiper-slide:not([gcode]) p * { visibility: hidden;}
