/* ==========================================================================
   v3/rwd.css — Responsive (@media queries)
   screen.prefixer.css 的 RWD 規則被 @keyframes 解析異常吞掉，這裡補回
   ========================================================================== */
/* --- max-width: 1297px --- */
@media (max-width: 1024px) {
 .Popup-box.Popup-positionStyle1 { margin: 0; top: 0px !important; padding: 0px !important; height: 100%; position: fixed }
.Popup-box.Popup-cart { top: 58px !important }
.Popup-box.Popup-cart .pop_cartlist_outer { max-height: calc(100vh - 350px); height: auto }
.Popup-box.Popup-categoryAll .pop_top_section { padding: 0 }
.Popup-box.Popup-categoryAll .pop_cateflex { overflow: auto; height: auto; max-height: none; padding: 0; margin: 0 -10px -20px -10px; }
/* 分類清單吃 popup 剩餘空間，不用 100vh 減固定值：行動瀏覽器的 100vh 含網址列，會讓最後一列落在底部導覽列底下點不到 */
#categoryAll_popupbox .mega-menu-v3__panel.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#categoryAll_popupbox .pop_cateflex { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.Popup-box.Popup-categoryAll .pop_cateflex>div { flex: 0 0 25% }
.Popup-box.Popup-categoryAll .Popup-close { display: block }
 }
/* --- max-width: 1024px --- */
@media (max-width: 1024px) {
 .Popup-box.Popup-cart .pop-container { padding: 45px 15px }
.Popup-box.Popup-cart .Popup-close { top: 16px; right: 16px }
 }
/* --- max-width: 769px --- */
@media (max-width: 769px) {
 .Popup-box.Popup-cart { top: 25px !important }
.Popup-box.Popup-cart .btn__style7 { width: 100%; padding: 10px 0 }
.Popup-box.Popup-cart .pop-container { padding: 45px 15px 20px 15px }
.Popup-box.Popup-cart .pop_cartlist_outer { max-height: calc(100vh - 270px); height: auto; margin-bottom: 15px }
.Popup-box.Popup-categoryAll .pop_cateflex>div { flex: 0 0 33.3333333333333%; }
 }
/* --- 底部導航列空間補償 --- */
@media (max-width: 1297px) {
 body { padding-bottom: 60px; }
 }
/* --- Footer 手機版：隱藏重複版權 --- */
@media (max-width: 1024px) {
 footer .footer__copyright { display: none; }
 }
/* --- layout.css RWD leak cleanup (auto-generated) --- */
@media (max-width: 1024px) {
 .Popup-box.Popup-like .Popup-close { top: 8px; right: 8px; }
.Popup-box.Popup-inquiry .Popup-close { top: 8px; right: 8px; }
.Popup-box.Popup-newaddress .Popup-close { top: 8px; right: 8px; }
.Popup-box.Popup-purchase_record .Popup-close { top: 8px; right: 8px; }
.Popup-box.Popup-login .Popup-close { top: 16px; right: 16px; }
.Popup-box.Popup-firstpurchase .pop-container { width: 100%; }
.Popup-box.Popup-firstpurchase .Popup-close { top: 16px; right: 16px; }
.Popup-box .pop_top_section { margin-bottom: 20px; flex-wrap: wrap; }
.pop_cateflex .pop_cate_collapse_box { margin-bottom: 20px; width: 100%; margin-left: 0; }
.pop_cateflex .pop_cate_collapse_box.active .arrow { transform: translate(0, 0); }
.pop_cateflex .pop_cate_collapse_box .arrow { transform: translate(0, 0px); }
.pop_cateflex .pop_cate_collapse_flexOuter { padding: 15px 15px; }
.pop_cateflex .pop_cate_collapse_flex { margin: 0 -2.5px -16px -2.5px; }
.pop_cateflex>div { flex: 0 0 33.3333333333333%; }
.pop_cateflex>div>a { margin: 0 6px 15px 6px; }
.pop_cateflex .pop_cate_collapse_flex>div { flex: 0 0 16.666666666%; }
.pop_cateflex .pop_cate_collapse_flex>div>a { margin: 0 2.5px 16px 2.5px; }
 }
@media (max-width: 769px) {
 .Popup-box.Popup-like .pop-container { padding: 24px 8px 20px 8px; }
.Popup-box.Popup-like .pop_likelist_body { max-height: calc(100vh - 310px); }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid { padding: 0 0 16px 0; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid .filter .options { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -10%); display: none; opacity: 0; box-shadow: 0 3px 12px 0px #d2d2d2; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid .filter .options_innerbox { margin: 0 0px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .top { grid-template-columns: max-content 1fr max-content; padding-bottom: 0px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .top .user .user_container { font-size: 16px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .top .material { padding-bottom: 0px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .top .date { font-size: 14px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .img .img_container { width: 101px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail { min-height: 0px; padding-left: 10px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .stars { margin-bottom: 5px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .stars .stars_container i { font-size: 12px; margin-right: 3px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .comment { padding-bottom: 8px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .reply .reply_container { font-size: 14px; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .reply .reply_container span { padding-top: 5px; }
.Popup-box.Popup-inquiry .btn__style7 { width: 140px; }
.Popup-box.Popup-inquiry .pop-container { padding: 24px 8px 20px 8px; }
.Popup-box.Popup-inquiry .pop_inquiry_header .pop_inquiry_grid { padding: 10px 0 0 0; }
.Popup-box.Popup-newaddress .btn__style7 { width: 140px; }
.Popup-box.Popup-newaddress .pop-container { padding: 24px 8px 20px 8px; }
.Popup-box.Popup-newaddress .pop_inquiry_header .pop_inquiry_grid { padding: 10px 0 0 0; }
.Popup-box.Popup-purchase_record .pop-container { padding: 24px 8px 20px 8px; }
.Popup-box.Popup-purchase_record .pop_inquiry_body .p_record_flex { margin: -3px -5px; }
.Popup-box.Popup-purchase_record .pop_inquiry_body .p_record_flex .title { padding-bottom: 0px; }
.Popup-box.Popup-login .other_fn_box { margin: 20px 0 20px 0; }
.Popup-box.Popup-login .socialmediabox { margin-bottom: 28px; }
.Popup-box.Popup-login .socialmediabox .socialmediaflex { margin: 0 -4px; }
.Popup-box.Popup-login .seperateline { margin: 20px 0 20px 0; }
.Popup-box.Popup-firstpurchase .pop-container { padding: 55px 10px 32px 10px !important; }
.Popup-box.Popup-firstpurchase .section_first { padding: 0px 0px; }
.Popup-box .pop_switch_top a { padding-bottom: 12px; }
.Popup-box .pop_top_section .title_box .words { font-size: 24px; }
.Popup-box .pop_top_section .title_box .line { width: 42px; }
.Popup-box .pop_top_section .searching_box input[type=text] { height: 34px; width: 100%; }
.pop_cateflex { margin: 0 -6px -15px -6px; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid>.title { font-size: 20px; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid .filter .selectCustomBox>.text { display: block; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid .filter .options_innerbox>div { padding: 0px; }
.Popup-box.Popup-like .pop_likelist_header .pop_likelist_grid .filter .options_innerbox>div:not(.whole) { flex: none; }
.Popup-box.Popup-like .pop_likelist_body .pop_likelist_grid .detail .reply .reply_container:before { background-size: 23px; min-width: 23px; width: 23px; height: 23px; margin-right: 3px; }
.Popup-box.Popup-inquiry .pop_inquiry_header .pop_inquiry_grid>.title { font-size: 20px; }
.Popup-box.Popup-newaddress .pop_inquiry_header .pop_inquiry_grid>.title { font-size: 20px; }
.Popup-box.Popup-purchase_record .pop_inquiry_header .pop_inquiry_grid>.title { font-size: 20px; margin-bottom: 16px; }
.Popup-box.Popup-purchase_record .pop_inquiry_body .p_record_box>.title { margin-bottom: 8px; }
.Popup-box.Popup-purchase_record .pop_inquiry_body .p_record_flex>div { padding: 3px 5px; }
.Popup-box.Popup-login .socialmediabox .socialmediaflex>a { height: 34px; font-size: 12px; margin: 0 4px; }
.Popup-box.Popup-login .socialmediabox .socialmediaflex>a.fb:before { background-size: 9px; width: 9px; height: 16px; }
.Popup-box.Popup-login .socialmediabox .socialmediaflex>a.line:before { background-size: 20px; width: 20px; height: 22px; }
.Popup-box.Popup-login .socialmediabox .socialmediaflex>a.google:before { background-size: 21px; width: 21px; height: 19px; }
.pop_cateflex .pop_cate_collapse_flex>div { flex: 0 0 25%; }
 }
/* --- 購物車 ≤1024：強制回到 mobile 2-col grid（cart.css 桌機 9-col 用 !important 不分斷點） --- */
@media (max-width: 1024px) {
 .c_p_grid.style1,
  .c_p_grid.style2,
  .c_p_grid.style3 { grid-template-columns: 90px 1fr 50px 80px !important; }
/* type_section 全寬置頂 */
  .c_p_grid.style1>.type_section,
  .c_p_grid.style2>.type_section,
  .c_p_grid.style3>.type_section { grid-column: 1 / -1 !important; grid-row: 1 !important; text-align: left; padding: 4px 0 8px 0 !important; }
.c_p_grid.style1>.type_section .type_label,
  .c_p_grid.style2>.type_section .type_label,
  .c_p_grid.style3>.type_section .type_label { font-size: 13px; color: #858585; font-weight: 500; }
/* 圖片左、名稱右（特異性需匹配 cart.css:663 .c_p_grid.styleX > div.imgbox） */
  .c_p_grid.style1>div.imgbox,
  .c_p_grid.style2>div.imgbox,
  .c_p_grid.style3>div.imgbox { grid-column: 1 !important; grid-row: 2 !important; width: 80px !important; align-self: start !important; }
.c_p_grid.style1>div:not(.header):not(.fee_row).name_section,
  .c_p_grid.style2>div:not(.header):not(.fee_row).name_section,
  .c_p_grid.style3>div:not(.header):not(.fee_row).name_section { grid-column: 2 / -1 !important; grid-row: 2 !important; padding-left: 8px !important; border-bottom: none !important; margin-bottom: 0 !important; }
/* spec 全寬；total/file 與 show_onMobile label 並排（label 在 col 1，value 在 col 2/-1） */
  .c_p_grid.style1.body>div:not(.header):not(.h_imgbox).spec_section.spec_amount_unit_box { grid-column: 2 / -1 !important; grid-row: auto !important; align-self: auto !important; justify-self: stretch !important; }
.c_p_grid.style1.body>div:not(.header):not(.h_imgbox).total_section,
  .c_p_grid.style1.body>div:not(.header):not(.h_imgbox).file_section { grid-column: 2 / -1 !important; grid-row: auto !important; align-self: center !important; justify-self: stretch !important; text-align: left !important; padding-left: 0 !important; }
.c_p_grid.style1>div:not(.header).spec_section { grid-column: 1 / -1 !important; grid-row: auto !important; align-self: auto !important; justify-self: stretch !important; }
.c_p_grid.style1>div:not(.header).total_section,
  .c_p_grid.style1>div:not(.header).file_section { grid-column: 2 / -1 !important; grid-row: auto !important; align-self: center !important; justify-self: stretch !important; }
/* 主商品規格/數量/單價 改 label:value 條列 */
  .c_p_grid.style1 .spec_amount_unit_box_inner { display: grid !important; grid-template-columns: 60px 1fr !important; gap: 4px 8px !important; margin: 0 !important; }
.c_p_grid.style1 .spec_amount_unit_box_inner>div { flex: none !important; padding: 4px 0 !important; text-align: left !important; }
.c_p_grid.style1 .spec_amount_unit_box_inner>.spec_section { grid-column: 1 / -1 !important; }
/* 規格內 subflex 用 70px 標籤欄，避免逐字換行 */
  .c_p_grid.style1 .spec_amount_unit_box_inner .spec_section .subflex { display: grid; grid-template-columns: 75px 1fr; gap: 0 4px; word-break: break-word; grid-column: 1 / -1 !important; }
.c_p_grid.style1 .spec_amount_unit_box_inner>.spec_section { grid-column: 1 / -1 !important; display: block !important; }
/* fee_row：商品名 / x數量 / 單價 同一列 (4-col grid: 90px 1fr 50px 80px) */
  .c_p_grid.style1>div.fee_row.name_section { grid-column: 1 / 3 !important; grid-row: auto !important; padding: 4px 0 !important; text-align: left !important; color: #333; border-bottom: 0px solid #DFDFDF; }
.c_p_grid.style1>div.fee_row.spec_section { display: none !important; }
.c_p_grid.style1>div.fee_row.amount_section { grid-column: 3 / 4 !important; grid-row: auto !important; padding: 6px 0 !important; text-align: center !important; color: #333; }
.c_p_grid.style1>div.fee_row.unit_section { grid-column: 4 / 5 !important; grid-row: auto !important; padding: 6px 0 !important; text-align: right !important; color: #333; }
.c_p_grid.style1>div.fee_separator { grid-column: 1 / -1 !important; justify-self: auto; margin: 5px 0; }
.c_p_grid.style1>div.fee_row.amount_section::before { content: "x" !important; color: #333 !important; margin-right: 0 !important; }
.c_p_grid.style1>div.fee_row.unit_section::before { content: none !important; }
/* 主商品 fee_row（main_row）：走 show_onMobile label + value 靠左，與 c_p_grid 4-col 對齊回 col 2/-1 */
  .c_p_grid.style1>div.fee_row.main_row.amount_section,
  .c_p_grid.style1>div.fee_row.main_row.unit_section { grid-column: 2 / -1 !important; text-align: left !important; padding: 4px 0 !important; }
.c_p_grid.style1>div.fee_row.main_row.amount_section::before,
  .c_p_grid.style1>div.fee_row.main_row.unit_section::before { content: none !important; }
/* 結帳按鈕全寬置中 */
  .cart_section_checkout { justify-content: center !important; }
.cart_section_checkout .btn__style7 { width: 100% !important; min-width: 0 !important; }
/* === style2 / style3 (現貨商品) 直式佈局 === */
  .c_p_grid.style2>.type_section,
  .c_p_grid.style3>.type_section { grid-column: 1 / -1 !important; grid-row: 1 !important; text-align: left; padding: 4px 0 8px 0 !important; }
.c_p_grid.style2>div.imgbox,
  .c_p_grid.style3>div.imgbox { grid-column: 1 !important; grid-row: 2 !important; width: 80px !important; align-self: start !important; }
.c_p_grid.style2>.btn_mobile,
  .c_p_grid.style3>.btn_mobile { grid-column: auto !important; grid-row: 1 !important; justify-self: end !important; align-self: center !important; z-index: 2; }
.c_p_grid.style2>.functions_section,
  .c_p_grid.style3>.functions_section { grid-column: auto !important; align-self: auto !important; }
.c_p_grid.style2>div:not(.header).name_section,
  .c_p_grid.style3>div:not(.header).name_section { grid-column: 2 / -1 !important; grid-row: 2 !important; padding-left: 8px !important; border-bottom: none !important; margin-bottom: 0 !important; }
.c_p_grid.style2 .name_section .prd_name { font-size: 18px; color: #333; line-height: 1.4; }
.c_p_grid.style2 .name_section .prd_id,
  .c_p_grid.style3 .name_section .prd_id { font-size: 15px; color: #858585; margin-top: 2px; }
.c_p_grid.style2 .name_section .payway_box,
  .c_p_grid.style3 .name_section .payway_box { margin-top: 6px; }
.c_p_grid.style2 .name_section .freepayeach,
  .c_p_grid.style3 .name_section .freepayeach { display: inline-block; font-size: 15px;}
.c_p_grid.style2 .name_section .freepayeach.free_home,
  .c_p_grid.style3 .name_section .freepayeach.free_home { border-color: #4a8c5c; color: #4a8c5c; }
.c_p_grid.style2>div:not(.header).spec_section,
  .c_p_grid.style3>div:not(.header).spec_section,
  .c_p_grid.style2>div:not(.header).amount_section,
  .c_p_grid.style3>div:not(.header).amount_section,
  .c_p_grid.style2>div:not(.header).unit_section,
  .c_p_grid.style3>div:not(.header).unit_section,
  .c_p_grid.style2>div:not(.header).total_section,
  .c_p_grid.style3>div:not(.header).total_section { grid-column: 2 / -1 !important; grid-row: auto !important; align-self: center !important; padding: 4px 0 !important; text-align: left !important; }
.c_p_grid.style2>div.show_onMobile,
  .c_p_grid.style3>div.show_onMobile { grid-column: 1 / 2 !important; align-self: center !important; padding: 4px 0 !important; color: #858585; font-size: 14px; }
.c_p_grid.style2 .amount_calculate_flex,
  .c_p_grid.style3 .amount_calculate_flex { display: inline-flex; align-items: center; }
 }
/* --- TD-19 RWD 390px 修復 (2026-04-01) --- */
@media (max-width: 480px) {
 /* P10 購物車：商品 grid 改單欄堆疊 */
  .pop_cartlist_grid { grid-template-columns: 1fr !important; }
.pop_cartlist_grid>div { padding: 5px 10px; }
.pop_cartlist_header { display: none; }
.pop_cartlist_body .show_onMobile { display: block !important; font-weight: 600; margin-bottom: 2px; }
/* P11/P12 結帳頁：左右佈局改上下堆疊 */
  .cheeckout_contentflex { flex-wrap: wrap !important; }
.cheeckout_contentflex .left { flex: 1 1 100% !important; border-right: 0 !important; padding-right: 0 !important; }
.cheeckout_contentflex .right { flex: 1 1 100% !important; padding-left: 0 !important; }
/* P11/P12 結帳頁：cart_grid 4 欄改 2 欄 */
  .cart_grid.style1,
  .cart_grid.style2 { grid-template-columns: max-content 1fr !important; }
/* P11/P12 結帳頁：商品摘要表格不溢出 */
  /* .checkout-calc-table .calc-row { flex-wrap: wrap; }
.checkout-calc-table .calc-col { flex: 0 0 33.33%; min-width: 0; } */
/* P18 我的收藏：橫排改直排 */
  .favorite_outerbox { /* flex-wrap: wrap !important; padding: 15px 0; */ }
.favorite_outerbox>.left { /* flex: 1 1 100% !important; padding: 0 10px; */ }
.favorite_outerbox>.left .contentbox { flex-wrap: wrap !important; }
.favorite_outerbox>.left .imgbox { /* width: 100% !important; max-width: 200px; margin: 0 auto 10px; */ }
.favorite_outerbox>.left .detailbox_outer { /* padding-left: 0 !important; width: 100%; */ }
.favorite_outerbox>.right { /* flex: 1 1 100% !important; padding: 0 10px; */ }
.favorite_outerbox .removecross { right: 10px; top: 10px; }
/* 通用：防止 table/grid 撐寬 */
  .wrapContent { /* overflow-x: hidden; */ }
table { max-width: 100%; overflow-x: auto; display: block; }
.Popup-box.wrapContent { overflow-x: initial; }
 }

/* --- v3 desktop vs screen.prefixer.css @media conflicts (auto-fix) --- */
body.float-bar-fixed .menufloat.fbf-right { top: auto; bottom: 30%; z-index: 99;}

@media (max-width: 1500px) {
 body.float-bar-fixed .menufloat.fbf-right { top: auto; bottom: 120px; }
 }
@media (max-width: 1480px) {
 .print_input_flex { flex-wrap: wrap !important; }
 }
.footer__sublogobox_mobile { display: none; }
@media (max-width: 1024px) {
 footer .footer_otherinfobox { padding: 0 10px; }
 footer .footer_otherinfobox .footer__medialinkbox { display: none; }
 footer .footer_otherinfobox .footer__sublogobox_mobile { display: flex; gap: 15px; justify-content: center; margin-bottom: 24px; }
 footer .footer_otherinfobox .footer__sublogobox_mobile .footer__sublogo { max-width: 60px; }
 footer .footer_otherinfobox .footer__sublogobox_mobile .footer__sublogo img { width: 100%; height: 100%; display: block; }
.memberaddress_grid { grid-template-columns: max-content max-content max-content max-content 1fr; }
.memberaddress_grid.body .functions_section .btn_edit { margin-bottom: 6px; }
.avaipro_withnumber_each .pricebox { width: 100%; }
.c_p_grid>div { padding: 10px 0px; align-self: self-start; }
.c_p_grid>div.name_section.align_l.fee_row { margin-bottom: 0; }
 }
@media (max-width: 769px) {
 .Popup-box.Popup-login .pop-container { padding: 55px 10px 32px 10px !important; width: 100%; }
.Popup-box.Popup-login .switch_outerbox>div { padding: 0px 0px; }
.index__clientsbox .index__subbox { padding: 20px 8px; }
.index__knowledgebox .index__knowledgeflex .index__knowledgedesbox { padding: 12px; display: flex; }
.order_outerbox { margin-top: 10px; }
.cheeckout_contentflex .left { border-right: 0px; border-bottom: 1px solid #D1AA6D; padding-bottom: 10px; }
.favorite_outerbox>.right .amount_flex .btn__style7 { width: 128px; height: 39px; }
.favorite_outerbox .btn-cart2 { width: 112px }
.favorite_outerbox>.right .total_flex .unit_each { flex: 1; }
 }
.banner-content.fixed>picture>img { position: absolute; left: 0; right: 0; margin: auto; z-index: -1; max-width: none; width: auto; }
.banner-content.fixed2>picture>img { top: -9999px; bottom: -9999px; transition: transform 0.9s cubic-bezier(0.18, 0.69, 0.34, 0.75) 0s; }
.banner-content>picture>img { display: block; }
.banner-content>picture { display: block; width: 100%; height: 100%; }
@media (max-width: 769px) {
 .banner-content.fixed2>picture>img { width: 100%; }
 }
 /* iOS 16 (Safari) checkout-calc-table RWD Fix */
 .checkout-calc-table .calc-col { min-width: 0; word-break: break-word; }
 @media (max-width: 769px) {
   .checkout-calc-table .calc-col { grid-template-columns: 100px minmax(0, 1fr) !important; }
   .checkout-calc-table .calc-value, .checkout-calc-table .calc-value:has(.calc-input) { grid-column: 2 / 3 !important; align-self: center !important; min-width: 0; width: 100%; }
   .checkout-calc-table .calc-hint { grid-column: 2 / 3 !important; width: 100%; align-self: start !important; justify-self: start !important; margin-top: 6px; }
   .checkout-calc-table .calc-input { width: 100%; max-width: 150px; box-sizing: border-box; }
 }