/* overlay-cart-header：購物車／付款頁補回全站標準頂部（頂端資訊列＋LOGO 列＋選單）。
   規則取自 /assets/css/style-20260921-mobile-r58.css 的同名規則，全部限定在 .qq-std-head 內，
   不影響購物車原有的表單、付款、Turnstile 與對話框樣式。
   與一般頁不同的兩點：
   1. 頂部不黏住（position:relative），手機捲到付款區時不會遮住內容。
   2. LINE 按鈕改用白底綠框，頁面唯一的主要動作仍是結帳／付款按鈕。 */
.qq-std-head{--navy:#0b2d62;--orange:#f58220;--ink:#122033;--line:#dce5f0;--green:#06c755;
  --shadow-sm:0 8px 24px rgba(11,45,98,.09);--container:1180px;
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif;line-height:1.68;color:var(--ink);
  -webkit-font-smoothing:antialiased;position:relative;z-index:20}
.qq-std-head *{box-sizing:border-box}
.qq-std-head a{color:inherit;text-decoration:none}
.qq-std-head img{max-width:100%;height:auto}
.qq-std-head .container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}
.qq-std-head .topbar{background:var(--navy);color:#dbe9fb;font-size:.82rem}
.qq-std-head .topbar-inner{display:flex;justify-content:space-between;align-items:center;min-height:38px;gap:20px}
.qq-std-head .topbar a{color:#dbe9fb}
.qq-std-head .topbar a:hover{color:#fff}
.qq-std-head .topbar-actions{display:flex;align-items:center;gap:12px}
.qq-std-head .divider{opacity:.38}
.qq-std-head .mini-icon{width:14px;height:14px;vertical-align:-2px;margin-right:4px}
/* 購物車 style.css 的 header{} 通用規則（深底、flex、白字）在這裡逐項還原成全站樣式 */
.qq-std-head .site-header{position:relative;top:auto;z-index:auto;display:block;flex-direction:initial;gap:0;padding:0;
  background:rgba(255,255,255,.97);color:var(--ink);border-bottom:1px solid rgba(220,229,240,.85)}
.qq-std-head .site-header a{color:inherit}
.qq-std-head .nav-wrap{min-height:88px;height:auto;padding:10px 0;display:flex;align-items:center;gap:24px;overflow:visible}
.qq-std-head .brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-height:58px;overflow:visible;font-size:inherit;font-weight:inherit;color:inherit}
.qq-std-head .brand img,.qq-std-head .brand-mark{display:block;width:50px;height:50px;object-fit:contain;flex:0 0 50px;background:none;border-radius:0;padding:0}
.qq-std-head .brand span,.qq-std-head .brand-copy{display:flex;flex-direction:column;justify-content:center;line-height:1.15;padding:2px 0}
.qq-std-head .brand-copy b{font-size:1.4rem;line-height:1.15;color:var(--navy);letter-spacing:.04em;white-space:nowrap}
.qq-std-head .brand-copy small{font-size:.5rem;line-height:1.35;color:#5d6d82;font-weight:800;letter-spacing:.055em;white-space:nowrap;opacity:1}
.qq-std-head .desktop-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.qq-std-head .nav-link{display:inline-flex;align-items:center;padding:12px 13px;border-radius:10px;font-size:.94rem;font-weight:700;color:#34445a;white-space:nowrap}
.qq-std-head .nav-link:hover,.qq-std-head .nav-link.active{color:var(--navy);background:#eef4fb}
.qq-std-head .nav-link.active{box-shadow:inset 0 -2px var(--orange)}
.qq-std-head .nav-cta{display:flex;gap:10px}
.qq-std-head .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:0 22px;border-radius:13px;font-weight:800;border:1px solid transparent;margin:0;font-size:1rem;line-height:1.2;cursor:pointer}
.qq-std-head .btn-sm{min-height:42px;padding:0 16px;font-size:.9rem}
.qq-std-head .btn-icon{width:19px;height:19px}
.qq-std-head .btn-ghost{border-color:#cbd9ea;background:#fff;color:var(--navy)}
/* 次要動作：LINE 諮詢、立即撥打都用白底外框，不與結帳按鈕搶視覺 */
.qq-std-head .btn-line-soft{border:2px solid #00813c;background:#fff;color:#00813c}
.qq-std-head .btn-line-soft:hover{background:#effaf3}
.qq-std-head .btn-call-soft{border:2px solid var(--navy);background:#fff;color:var(--navy)}
.qq-std-head .menu-toggle{display:none;width:44px;height:44px;min-height:44px;flex:0 0 44px;border:0;background:#edf3fb;border-radius:12px;padding:11px;margin:0;cursor:pointer}
.qq-std-head .menu-toggle span{display:block;height:2px;background:var(--navy);margin:5px 0}
.qq-std-head .mobile-panel{display:none}
.qq-std-head .mobile-panel.open{display:block}
.qq-std-head .mobile-panel nav{display:grid;padding:8px 20px 18px}
.qq-std-head .mobile-panel .nav-link{border-bottom:1px solid var(--line);border-radius:0;padding:14px 2px}
.qq-std-head .mobile-panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 20px 20px}
.qq-std-head a:focus-visible,.qq-std-head button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
@media(max-width:1160px){
  .qq-std-head .desktop-nav{display:none}
  .qq-std-head .nav-cta .btn-ghost{display:none}
  .qq-std-head .menu-toggle{display:block}
  .qq-std-head .nav-wrap{min-height:74px;padding:8px 0}
}
@media(max-width:720px){
  .qq-std-head .container{width:min(100% - 28px,var(--container))}
  .qq-std-head .topbar-inner{justify-content:center;text-align:center;min-height:34px}
  .qq-std-head .topbar-actions{display:none}
  .qq-std-head .nav-cta{display:none}
  .qq-std-head .brand img,.qq-std-head .brand-mark{width:44px;height:44px;flex-basis:44px}
  .qq-std-head .brand-copy b{font-size:1.18rem}
  .qq-std-head .brand-copy small{font-size:.44rem;line-height:1.3}
}
@media(any-pointer:coarse),(max-width:720px){
  .qq-std-head .btn-sm{min-height:44px;min-width:44px}
}
@media(max-width:430px){
  .qq-std-head .brand-copy small{display:none}
  .qq-std-head .nav-wrap{gap:10px}
  .qq-std-head .brand{gap:8px;flex:1 1 auto;min-width:0;max-width:calc(100% - 54px)}
  .qq-std-head .brand-copy{min-width:0;max-width:100%}
  .qq-std-head .brand-copy b{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.05}
  .qq-std-head .menu-toggle{margin-left:auto}
}
/* 原本的精簡深藍頂列：品牌與「聯絡森麒」由標準頂部取代而隱藏（元素保留，腳本不受影響）；
   客戶登入後的帳號區仍顯示在標準頂部下方的一條細列。 */
.qq-std-head+header{display:none!important}
.qq-std-head+header:has(>#qq-account-chip:not([hidden])){display:flex!important;justify-content:flex-end;align-items:center;flex-direction:row;
  padding:6px max(16px,calc((100vw - 1180px)/2));gap:10px;border-bottom:0}
.qq-std-head+header:has(>#qq-account-chip:not([hidden]))>.brand,
.qq-std-head+header:has(>#qq-account-chip:not([hidden]))>nav{display:none!important}
@media(prefers-reduced-motion:reduce){.qq-std-head *{transition:none!important}}
