:root{--ink:#16181d;--muted:#667085;--line:#e9edf3;--gold:#c9a44d;--soft:#f7f4ec;--bg:#f6f7f9;--card:#fff;--shadow:0 24px 70px rgba(16,24,40,.10)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,#fffaf0,#f6f7f9 38%,#eef2f7);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",Segoe UI,sans-serif;color:var(--ink)}a{color:inherit}.lm-shell{max-width:1240px;margin:auto;padding:20px 18px 80px}.lm-hero{border:1px solid rgba(255,255,255,.7);border-radius:34px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(250,247,238,.88));box-shadow:var(--shadow);padding:20px;overflow:hidden;position:relative}.lm-hero:before{content:"";position:absolute;right:-120px;top:-160px;width:420px;height:420px;background:linear-gradient(135deg,rgba(201,164,77,.28),rgba(37,99,235,.12));filter:blur(20px);border-radius:999px}.lm-hero nav{display:flex;justify-content:flex-end;gap:10px;position:relative;z-index:1}.lm-hero nav a,.lm-admin nav a{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:800;text-decoration:none;color:#344054;box-shadow:0 8px 22px rgba(16,24,40,.05)}.lm-hero-grid{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:end;position:relative;z-index:1;padding:32px 10px 12px}.lm-kicker{display:inline-flex;letter-spacing:.14em;font-size:12px;font-weight:950;color:#98722c;margin-bottom:10px}.lm-hero h1{font-size:clamp(34px,5vw,64px);line-height:1.03;letter-spacing:-.055em;margin:0 0 16px;font-weight:950}.lm-hero p{max-width:760px;color:var(--muted);font-size:17px;line-height:1.85}.lm-search{display:flex;gap:10px;margin-top:22px;max-width:720px}.lm-search input,.lm-panel input,.lm-panel select,.lm-panel textarea{width:100%;border:1px solid var(--line);border-radius:18px;padding:14px 15px;font:inherit;background:#fff;outline:none}.lm-search button,.lm-panel button,.lm-primary,#lm-checkout{border:0;border-radius:18px;padding:14px 20px;background:#171717;color:#fff;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 14px 30px rgba(0,0,0,.18)}.lm-primary.ghost{background:#fff;color:#171717;border:1px solid var(--line);margin-left:8px}.lm-member{border-radius:28px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 48px rgba(16,24,40,.08);padding:22px;backdrop-filter:blur(18px)}.lm-member b{display:block;font-size:22px}.lm-member small{display:block;color:var(--muted);font-weight:800;margin-top:12px}.lm-member code{display:block;word-break:break-all;background:#f5f6f8;border-radius:14px;padding:10px;margin-top:6px}.lm-points{margin-top:18px;border-radius:22px;background:linear-gradient(135deg,#191919,#4a3a19);color:#fff;padding:18px}.lm-points span{font-size:12px;letter-spacing:.12em}.lm-points strong{display:block;font-size:34px;margin-top:4px}.lm-tabs{display:flex;gap:10px;overflow-x:auto;padding:20px 2px}.lm-tabs a{white-space:nowrap;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:11px 16px;font-weight:900;color:#344054}.lm-tabs a.on{background:#171717;color:#fff;border-color:#171717}.lm-control-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:4px 0 20px}.lm-control-cards>div,.lm-product,.lm-panel,.lm-table,.lm-install-box{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.9);box-shadow:0 14px 38px rgba(16,24,40,.07);border-radius:26px;padding:20px}.lm-control-cards b{font-size:18px}.lm-control-cards p,.lm-product p{color:var(--muted);line-height:1.65;margin-bottom:0}.lm-products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.lm-product{display:flex;flex-direction:column;min-height:430px;transition:.2s ease}.lm-product:hover{transform:translateY(-4px);box-shadow:0 26px 64px rgba(16,24,40,.13)}.lm-img{height:150px;border-radius:22px;background:linear-gradient(135deg,#f8fafc,#f3ead5);display:flex;align-items:center;justify-content:center;overflow:hidden}.lm-img img{width:100%;height:100%;object-fit:cover}.lm-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.lm-badges span{font-size:11px;font-weight:950;border:1px solid var(--line);background:#fafafa;border-radius:999px;padding:6px 9px;color:#475467}.lm-product h3{font-size:20px;line-height:1.35;margin:12px 0 6px}.lm-meta{display:flex;justify-content:space-between;gap:10px;color:#667085;margin-top:auto;font-weight:800}.lm-price{display:flex;align-items:flex-end;justify-content:space-between;margin:14px 0}.lm-price del{color:#98a2b3}.lm-price strong{font-size:24px}.lm-add{border:0;border-radius:18px;background:#171717;color:#fff;padding:13px 14px;font-weight:950;cursor:pointer}.lm-cart{position:fixed;right:20px;bottom:20px;width:320px;max-width:calc(100vw - 40px);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:26px;padding:18px;z-index:9999}.lm-cart b{display:block;margin-bottom:10px}.lm-cart #lm-cart-items div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0}.lm-cart p{color:#98a2b3}.lm-admin,.lm-install{max-width:1220px;margin:auto;padding:26px 18px 80px}.lm-admin header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-radius:32px;background:#fff;box-shadow:var(--shadow);padding:26px;margin-bottom:18px}.lm-admin h1,.lm-install h1{font-size:42px;letter-spacing:-.04em;margin:4px 0}.lm-admin-grid{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:16px}.lm-panel{display:flex;flex-direction:column;gap:11px}.lm-panel h2,.lm-table h2{margin:0 0 8px}.lm-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lm-panel textarea{min-height:96px}.lm-table{margin-top:16px;overflow:auto}.lm-table table{width:100%;border-collapse:collapse}.lm-table th,.lm-table td{padding:13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.lm-table th{background:#fafafa}.lm-ok{background:#ecfdf3;border:1px solid #abefc6;color:#067647;border-radius:18px;padding:14px;margin:12px 0;font-weight:900}.lm-error{background:#fff1f3;border:1px solid #fecdd3;color:#b42318;border-radius:18px;padding:14px;white-space:pre-wrap}.lm-install{max-width:820px}.lm-code{background:#111827;color:#f8fafc;border-radius:22px;padding:18px;white-space:pre-wrap;line-height:1.6}@media(max-width:1100px){.lm-products{grid-template-columns:repeat(2,1fr)}.lm-admin-grid{grid-template-columns:1fr}.lm-control-cards{grid-template-columns:1fr}.lm-hero-grid{grid-template-columns:1fr}}@media(max-width:640px){.lm-shell{padding:10px 10px 130px}.lm-hero{border-radius:26px;padding:14px}.lm-hero nav{justify-content:flex-start;overflow:auto}.lm-hero-grid{padding:20px 2px 4px}.lm-search{flex-direction:column}.lm-products{grid-template-columns:1fr}.lm-cart{left:10px;right:10px;bottom:10px;width:auto}.lm-admin header{flex-direction:column}.lm-row{grid-template-columns:1fr}.lm-admin h1,.lm-install h1{font-size:32px}}
.lm-brandline{display:flex;align-items:center;gap:14px;margin-bottom:18px}.lm-brandline img{height:58px;width:auto;display:block;background:#fff;border-radius:18px;padding:8px;box-shadow:0 14px 34px rgba(16,24,40,.10)}.lm-brandline span{font-weight:950;color:#146c43;letter-spacing:.08em}.lm-main-tabs a{font-size:16px;padding:13px 22px}.lm-filter-panel{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin:0 0 18px}.lm-filter-panel>div{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(16,24,40,.07);border-radius:24px;padding:16px}.lm-filter-panel b{display:block;margin-bottom:10px;font-size:15px;color:#344054}.lm-chips{display:flex;gap:8px;flex-wrap:wrap}.lm-chips a{text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900;color:#475467}.lm-chips a.on{background:#147a45;color:#fff;border-color:#147a45}.lm-empty{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px;text-align:center;color:#667085;font-weight:850}.lm-hero h1{color:#101828}.lm-hero p{color:#475467}@media(max-width:900px){.lm-filter-panel{grid-template-columns:1fr}.lm-brandline img{height:50px}.lm-main-tabs a{padding:11px 16px}}
.lm-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;background:#147a45;color:#fff;font-size:13px;margin-left:8px}.lm-cart-line{display:grid!important;grid-template-columns:1fr auto 34px 34px;align-items:center;gap:8px}.lm-cart-line span{font-weight:900;line-height:1.35}.lm-cart-line em{display:block;font-style:normal;font-size:12px;color:#667085;font-weight:700;margin-top:3px}.lm-cart-line strong{font-size:14px;background:#f3f6f4;border-radius:999px;padding:5px 8px;color:#147a45}.lm-cart-line button{width:30px;height:30px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:950;cursor:pointer}.lm-cart-total{margin:12px 0;padding:12px;border-radius:18px;background:#f8fafc;border:1px solid var(--line);display:grid;gap:3px}.lm-cart-total span{font-size:12px;color:#667085;font-weight:800}.lm-cart-total b{font-size:22px;margin:0!important}.lm-cart-total small{color:#147a45;font-weight:900}.lm-payment-box{border-top:1px solid var(--line);margin:10px 0;padding-top:10px;display:grid;gap:7px;max-height:150px;overflow:auto}.lm-payment-box label{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:850;color:#475467}.lm-order-hero .lm-hero-grid{align-items:center}.lm-order-table table{font-size:14px}.lm-order-item{display:flex;gap:8px;align-items:center;margin:4px 0}.lm-order-item small{color:#667085}.lm-status{display:inline-flex;background:#fff7e6;border:1px solid #fedf89;color:#93370d;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}
.lm-mini-form{display:grid;gap:7px;min-width:210px;margin:0 0 10px}.lm-mini-form input,.lm-mini-form select{border:1px solid var(--line);border-radius:12px;padding:9px 10px;background:#fff}.lm-mini-form button{border:0;border-radius:12px;background:#171717;color:#fff;font-weight:900;padding:9px 10px;cursor:pointer}.lm-mini-form button.danger{background:#b42318}.lm-refund-note{margin-top:6px;color:#b42318;background:#fff1f3;border:1px solid #fecdd3;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;display:inline-flex}.lm-status{display:inline-flex;border-radius:999px;background:#eef4ff;color:#3538cd;padding:5px 9px;font-size:12px;font-weight:900}.lm-empty{color:#98a2b3}.lm-order-item small{color:#667085;margin-left:6px}

/* === 2026-06 UIUX 商城強化：商品優先、分類橫排、購物車不爆版、RWD === */
.lm-hero-compact{padding:14px 18px 16px;border-radius:28px;margin-bottom:10px}
.lm-hero-compact:before{width:260px;height:260px;right:-90px;top:-110px;opacity:.55}
.lm-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;position:relative;z-index:2}
.lm-logo-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:950;color:#146c43;white-space:nowrap}
.lm-logo-link img{height:34px;width:auto;border-radius:10px;background:#fff;padding:4px;box-shadow:0 8px 22px rgba(16,24,40,.08)}
.lm-logo-link span{font-size:15px;letter-spacing:.06em}
.lm-hero-compact nav{justify-content:flex-end;gap:8px;overflow-x:auto;padding-bottom:2px}
.lm-hero-compact nav a{padding:8px 11px;font-size:13px;box-shadow:none;background:rgba(255,255,255,.82)}
.lm-hero-compact .lm-hero-grid{grid-template-columns:minmax(0,1fr) 190px;gap:12px;align-items:center;padding:14px 0 0}
.lm-hero-compact .lm-kicker{font-size:11px;margin-bottom:4px}
.lm-hero-compact h1{font-size:clamp(26px,3vw,40px);margin:0 0 6px;letter-spacing:-.04em}
.lm-compact-copy{font-size:14px!important;line-height:1.55!important;margin:0 0 10px!important;max-width:620px!important}
.lm-hero-compact .lm-search{margin-top:8px;max-width:600px}
.lm-hero-compact .lm-search input{padding:11px 14px;border-radius:15px}
.lm-hero-compact .lm-search button{padding:11px 16px;border-radius:15px}
.lm-member-mini{padding:16px;border-radius:22px;text-align:left}
.lm-member-mini b{font-size:16px}.lm-member-mini small{margin-top:4px;font-size:11px;letter-spacing:.08em}.lm-member-mini strong{display:block;font-size:26px;margin-top:3px;color:#146c43}
.lm-main-tabs{position:sticky;top:0;z-index:30;background:rgba(246,247,249,.88);backdrop-filter:blur(16px);padding:10px 2px 12px;margin:0 -2px 6px;scroll-snap-type:x mandatory;white-space:nowrap}
.lm-main-tabs a{font-size:15px;padding:10px 18px;scroll-snap-align:start;box-shadow:0 8px 20px rgba(16,24,40,.05)}
.lm-filter-panel{margin-top:4px}.lm-filter-panel>div{padding:13px;border-radius:20px}.lm-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.lm-chips a{white-space:nowrap}
.lm-note-cards{margin-top:22px;opacity:.88}.lm-note-cards>div{padding:15px;border-radius:20px}.lm-note-cards b{font-size:15px}.lm-note-cards p{font-size:13px;line-height:1.55}
.lm-products{align-items:stretch}.lm-product{min-height:390px;border-radius:24px;padding:18px}.lm-product h3{font-size:19px}.lm-product p{font-size:14px}.lm-img{height:138px}.lm-price strong{font-size:22px}
.lm-cart{top:calc(50% + 10px);bottom:auto;transform:translateY(-50%);display:flex;flex-direction:column;max-height:min(78vh,680px);padding:16px}
.lm-cart>b{flex:0 0 auto}.lm-cart #lm-cart-items{flex:1 1 auto;min-height:80px;max-height:260px;overflow-y:auto;padding-right:4px;overscroll-behavior:contain;border-bottom:1px solid var(--line);margin-bottom:8px}
.lm-payment-box{flex:0 0 auto;max-height:165px;overflow-y:auto;border-top:0;margin:4px 0 10px;padding-top:4px}
#lm-checkout{flex:0 0 auto;width:100%}.lm-cart-line{padding:9px 0!important}.lm-cart-line span{font-size:14px}.lm-cart-line em{font-size:12px}.lm-cart-total{position:sticky;bottom:0;background:#f8fafc;z-index:2}
.lm-cart #lm-cart-items::-webkit-scrollbar,.lm-payment-box::-webkit-scrollbar,.lm-chips::-webkit-scrollbar,.lm-main-tabs::-webkit-scrollbar{height:6px;width:6px}.lm-cart #lm-cart-items::-webkit-scrollbar-thumb,.lm-payment-box::-webkit-scrollbar-thumb,.lm-chips::-webkit-scrollbar-thumb,.lm-main-tabs::-webkit-scrollbar-thumb{background:#d0d5dd;border-radius:999px}
.lm-details{min-width:260px}.lm-details summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:950;color:#344054}.lm-details summary::-webkit-details-marker{display:none}.lm-details summary:after{content:'展開';font-size:12px;color:#147a45}.lm-details[open] summary:after{content:'收合';color:#b42318}.lm-details-body{margin-top:10px;max-height:220px;overflow:auto;padding-right:4px}.lm-pager{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;flex-wrap:wrap}.lm-pager a,.lm-pager span{min-width:38px;height:38px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--line);background:#fff;font-weight:950;color:#344054}.lm-pager .on{background:#171717;color:#fff;border-color:#171717}.lm-pager .disabled{opacity:.35}.lm-table-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}.lm-table-tools small{color:#667085;font-weight:800}
@media(max-width:1180px){.lm-products{grid-template-columns:repeat(3,1fr)}.lm-cart{width:300px}}
@media(max-width:980px){.lm-products{grid-template-columns:repeat(2,1fr)}.lm-cart{position:sticky;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:100%;max-width:none;margin:18px auto 0;max-height:none}.lm-cart #lm-cart-items{max-height:220px}.lm-hero-compact .lm-hero-grid{grid-template-columns:1fr}.lm-member-mini{display:none}}
@media(max-width:640px){.lm-shell{padding:8px 10px 28px}.lm-hero-compact{padding:12px;border-radius:22px}.lm-topbar{align-items:flex-start;flex-direction:column}.lm-hero-compact nav{width:100%;justify-content:flex-start}.lm-logo-link img{height:30px}.lm-logo-link span{font-size:14px}.lm-hero-compact .lm-search{flex-direction:row}.lm-hero-compact .lm-search input{min-width:0}.lm-hero-compact .lm-search button{white-space:nowrap}.lm-main-tabs{top:0;margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.lm-products{grid-template-columns:1fr;gap:14px}.lm-product{min-height:0;padding:16px}.lm-img{height:128px}.lm-filter-panel>div{padding:12px}.lm-cart{border-radius:22px}.lm-cart #lm-cart-items{max-height:210px}.lm-table-tools{align-items:flex-start;flex-direction:column}.lm-table{padding:14px;border-radius:22px}.lm-details{min-width:220px}}

/* === 2026-06-05 Mobile bottom frozen cart UIUX refinement === */
.lm-mobile-cart-summary,.lm-cart-toggle{display:none}

@media(max-width:640px){
  body.lm-has-cart{padding-bottom:132px}
  body.lm-has-cart.lm-cart-open{padding-bottom:78vh}
  .lm-shell{padding-bottom:32px!important}
  .lm-cart{
    position:fixed!important;
    left:10px!important;right:10px!important;bottom:10px!important;top:auto!important;
    width:auto!important;max-width:none!important;margin:0!important;transform:none!important;
    z-index:99999;border-radius:24px!important;padding:10px 12px 12px!important;
    max-height:118px!important;overflow:hidden;background:rgba(255,255,255,.96);
    backdrop-filter:blur(20px);box-shadow:0 -12px 46px rgba(16,24,40,.20);
    border:1px solid rgba(233,237,243,.95)
  }
  .lm-cart>b{
    display:flex!important;align-items:center;justify-content:space-between;gap:8px;
    margin:0 0 7px!important;font-size:14px;line-height:1.2
  }
  .lm-cart-toggle{
    display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);
    background:#fff;color:#147a45;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950;
    box-shadow:0 6px 16px rgba(16,24,40,.08);cursor:pointer
  }
  .lm-mobile-cart-summary{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:8px 10px;margin:0 0 8px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)
  }
  .lm-mobile-cart-summary span{display:block;font-size:12px;color:#667085;font-weight:850;line-height:1.2}
  .lm-mobile-cart-summary strong{display:block;font-size:17px;color:#111827;line-height:1.2;margin-top:2px}
  .lm-mobile-cart-summary small{font-size:12px;color:#147a45;font-weight:900;white-space:nowrap}
  .lm-cart #lm-cart-items,.lm-cart .lm-payment-box{display:none!important}
  .lm-cart #lm-checkout{height:44px;border-radius:16px!important;font-size:15px;padding:11px 14px!important;width:100%}

  body.lm-cart-open .lm-cart{max-height:calc(78vh - env(safe-area-inset-bottom,0px))!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
  body.lm-cart-open .lm-cart #lm-cart-items{display:block!important;max-height:calc(78vh - 230px)!important;overflow-y:auto;border-bottom:1px solid var(--line);margin:4px 0 8px;padding-right:4px}
  body.lm-cart-open .lm-cart .lm-payment-box{display:grid!important;max-height:112px!important;overflow-y:auto;margin:4px 0 8px!important;padding:6px 0 0!important;border-top:1px solid var(--line)}
  body.lm-cart-open .lm-cart-toggle{background:#147a45;color:#fff;border-color:#147a45}
  body:not(.lm-cart-open) .lm-cart-empty{display:none!important}
  body:not(.lm-has-cart) .lm-cart{max-height:96px!important}
  body:not(.lm-has-cart) .lm-mobile-cart-summary{display:none!important}
}

/* === V54 Shopee-like mini cart: preview only, no checkout controls === */
body.lm-cart-open:not(.lm-cart-collapsed):before{display:none!important}
#lm-cart{
  position:fixed!important;
  top:82px!important;
  right:28px!important;
  left:auto!important;
  bottom:auto!important;
  width:430px!important;
  max-width:calc(100vw - 24px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e5e7eb!important;
  border-radius:4px!important;
  background:#fff!important;
  box-shadow:0 8px 28px rgba(0,0,0,.16)!important;
  transform:none!important;
  z-index:9999!important;
}
#lm-cart>b{
  display:flex!important;
  align-items:center!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  border-bottom:1px solid #eee!important;
  background:#fff!important;
  font-size:17px!important;
}
body.lm-cart-collapsed #lm-cart,
body:not(.lm-cart-open) #lm-cart{
  width:210px!important;
  height:58px!important;
  min-height:58px!important;
  border-radius:12px!important;
}
body.lm-cart-collapsed #lm-cart #lm-cart-items,
body.lm-cart-collapsed #lm-cart #lm-cart-pager,
body.lm-cart-collapsed #lm-cart #lm-cart-total-panel,
body.lm-cart-collapsed #lm-cart .lm-cart-checkout-stack,
body:not(.lm-cart-open) #lm-cart #lm-cart-items,
body:not(.lm-cart-open) #lm-cart #lm-cart-pager,
body:not(.lm-cart-open) #lm-cart #lm-cart-total-panel,
body:not(.lm-cart-open) #lm-cart .lm-cart-checkout-stack{display:none!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  position:fixed!important;
  top:82px!important;
  right:28px!important;
  left:auto!important;
  bottom:auto!important;
  width:430px!important;
  height:auto!important;
  max-height:none!important;
  display:block!important;
  background:#fff!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
  display:block!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
  margin:0!important;
  padding:0 14px!important;
  border:0!important;
  background:#fff!important;
}
.lm-mini-cart-label{display:block!important;padding:12px 0 8px!important;color:#a0a4aa!important;font-size:13px!important}
#lm-cart .lm-mini-cart-line{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:2px 12px!important;
  min-height:72px!important;
  padding:8px 0!important;
  border-bottom:0!important;
  color:#20242b!important;
  text-decoration:none!important;
}
#lm-cart .lm-mini-cart-line img{grid-row:1/3!important;width:52px!important;height:52px!important;object-fit:cover!important;border:1px solid #eee!important;background:#fafafa!important}
#lm-cart .lm-mini-cart-line>span{display:block!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important}
#lm-cart .lm-mini-cart-line>b{display:block!important;margin:0!important;color:#ee4d2d!important;font-size:14px!important;white-space:nowrap!important}
#lm-cart .lm-mini-cart-line>em{grid-column:2/4!important;color:#149447!important;font-size:12px!important;font-style:normal!important;font-weight:900!important}
#lm-cart .lm-mini-cart-line.is-paid{opacity:.72!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:44px!important;
  margin:0!important;
  padding:6px 14px!important;
  border-top:1px solid #f0f0f0!important;
  background:#fafafa!important;
  color:#666!important;
  font-size:13px!important;
}
#lm-cart #lm-cart-pager>div{display:flex!important;gap:6px!important}
#lm-cart #lm-cart-pager button{width:32px!important;height:30px!important;border:1px solid #ddd!important;border-radius:4px!important;background:#fff!important;font-size:21px!important;line-height:1!important;cursor:pointer!important}
#lm-cart #lm-cart-pager button:disabled{opacity:.35!important;cursor:default!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{display:none!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  display:block!important;
  max-height:none!important;
  margin:0!important;
  padding:12px 14px 14px!important;
  border-top:1px solid #eee!important;
  background:#fff!important;
  overflow:visible!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{
  display:block!important;
  width:100%!important;
  min-height:46px!important;
  margin:0!important;
  padding:10px 16px!important;
  border-radius:3px!important;
  background:#ee4d2d!important;
  box-shadow:none!important;
}
@media(max-width:640px){
  #lm-cart,body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{top:66px!important;right:8px!important;width:calc(100vw - 16px)!important;inset:auto 8px auto auto!important;border-radius:6px!important}
  body.lm-cart-collapsed #lm-cart,body:not(.lm-cart-open) #lm-cart{top:auto!important;right:10px!important;bottom:14px!important;width:210px!important}
}

/* === 2026-06-05 Mobile filter RWD refinement: company / subcategory / source no overflow === */
@media(max-width:640px){
  .lm-filter-panel{
    display:flex!important;
    grid-template-columns:none!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    margin:4px -10px 12px!important;
    padding:2px 10px 8px!important;
    max-width:calc(100vw + 20px)!important;
  }
  .lm-filter-panel>div{
    flex:0 0 min(82vw,360px)!important;
    width:min(82vw,360px)!important;
    min-width:0!important;
    max-height:94px!important;
    overflow:hidden!important;
    scroll-snap-align:start;
    padding:10px 11px!important;
    border-radius:18px!important;
    box-shadow:0 8px 24px rgba(16,24,40,.07)!important;
  }
  .lm-filter-panel b{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    margin:0 0 7px!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .lm-filter-panel b:after{
    content:'左右滑動';
    font-size:10px;
    font-weight:850;
    color:#98a2b3;
    margin-left:8px;
  }
  .lm-chips{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    padding:0 0 6px!important;
    max-width:100%!important;
  }
  .lm-chips a{
    flex:0 0 auto!important;
    max-width:72vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    padding:7px 10px!important;
    font-size:12px!important;
    line-height:1.2!important;
  }
  .lm-filter-panel::-webkit-scrollbar,.lm-chips::-webkit-scrollbar{height:4px!important}
  .lm-filter-panel::-webkit-scrollbar-thumb,.lm-chips::-webkit-scrollbar-thumb{background:#d0d5dd;border-radius:999px}
  .lm-main-tabs{padding-bottom:8px!important}
  .lm-main-tabs a{font-size:13px!important;padding:8px 13px!important}
  .lm-hero-compact{margin-bottom:6px!important}
}

@media(max-width:390px){
  .lm-filter-panel>div{flex-basis:86vw!important;width:86vw!important;max-height:88px!important;padding:9px 10px!important}
  .lm-filter-panel b{font-size:12px!important}
  .lm-chips a{font-size:11.5px!important;padding:6px 9px!important}
}


/* === 2026-06-05 Order table Excel-like UIUX: zebra rows / selectable frozen columns / export === */
.lm-order-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.lm-order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lm-export-btn,.lm-freeze-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:#fff;color:#344054;border-radius:999px;padding:9px 13px;text-decoration:none;font-weight:950;font-size:13px;box-shadow:0 8px 20px rgba(16,24,40,.05);cursor:pointer}
.lm-export-btn.primary{background:#147a45;color:#fff;border-color:#147a45}
.lm-freeze-panel{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;margin:0 0 12px;border:1px solid var(--line);background:#f8fafc;border-radius:18px}
.lm-freeze-panel span{font-weight:950;color:#344054;font-size:13px}.lm-freeze-panel label{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;color:#475467;white-space:nowrap;cursor:pointer}.lm-freeze-panel input{accent-color:#147a45}
.lm-table-scroll{overflow:auto;max-width:100%;border-radius:18px;border:1px solid var(--line);background:#fff}
.lm-table-scroll table{border-collapse:separate!important;border-spacing:0!important;min-width:980px}
.lm-freeze-table tbody tr:nth-child(odd) td{background:#fff}.lm-freeze-table tbody tr:nth-child(even) td{background:#f7f8fa}.lm-freeze-table tbody tr:hover td{background:#eef6f1!important}
.lm-freeze-table th{position:sticky;top:0;z-index:4;background:#f2f4f7!important;box-shadow:0 1px 0 var(--line);font-weight:950;color:#344054}.lm-freeze-table td{background-clip:padding-box}.lm-freeze-table .is-frozen{position:sticky!important;z-index:3;box-shadow:2px 0 0 rgba(16,24,40,.06),8px 0 18px rgba(16,24,40,.05)}.lm-freeze-table th.is-frozen{z-index:6!important;background:#edf7f1!important}.lm-freeze-table tbody tr:nth-child(odd) td.is-frozen{background:#fff!important}.lm-freeze-table tbody tr:nth-child(even) td.is-frozen{background:#f7f8fa!important}
.lm-mobile-order-card{display:none}
@media(max-width:640px){.lm-order-tools{align-items:flex-start}.lm-order-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.lm-export-btn,.lm-freeze-toggle{width:100%;padding:10px 8px}.lm-freeze-panel{overflow-x:auto;flex-wrap:nowrap;margin-left:-2px;margin-right:-2px}.lm-freeze-panel label{flex:0 0 auto}.lm-table-scroll{border-radius:16px;max-height:70vh}.lm-table-scroll table{min-width:860px;font-size:13px}.lm-freeze-table th,.lm-freeze-table td{padding:10px 9px!important}.lm-freeze-table .mobile-soft-hide{display:none}.lm-details summary{padding:7px 10px}.lm-mini-form{min-width:190px}}

/* === 2026-06-06 商品單頁 / URL 圖片管理 / 三則一頁廣告輪播 === */
.lm-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:14px 16px;border-radius:24px;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.9);box-shadow:0 14px 38px rgba(16,24,40,.07);backdrop-filter:blur(16px)}
.lm-topline nav{display:flex;gap:8px;overflow:auto}.lm-topline nav a{white-space:nowrap;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 12px;font-weight:900;color:#344054}
.lm-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:22px;align-items:start}.lm-gallery,.lm-detail-info,.lm-detail-copy,.lm-ad-slider{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.92);box-shadow:0 18px 48px rgba(16,24,40,.08);border-radius:30px;padding:20px}.lm-gallery-main{aspect-ratio:4/3;border-radius:24px;background:linear-gradient(135deg,#f8fafc,#f3ead5);display:flex;align-items:center;justify-content:center;overflow:hidden}.lm-gallery-main img{width:100%;height:100%;object-fit:cover}.lm-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}.lm-thumbs button{border:2px solid transparent;border-radius:16px;background:#fff;padding:0;aspect-ratio:1/1;overflow:hidden;cursor:pointer;box-shadow:0 8px 18px rgba(16,24,40,.08)}.lm-thumbs button.on{border-color:#171717}.lm-thumbs img{width:100%;height:100%;object-fit:cover}.lm-detail-info{position:sticky;top:18px}.lm-detail-info h1{font-size:clamp(30px,4vw,54px);line-height:1.05;letter-spacing:-.045em;margin:14px 0 10px}.lm-detail-subtitle{color:#667085;font-size:17px;line-height:1.75}.lm-price.big{justify-content:flex-start;gap:18px;margin:20px 0}.lm-price.big strong{font-size:34px}.lm-detail-facts{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 18px}.lm-detail-facts span{border:1px solid var(--line);background:#fafafa;border-radius:999px;padding:8px 11px;font-weight:900;color:#475467}.lm-add-wide{width:100%;font-size:16px;padding:16px 18px}.lm-secondary-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:16px;padding:12px 14px;font-weight:900;color:#344054;margin-top:10px}.lm-detail-copy{margin-top:20px;line-height:1.9;color:#475467}.lm-detail-copy h2,.lm-ad-head h2{margin:0;color:#101828;letter-spacing:-.03em}.lm-ad-slider{margin-top:20px;overflow:hidden}.lm-ad-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.lm-ad-head p{color:#667085;margin:6px 0 0}.lm-ad-controls{display:flex;gap:8px}.lm-ad-controls button{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:26px;font-weight:900;cursor:pointer}.lm-ad-viewport{overflow:hidden;border-radius:24px}.lm-ad-track{display:flex;transition:transform .32s ease;will-change:transform}.lm-ad-page{min-width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.lm-ad-card{display:flex;flex-direction:column;gap:7px;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:22px;padding:13px;box-shadow:0 10px 28px rgba(16,24,40,.06)}.lm-ad-card img{height:110px;width:100%;object-fit:cover;border-radius:16px;background:#f8fafc}.lm-ad-card span{font-size:12px;color:#667085;font-weight:850}.lm-ad-card b{line-height:1.35}.lm-ad-card em{font-style:normal;color:#147a45;font-weight:950}.lm-ad-dots{display:flex;justify-content:center;gap:8px;margin-top:13px}.lm-ad-dots button{width:9px;height:9px;border-radius:999px;border:0;background:#d0d5dd;padding:0;cursor:pointer}.lm-ad-dots button.on{background:#171717;width:24px}.lm-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.lm-view{display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--line);background:#fff;color:#344054;border-radius:18px;padding:13px 12px;font-weight:950}.lm-wide-panel{grid-column:span 2}.lm-help{color:#667085;line-height:1.65;margin:0}.lm-image-url-row{display:grid;grid-template-columns:74px 1fr auto;gap:9px;align-items:center}.lm-image-url-row span{font-weight:950;color:#344054}.lm-preview-btn{background:#fff!important;color:#344054!important;border:1px solid var(--line)!important;box-shadow:none!important}.lm-image-preview-panel{min-height:220px}.lm-admin-previews{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.lm-admin-previews img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:#f8fafc}
@media(max-width:900px){.lm-detail{grid-template-columns:1fr}.lm-detail-info{position:relative;top:auto}.lm-ad-page{grid-template-columns:repeat(3,82%);overflow:visible}.lm-ad-card img{height:96px}.lm-wide-panel{grid-column:auto}.lm-image-url-row{grid-template-columns:1fr}.lm-topline{align-items:flex-start;flex-direction:column}.lm-topline nav{width:100%}}
@media(max-width:640px){.lm-detail,.lm-ad-page{gap:12px}.lm-gallery,.lm-detail-info,.lm-detail-copy,.lm-ad-slider{border-radius:24px;padding:15px}.lm-thumbs{gap:7px}.lm-detail-info h1{font-size:31px}.lm-price.big strong{font-size:29px}.lm-ad-head{align-items:flex-start;flex-direction:column}.lm-ad-page{grid-template-columns:1fr;min-width:100%}.lm-ad-card{display:grid;grid-template-columns:92px 1fr;align-items:center}.lm-ad-card img{height:82px;grid-row:span 3}.lm-product-actions{grid-template-columns:1fr}.lm-admin-previews{grid-template-columns:repeat(2,1fr)}}

/* === 2026-06-06 商品管理中心 === */
.lm-manager-shell{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}.lm-product-sidebar{position:sticky;top:14px;display:flex;flex-direction:column;gap:14px}.lm-product-picker,.lm-product-live-card,.lm-prestashop-editor,.lm-editor-card{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.95);box-shadow:0 20px 60px rgba(16,24,40,.08);border-radius:30px;padding:20px;backdrop-filter:blur(18px)}.lm-product-picker h2,.lm-editor-hero h2{font-size:28px;letter-spacing:-.04em;margin:0 0 8px}.lm-product-picker p,.lm-editor-hero p{color:#667085;line-height:1.65;margin:0 0 16px}.lm-product-picker select,.lm-prestashop-editor input,.lm-prestashop-editor select,.lm-prestashop-editor textarea{width:100%;border:1px solid #e6eaf0;background:#fff;border-radius:17px;padding:13px 14px;font:inherit;outline:none;transition:.18s ease}.lm-product-picker select:focus,.lm-prestashop-editor input:focus,.lm-prestashop-editor select:focus,.lm-prestashop-editor textarea:focus{border-color:#111;box-shadow:0 0 0 4px rgba(0,0,0,.06)}.lm-picker-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.lm-product-live-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:24px;background:#f6f7f9}.lm-product-live-card b{display:block;font-size:20px;line-height:1.35;margin:12px 0 4px}.lm-product-live-card span{color:#667085;font-weight:850}.lm-editor-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;background:linear-gradient(135deg,#fff,#f7f8fb);border:1px solid rgba(255,255,255,.95);box-shadow:0 20px 60px rgba(16,24,40,.08);border-radius:32px;padding:22px}.lm-editor-actions{display:flex;gap:10px;align-items:center}.lm-editor-actions a,.lm-editor-actions button,.lm-sticky-save button{border:0;border-radius:999px;background:#111;color:#fff;text-decoration:none;font-weight:950;padding:13px 17px;box-shadow:0 16px 34px rgba(0,0,0,.16);cursor:pointer}.lm-editor-actions a{background:#fff;color:#111;border:1px solid #e6eaf0;box-shadow:0 10px 24px rgba(16,24,40,.06)}.lm-editor-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:16px;margin-bottom:16px}.lm-editor-card{margin-bottom:16px}.lm-editor-card h3{font-size:21px;letter-spacing:-.03em;margin:0 0 14px}.lm-prestashop-editor label{display:flex;flex-direction:column;gap:7px;color:#344054;font-size:13px;font-weight:950;margin-bottom:12px}.lm-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lm-editor-row.compact{gap:8px}.lm-switches{display:grid;gap:8px;margin-top:8px}.lm-switches label{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;border:1px solid #e6eaf0;border-radius:16px;padding:11px 12px;margin:0;background:#fafafa}.lm-switches input{width:auto!important;accent-color:#111}.lm-image-card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.lm-image-card{border:1px solid #e6eaf0;border-radius:22px;background:#fbfcfd;padding:10px;min-width:0}.lm-image-frame{border-radius:17px;overflow:hidden;background:#f3f4f6;margin-bottom:9px}.lm-image-frame img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.lm-image-card b{display:block;font-size:13px;color:#344054;margin-bottom:8px}.lm-image-card input{font-size:12px;padding:10px 11px;border-radius:13px}.lm-editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 10px}.lm-editor-toolbar button{border:1px solid #e6eaf0;background:#fff;color:#344054;border-radius:999px;padding:9px 12px;font-weight:950;cursor:pointer}.lm-html-editor{min-height:260px;border:1px solid #e6eaf0;border-radius:22px;background:#fff;padding:18px;line-height:1.9;outline:none;box-shadow:inset 0 1px 0 rgba(16,24,40,.03)}.lm-html-editor:focus{border-color:#111;box-shadow:0 0 0 4px rgba(0,0,0,.06)}.lm-html-editor h2{font-size:25px;letter-spacing:-.03em;margin:12px 0}.lm-html-editor ul{padding-left:22px}.lm-plain-desc{margin-top:12px}.lm-sticky-save{position:sticky;bottom:14px;z-index:9;display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(18,18,18,.86);color:#fff;border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 44px rgba(0,0,0,.22);border-radius:24px;padding:12px 14px;backdrop-filter:blur(18px)}.lm-sticky-save span{font-weight:950;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lm-sticky-save button{background:#fff;color:#111;box-shadow:none}.lm-html-content{font-size:16px}.lm-html-content h1,.lm-html-content h2,.lm-html-content h3{color:#101828;letter-spacing:-.03em;line-height:1.25}.lm-html-content img{max-width:100%;height:auto;border-radius:22px;box-shadow:0 14px 38px rgba(16,24,40,.08)}.lm-html-content a{color:#0b65c2;font-weight:900}.lm-html-content ul{padding-left:24px}.lm-html-content table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}.lm-html-content td,.lm-html-content th{border:1px solid #e6eaf0;padding:10px;text-align:left}.lm-admin .lm-panel,.lm-admin .lm-table{border-radius:28px}.lm-admin table a{font-weight:950;color:#0b65c2;text-decoration:none}
@media(max-width:1100px){.lm-manager-shell{grid-template-columns:1fr}.lm-product-sidebar{position:relative;top:auto;display:grid;grid-template-columns:1fr 1fr}.lm-image-card-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.lm-product-sidebar{display:flex}.lm-editor-hero{align-items:flex-start;flex-direction:column}.lm-editor-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.lm-editor-layout,.lm-editor-row{grid-template-columns:1fr}.lm-image-card-grid{grid-template-columns:1fr}.lm-sticky-save{left:10px;right:10px}.lm-sticky-save span{display:none}.lm-picker-actions{grid-template-columns:1fr}.lm-product-picker h2,.lm-editor-hero h2{font-size:24px}}

/* === 2026-06-06 v8 後台上方導覽完整化：Admin Header === */
.lm-admin .lm-admin-hero{
  display:flex!important;
  flex-direction:column!important;
  gap:22px!important;
  align-items:stretch!important;
  padding:28px 30px 30px!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(247,248,251,.92))!important;
  position:relative;
  overflow:hidden;
}
.lm-admin .lm-admin-hero:before{
  content:"";
  position:absolute;
  right:-110px;
  top:-140px;
  width:390px;
  height:390px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(201,164,77,.22),rgba(59,130,246,.13));
  filter:blur(18px);
  pointer-events:none;
}
.lm-admin-hero-top{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:22px;
  align-items:end;
}
.lm-admin-title-block p{max-width:880px;margin:0;color:#344054;font-size:17px;line-height:1.8}.lm-admin-status-card{border:1px solid rgba(230,234,240,.9);background:rgba(255,255,255,.72);box-shadow:0 18px 48px rgba(16,24,40,.08);border-radius:28px;padding:20px;backdrop-filter:blur(18px)}.lm-admin-status-card span{display:block;color:#98722c;font-size:12px;letter-spacing:.13em;font-weight:950}.lm-admin-status-card b{display:block;font-size:22px;margin-top:6px;letter-spacing:-.03em}.lm-admin-status-card small{display:block;color:#667085;margin-top:8px;font-weight:850;line-height:1.45}.lm-admin .lm-admin-nav{position:relative;z-index:1;width:100%;display:grid!important;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;overflow:visible!important}.lm-admin .lm-admin-nav a{min-height:82px;padding:14px 15px!important;border-radius:22px!important;background:rgba(255,255,255,.82)!important;border:1px solid rgba(230,234,240,.95)!important;box-shadow:0 12px 30px rgba(16,24,40,.06)!important;color:#101828!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;white-space:normal!important;transition:.18s ease}.lm-admin .lm-admin-nav a:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(16,24,40,.12)!important}.lm-admin .lm-admin-nav a.on{background:#111!important;color:#fff!important;border-color:#111!important}.lm-admin .lm-admin-nav a span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:22px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:950;margin-bottom:8px}.lm-admin .lm-admin-nav a.on span{background:rgba(255,255,255,.18);color:#fff}.lm-admin .lm-admin-nav a b{font-size:16px;line-height:1.25;letter-spacing:-.02em}.lm-admin .lm-admin-nav a small{display:block;color:#667085;font-size:12px;line-height:1.35;margin-top:4px;font-weight:850}.lm-admin .lm-admin-nav a.on small{color:rgba(255,255,255,.72)}
@media(max-width:1180px){.lm-admin .lm-admin-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.lm-admin-hero-top{grid-template-columns:1fr}.lm-admin-status-card{max-width:420px}}
@media(max-width:720px){.lm-admin{padding:14px 10px 80px}.lm-admin .lm-admin-hero{padding:20px 16px!important;border-radius:26px!important}.lm-admin .lm-admin-nav{display:flex!important;overflow-x:auto!important;gap:10px;padding-bottom:4px;scroll-snap-type:x mandatory}.lm-admin .lm-admin-nav a{min-width:168px;scroll-snap-align:start}.lm-admin h1{font-size:36px!important}.lm-admin-title-block p{font-size:15px}.lm-admin-status-card{display:none}}

/* v9: product list workflow */
.lm-products-grid{grid-template-columns:minmax(340px,.52fr) minmax(0,1.48fr);align-items:start}.lm-product-create-panel{position:sticky;top:14px}.lm-section-head,.lm-product-list-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.lm-section-head h2,.lm-product-list-head h2{margin:0;font-size:30px;letter-spacing:-.045em}.lm-section-head p,.lm-product-list-head p{margin:6px 0 0;color:#667085;line-height:1.65}.lm-product-list-panel{overflow:hidden}.lm-partner-filter{display:flex;gap:10px;overflow:auto;padding:4px 2px 16px;margin-bottom:6px;scrollbar-width:thin}.lm-partner-filter a{flex:0 0 auto;display:flex;align-items:center;gap:10px;text-decoration:none;border:1px solid #e6eaf0;background:rgba(255,255,255,.86);color:#344054;border-radius:999px;padding:10px 14px;box-shadow:0 10px 24px rgba(16,24,40,.05);transition:.18s ease}.lm-partner-filter a:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(16,24,40,.09)}.lm-partner-filter a.on{background:#111;color:#fff;border-color:#111}.lm-partner-filter b{font-size:14px;white-space:nowrap}.lm-partner-filter span{min-width:26px;height:26px;border-radius:999px;background:rgba(16,24,40,.08);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:950}.lm-partner-filter a.on span{background:rgba(255,255,255,.2)}.lm-click-table tbody tr{cursor:pointer;transition:.16s ease}.lm-click-table tbody tr:hover{background:#f7f8fb;transform:translateX(2px)}.lm-click-table td small{display:block;color:#8a93a3;margin-top:5px;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-product-title-link{color:#101828!important;font-weight:950;text-decoration:none!important}.lm-source-pill,.lm-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:950;background:#f2f4f7;color:#344054}.lm-status-pill.ok{background:#eafaf1;color:#087443}.lm-status-pill.off{background:#fff1f3;color:#b42318}.lm-row-actions{white-space:nowrap}.lm-row-actions a{display:inline-flex;align-items:center;justify-content:center;margin:2px 3px;padding:8px 10px;border-radius:999px;background:#fff;border:1px solid #e6eaf0;color:#111!important;text-decoration:none!important}.lm-admin-edit-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.lm-admin-edit-strip a,.lm-floating-edit{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:950;border-radius:999px}.lm-admin-edit-strip a{padding:13px 14px;background:#111;color:#fff;box-shadow:0 16px 34px rgba(0,0,0,.15)}.lm-admin-edit-strip a:nth-child(2){background:#fff;color:#111;border:1px solid #e6eaf0;box-shadow:0 10px 24px rgba(16,24,40,.06)}.lm-floating-edit{position:fixed;right:18px;bottom:92px;z-index:88;background:#111;color:#fff;padding:14px 18px;box-shadow:0 20px 48px rgba(0,0,0,.22)}
@media(max-width:1100px){.lm-products-grid{grid-template-columns:1fr}.lm-product-create-panel{position:relative;top:auto}.lm-product-list-head{flex-direction:column}.lm-product-list-head .lm-secondary-link{margin-top:0}}
@media(max-width:760px){.lm-section-head h2,.lm-product-list-head h2{font-size:25px}.lm-partner-filter{margin-left:-2px;margin-right:-2px}.lm-click-table{min-width:840px}.lm-admin-edit-strip{grid-template-columns:1fr}.lm-floating-edit{right:12px;bottom:86px;padding:12px 15px}}

/* v10 商品清單縮圖：商品清單縮圖 */
.lm-product-admin-table th:first-child,
.lm-product-admin-table td.lm-thumb-cell{width:70px;min-width:70px;text-align:center}
.lm-admin-thumb-link{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(180deg,#fff,#f6f7f9);border:1px solid #e6eaf0;box-shadow:0 8px 20px rgba(16,24,40,.08);overflow:visible;text-decoration:none;position:relative;z-index:1}
.lm-admin-product-thumb{width:50px;height:50px;object-fit:cover;border-radius:14px;display:block;background:#f2f4f7;transition:transform .18s ease, box-shadow .18s ease, border-radius .18s ease;transform-origin:left center}
.lm-admin-thumb-link:hover{z-index:50}
.lm-admin-thumb-link:hover .lm-admin-product-thumb{transform:scale(2.35);box-shadow:0 18px 48px rgba(16,24,40,.24);border-radius:18px;background:#fff}
.lm-product-admin-table tbody tr:hover .lm-admin-thumb-link{box-shadow:0 14px 30px rgba(16,24,40,.12)}
@media(max-width:760px){.lm-click-table.lm-product-admin-table{min-width:930px}.lm-admin-thumb-link:hover .lm-admin-product-thumb{transform:scale(1.8)}}

/* V11：商品圖片拖曳排序與長網址友善 UI */
.lm-drag-help{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 14px;padding:12px 14px;border:1px solid #e6eaf0;border-radius:18px;background:linear-gradient(135deg,#fff,#f7f8fb);color:#344054;font-weight:900}
.lm-drag-help b{font-size:12px;color:#667085;font-weight:850;text-align:right}.lm-sortable-images .lm-image-card{position:relative;cursor:grab;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.lm-sortable-images .lm-image-card:active{cursor:grabbing}.lm-sortable-images .lm-image-card.is-dragging{opacity:.62;transform:scale(.97);border-color:#111;box-shadow:0 20px 45px rgba(16,24,40,.18)}.lm-drag-handle{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;border:1px solid rgba(255,255,255,.82);border-radius:999px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);box-shadow:0 10px 24px rgba(16,24,40,.12);font-weight:950;color:#111;cursor:grab}.lm-drag-handle:active{cursor:grabbing}.lm-image-card input{word-break:break-all}.lm-image-card-grid .lm-image-card:first-child{border-color:#111;box-shadow:0 16px 36px rgba(16,24,40,.12)}.lm-image-card-grid .lm-image-card:first-child:after{content:'主圖';position:absolute;left:12px;top:12px;background:#111;color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950;box-shadow:0 10px 22px rgba(0,0,0,.16)}
@media(max-width:760px){.lm-drag-help{align-items:flex-start;flex-direction:column}.lm-drag-help b{text-align:left}.lm-drag-handle{width:40px;height:40px}}


/* v12：商品頁改成蝦皮式產品主體 + 下方小圖 Banner，不讓其他商品大圖混入主視覺 */
.lm-shopee-detail{
  grid-template-columns:minmax(430px,.92fr) minmax(360px,1.08fr);
  gap:18px;
  align-items:start;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.9);
  border-radius:30px;
  box-shadow:0 18px 54px rgba(16,24,40,.08);
  padding:18px;
}
.lm-shopee-detail .lm-gallery,
.lm-shopee-detail .lm-detail-info{
  box-shadow:none;
  border:0;
  background:transparent;
  border-radius:22px;
  padding:0;
}
.lm-shopee-detail .lm-gallery-main{
  aspect-ratio:1/1;
  border-radius:22px;
  border:1px solid #eef1f5;
  background:#f7f8fb;
}
.lm-shopee-detail .lm-gallery-main img{
  object-fit:contain;
  background:#fff;
}
.lm-shopee-detail .lm-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:10px 2px 2px;
  margin-top:10px;
}
.lm-shopee-detail .lm-thumbs button{
  flex:0 0 72px;
  width:72px;
  height:72px;
  aspect-ratio:auto;
  border-radius:14px;
  box-shadow:none;
  border:1px solid #e6eaf0;
}
.lm-shopee-detail .lm-thumbs button.on{
  border:2px solid #111;
}
.lm-shopee-detail .lm-detail-info{
  position:relative;
  top:auto;
  padding:8px 4px 4px 14px;
}
.lm-shopee-detail .lm-detail-info h1{
  font-size:clamp(28px,3.3vw,42px);
  line-height:1.18;
  margin:12px 0 12px;
}
.lm-shopee-detail .lm-price.big{
  background:linear-gradient(135deg,#fff7ed,#fff);
  border:1px solid #f0e4d2;
  border-radius:20px;
  padding:16px;
}
.lm-shopee-detail .lm-add-wide{
  border-radius:16px;
  min-height:52px;
}
.lm-detail-copy{
  margin-top:18px;
}
.lm-ad-slider{
  margin-top:18px;
  padding:16px;
  border-radius:24px;
}
.lm-ad-slider .lm-ad-head{
  margin-bottom:10px;
}
.lm-ad-slider .lm-ad-head h2{
  font-size:22px;
}
.lm-ad-slider .lm-ad-head p{
  font-size:13px;
  margin-top:3px;
}
.lm-ad-slider .lm-ad-viewport{
  border-radius:18px;
}
.lm-ad-slider .lm-ad-page{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.lm-ad-slider .lm-ad-card,
.lm-ad-slider .lm-mini-banner-card{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  gap:2px 10px;
  align-items:center;
  min-height:86px;
  padding:10px;
  border-radius:18px;
  box-shadow:0 8px 20px rgba(16,24,40,.05);
}
.lm-ad-slider .lm-ad-card img,
.lm-ad-slider .lm-mini-banner-card img{
  grid-row:1 / span 3;
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
}
.lm-ad-slider .lm-ad-card span,
.lm-ad-slider .lm-mini-banner-card span{
  font-size:11px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lm-ad-slider .lm-ad-card b,
.lm-ad-slider .lm-mini-banner-card b{
  font-size:14px;
  line-height:1.28;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.lm-ad-slider .lm-ad-card em,
.lm-ad-slider .lm-mini-banner-card em{
  font-size:13px;
}
@media(max-width:900px){
  .lm-shopee-detail{grid-template-columns:1fr;padding:14px;border-radius:24px}
  .lm-shopee-detail .lm-detail-info{padding:6px 2px 2px}
  .lm-shopee-detail .lm-thumbs button{flex-basis:64px;width:64px;height:64px}
  .lm-ad-slider .lm-ad-page{grid-template-columns:repeat(3,85%)}
}
@media(max-width:640px){
  .lm-shopee-detail .lm-gallery-main{border-radius:18px}
  .lm-shopee-detail .lm-detail-info h1{font-size:26px}
  .lm-ad-slider .lm-ad-page{grid-template-columns:1fr;min-width:100%}
  .lm-ad-slider .lm-ad-card,.lm-ad-slider .lm-mini-banner-card{grid-template-columns:58px minmax(0,1fr);min-height:78px}
  .lm-ad-slider .lm-ad-card img,.lm-ad-slider .lm-mini-banner-card img{width:58px;height:58px}
}


/* === 2026-06-06 v13 Product page cart collapsible panel === */
.lm-cart>b{display:flex!important;align-items:center;justify-content:space-between;gap:10px}
.lm-cart-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:#147a45;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:950;box-shadow:0 6px 16px rgba(16,24,40,.08);cursor:pointer;white-space:nowrap}
body.lm-product-page .lm-cart{right:18px;width:300px;transition:max-height .24s ease,width .24s ease,padding .24s ease,box-shadow .24s ease,opacity .24s ease}
body.lm-cart-collapsed .lm-cart{width:260px!important;max-height:74px!important;overflow:hidden!important;padding:14px 16px!important;border-radius:24px!important}
body.lm-cart-collapsed .lm-cart #lm-cart-items,
body.lm-cart-collapsed .lm-cart .lm-payment-box,
body.lm-cart-collapsed .lm-cart #lm-checkout,
body.lm-cart-collapsed .lm-cart .lm-mobile-cart-summary{display:none!important}
body.lm-cart-collapsed .lm-cart>b{margin:0!important}
body.lm-cart-collapsed .lm-cart-toggle{background:#147a45;color:#fff;border-color:#147a45}
.lm-product-page .lm-shopee-detail{padding-right:300px}
@media(max-width:1180px){.lm-product-page .lm-shopee-detail{padding-right:0}body.lm-product-page .lm-cart{width:300px}}
@media(max-width:980px){body.lm-product-page .lm-cart{position:sticky!important;width:100%!important;right:auto!important;top:auto!important;transform:none!important}}
@media(max-width:640px){
  .lm-cart-toggle{display:inline-flex!important}
  body.lm-cart-collapsed .lm-cart{width:auto!important;max-height:118px!important;padding:10px 12px 12px!important}
  .lm-product-page .lm-shopee-detail{padding-right:0}
}

/* === 2026-06-06 v14 Product page brand-color buttons ===
   將商品頁原本偏黑的操作按鈕改為宅即辦 LOGO 綠＋橘金色系，並帶一點商品圖片暖色質感。 */
:root{
  --zjb-green:#168a4a;
  --zjb-green-dark:#0f6f3b;
  --zjb-orange:#f5a623;
  --zjb-gold:#d9b46b;
  --zjb-soft:#fff8ec;
}
body.lm-product-page .lm-shopee-detail .lm-add-wide,
body.lm-product-page .lm-admin-edit-strip a:first-child,
body.lm-product-page .lm-floating-edit,
body.lm-product-page #lm-checkout{
  background:linear-gradient(135deg,var(--zjb-green) 0%,var(--zjb-green-dark) 46%,var(--zjb-orange) 100%)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 18px 38px rgba(22,138,74,.24),0 6px 16px rgba(245,166,35,.14)!important;
}
body.lm-product-page .lm-shopee-detail .lm-add-wide:hover,
body.lm-product-page .lm-admin-edit-strip a:first-child:hover,
body.lm-product-page .lm-floating-edit:hover,
body.lm-product-page #lm-checkout:hover{
  transform:translateY(-1px);
  filter:saturate(1.06) brightness(1.02);
  box-shadow:0 22px 48px rgba(22,138,74,.30),0 8px 20px rgba(245,166,35,.18)!important;
}
body.lm-product-page .lm-admin-edit-strip a:nth-child(2),
body.lm-product-page .lm-secondary-link{
  background:linear-gradient(135deg,#ffffff,var(--zjb-soft))!important;
  color:#274236!important;
  border:1px solid rgba(216,180,107,.55)!important;
  box-shadow:0 12px 28px rgba(216,180,107,.14)!important;
}
body.lm-product-page .lm-shopee-detail .lm-thumbs button.on{
  border-color:var(--zjb-green)!important;
  box-shadow:0 0 0 4px rgba(22,138,74,.12)!important;
}
body.lm-product-page .lm-price.big{
  background:linear-gradient(135deg,#fff7ea 0%,#ffffff 62%,rgba(22,138,74,.045) 100%)!important;
  border-color:rgba(216,180,107,.5)!important;
}
body.lm-product-page .lm-cart-toggle,
body.lm-cart-collapsed .lm-cart-toggle{
  color:#fff!important;
  border-color:transparent!important;
  background:linear-gradient(135deg,var(--zjb-green),var(--zjb-orange))!important;
}
body.lm-product-page .lm-cart-count{
  background:var(--zjb-green)!important;
  color:#fff!important;
}
@media(max-width:640px){
  body.lm-product-page .lm-shopee-detail .lm-add-wide{
    background:linear-gradient(135deg,var(--zjb-green),var(--zjb-orange))!important;
  }
}

/* === 2026-06-06 v15 全商城品牌按鈕一致化 ===
   Albert 指示：整個 MALL 不要再有黑色主按鈕，全部改為宅即辦 LOGO 綠＋橘金色系。 */
:root{
  --zjb-green:#168a4a;
  --zjb-green-dark:#0f6f3b;
  --zjb-orange:#f5a623;
  --zjb-gold:#d9b46b;
  --zjb-soft:#fff8ec;
  --zjb-brand-gradient:linear-gradient(135deg,var(--zjb-green) 0%,var(--zjb-green-dark) 48%,var(--zjb-orange) 100%);
  --zjb-brand-shadow:0 18px 38px rgba(22,138,74,.24),0 6px 16px rgba(245,166,35,.14);
}
.lm-search button,
.lm-panel button,
.lm-primary:not(.ghost),
#lm-checkout,
.lm-add,
.lm-add-wide,
.lm-editor-actions button,
.lm-sticky-save,
.lm-admin-edit-strip a:first-child,
.lm-floating-edit,
.lm-tabs a.on,
.lm-admin .lm-admin-nav a.on,
.lm-partner-filter a.on,
.lm-image-card-grid .lm-image-card:first-child:after,
button[type="submit"],
input[type="submit"]{
  background:var(--zjb-brand-gradient)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:var(--zjb-brand-shadow)!important;
}
.lm-search button:hover,
.lm-panel button:hover,
.lm-primary:not(.ghost):hover,
#lm-checkout:hover,
.lm-add:hover,
.lm-add-wide:hover,
.lm-editor-actions button:hover,
.lm-admin-edit-strip a:first-child:hover,
.lm-floating-edit:hover,
.lm-tabs a.on:hover,
.lm-admin .lm-admin-nav a.on:hover,
.lm-partner-filter a.on:hover,
button[type="submit"]:hover,
input[type="submit"]:hover{
  filter:saturate(1.06) brightness(1.02);
  transform:translateY(-1px);
}
.lm-primary.ghost,
.lm-editor-actions a,
.lm-admin-edit-strip a:nth-child(2),
.lm-secondary-link,
.lm-row-actions a{
  background:linear-gradient(135deg,#ffffff,var(--zjb-soft))!important;
  color:#274236!important;
  border:1px solid rgba(216,180,107,.55)!important;
  box-shadow:0 12px 28px rgba(216,180,107,.14)!important;
}
.lm-points{
  background:linear-gradient(135deg,var(--zjb-green-dark),var(--zjb-green) 52%,var(--zjb-orange))!important;
  box-shadow:0 18px 44px rgba(22,138,74,.18)!important;
}
.lm-switches input,
.lm-payment-box input,
input[type="radio"],
input[type="checkbox"]{
  accent-color:var(--zjb-green)!important;
}
.lm-html-editor:focus,
.lm-sortable-images .lm-image-card.is-dragging,
.lm-image-card-grid .lm-image-card:first-child{
  border-color:var(--zjb-green)!important;
  box-shadow:0 0 0 4px rgba(22,138,74,.11),0 16px 36px rgba(16,24,40,.08)!important;
}
.lm-drag-handle{
  color:var(--zjb-green)!important;
}
.lm-cart-toggle,
body.lm-cart-collapsed .lm-cart-toggle,
.lm-cart-count{
  background:linear-gradient(135deg,var(--zjb-green),var(--zjb-orange))!important;
  color:#fff!important;
  border-color:transparent!important;
}
.lm-admin .lm-admin-nav a.on span,
.lm-partner-filter a.on span{
  background:rgba(255,255,255,.22)!important;
  color:#fff!important;
}

/* === 2026-06-06 v16 商品展示頁：圖片輪播、放大、圖片色系霧化背景 === */
body.lm-product-page{
  position:relative;
  overflow-x:hidden;
  background:linear-gradient(135deg,#fffaf2,#f5f7f8 42%,#eef5f0)!important;
}
body.lm-product-page:before{
  content:"";
  position:fixed;
  inset:-44px;
  z-index:-2;
  background-image:var(--lm-product-bg);
  background-size:cover;
  background-position:center;
  filter:blur(56px) saturate(1.25) brightness(1.08);
  opacity:.32;
  transform:scale(1.06);
  transition:background-image .35s ease,opacity .35s ease;
}
body.lm-product-page:after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,250,238,.72) 40%,rgba(236,248,240,.74));
  pointer-events:none;
}
.lm-product-carousel .lm-gallery-main{
  position:relative;
  overflow:hidden;
  cursor:zoom-in;
  background:rgba(255,255,255,.70)!important;
  backdrop-filter:blur(20px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 18px 48px rgba(16,24,40,.08);
}
.lm-product-carousel .lm-gallery-main:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--lm-product-bg);
  background-size:cover;
  background-position:center;
  filter:blur(36px) saturate(1.16);
  opacity:.18;
  transform:scale(1.12);
}
.lm-product-carousel .lm-gallery-main img{
  position:relative;
  z-index:1;
  transition:opacity .18s ease,transform .22s ease;
}
.lm-product-carousel .lm-gallery-main:hover img{transform:scale(1.015)}
.lm-gallery-arrow,.lm-gallery-zoom{
  position:absolute;
  z-index:3;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.82);
  color:#274236;
  backdrop-filter:blur(16px);
  box-shadow:0 12px 28px rgba(16,24,40,.12);
  cursor:pointer;
  transition:.18s ease;
}
.lm-gallery-arrow:hover,.lm-gallery-zoom:hover{transform:translateY(-1px);background:linear-gradient(135deg,#fff,var(--zjb-soft));}
.lm-gallery-arrow{
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  font-size:34px;
  line-height:1;
  font-weight:500;
}
.lm-gallery-arrow:hover{transform:translateY(-50%) scale(1.04)}
.lm-gallery-prev{left:12px}.lm-gallery-next{right:12px}
.lm-gallery-zoom{
  right:14px;
  bottom:14px;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  font-weight:950;
}
.lm-gallery-status{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:10px;
  color:#667085;
  font-size:13px;
  font-weight:850;
}
.lm-product-carousel .lm-thumbs button{
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(12px);
}
.lm-product-carousel .lm-thumbs button img{width:100%;height:100%;object-fit:cover;display:block}
.lm-image-lightbox{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(12,20,18,.74);
  backdrop-filter:blur(28px);
}
.lm-image-lightbox.on{display:flex}
.lm-image-lightbox img{
  max-width:min(96vw,1180px);
  max-height:90vh;
  object-fit:contain;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.42);
}
.lm-lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.86);
  color:#274236;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
}
@media(max-width:640px){
  body.lm-product-page:before{filter:blur(42px);opacity:.26}
  .lm-gallery-arrow{width:38px;height:38px;font-size:28px}.lm-gallery-prev{left:8px}.lm-gallery-next{right:8px}
  .lm-gallery-zoom{right:10px;bottom:10px;padding:8px 11px;font-size:12px}
  .lm-gallery-status{font-size:12px}
  .lm-image-lightbox{padding:12px}.lm-image-lightbox img{border-radius:18px}.lm-lightbox-close{top:10px;right:10px}
}

/* v17: 商城首頁商品圖可直接點擊進商品頁 */
.lm-img-link{
  text-decoration:none;
  cursor:pointer;
  position:relative;
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.lm-img-link:after{
  content:"點圖查看商品";
  position:absolute;
  left:12px;
  right:12px;
  bottom:10px;
  padding:8px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(27,148,114,.92),rgba(226,166,57,.92));
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-align:center;
  opacity:0;
  transform:translateY(8px);
  transition:.22s ease;
  box-shadow:0 12px 24px rgba(16,24,40,.18);
}
.lm-product:hover .lm-img-link{transform:translateY(-2px)}
.lm-product:hover .lm-img-link:after{opacity:1;transform:translateY(0)}
.lm-title-link{text-decoration:none;color:inherit}
.lm-title-link:hover{color:#1b9472}
@media(max-width:768px){
  .lm-img-link:after{opacity:1;transform:none;font-size:11px;padding:7px 9px;bottom:8px}
}

/* V18 商品圖片上傳 / 廠商編碼目錄 / 自動縮圖 */
.lm-upload-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(15,23,42,.08)}
.lm-upload-row small{font-size:12px;color:#6b7280;white-space:nowrap}
.lm-upload-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:9px 14px;background:linear-gradient(135deg,#0f8f61,#f1a62b);color:#fff!important;font-weight:800;font-size:13px;box-shadow:0 10px 22px rgba(15,143,97,.18);cursor:pointer;overflow:hidden;border:0!important}
.lm-upload-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,143,97,.25)}
.lm-upload-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.lm-image-card .lm-image-frame{background:linear-gradient(145deg,rgba(15,143,97,.08),rgba(241,166,43,.12));}
.lm-drag-help b{color:#0f8f61}
@media(max-width:680px){.lm-upload-row{align-items:flex-start;flex-direction:column}.lm-upload-row small{white-space:normal}.lm-upload-btn{width:100%}}

/* v19: product image upload UI polish + strict two-line helper text */
.lm-prestashop-editor .lm-upload-row{
  display:grid!important;
  grid-template-columns: minmax(92px, auto) minmax(0,1fr);
  align-items:center!important;
  gap:8px!important;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(15,23,42,.08);
}
.lm-prestashop-editor .lm-upload-btn{
  width:auto!important;
  min-width:86px;
  max-width:96px;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  margin:0!important;
  padding:9px 10px!important;
  border-radius:999px!important;
  writing-mode:horizontal-tb!important;
  white-space:nowrap!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:950!important;
  background:linear-gradient(135deg,#0f8f61,#f1a62b)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 10px 22px rgba(15,143,97,.18)!important;
  cursor:pointer;
  overflow:hidden;
}
.lm-prestashop-editor .lm-upload-row small{
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal!important;
  line-height:1.35!important;
  font-size:12px!important;
  color:#667085!important;
  word-break:keep-all;
}
.lm-prestashop-editor .lm-upload-btn input{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  cursor:pointer!important;
}
@media(max-width:680px){
  .lm-prestashop-editor .lm-upload-row{grid-template-columns:1fr!important;align-items:stretch!important}
  .lm-prestashop-editor .lm-upload-btn{max-width:none!important;width:100%!important}
}

/* === 2026-06-06 v20 商品放大燈箱：左右滑動、上一張下一張、最適欄高、手指縮放 === */
body.lm-lightbox-open{overflow:hidden!important;touch-action:none}
.lm-image-lightbox{
  touch-action:none;
  padding:clamp(12px,2vw,28px)!important;
}
.lm-lightbox-stage{
  width:100%;
  height:min(92vh,980px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:26px;
  cursor:grab;
  touch-action:none;
}
.lm-lightbox-stage:active{cursor:grabbing}
.lm-image-lightbox img,
.lm-image-lightbox [data-lightbox-img]{
  width:auto!important;
  height:auto!important;
  max-width:96vw!important;
  max-height:calc(100dvh - 86px)!important;
  object-fit:contain!important;
  border-radius:24px;
  transform-origin:center center;
  transition:transform .12s ease, opacity .18s ease;
  user-select:none;
  -webkit-user-drag:none;
}
.lm-image-lightbox img.is-zoomed,
.lm-image-lightbox [data-lightbox-img].is-zoomed{
  transition:none;
  max-width:96vw!important;
  max-height:calc(100dvh - 86px)!important;
}
.lm-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:100002;
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.88);
  color:#274236;
  font-size:42px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 18px 44px rgba(0,0,0,.24);
  backdrop-filter:blur(18px);
}
.lm-lightbox-nav:hover{background:linear-gradient(135deg,#fff,var(--zjb-soft));transform:translateY(-50%) scale(1.04)}
.lm-lightbox-prev{left:18px}.lm-lightbox-next{right:18px}
.lm-lightbox-hint{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:100002;
  color:#fff;
  background:rgba(15,23,42,.46);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:9px 14px;
  font-size:13px;
  font-weight:850;
  backdrop-filter:blur(16px);
  white-space:nowrap;
}
@media(max-width:640px){
  .lm-lightbox-stage{height:100dvh;border-radius:0}
  .lm-image-lightbox img,.lm-image-lightbox [data-lightbox-img]{max-width:100vw!important;max-height:calc(100dvh - 68px)!important;border-radius:16px}
  .lm-lightbox-nav{width:42px;height:42px;font-size:34px;background:rgba(255,255,255,.78)}
  .lm-lightbox-prev{left:10px}.lm-lightbox-next{right:10px}
  .lm-lightbox-close{width:42px;height:42px}
  .lm-lightbox-hint{bottom:12px;font-size:12px;max-width:92vw;text-align:center;white-space:normal;line-height:1.35}
}


/* === v21 商品放大圖：IG / TikTok 式滿版觀看，不顯示文字與左右箭頭 === */
.lm-image-lightbox.lm-story-viewer{
  padding:0!important;
  background:#000!important;
  backdrop-filter:none!important;
  align-items:center!important;
  justify-content:center!important;
}
.lm-story-viewer .lm-lightbox-stage{
  width:100vw!important;
  height:100dvh!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#000!important;
}
.lm-story-viewer img,
.lm-story-viewer [data-lightbox-img]{
  max-width:100vw!important;
  max-height:100dvh!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  border-radius:0!important;
  background:#000!important;
  box-shadow:none!important;
}
.lm-story-viewer .lm-lightbox-nav,
.lm-story-viewer .lm-lightbox-hint{
  display:none!important;
}
.lm-story-viewer .lm-lightbox-close{
  top:calc(env(safe-area-inset-top,0px) + 12px)!important;
  right:calc(env(safe-area-inset-right,0px) + 12px)!important;
  width:42px!important;
  height:42px!important;
  background:rgba(0,0,0,.28)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px)!important;
  font-size:30px!important;
  z-index:100003!important;
}
@media(max-width:640px){
  .lm-story-viewer .lm-lightbox-close{width:38px!important;height:38px!important;top:calc(env(safe-area-inset-top,0px) + 10px)!important;right:calc(env(safe-area-inset-right,0px) + 10px)!important}
}

/* === v22 商品放大圖背景：跟隨目前圖片色系霧化，不再純黑 === */
.lm-image-lightbox.lm-story-viewer{
  background:#111!important;
  isolation:isolate!important;
  overflow:hidden!important;
}
.lm-image-lightbox.lm-story-viewer::before{
  content:"";
  position:absolute;
  inset:-8vw;
  z-index:0;
  background-image:var(--lm-lightbox-bg, var(--lm-product-bg));
  background-size:cover;
  background-position:center;
  filter:blur(44px) saturate(1.25) brightness(.72);
  transform:scale(1.12);
  opacity:.88;
  pointer-events:none;
}
.lm-image-lightbox.lm-story-viewer::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.12), rgba(0,0,0,.26) 45%, rgba(0,0,0,.62) 100%),
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.12) 42%, rgba(0,0,0,.46));
  pointer-events:none;
}
.lm-story-viewer .lm-lightbox-stage{
  position:relative!important;
  z-index:2!important;
  background:transparent!important;
}
.lm-story-viewer img,
.lm-story-viewer [data-lightbox-img]{
  background:transparent!important;
  position:relative!important;
  z-index:3!important;
}
.lm-story-viewer .lm-lightbox-close{
  z-index:5!important;
}

/* === v23 商品型態：廣告 / 預約 / 商品 === */
.lm-kind-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid rgba(20,83,45,.12);background:rgba(255,255,255,.76);color:#28503c;white-space:nowrap}
.lm-kind-pill.kind-product{background:linear-gradient(135deg,#f0fdf4,#fff7ed);color:#0f7a43;border-color:rgba(22,163,74,.18)}
.lm-kind-pill.kind-booking{background:linear-gradient(135deg,#ecfeff,#f0fdf4);color:#047857;border-color:rgba(14,165,233,.18)}
.lm-kind-pill.kind-ad{background:linear-gradient(135deg,#fff7ed,#fffbeb);color:#a16207;border-color:rgba(245,158,11,.22)}
.lm-action-link{display:flex!important;align-items:center;justify-content:center;text-decoration:none;text-align:center}
.lm-action-link.kind-booking{background:linear-gradient(135deg,#0f8f4d,#f2aa22)!important;color:#fff!important;box-shadow:0 18px 34px rgba(15,143,77,.25)!important}
.lm-action-link.kind-ad{background:linear-gradient(135deg,#f2aa22,#0f8f4d)!important;color:#fff!important;box-shadow:0 18px 34px rgba(242,170,34,.24)!important}
.lm-service-price{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:linear-gradient(135deg,rgba(255,247,237,.92),rgba(240,253,244,.92))!important}
.lm-service-price strong{font-size:clamp(28px,4vw,48px)!important;color:#0f7a43!important}
.lm-service-price span,.lm-kind-price span{font-size:13px;font-weight:800;color:#64748b}
.lm-kind-price{min-height:54px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
.kind-card-booking{box-shadow:0 20px 50px rgba(15,143,77,.08)}
.kind-card-ad{box-shadow:0 20px 50px rgba(242,170,34,.08)}
.lm-booking-page{max-width:860px;margin:24px auto 80px;padding:0 14px}.lm-booking-card{background:rgba(255,255,255,.9);border:1px solid rgba(15,23,42,.08);border-radius:32px;padding:clamp(22px,4vw,44px);box-shadow:0 28px 80px rgba(15,23,42,.08)}.lm-booking-card h1{font-size:clamp(32px,5vw,56px);margin:8px 0}.lm-booking-card h2{font-size:22px;margin:0 0 8px}.lm-booking-form{display:grid;gap:16px;margin-top:22px}.lm-booking-form label{font-weight:900;color:#334155}.lm-booking-form input,.lm-booking-form textarea{width:100%;margin-top:8px;border:1px solid rgba(15,23,42,.12);border-radius:18px;padding:14px 16px;font:inherit;background:rgba(248,250,252,.88)}.lm-msg{padding:14px 16px;border-radius:18px;background:#fff7ed;color:#9a3412;font-weight:900;margin:18px 0}.lm-msg.ok{background:#ecfdf5;color:#047857}
@media(max-width:720px){.lm-kind-pill{font-size:11px;padding:5px 8px}.lm-products .lm-product-actions{grid-template-columns:1fr}.lm-service-price strong{font-size:30px!important}}

/* v24 booking selector UI */
.lm-booking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.lm-booking-time-panel{padding:16px;border-radius:24px;background:linear-gradient(135deg,rgba(25,135,84,.08),rgba(245,158,11,.10));border:1px solid rgba(25,135,84,.14)}
.lm-booking-time-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.lm-booking-time-head strong{font-size:18px;color:#0f172a}
.lm-booking-time-head span{font-size:13px;font-weight:800;color:#64748b;text-align:right}
.lm-booking-form select{width:100%;margin-top:8px;border:1px solid rgba(15,23,42,.12);border-radius:18px;padding:14px 16px;font:inherit;font-weight:800;color:#0f172a;background:rgba(255,255,255,.92);appearance:auto}
.lm-booking-form input[type="date"]{font-weight:900;color:#0f172a}
@media(max-width:760px){.lm-booking-grid{grid-template-columns:1fr}.lm-booking-time-head{align-items:flex-start;flex-direction:column}.lm-booking-time-head span{text-align:left}.lm-booking-card{border-radius:26px}}

/* v26: Related banner product kind label */
.lm-mini-banner-card.kind-ad em,
.lm-mini-banner-card.kind-booking em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-width:56px;
  padding:6px 12px;
  border-radius:999px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.04em;
  color:#fff;
  background:linear-gradient(135deg,var(--brand-green,#2f8f5b),var(--brand-gold,#f4a83d));
  box-shadow:0 8px 18px rgba(47,143,91,.18);
}
.lm-mini-banner-card.kind-ad em::before{content:'LINE ';font-size:11px;margin-right:4px;opacity:.9;}
.lm-mini-banner-card.kind-booking em::before{content:'BOOKING ';font-size:11px;margin-right:4px;opacity:.9;}

/* v28: Mall home product card separation / mobile 商品卡片 UI */
.lm-products{
  gap:24px!important;
  align-items:stretch!important;
}
.lm-products .lm-product{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:30px!important;
  padding:0!important;
  min-height:0!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(230,234,240,.96)!important;
  box-shadow:0 18px 46px rgba(16,24,40,.09)!important;
  display:flex!important;
  flex-direction:column!important;
}
.lm-products .lm-product:hover{
  transform:translateY(-5px)!important;
  box-shadow:0 28px 70px rgba(16,24,40,.15)!important;
}
.lm-products .lm-img{
  height:210px!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#f8fafc,#f5ead2)!important;
  position:relative;
  border-bottom:1px solid rgba(230,234,240,.9);
}
.lm-products .lm-img:before{
  content:"";
  position:absolute;inset:0;
  z-index:1;
  background:linear-gradient(to top,rgba(0,0,0,.18),rgba(0,0,0,0) 46%);
  pointer-events:none;
}
.lm-products .lm-img img{
  transition:transform .28s ease, filter .28s ease;
}
.lm-products .lm-product:hover .lm-img img{
  transform:scale(1.045);
  filter:saturate(1.04);
}
.lm-products .lm-badges{
  order:2;
  padding:14px 16px 0!important;
  margin:0!important;
  gap:7px!important;
}
.lm-products .lm-badges .lm-kind-pill{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;
  border:1px solid rgba(255,255,255,.62)!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(16,24,40,.2);
  backdrop-filter:blur(16px);
}
.lm-products .lm-badges .lm-kind-pill.kind-product{background:linear-gradient(135deg,#0f8f4d,#26bd70)!important}
.lm-products .lm-badges .lm-kind-pill.kind-booking{background:linear-gradient(135deg,#f2aa22,#ff7a1a)!important}
.lm-products .lm-badges .lm-kind-pill.kind-ad{background:linear-gradient(135deg,#2563eb,#0f8f4d)!important}
.lm-products .lm-badges span:not(.lm-kind-pill){
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  background:#f8fafc!important;
}
.lm-products .lm-product h3{
  order:3;
  padding:8px 16px 0!important;
  margin:0!important;
  font-size:20px!important;
  line-height:1.35!important;
  min-height:62px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.lm-products .lm-product h3 a{
  text-decoration:none!important;
}
.lm-products .lm-product>p{
  order:4;
  padding:6px 16px 0!important;
  margin:0!important;
  min-height:48px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:14px!important;
  color:#667085!important;
}
.lm-products .lm-meta{
  order:5;
  padding:12px 16px 0!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
}
.lm-products .lm-meta small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lm-products .lm-price{
  order:6;
  padding:12px 16px 0!important;
  margin:0!important;
  min-height:58px;
  align-items:center!important;
}
.lm-products .lm-price strong{
  color:#111827;
  font-size:24px!important;
  letter-spacing:-.03em;
}
.lm-products .lm-price del{
  font-size:13px;
}
.lm-products .lm-kind-price{
  justify-content:flex-start!important;
  gap:10px!important;
  border-radius:18px;
}
.lm-products .lm-kind-price strong{
  font-size:18px!important;
  color:#0f7a43;
}
.lm-products .lm-kind-price span{
  font-size:12px;
  color:#667085;
  font-weight:850;
}
.lm-products .lm-product-actions{
  order:7;
  padding:14px 16px 16px!important;
  margin-top:auto!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
}
.lm-products .lm-product-actions .lm-view{
  display:none!important;
}
.lm-products .lm-product-actions .lm-add,
.lm-products .lm-product-actions .lm-action-link{
  min-height:46px!important;
  border-radius:17px!important;
  width:100%!important;
  font-size:15px!important;
  letter-spacing:.02em;
}
.lm-products .lm-product-actions .lm-add:before{content:"🛒 ";}
.lm-products .lm-action-link.kind-booking:before{content:"📅 ";}
.lm-products .lm-action-link.kind-ad:before{content:"💬 ";}

@media(max-width:980px){
  .lm-products{gap:20px!important;}
  .lm-products .lm-img{height:190px!important;}
}
@media(max-width:640px){
  .lm-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
    padding:2px 0 0!important;
  }
  .lm-products .lm-product{
    border-radius:22px!important;
    box-shadow:0 12px 34px rgba(16,24,40,.10)!important;
  }
  .lm-products .lm-product:hover{transform:none!important;}
  .lm-products .lm-img{height:132px!important;}
  .lm-products .lm-badges{
    padding:10px 10px 0!important;
    gap:5px!important;
  }
  .lm-products .lm-badges .lm-kind-pill{
    top:9px;left:9px;
    font-size:10px!important;
    padding:5px 8px!important;
  }
  .lm-products .lm-badges span:not(.lm-kind-pill){
    font-size:10px!important;
    padding:4px 6px!important;
  }
  .lm-products .lm-badges span:nth-child(n+4):not(.lm-kind-pill){display:none!important;}
  .lm-products .lm-product h3{
    padding:7px 10px 0!important;
    font-size:14px!important;
    line-height:1.35!important;
    min-height:46px!important;
  }
  .lm-products .lm-product>p{
    padding:4px 10px 0!important;
    font-size:12px!important;
    line-height:1.45!important;
    min-height:38px!important;
  }
  .lm-products .lm-meta{
    display:none!important;
  }
  .lm-products .lm-price{
    padding:8px 10px 0!important;
    min-height:42px!important;
  }
  .lm-products .lm-price strong{font-size:16px!important;}
  .lm-products .lm-price del{display:none!important;}
  .lm-products .lm-kind-price{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:1px!important;
  }
  .lm-products .lm-kind-price strong{font-size:14px!important;}
  .lm-products .lm-kind-price span{font-size:10px!important;line-height:1.25;}
  .lm-products .lm-product-actions{
    padding:10px!important;
  }
  .lm-products .lm-product-actions .lm-add,
  .lm-products .lm-product-actions .lm-action-link{
    min-height:38px!important;
    border-radius:14px!important;
    font-size:12px!important;
    padding:9px 8px!important;
    white-space:nowrap!important;
  }
}
@media(max-width:360px){
  .lm-products{gap:10px!important;}
  .lm-products .lm-img{height:118px!important;}
  .lm-products .lm-product h3{font-size:13px!important;}
}

/* v30: 首頁手機單列 / 雙列切換 */
.lm-mobile-view-switch{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 18px;
  padding:12px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:24px;
  background:rgba(255,255,255,.82);
  box-shadow:0 14px 38px rgba(16,24,40,.08);
  backdrop-filter:blur(18px);
}
.lm-mobile-view-switch b{display:block;font-size:15px;letter-spacing:-.02em;color:#101828;}
.lm-mobile-view-switch span{display:block;font-size:12px;font-weight:850;color:#667085;margin-top:2px;}
.lm-view-toggle{display:flex;gap:7px;padding:5px;background:#f2f4f7;border-radius:999px;border:1px solid #e6eaf0;}
.lm-view-toggle button{
  border:0;
  border-radius:999px;
  background:transparent;
  color:#667085;
  font-weight:950;
  font-size:12px;
  padding:9px 11px;
  min-width:66px;
  cursor:pointer;
  white-space:nowrap;
}
.lm-view-toggle button.on{
  color:#fff;
  background:linear-gradient(135deg,#0f8f4d,#f2aa22);
  box-shadow:0 10px 24px rgba(15,143,77,.20);
}
@media(max-width:640px){
  .lm-mobile-view-switch{display:flex;position:sticky;top:8px;z-index:18;}
  body.lm-mobile-two-col .lm-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.lm-mobile-one-col .lm-products{grid-template-columns:1fr!important;gap:18px!important;}
  body.lm-mobile-one-col .lm-products .lm-product{border-radius:26px!important;}
  body.lm-mobile-one-col .lm-products .lm-img{height:260px!important;}
  body.lm-mobile-one-col .lm-products .lm-badges{padding:13px 14px 0!important;gap:7px!important;}
  body.lm-mobile-one-col .lm-products .lm-badges .lm-kind-pill{top:14px;left:14px;font-size:12px!important;padding:7px 11px!important;}
  body.lm-mobile-one-col .lm-products .lm-badges span:not(.lm-kind-pill){font-size:11px!important;padding:5px 8px!important;}
  body.lm-mobile-one-col .lm-products .lm-badges span:nth-child(n+4):not(.lm-kind-pill){display:inline-flex!important;}
  body.lm-mobile-one-col .lm-products .lm-product h3{padding:10px 14px 0!important;font-size:19px!important;min-height:auto!important;}
  body.lm-mobile-one-col .lm-products .lm-product>p{padding:7px 14px 0!important;font-size:14px!important;min-height:auto!important;}
  body.lm-mobile-one-col .lm-products .lm-meta{display:grid!important;padding:12px 14px 0!important;}
  body.lm-mobile-one-col .lm-products .lm-price{padding:12px 14px 0!important;min-height:54px!important;}
  body.lm-mobile-one-col .lm-products .lm-price strong{font-size:23px!important;}
  body.lm-mobile-one-col .lm-products .lm-price del{display:inline!important;}
  body.lm-mobile-one-col .lm-products .lm-product-actions{padding:14px!important;}
  body.lm-mobile-one-col .lm-products .lm-product-actions .lm-add,
  body.lm-mobile-one-col .lm-products .lm-product-actions .lm-action-link{min-height:46px!important;font-size:15px!important;border-radius:17px!important;}
}
@media(max-width:420px){
  .lm-mobile-view-switch{align-items:flex-start;flex-direction:column;}
  .lm-view-toggle{width:100%;display:grid;grid-template-columns:1fr 1fr;}
  .lm-view-toggle button{width:100%;}
  body.lm-mobile-one-col .lm-products .lm-img{height:230px!important;}
}

/* v31: 首頁商品卡 Premium 綠框一致化 / 移除點圖提示 */
.lm-img-link:after,
.lm-product:hover .lm-img-link:after{
  content:none!important;
  display:none!important;
  opacity:0!important;
}
.lm-products .lm-product{
  border:2px solid rgba(15,143,77,.74)!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfffc 100%)!important;
  box-shadow:0 18px 48px rgba(15,143,77,.10), 0 10px 30px rgba(16,24,40,.08)!important;
}
.lm-products .lm-product:before{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.84);
  pointer-events:none;
  z-index:0;
}
.lm-products .lm-product:hover{
  border-color:rgba(15,143,77,.95)!important;
  box-shadow:0 26px 70px rgba(15,143,77,.16), 0 18px 46px rgba(16,24,40,.12)!important;
}
.lm-products .lm-product > *{
  position:relative;
  z-index:1;
}
.lm-products .lm-img{
  border-bottom:1px solid rgba(15,143,77,.16)!important;
  aspect-ratio:1/1;
  height:auto!important;
  min-height:0!important;
}
.lm-products .lm-img img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.lm-products .lm-badges .lm-kind-pill{
  left:14px!important;
  top:14px!important;
}
.lm-products .lm-product-actions .lm-add,
.lm-products .lm-product-actions .lm-action-link{
  box-shadow:0 12px 24px rgba(15,143,77,.18)!important;
}
@media(max-width:640px){
  .lm-products{
    gap:16px!important;
  }
  .lm-products .lm-product{
    border-width:2px!important;
    border-radius:24px!important;
    box-shadow:0 12px 32px rgba(15,143,77,.12), 0 8px 22px rgba(16,24,40,.07)!important;
  }
  .lm-products .lm-product:before{
    inset:3px;
    border-radius:20px;
  }
  body.lm-mobile-two-col .lm-products .lm-img{
    aspect-ratio:1/1;
    height:auto!important;
  }
  body.lm-mobile-one-col .lm-products .lm-product{
    border-radius:28px!important;
  }
  body.lm-mobile-one-col .lm-products .lm-product:before{
    border-radius:24px;
  }
  body.lm-mobile-one-col .lm-products .lm-img{
    aspect-ratio:4/3;
    height:auto!important;
  }
}


/* v32: 強制修正首頁提示色帶與商品綠框 - 最高優先序 */
.lm-products .lm-img-link::after,
.lm-products .lm-img-link:after,
.lm-products .lm-product:hover .lm-img-link::after,
.lm-products .lm-product:hover .lm-img-link:after,
.lm-img-link::after,
.lm-img-link:after{
  content:"" !important;
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
  padding:0 !important;
  margin:0 !important;
  transform:none !important;
  background:none !important;
  box-shadow:none !important;
  pointer-events:none !important;
}
.lm-products .lm-product,
main.lm-products > article.lm-product{
  border:3px solid #159157 !important;
  outline:1px solid rgba(255,255,255,.9) !important;
  outline-offset:-6px !important;
  border-radius:30px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%) !important;
  box-shadow:
    0 0 0 1px rgba(21,145,87,.18),
    0 16px 42px rgba(21,145,87,.18),
    0 8px 24px rgba(16,24,40,.08) !important;
}
.lm-products .lm-product:hover,
main.lm-products > article.lm-product:hover{
  border-color:#0f8f4d !important;
  box-shadow:
    0 0 0 1px rgba(21,145,87,.22),
    0 24px 60px rgba(21,145,87,.24),
    0 14px 34px rgba(16,24,40,.10) !important;
}
.lm-products .lm-img,
main.lm-products > article.lm-product .lm-img{
  border-bottom:2px solid rgba(21,145,87,.18) !important;
}
@media(max-width:640px){
  .lm-products .lm-product,
  main.lm-products > article.lm-product{
    border:3px solid #159157 !important;
    border-radius:24px !important;
    outline-offset:-5px !important;
  }
  body.lm-mobile-one-col .lm-products .lm-product,
  body.lm-mobile-one-col main.lm-products > article.lm-product{
    border-radius:28px !important;
  }
}

/* v33 HTML rich editor tools */
.lm-rich-toolbar{position:sticky;top:0;z-index:6;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border:1px solid #edf1f5;border-radius:20px;padding:10px;margin:8px 0 8px!important;box-shadow:0 14px 34px rgba(16,24,40,.06)}
.lm-rich-toolbar button{min-height:40px;white-space:nowrap;background:linear-gradient(135deg,#fff,#f7fbf8)!important;border-color:#dfe8e2!important;color:#203447!important;box-shadow:0 8px 18px rgba(16,24,40,.04)}
.lm-rich-toolbar button:hover{border-color:#159052!important;transform:translateY(-1px)}
.lm-editor-tip{margin:0 0 12px;padding:11px 14px;border:1px solid #e3f3e9;background:linear-gradient(135deg,#f6fff9,#fff9ed);border-radius:16px;color:#526173;font-size:13px;font-weight:850;line-height:1.65}
.lm-html-editor{position:relative;overflow:auto}
.lm-html-editor .lm-edit-figure{position:relative;display:block;max-width:100%;min-width:120px;width:70%;margin:14px auto;border:2px solid transparent;border-radius:24px;line-height:0;clear:none;box-sizing:border-box}
.lm-html-editor .lm-edit-figure img{display:block;width:100%!important;height:auto!important;max-width:none!important;border-radius:21px;box-shadow:0 16px 42px rgba(16,24,40,.11)}
.lm-html-editor .lm-edit-figure.is-selected{border-color:#159052;box-shadow:0 0 0 5px rgba(21,144,82,.12)}
.lm-html-editor .lm-edit-figure.align-left{float:left;margin:8px 18px 12px 0;width:45%}
.lm-html-editor .lm-edit-figure.align-right{float:right;margin:8px 0 12px 18px;width:45%}
.lm-html-editor .lm-edit-figure.align-center{float:none;display:block;margin:14px auto;width:70%}
.lm-html-editor .lm-resize-handle{position:absolute;right:-8px;bottom:-8px;width:24px;height:24px;border-radius:999px;background:linear-gradient(135deg,#159052,#e0a916);border:3px solid #fff;box-shadow:0 8px 18px rgba(16,24,40,.2);cursor:nwse-resize;display:block}
.lm-html-editor .lm-edit-figure.is-selected:before{content:'拖拉角落可調整大小';position:absolute;left:10px;top:10px;z-index:2;background:rgba(16,24,40,.78);color:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;line-height:1;backdrop-filter:blur(10px)}
body.lm-is-resizing{user-select:none;cursor:nwse-resize!important}
.lm-html-content .lm-edit-figure{display:block;max-width:100%;margin:14px auto;line-height:0}
.lm-html-content .lm-edit-figure.align-left{float:left;margin:8px 18px 12px 0;width:45%}
.lm-html-content .lm-edit-figure.align-right{float:right;margin:8px 0 12px 18px;width:45%}
.lm-html-content .lm-edit-figure.align-center{float:none;margin:14px auto;width:70%}
.lm-html-content .lm-edit-figure img{width:100%;height:auto;border-radius:22px;box-shadow:0 14px 38px rgba(16,24,40,.08)}
.lm-html-content .lm-resize-handle{display:none!important}
.lm-html-content:after{content:'';display:block;clear:both}
@media(max-width:760px){.lm-rich-toolbar{display:flex;overflow-x:auto;flex-wrap:nowrap}.lm-rich-toolbar button{flex:0 0 auto}.lm-html-editor .lm-edit-figure.align-left,.lm-html-editor .lm-edit-figure.align-right,.lm-html-content .lm-edit-figure.align-left,.lm-html-content .lm-edit-figure.align-right{float:none!important;width:100%!important;margin:14px auto!important}.lm-html-editor .lm-edit-figure.align-center,.lm-html-content .lm-edit-figure.align-center{width:100%!important}}


/* === v34 儲存完成 OK 手勢回饋：NBA 3 分手勢感 === */
.lm-sticky-save button.is-saving,
button[type="submit"].is-saving{
  opacity:.82;
  pointer-events:none;
  transform:scale(.98);
}
.lm-save-ok-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease;
}
.lm-save-ok-overlay:before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(1.5px);
}
.lm-save-ok-overlay.is-show{opacity:1;}
.lm-save-ok-overlay.is-hide{opacity:0;}
.lm-save-ok-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:210px;
  min-height:180px;
  padding:26px 30px;
  border-radius:34px;
  color:#fff;
  background:linear-gradient(135deg,#07884c,#d7a928);
  box-shadow:0 30px 90px rgba(12,119,69,.35),0 10px 30px rgba(215,169,40,.22);
  transform:translateY(18px) scale(.86) rotate(-2deg);
  animation:lmSaveCardPop 1.45s cubic-bezier(.2,1.4,.22,1) forwards;
}
.lm-save-ok-hand{
  font-size:82px;
  line-height:1;
  transform-origin:58% 80%;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.18));
  animation:lmThreePointOK 1.15s ease-in-out .12s both;
}
.lm-save-ok-text{
  font-size:22px;
  font-weight:1000;
  letter-spacing:.03em;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}
.lm-save-ok-card:after{
  content:"";
  position:absolute;
  width:140px;
  height:140px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  opacity:0;
  animation:lmSaveRing 1.1s ease-out .18s both;
}
@keyframes lmSaveCardPop{
  0%{transform:translateY(24px) scale(.72) rotate(-6deg);opacity:0;}
  16%{transform:translateY(0) scale(1.08) rotate(2deg);opacity:1;}
  34%{transform:translateY(0) scale(1) rotate(0deg);opacity:1;}
  78%{transform:translateY(0) scale(1) rotate(0deg);opacity:1;}
  100%{transform:translateY(-24px) scale(.92) rotate(1deg);opacity:0;}
}
@keyframes lmThreePointOK{
  0%{transform:translateY(18px) rotate(-22deg) scale(.78);}
  22%{transform:translateY(-10px) rotate(18deg) scale(1.15);}
  42%{transform:translateY(0) rotate(-8deg) scale(1.02);}
  62%{transform:translateY(-5px) rotate(10deg) scale(1.08);}
  100%{transform:translateY(0) rotate(0deg) scale(1);}
}
@keyframes lmSaveRing{
  0%{transform:scale(.45);opacity:.8;}
  100%{transform:scale(1.8);opacity:0;}
}
@media(max-width:640px){
  .lm-save-ok-card{min-width:178px;min-height:156px;border-radius:30px;padding:22px 24px;}
  .lm-save-ok-hand{font-size:70px;}
  .lm-save-ok-text{font-size:19px;}
}


/* === v35 存檔中：點下後立即在畫面正中央顯示 === */
.lm-save-progress-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-width:230px;
  min-height:170px;
  padding:28px 34px;
  border-radius:34px;
  color:#0f3f2a;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 30px 90px rgba(12,119,69,.25),0 10px 30px rgba(16,24,40,.14);
  backdrop-filter:blur(22px);
  transform:translateY(12px) scale(.94);
  animation:lmSaveProgressPop .28s cubic-bezier(.2,1.25,.22,1) forwards;
}
.lm-save-spinner{
  width:54px;
  height:54px;
  border-radius:999px;
  border:5px solid rgba(7,136,76,.14);
  border-top-color:#07884c;
  border-right-color:#d7a928;
  animation:lmSaveSpin .82s linear infinite;
}
.lm-save-progress-text{
  font-size:24px;
  font-weight:1000;
  letter-spacing:.02em;
  color:#0b5d3b;
}
@keyframes lmSaveProgressPop{
  from{opacity:0;transform:translateY(18px) scale(.86);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
@keyframes lmSaveSpin{to{transform:rotate(360deg);}}
@media(max-width:640px){
  .lm-save-progress-card{min-width:190px;min-height:150px;border-radius:30px;padding:24px 26px;}
  .lm-save-spinner{width:48px;height:48px;border-width:5px;}
  .lm-save-progress-text{font-size:21px;}
}

/* v36 fast ajax save feedback */
.lm-save-overlay-error .lm-save-progress-card{border-color:rgba(231,76,60,.35);}
.lm-save-error-mark{width:54px;height:54px;border-radius:999px;display:grid;place-items:center;background:#ffefe9;color:#d93025;font-size:34px;font-weight:900;box-shadow:0 12px 28px rgba(217,48,37,.18)}
.lm-sticky-save button.is-saving,.lm-editor-actions button.is-saving{opacity:.78;cursor:progress;filter:saturate(.88)}


/* === v37 商品說明圖片可刪除 === */
.lm-rich-toolbar button.lm-danger-tool{
  background:linear-gradient(135deg,#fff7f7,#fff)!important;
  color:#b42318!important;
  border-color:#ffd0cc!important;
}
.lm-rich-toolbar button.lm-danger-tool:hover{
  border-color:#f04438!important;
  box-shadow:0 10px 24px rgba(240,68,56,.12)!important;
}
.lm-html-editor .lm-delete-figure{
  position:absolute;
  right:10px;
  top:10px;
  z-index:3;
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:rgba(180,35,24,.92);
  color:#fff;
  font-size:23px;
  font-weight:950;
  line-height:32px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(16,24,40,.22);
  opacity:0;
  transform:scale(.88);
  transition:.16s ease;
}
.lm-html-editor .lm-edit-figure.is-selected .lm-delete-figure,
.lm-html-editor .lm-edit-figure:hover .lm-delete-figure{
  opacity:1;
  transform:scale(1);
}
.lm-html-editor .lm-delete-figure:hover{
  background:#d92d20;
  transform:scale(1.08)!important;
}
.lm-html-editor .lm-edit-figure.is-selected:before{
  content:'拖拉角落可調整大小，也可按 × 刪除';
  padding-right:46px;
  max-width:calc(100% - 70px);
  white-space:normal;
  line-height:1.25;
}
.lm-html-content .lm-delete-figure{display:none!important}


/* v40 Product Editor - clear editable zones */
.lm-prestashop-editor{
  --lm-brand-green:#159052;
  --lm-brand-gold:#e0a916;
  --lm-soft-line:rgba(21,144,82,.18);
}
.lm-prestashop-editor .lm-editor-hero{
  background:
    radial-gradient(circle at 12% 12%, rgba(21,144,82,.12), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(224,169,22,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,252,249,.92));
  border:1px solid rgba(21,144,82,.18);
  box-shadow:0 24px 70px rgba(16,24,40,.10);
}
.lm-v40-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(21,144,82,.16)!important;
  box-shadow:0 18px 50px rgba(16,24,40,.08)!important;
  backdrop-filter:blur(18px);
}
.lm-v40-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,#159052,#7dbd69,#e0a916);
  opacity:.9;
}
.lm-v40-card h3{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:12px;
  margin-bottom:18px!important;
  border-bottom:1px solid rgba(16,24,40,.07);
}
.lm-v40-icon{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 20px rgba(16,24,40,.07);
  font-size:19px;
}
.lm-v40-basic{
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,252,249,.96)),
    radial-gradient(circle at top right,rgba(21,144,82,.10),transparent 38%)!important;
}
.lm-v40-side{
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,251,241,.96)),
    radial-gradient(circle at top right,rgba(224,169,22,.13),transparent 38%)!important;
}
.lm-v40-images{
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,252,247,.96)),
    radial-gradient(circle at 12% 0%,rgba(21,144,82,.10),transparent 42%)!important;
}
.lm-v40-html{
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,252,.97)),
    radial-gradient(circle at top right,rgba(16,24,40,.055),transparent 40%)!important;
}
.lm-prestashop-editor label{
  background:rgba(255,255,255,.62);
  border:1px solid rgba(230,234,240,.72);
  border-radius:18px;
  padding:12px;
  margin-bottom:12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}
.lm-prestashop-editor .lm-editor-row > label,
.lm-prestashop-editor .lm-editor-row.compact > label{
  margin-bottom:0!important;
}
.lm-prestashop-editor input,
.lm-prestashop-editor select,
.lm-prestashop-editor textarea{
  min-height:50px;
  border-radius:16px!important;
  border:1px solid rgba(208,213,221,.95)!important;
  background:linear-gradient(180deg,#fff,#fbfcfd)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(16,24,40,.03);
}
.lm-prestashop-editor textarea{min-height:112px;resize:vertical;line-height:1.7}
.lm-prestashop-editor input:focus,
.lm-prestashop-editor select:focus,
.lm-prestashop-editor textarea:focus{
  border-color:#159052!important;
  box-shadow:0 0 0 5px rgba(21,144,82,.12)!important;
}
.lm-switches label{
  background:rgba(255,255,255,.72)!important;
  border-color:rgba(21,144,82,.16)!important;
}
.lm-switches input{accent-color:#159052!important}
.lm-image-card-grid{
  background:rgba(255,255,255,.42);
  border:1px dashed rgba(21,144,82,.22);
  border-radius:28px;
  padding:14px;
}
.lm-image-card{
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(21,144,82,.16)!important;
  box-shadow:0 10px 26px rgba(16,24,40,.07)!important;
}
.lm-image-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(16,24,40,.10)!important;
}
.lm-editor-toolbar,
.lm-rich-toolbar{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(230,234,240,.8);
  border-radius:22px;
  padding:10px;
  box-shadow:0 8px 24px rgba(16,24,40,.05);
}
.lm-editor-toolbar button,
.lm-rich-toolbar button{
  background:linear-gradient(180deg,#fff,#f7faf8)!important;
  border-color:rgba(21,144,82,.16)!important;
  color:#1d2939!important;
}
.lm-editor-toolbar button:hover,
.lm-rich-toolbar button:hover{
  border-color:#159052!important;
  box-shadow:0 8px 18px rgba(21,144,82,.10);
  transform:translateY(-1px);
}
.lm-editor-tip{
  background:rgba(21,144,82,.07)!important;
  border:1px solid rgba(21,144,82,.14)!important;
  color:#24543a!important;
}
.lm-html-editor{
  background:#fff!important;
  border:1px solid rgba(208,213,221,.9)!important;
  border-radius:26px!important;
  min-height:380px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 16px 38px rgba(16,24,40,.06)!important;
}
.lm-html-editor:focus{
  border-color:#159052!important;
  box-shadow:0 0 0 5px rgba(21,144,82,.12),0 16px 38px rgba(16,24,40,.06)!important;
}
.lm-v40-save{
  background:linear-gradient(135deg,rgba(21,144,82,.94),rgba(24,126,78,.92),rgba(224,169,22,.88))!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:0 20px 54px rgba(21,144,82,.24)!important;
}
.lm-v40-save button{
  background:#fff!important;
  color:#137045!important;
}
#lmUnsavedDot{color:#ffe08a;font-size:13px;margin-right:3px;filter:drop-shadow(0 0 8px rgba(255,224,138,.45))}
.lm-prestashop-editor:has(input:focus) .lm-v40-save,
.lm-prestashop-editor:has(select:focus) .lm-v40-save,
.lm-prestashop-editor:has(textarea:focus) .lm-v40-save,
.lm-prestashop-editor:has(.lm-html-editor:focus) .lm-v40-save{
  animation:lmV40SaveGlow 1.8s ease-in-out infinite;
}
@keyframes lmV40SaveGlow{
  0%,100%{box-shadow:0 20px 54px rgba(21,144,82,.24)}
  50%{box-shadow:0 24px 64px rgba(224,169,22,.28)}
}
@media(max-width:900px){
  .lm-v40-card{border-radius:24px!important}
  .lm-v40-card h3{font-size:19px!important}
  .lm-v40-icon{width:34px;height:34px;border-radius:14px;font-size:17px}
  .lm-prestashop-editor label{padding:10px;border-radius:16px}
  .lm-image-card-grid{grid-template-columns:1fr!important;padding:10px}
  .lm-html-editor{min-height:300px!important}
}


/* v41 platform UX: scroll top, pagination, import */
.lm-scroll-top{position:fixed;right:22px;bottom:calc(26px + env(safe-area-inset-bottom));width:54px;height:54px;border:0;border-radius:999px;background:linear-gradient(135deg,#147b45,#f1a532);color:#fff;font-weight:900;box-shadow:0 18px 45px rgba(20,123,69,.32);z-index:99999;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transform:translateY(18px) scale(.92);transition:.28s ease;font-size:22px}.lm-scroll-top.show{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.lm-scroll-top:hover{transform:translateY(-3px) scale(1.03)}
.lm-pagination{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:28px auto 20px}.lm-pagination a,.lm-pagination span{border-radius:999px;padding:12px 18px;background:rgba(255,255,255,.86);border:1px solid rgba(20,123,69,.20);box-shadow:0 10px 28px rgba(16,24,40,.07);font-weight:800;color:#145a38;text-decoration:none}.lm-pagination a{background:linear-gradient(135deg,#147b45,#f1a532);color:#fff}.lm-pagination a.disabled{opacity:.38;pointer-events:none;filter:grayscale(.4)}.lm-admin-pagination{margin-top:20px}.lm-import-grid{grid-template-columns:1fr 1fr}.lm-import-panel,.lm-api-doc-panel{background:linear-gradient(180deg,#fff,#f8fcf9);border:1px solid rgba(20,123,69,.16);border-radius:28px;box-shadow:0 18px 50px rgba(16,24,40,.08)}.lm-import-panel input[type=file]{background:#fff;border:1px dashed rgba(20,123,69,.35);border-radius:18px;padding:18px;width:100%;margin:14px 0}.lm-import-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.lm-import-links a{display:inline-flex;padding:11px 15px;border-radius:999px;background:#fff;border:1px solid rgba(20,123,69,.18);color:#146b43;font-weight:800;text-decoration:none}.lm-field-map{display:grid;grid-template-columns:minmax(120px,.8fr) 1.2fr;gap:10px}.lm-field-map span,.lm-field-map b{padding:12px 14px;border-radius:16px;background:#fff;border:1px solid rgba(16,24,40,.07)}.lm-field-map span{color:#667085}.lm-field-map b{color:#145a38}.lm-api-doc-panel.wide{grid-column:1/-1}.lm-code{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:20px;padding:18px;overflow:auto}
@media(max-width:760px){.lm-scroll-top{right:16px;bottom:calc(18px + env(safe-area-inset-bottom));width:50px;height:50px}.lm-import-grid{grid-template-columns:1fr}.lm-field-map{grid-template-columns:1fr}.lm-pagination{gap:8px}.lm-pagination a,.lm-pagination span{padding:10px 13px;font-size:13px}}

/* v42 order management: compact Shopify/Apple style cards + drawer */
.lm-orders-v42{max-width:1480px;margin:0 auto 48px;padding:0 18px}.lm-v42-head{background:linear-gradient(180deg,#fff,#f8fbf9);border:1px solid rgba(20,123,69,.14);border-radius:30px;padding:24px 28px;box-shadow:0 18px 54px rgba(16,24,40,.08);margin-bottom:18px}.lm-v42-head h2{margin:4px 0 8px}.lm-v42-bulkbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(255,255,255,.82);border:1px solid rgba(208,213,221,.76);border-radius:24px;padding:12px 16px;margin:0 0 16px;box-shadow:0 10px 30px rgba(16,24,40,.05)}.lm-v42-bulkbar label{font-weight:900;color:#1d2939}.lm-v42-bulkbar input{accent-color:#159052}.lm-v42-bulkbar span{color:#667085;font-weight:700;font-size:13px}.lm-v42-soft{border:1px solid rgba(20,123,69,.18);background:linear-gradient(180deg,#fff,#f8fcf9);border-radius:999px;padding:10px 14px;color:#145a38;font-weight:900}.lm-v42-soft:disabled{opacity:.45}.lm-order-card-list{display:grid;gap:12px}.lm-order-card-v42{position:relative;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;background:linear-gradient(180deg,#fff,#fbfcfd);border:1px solid rgba(208,213,221,.82);border-left:5px solid #159052;border-radius:24px;padding:14px 14px;box-shadow:0 10px 30px rgba(16,24,40,.055);transition:.2s ease}.lm-order-card-v42:nth-child(4n+1){background:linear-gradient(180deg,#fff,#f9fcfa)}.lm-order-card-v42:hover{transform:translateY(-2px);box-shadow:0 16px 42px rgba(16,24,40,.09);border-color:rgba(21,144,82,.28)}.lm-v42-check{display:flex;align-items:center;justify-content:center}.lm-v42-check input{width:18px;height:18px;accent-color:#159052}.lm-v42-main{display:grid;grid-template-columns:minmax(180px,1.45fr) minmax(120px,.8fr) minmax(170px,1.05fr) minmax(160px,1fr) minmax(120px,.8fr) minmax(118px,.7fr);align-items:center;gap:14px;min-width:0}.lm-v42-order-no b{display:block;font-size:18px;letter-spacing:.2px;color:#111827}.lm-v42-order-no small,.lm-v42-member span,.lm-v42-total small{display:block;color:#667085;font-weight:700;margin-top:4px}.lm-v42-member b{font-size:16px;color:#1f2937}.lm-v42-items{min-width:0}.lm-v42-items summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid rgba(20,123,69,.16);background:#fff;border-radius:999px;padding:9px 13px;font-weight:900;color:#344054}.lm-v42-items summary::-webkit-details-marker{display:none}.lm-v42-items summary span{font-size:13px;color:#14834f}.lm-v42-item-list{display:grid;gap:8px;margin-top:10px}.lm-v42-items .lm-v42-item-list{position:absolute;z-index:50;background:#fff;border:1px solid rgba(208,213,221,.9);border-radius:18px;padding:12px;box-shadow:0 20px 48px rgba(16,24,40,.16);min-width:280px;max-width:420px}.lm-v42-payment span{display:block;color:#344054;font-weight:800;margin-bottom:6px}.lm-v42-total b{font-size:23px;color:#111827;white-space:nowrap}.lm-v42-status{text-align:center}.lm-v42-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:8px 12px;font-style:normal;font-weight:900;font-size:13px;border:1px solid transparent;white-space:nowrap}.lm-v42-badge.warn{color:#92400e;background:#fffbeb;border-color:#fde68a}.lm-v42-badge.ok{color:#087443;background:#ecfdf3;border-color:#abefc6}.lm-v42-badge.danger{color:#b42318;background:#fef3f2;border-color:#fecdca}.lm-v42-badge.info{color:#175cd3;background:#eff8ff;border-color:#b2ddff}.lm-v42-open{height:48px;border:0;border-radius:999px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:1000;padding:0 22px;box-shadow:0 12px 28px rgba(21,144,82,.22);white-space:nowrap}.lm-v42-open:hover{filter:brightness(1.04);transform:translateY(-1px)}.lm-order-item{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:#f8fafc;border:1px solid rgba(208,213,221,.68);border-radius:14px;padding:9px 10px}.lm-order-item b{font-size:13px;color:#1d2939}.lm-order-item span{font-weight:900;color:#145a38}.lm-order-item small{color:#667085;font-weight:800}.lm-refund-note{border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:800;padding:9px 10px;font-size:13px}.lm-v42-drawer{position:fixed;inset:0;z-index:99998;background:rgba(15,23,42,.34);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:.24s ease}.lm-v42-drawer.is-open{opacity:1;pointer-events:auto}.lm-v42-drawer-panel{position:absolute;right:18px;top:18px;bottom:18px;width:min(460px,calc(100vw - 36px));overflow:auto;background:linear-gradient(180deg,#fff,#f8fbf9);border:1px solid rgba(255,255,255,.72);border-radius:32px;box-shadow:0 28px 90px rgba(16,24,40,.28);padding:22px;transform:translateX(24px) scale(.98);transition:.24s ease}.lm-v42-drawer.is-open .lm-v42-drawer-panel{transform:translateX(0) scale(1)}.lm-v42-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.lm-v42-drawer-head h3{margin:3px 0 4px;font-size:22px}.lm-v42-close{width:44px;height:44px;border:0;border-radius:999px;background:#fff;color:#111827;font-size:28px;line-height:1;box-shadow:0 8px 22px rgba(16,24,40,.08)}.lm-v42-drawer-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.lm-v42-drawer-summary div{background:#fff;border:1px solid rgba(208,213,221,.78);border-radius:18px;padding:12px}.lm-v42-drawer-summary span{display:block;font-size:12px;color:#667085;font-weight:800}.lm-v42-drawer-summary b{display:block;margin-top:3px;color:#111827}.lm-v42-drawer-items{background:#fff;border:1px solid rgba(208,213,221,.78);border-radius:20px;padding:12px 14px;margin-bottom:14px}.lm-v42-drawer-items summary{cursor:pointer;font-weight:1000;color:#1d2939}.lm-v42-action-form{background:rgba(255,255,255,.78);border:1px solid rgba(208,213,221,.78);border-radius:24px;padding:14px;margin-top:12px;display:grid;gap:12px}.lm-v42-action-form label{display:grid;gap:7px;color:#344054;font-weight:900}.lm-v42-action-form select,.lm-v42-action-form input{height:52px;border-radius:16px;border:1px solid rgba(208,213,221,.95);padding:0 14px;background:#fff;font-size:15px}.lm-v42-action-form button{height:54px;border:0;border-radius:18px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:1000;font-size:16px}.lm-v42-action-form.danger-zone{background:#fff8f7;border-color:#fecdca}.lm-v42-action-form button.danger{background:#c32218}.lm-empty.small{font-size:13px;margin:0;color:#667085}.lm-v42-card-selected{outline:3px solid rgba(21,144,82,.18)}
@media(max-width:1080px){.lm-v42-main{grid-template-columns:1.2fr .8fr 1fr}.lm-v42-payment,.lm-v42-status{display:none}.lm-order-card-v42{grid-template-columns:36px 1fr auto}.lm-v42-total b{font-size:20px}}
@media(max-width:720px){.lm-orders-v42{padding:0 12px}.lm-v42-head{padding:18px;border-radius:24px}.lm-order-card-v42{grid-template-columns:1fr;gap:10px;padding:14px;border-radius:22px}.lm-v42-check{position:absolute;top:14px;right:14px}.lm-v42-main{grid-template-columns:1fr 1fr;gap:10px}.lm-v42-order-no{grid-column:1/-1;padding-right:34px}.lm-v42-items{grid-column:1/-1}.lm-v42-payment{display:block}.lm-v42-status{text-align:left}.lm-v42-open{width:100%;height:50px}.lm-v42-items .lm-v42-item-list{position:relative;min-width:0;max-width:none;box-shadow:none;margin-top:10px}.lm-v42-drawer-panel{right:10px;left:10px;top:10px;bottom:10px;width:auto;border-radius:26px;padding:18px}.lm-v42-drawer-summary{grid-template-columns:1fr}.lm-v42-bulkbar{border-radius:20px}.lm-v42-soft,.lm-v42-bulkbar span{display:none}}

/* v43 order details popover fix: keep expanded item list above every order card */
.lm-order-card-list{position:relative;isolation:isolate;}
.lm-order-card-v42{z-index:1;overflow:visible;}
.lm-order-card-v42:hover{z-index:20;}
.lm-order-card-v42:has(.lm-v42-items[open]){z-index:5000;}
.lm-v42-items{position:relative;z-index:10;}
.lm-v42-items[open]{z-index:6000;}
.lm-v42-items .lm-v42-item-list{z-index:7000;top:calc(100% + 10px);left:0;}
.lm-v42-items[open] summary{background:linear-gradient(135deg,#159052,#e0a916);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(21,144,82,.22);}
.lm-v42-items[open] summary span{color:#fff;}
@media(max-width:720px){
  .lm-order-card-v42:has(.lm-v42-items[open]){z-index:5000;}
  .lm-v42-items .lm-v42-item-list{top:auto;left:auto;}
}

/* v44 order details focus + member text cleanup */
.lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active){
  opacity:.28;
  filter:saturate(.45) grayscale(.18);
  transform:none!important;
  pointer-events:auto;
}
.lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active) .lm-v42-open,
.lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active) .lm-v42-items summary{
  pointer-events:auto;
}
.lm-order-card-v42.lm-item-detail-active{
  z-index:9000!important;
  opacity:1!important;
  filter:none!important;
  box-shadow:0 26px 72px rgba(16,24,40,.18),0 0 0 1px rgba(21,144,82,.18);
  border-color:rgba(21,144,82,.34);
}
.lm-v42-member{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-left:2px;
}
.lm-v42-member b{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:16px;
  color:#0f172a;
  font-weight:950;
  line-height:1.2;
}
.lm-v42-order-no b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lm-v42-main{
  grid-template-columns:minmax(230px,1.45fr) minmax(130px,.72fr) minmax(170px,1.05fr) minmax(160px,1fr) minmax(120px,.8fr) minmax(118px,.7fr);
}
.lm-v42-items .lm-v42-item-list{
  min-width:360px;
  max-width:520px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border:1px solid rgba(21,144,82,.18);
  box-shadow:0 28px 80px rgba(16,24,40,.22);
}
.lm-v42-items[open] summary{
  transform:translateY(-1px);
}
@media(max-width:1080px){
  .lm-v42-main{grid-template-columns:1.3fr .8fr 1fr;}
  .lm-v42-member b{font-size:15px;}
}
@media(max-width:720px){
  .lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active){opacity:.22;}
  .lm-v42-member{grid-column:1/-1;}
  .lm-v42-items .lm-v42-item-list{min-width:0;max-width:none;}
}

/* v45 order action drawer: fixed modal, panel-only scroll, sticky header */
body.lm-drawer-locked{overflow:hidden!important;touch-action:none;}
.lm-v42-drawer{position:fixed!important;inset:0!important;z-index:2147483000!important;overflow:hidden!important;overscroll-behavior:contain;background:rgba(15,23,42,.42)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;}
.lm-v42-drawer.is-open{display:block!important;opacity:1!important;pointer-events:auto!important;}
.lm-v42-drawer-panel{position:absolute!important;right:22px!important;top:22px!important;bottom:22px!important;width:min(520px,calc(100vw - 44px))!important;max-height:calc(100vh - 44px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;z-index:2147483001!important;padding:0 22px 22px!important;scrollbar-gutter:stable;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,249,.98))!important;}
.lm-v42-drawer-head{position:sticky!important;top:0!important;z-index:2147483002!important;margin:0 -22px 16px!important;padding:18px 22px 16px!important;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92))!important;border-bottom:1px solid rgba(208,213,221,.75)!important;box-shadow:0 14px 32px rgba(16,24,40,.08)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);align-items:center!important;}
.lm-v42-drawer-head .lm-kicker{display:block;letter-spacing:.22em;color:#a17318;font-weight:1000;font-size:12px;}
.lm-v42-drawer-head h3{margin:8px 0 2px!important;line-height:1.1!important;word-break:break-all;}
.lm-v42-close{flex:0 0 auto!important;position:relative!important;z-index:2147483003!important;background:#fff!important;border:1px solid rgba(208,213,221,.9)!important;box-shadow:0 8px 22px rgba(16,24,40,.12)!important;cursor:pointer!important;}
.lm-v42-close:hover{transform:scale(1.04);background:#f8fafc!important;}
@media(max-width:720px){.lm-v42-drawer-panel{left:10px!important;right:10px!important;top:10px!important;bottom:10px!important;width:auto!important;max-height:calc(100vh - 20px)!important;border-radius:26px!important;padding:0 16px 18px!important}.lm-v42-drawer-head{margin:0 -16px 14px!important;padding:16px!important}.lm-v42-drawer-head h3{font-size:18px!important}}

/* v46 order item expand: inline safe panel, no overlap with action/status */
.lm-order-card-v42.lm-item-detail-active{
  z-index:80;
  align-items:start;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-main{
  align-items:start;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-items{
  grid-column:1 / -1;
  order:99;
  width:100%;
  margin-top:10px;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-items summary{
  display:none;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-items .lm-v42-item-list{
  position:relative!important;
  inset:auto!important;
  z-index:1!important;
  width:100%;
  min-width:0!important;
  max-width:none!important;
  margin:4px 0 0!important;
  padding:14px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff,#f8fbf9)!important;
  border:1px solid rgba(21,144,82,.20)!important;
  box-shadow:0 14px 36px rgba(16,24,40,.10)!important;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-open{
  position:relative;
  z-index:2;
}
.lm-order-card-v42.lm-item-detail-active .lm-v42-status,
.lm-order-card-v42.lm-item-detail-active .lm-v42-total{
  position:relative;
  z-index:2;
}
.lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active){
  pointer-events:auto;
}
.lm-order-card-list.lm-has-open-detail .lm-order-card-v42:not(.lm-item-detail-active) .lm-v42-item-list{
  display:none!important;
}
@media(max-width:720px){
  .lm-order-card-v42.lm-item-detail-active .lm-v42-items{
    grid-column:1/-1;
    order:99;
  }
  .lm-order-card-v42.lm-item-detail-active .lm-v42-items summary{
    display:inline-flex;
  }
  .lm-order-card-v42.lm-item-detail-active .lm-v42-items .lm-v42-item-list{
    margin-top:10px!important;
  }
}

/* v47: 訂單列表桌機欄位安全間距修正，避免狀態 Badge 與處理按鈕重疊 */
@media (min-width: 1081px){
  .lm-order-card-v42{
    grid-template-columns:44px minmax(0,1fr) 124px !important;
    column-gap:26px !important;
    align-items:center !important;
  }
  .lm-v42-main{
    min-width:0 !important;
    overflow:hidden !important;
    grid-template-columns:
      minmax(170px,1.18fr)
      minmax(96px,.62fr)
      minmax(138px,.86fr)
      minmax(132px,.74fr)
      minmax(104px,.56fr)
      minmax(116px,.54fr) !important;
    column-gap:18px !important;
  }
  .lm-v42-order-no,
  .lm-v42-member,
  .lm-v42-items,
  .lm-v42-payment,
  .lm-v42-total,
  .lm-v42-status{
    min-width:0 !important;
  }
  .lm-v42-member b,
  .lm-v42-payment span,
  .lm-v42-order-no b{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .lm-v42-status{
    justify-self:center !important;
    text-align:center !important;
    width:116px !important;
  }
  .lm-v42-status .lm-v42-badge{
    max-width:112px !important;
  }
  .lm-v42-open{
    width:104px !important;
    min-width:104px !important;
    justify-self:end !important;
    margin-left:0 !important;
    position:relative !important;
    z-index:3 !important;
  }
}
@media (max-width: 1280px) and (min-width:1081px){
  .lm-order-card-v42{
    grid-template-columns:40px minmax(0,1fr) 112px !important;
    column-gap:18px !important;
  }
  .lm-v42-main{
    grid-template-columns:
      minmax(150px,1.12fr)
      minmax(90px,.56fr)
      minmax(124px,.76fr)
      minmax(126px,.68fr)
      minmax(96px,.5fr)
      minmax(104px,.48fr) !important;
    column-gap:12px !important;
  }
  .lm-v42-open{width:96px !important;min-width:96px !important;padding:0 14px !important;}
  .lm-v42-status{width:104px !important;}
  .lm-v42-total b{font-size:20px !important;}
}

/* V48 preorder extension */
.kind-preorder,.lm-kind-pill.kind-preorder{background:linear-gradient(135deg,#7c3aed,#14b8a6)!important;color:#fff!important;border-color:rgba(124,58,237,.25)!important;box-shadow:0 12px 28px rgba(20,184,166,.18)}
.kind-card-preorder{border-color:rgba(124,58,237,.34)!important}
.lm-preorder-summary{display:grid;gap:6px;border:1px solid rgba(124,58,237,.18);background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(20,184,166,.08));border-radius:22px;padding:16px 18px;margin:12px 0;color:#132238}.lm-preorder-summary b{font-size:22px}.lm-preorder-summary span{color:#667085;font-weight:850}.lm-preorder-card{max-width:920px;margin:auto}.lm-preorder-money{display:flex;gap:12px;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#f5f3ff,#ecfeff);border:1px solid #ddd6fe;border-radius:22px;padding:16px;margin:18px 0}.lm-preorder-money b{font-size:24px;color:#0f172a}.lm-preorder-money span{color:#667085;font-weight:850}.lm-preorder-external{background:linear-gradient(135deg,#7c3aed,#14b8a6)!important}.lm-api-note{border-radius:22px;background:#f8fafc;border:1px solid var(--line);padding:14px;color:#475467;font-weight:850;line-height:1.7}.lm-field-map span.preorder-field{color:#7c3aed;font-weight:950}@media(max-width:700px){.lm-preorder-money{display:grid}.lm-preorder-money b{font-size:20px}}


/* v48 mobile cart open UIUX: total card no longer covers cart details */
@media(max-width:640px){
  body.lm-cart-open .lm-cart{
    display:flex!important;
    flex-direction:column!important;
    max-height:calc(82vh - env(safe-area-inset-bottom,0px))!important;
    overflow:hidden!important;
  }
  body.lm-cart-open .lm-cart>b{
    flex:0 0 auto!important;
    position:sticky!important;
    top:0!important;
    z-index:4!important;
    background:rgba(255,255,255,.96)!important;
    padding-bottom:8px!important;
    border-bottom:1px solid rgba(233,237,243,.9)!important;
  }
  body.lm-cart-open .lm-cart #lm-cart-items{
    flex:1 1 auto!important;
    display:block!important;
    min-height:150px!important;
    max-height:none!important;
    overflow-y:auto!important;
    margin:0 0 10px!important;
    padding:8px 4px 8px 0!important;
    border-bottom:1px solid var(--line)!important;
    overscroll-behavior:contain!important;
  }
  body.lm-cart-open .lm-cart #lm-cart-items .lm-cart-line{
    display:grid!important;
    grid-template-columns:1fr auto 30px 30px!important;
    gap:7px!important;
    align-items:center!important;
    padding:9px 0!important;
    border-bottom:1px solid rgba(233,237,243,.9)!important;
    background:transparent!important;
  }
  body.lm-cart-open .lm-cart .lm-cart-total{
    position:relative!important;
    inset:auto!important;
    bottom:auto!important;
    top:auto!important;
    z-index:1!important;
    margin:10px 0 0!important;
    padding:12px 14px!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
    box-shadow:none!important;
    border:1px solid rgba(233,237,243,.95)!important;
  }
  body.lm-cart-open .lm-cart .lm-cart-total b{
    font-size:22px!important;
    line-height:1.15!important;
  }
  body.lm-cart-open .lm-cart .lm-cart-total .lm-cart-clear{
    width:100%!important;
    height:40px!important;
    margin-top:8px!important;
    border-radius:14px!important;
  }
  body.lm-cart-open .lm-cart .lm-payment-box{
    flex:0 0 auto!important;
    display:grid!important;
    max-height:190px!important;
    overflow-y:auto!important;
    margin:0 0 10px!important;
    padding:8px 0 0!important;
    border-top:0!important;
  }
  body.lm-cart-open .lm-cart #lm-checkout{
    flex:0 0 auto!important;
    height:52px!important;
    border-radius:20px!important;
  }
  body.lm-cart-open .lm-mobile-cart-summary{
    display:none!important;
  }
}

/* === v50 cart panel fix: cart items no longer hidden behind total card === */
.lm-cart{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  overflow:hidden!important;
}
.lm-cart>b{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:3!important;
  margin-bottom:0!important;
}
.lm-cart #lm-cart-items{
  flex:1 1 auto!important;
  max-height:260px!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  padding-right:4px!important;
  border-bottom:1px solid rgba(233,237,243,.9)!important;
}
.lm-cart #lm-cart-items .lm-cart-line{
  position:relative!important;
  z-index:1!important;
  background:#fff!important;
}
.lm-cart-total-panel{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:2!important;
  margin:0!important;
}
.lm-cart #lm-cart-items .lm-cart-total{display:none!important;}
.lm-cart .lm-payment-box,
.lm-cart #lm-checkout{
  flex:0 0 auto!important;
}
@media(min-width:641px){
  .lm-cart{max-height:calc(100vh - 44px)!important;}
  .lm-cart #lm-cart-items{max-height:280px!important;}
}
@media(max-width:640px){
  body.lm-cart-open .lm-cart{
    display:flex!important;
    flex-direction:column!important;
    max-height:calc(82vh - env(safe-area-inset-bottom,0px))!important;
    overflow:hidden!important;
  }
  body.lm-cart-open .lm-cart>b{
    flex:0 0 auto!important;
    position:relative!important;
    top:auto!important;
    background:rgba(255,255,255,.98)!important;
    z-index:5!important;
    padding-bottom:8px!important;
    border-bottom:1px solid rgba(233,237,243,.9)!important;
  }
  body.lm-cart-open .lm-cart #lm-cart-items{
    flex:1 1 auto!important;
    display:block!important;
    min-height:190px!important;
    max-height:none!important;
    overflow-y:auto!important;
    margin:0!important;
    padding:8px 4px 8px 0!important;
    border-bottom:1px solid var(--line)!important;
  }
  body.lm-cart-open .lm-cart-total-panel{
    flex:0 0 auto!important;
    display:grid!important;
    position:relative!important;
    inset:auto!important;
    z-index:3!important;
    margin:0!important;
    padding:12px 14px!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
    box-shadow:0 8px 22px rgba(16,24,40,.06)!important;
    border:1px solid rgba(233,237,243,.95)!important;
  }
  body.lm-cart-open .lm-cart-total-panel b{font-size:22px!important;line-height:1.15!important;}
  body.lm-cart-open .lm-cart-total-panel .lm-cart-clear{width:100%!important;height:40px!important;margin-top:8px!important;border-radius:14px!important;}
  body.lm-cart-open .lm-cart .lm-payment-box{flex:0 0 auto!important;display:grid!important;max-height:170px!important;overflow-y:auto!important;margin:0!important;padding:8px 0 0!important;}
  body.lm-cart-open .lm-cart #lm-checkout{flex:0 0 auto!important;height:52px!important;border-radius:20px!important;}
  body.lm-cart-open .lm-mobile-cart-summary{display:none!important;}
}


/* === v51 draggable cart + compact payment select === */
.lm-cart-drag-handle{
  cursor:grab!important;
  user-select:none!important;
  touch-action:none!important;
}
.lm-cart-dragging,
.lm-cart-dragging *{
  cursor:grabbing!important;
}
.lm-cart-positioned{
  right:auto!important;
  bottom:auto!important;
}
.lm-cart .lm-payment-select-box{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  max-height:none!important;
  overflow:visible!important;
  border-top:1px solid var(--line)!important;
  padding-top:10px!important;
  margin:0!important;
}
.lm-cart .lm-payment-select-box label{
  display:block!important;
  font-size:12px!important;
  font-weight:950!important;
  color:#667085!important;
  letter-spacing:.08em!important;
}
.lm-cart .lm-payment-select-box select{
  width:100%!important;
  height:48px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:0 14px!important;
  font-size:15px!important;
  font-weight:900!important;
  color:#344054!important;
  outline:none!important;
  box-shadow:0 8px 18px rgba(16,24,40,.04)!important;
}
.lm-cart #lm-cart-items{
  min-height:330px!important; /* 至少約 5 筆商品高度 */
  max-height:min(420px, calc(100vh - 360px))!important;
}
.lm-cart #lm-cart-items .lm-cart-line{
  min-height:62px!important;
}
@media(min-width:641px){
  .lm-cart{width:360px!important;max-height:calc(100vh - 28px)!important;}
  .lm-cart #lm-cart-items{min-height:330px!important;}
}
@media(max-width:640px){
  .lm-cart{max-width:calc(100vw - 20px)!important;}
  body.lm-cart-open .lm-cart #lm-cart-items{
    min-height:330px!important;
    max-height:calc(82vh - 310px)!important;
  }
  body.lm-cart-open .lm-cart .lm-payment-select-box{
    max-height:none!important;
    overflow:visible!important;
    margin:0 0 8px!important;
  }
  body.lm-cart-open .lm-cart .lm-payment-select-box select{height:46px!important;}
}

/* === v52 cart expand direction fix: always expand downward from visible drag header === */
.lm-cart-positioned,
.lm-cart-positioned.lm-cart,
body.lm-cart-open .lm-cart-positioned,
body.lm-cart-collapsed .lm-cart-positioned{
  position:fixed!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  max-height:var(--lm-cart-available-h, calc(100vh - 24px))!important;
  overflow:hidden!important;
}
.lm-cart-positioned > b{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
  z-index:10!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid rgba(233,237,243,.9)!important;
  padding-bottom:8px!important;
  margin-bottom:0!important;
}
.lm-cart-positioned #lm-cart-items{
  flex:1 1 auto!important;
  min-height:min(330px, calc(var(--lm-cart-available-h, 620px) - 285px))!important;
  max-height:calc(var(--lm-cart-available-h, 620px) - 285px)!important;
  overflow-y:auto!important;
}
.lm-cart-positioned .lm-payment-select-box,
.lm-cart-positioned #lm-checkout,
.lm-cart-positioned .lm-cart-total-panel{
  flex:0 0 auto!important;
}
body.lm-cart-collapsed .lm-cart-positioned{
  max-height:78px!important;
}
body.lm-cart-collapsed .lm-cart-positioned #lm-cart-items,
body.lm-cart-collapsed .lm-cart-positioned .lm-payment-select-box,
body.lm-cart-collapsed .lm-cart-positioned .lm-cart-total-panel,
body.lm-cart-collapsed .lm-cart-positioned #lm-checkout{
  display:none!important;
}
@media(max-width:640px){
  body.lm-cart-open .lm-cart-positioned{
    max-height:var(--lm-cart-available-h, calc(100vh - 20px))!important;
  }
  body.lm-cart-open .lm-cart-positioned #lm-cart-items{
    min-height:min(300px, calc(var(--lm-cart-available-h, 620px) - 280px))!important;
    max-height:calc(var(--lm-cart-available-h, 620px) - 280px)!important;
  }
}


/* === v53 cart compact visible area: checkout zone always visible, one-line rows === */
.lm-cart{
  width:380px!important;
  max-width:calc(100vw - 24px)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  padding:14px!important;
  overflow:hidden!important;
}
.lm-cart > b{
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:0 0 8px!important;
  margin:0!important;
  border-bottom:1px solid rgba(233,237,243,.95)!important;
}
.lm-cart #lm-cart-items{
  flex:1 1 auto!important;
  min-height:min(255px, calc(var(--lm-cart-available-h, 720px) - 305px))!important;
  max-height:calc(var(--lm-cart-available-h, 720px) - 305px)!important;
  overflow-y:auto!important;
  padding:0 4px 0 0!important;
  border-bottom:1px solid rgba(233,237,243,.95)!important;
}
.lm-cart #lm-cart-items .lm-cart-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto auto auto!important;
  gap:8px!important;
  align-items:center!important;
  min-height:46px!important;
  padding:8px 0!important;
  border-bottom:1px solid rgba(233,237,243,.78)!important;
  background:transparent!important;
}
.lm-cart-name{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  font-size:14px!important;
  font-weight:900!important;
  color:#172033!important;
}
.lm-cart-line strong{
  white-space:nowrap!important;
  font-size:12px!important;
  padding:5px 8px!important;
}
.lm-cart-price{
  white-space:nowrap!important;
  font-size:13px!important;
  font-weight:900!important;
  color:#667085!important;
  text-align:right!important;
}
.lm-cart-line button{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
}
.lm-cart-total-panel{
  flex:0 0 auto!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
  border:1px solid rgba(233,237,243,.95)!important;
  box-shadow:0 8px 22px rgba(16,24,40,.05)!important;
}
.lm-total-row{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:10px!important;
  align-items:end!important;
}
.lm-total-meta{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  gap:2px!important;
}
.lm-total-meta span{
  font-size:13px!important;
  color:#667085!important;
  font-weight:900!important;
  line-height:1.2!important;
}
.lm-total-meta small{
  font-size:13px!important;
  color:#0f8a4b!important;
  font-weight:950!important;
  line-height:1.25!important;
}
.lm-total-amount{
  font-size:24px!important;
  line-height:1!important;
  margin:0!important;
  text-align:right!important;
  color:#101828!important;
  white-space:nowrap!important;
}
.lm-cart-clear{
  margin-top:8px!important;
  width:100%!important;
  height:34px!important;
  border-radius:12px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  font-weight:900!important;
  color:#475467!important;
}
.lm-cart .lm-payment-select-box{
  flex:0 0 auto!important;
  gap:6px!important;
  padding-top:8px!important;
  margin:0!important;
}
.lm-cart .lm-payment-select-box label{
  line-height:1!important;
}
.lm-cart .lm-payment-select-box select{
  height:44px!important;
  border-radius:15px!important;
}
.lm-cart #lm-checkout{
  flex:0 0 auto!important;
  height:52px!important;
  border-radius:18px!important;
  margin-top:0!important;
}
.lm-cart-positioned,
body.lm-cart-open .lm-cart-positioned{
  max-height:var(--lm-cart-available-h, calc(100vh - 20px))!important;
}
body.lm-cart-collapsed .lm-cart-positioned{
  max-height:66px!important;
}
@media(max-width:640px){
  .lm-cart{width:calc(100vw - 20px)!important;padding:12px!important;}
  body.lm-cart-open .lm-cart #lm-cart-items,
  .lm-cart-positioned #lm-cart-items{
    min-height:min(235px, calc(var(--lm-cart-available-h, 680px) - 292px))!important;
    max-height:calc(var(--lm-cart-available-h, 680px) - 292px)!important;
  }
  .lm-cart #lm-cart-items .lm-cart-line{grid-template-columns:minmax(0,1fr) auto auto auto!important;}
  .lm-cart-price{grid-column:1 / -1;text-align:left!important;font-size:12px!important;margin-top:-3px!important;}
  .lm-total-row{grid-template-columns:1fr!important;}
  .lm-total-amount{text-align:left!important;font-size:23px!important;}
}
@media(max-width:390px){
  .lm-cart #lm-cart-items .lm-cart-line{grid-template-columns:minmax(0,1fr) auto auto!important;}
  .lm-cart-price{grid-column:1 / -1;}
}

/* v54: LifeMall PC 版舒適寬度，不再滿版貼邊 */
@media (min-width: 1200px){
  body:not(.lm-product-page) .lm-shell{
    width: min(80vw, 1360px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:not(.lm-product-page) .lm-hero,
  body:not(.lm-product-page) .lm-tabs,
  body:not(.lm-product-page) .lm-filter-panel,
  body:not(.lm-product-page) .lm-mobile-view-switch,
  body:not(.lm-product-page) .lm-products,
  body:not(.lm-product-page) .lm-pagination,
  body:not(.lm-product-page) .lm-control-cards{
    width: 100% !important;
  }
  body:not(.lm-product-page) .lm-hero{
    margin-top: 32px !important;
  }
  body:not(.lm-product-page) .lm-tabs{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (min-width: 900px) and (max-width:1199px){
  body:not(.lm-product-page) .lm-shell{
    width: min(90vw, 1080px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (min-width: 1200px){
  body:not(.lm-product-page) .lm-cart:not(.lm-cart-positioned){
    right: max(24px, calc((100vw - min(80vw, 1360px)) / 2 + 8px)) !important;
  }
}
@media (max-width: 899px){
  body:not(.lm-product-page) .lm-shell{
    width: auto !important;
    max-width: none !important;
  }
}

/* === v55 unified cart list/payment UX: mall.php + product.php === */
.lm-cart #lm-cart-items{
  min-height:156px!important; /* 約三筆商品高度 */
  max-height:156px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  padding-right:4px!important;
  scrollbar-width:thin;
}
.lm-cart #lm-cart-items::-webkit-scrollbar{width:6px;}
.lm-cart #lm-cart-items::-webkit-scrollbar-thumb{background:rgba(20,122,69,.28);border-radius:999px;}
.lm-cart #lm-cart-items .lm-cart-line{
  min-height:50px!important;
  grid-template-columns:minmax(0,1fr) auto auto auto auto!important;
  gap:7px!important;
}
.lm-cart-pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:0;
  margin:6px 0 4px;
}
.lm-cart-pager:empty{display:none;}
.lm-cart-pager button{
  border:1px solid var(--line);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  cursor:pointer;
}
.lm-cart-pager button:disabled{opacity:.35;cursor:not-allowed;}
.lm-cart-pager span{font-size:12px;color:#667085;font-weight:900;}
.lm-cart .lm-payment-select-box{
  border-top:1px solid var(--line)!important;
  margin:8px 0 8px!important;
  padding-top:8px!important;
  display:block!important;
  max-height:none!important;
  overflow:visible!important;
}
.lm-cart .lm-payment-select-box label{display:block!important;margin:0 0 6px!important;font-size:12px!important;font-weight:950!important;color:#475467!important;}
.lm-cart .lm-payment-select-box select{
  width:100%!important;
  height:46px!important;
  border:1px solid var(--line)!important;
  border-radius:15px!important;
  background:#fff!important;
  padding:0 14px!important;
  font-weight:900!important;
  color:#344054!important;
  outline:none!important;
}
.lm-cart-total-panel{margin:8px 0!important;padding:10px 12px!important;}
.lm-cart-positioned #lm-cart-items,
body.lm-cart-open .lm-cart-positioned #lm-cart-items{
  min-height:156px!important;
  max-height:156px!important;
}
@media(max-width:640px){
  .lm-cart #lm-cart-items,
  body.lm-cart-open .lm-cart #lm-cart-items,
  .lm-cart-positioned #lm-cart-items{
    min-height:146px!important;
    max-height:146px!important;
  }
  .lm-cart #lm-cart-items .lm-cart-line{grid-template-columns:minmax(0,1fr) auto auto auto!important;}
  .lm-cart-price{grid-column:auto!important;text-align:right!important;margin-top:0!important;}
}

/* === v56 mall product badge anti-overlap fix ===
   商品卡片標籤區改成正常流動 chip，不再絕對定位壓到來源/分類文字。 */
.lm-products .lm-product .lm-badges{
  position:relative!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  align-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  overflow:visible!important;
  padding:13px 16px 0!important;
  margin:0!important;
}
.lm-products .lm-product .lm-badges span,
.lm-products .lm-product .lm-badges .lm-kind-pill{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.2!important;
  margin:0!important;
}
.lm-products .lm-product .lm-badges .lm-kind-pill{
  order:-10!important;
  flex:0 0 auto!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.68)!important;
  box-shadow:0 8px 18px rgba(16,24,40,.12)!important;
  backdrop-filter:blur(14px);
}
.lm-products .lm-product .lm-badges span:not(.lm-kind-pill){
  flex:0 1 auto!important;
  background:#f8fafc!important;
}
.lm-products .lm-product .lm-badges span:nth-child(1):not(.lm-kind-pill){
  order:-8!important;
}
.lm-products .lm-product .lm-badges span:nth-child(3):not(.lm-kind-pill){
  order:-6!important;
}
.lm-products .lm-product .lm-badges span:nth-child(4):not(.lm-kind-pill){
  order:0!important;
  max-width:100%!important;
}
@media(max-width:640px){
  .lm-products .lm-product .lm-badges{
    padding:10px 10px 0!important;
    gap:6px!important;
    min-height:74px!important;
  }
  .lm-products .lm-product .lm-badges span,
  .lm-products .lm-product .lm-badges .lm-kind-pill{
    font-size:10px!important;
    padding:5px 8px!important;
    max-width:100%!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:start!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges .lm-kind-pill{
    grid-column:1!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges span:nth-child(3):not(.lm-kind-pill){
    grid-column:2!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges span:nth-child(1):not(.lm-kind-pill){
    grid-column:1 / -1!important;
    width:max-content!important;
    max-width:100%!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges span:nth-child(4):not(.lm-kind-pill){
    grid-column:1 / -1!important;
    width:max-content!important;
    max-width:100%!important;
  }
  body.lm-mobile-two-col .lm-products .lm-product .lm-badges span:nth-child(n+5):not(.lm-kind-pill){display:none!important;}
  body.lm-mobile-one-col .lm-products .lm-product .lm-badges{
    display:flex!important;
    min-height:0!important;
    padding:13px 14px 0!important;
  }
}

/* === v57 cart safe start position + red active badge ===
   預設回到 LOGO 旁邊，不壓右上方返回/訂單/登出選單；有商品時用紅色凸顯。 */
.lm-cart{
  z-index:10020!important;
}
.lm-cart .lm-cart-drag-handle{
  cursor:grab;
  user-select:none;
  touch-action:none;
}
.lm-cart.lm-cart-dragging .lm-cart-drag-handle{cursor:grabbing;}
.lm-cart-count{
  background:linear-gradient(135deg,#147a45,#c9a21c)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(20,122,69,.22)!important;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.lm-cart-count.has-items,
.lm-cart.has-cart-items .lm-cart-count{
  background:linear-gradient(135deg,#ff3b30,#d70015)!important;
  color:#fff!important;
  box-shadow:0 0 0 5px rgba(255,59,48,.16),0 14px 30px rgba(215,0,21,.30)!important;
  transform:scale(1.08);
}
.lm-cart.has-cart-items .lm-cart-count::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:2px solid rgba(255,59,48,.32);
  animation:lmCartRedPulse 1.45s ease-out infinite;
  pointer-events:none;
}
.lm-cart-count{position:relative!important;}
@keyframes lmCartRedPulse{
  0%{opacity:.75;transform:scale(.86)}
  100%{opacity:0;transform:scale(1.35)}
}
@media(min-width:981px){
  .lm-cart-positioned{
    max-width:min(360px, calc(100vw - 24px))!important;
  }
}

/* v58 order delete bin + import visibility */
.lm-admin-nav .lm-import-nav{border-color:rgba(21,144,82,.35)!important;box-shadow:0 12px 34px rgba(21,144,82,.12)!important;}
.lm-admin-nav .lm-delete-nav{border-color:rgba(255,59,48,.24)!important;background:linear-gradient(180deg,#fff,#fff7f6)!important;}
.lm-v58-order-bin-form{display:block;}
.lm-v58-delete-reason{height:44px;min-width:230px;border-radius:999px;border:1px solid rgba(208,213,221,.86);padding:0 14px;background:#fff;font-weight:800;color:#344054;}
.lm-v58-bin-btn{height:44px;border:0;border-radius:999px;padding:0 18px;background:linear-gradient(135deg,#ff3b30,#d70015);color:#fff;font-weight:1000;box-shadow:0 10px 26px rgba(215,0,21,.18);}
.lm-v58-bin-link{display:inline-flex;align-items:center;height:44px;border-radius:999px;padding:0 16px;background:#fff;border:1px solid rgba(208,213,221,.86);font-weight:900;color:#1d2939;text-decoration:none;}
.lm-v58-soft-delete{background:#fff8f7!important;border-color:#fecdca!important;}
.lm-v58-deleted-orders .lm-v42-head{border-color:rgba(255,59,48,.16);background:linear-gradient(180deg,#fff,#fff8f7);}
.lm-v58-bin-note{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:22px;padding:14px 18px;font-weight:900;margin:0 0 16px;}
.lm-v58-bin-list{display:grid;gap:12px;margin-bottom:22px;}
.lm-v58-bin-card{display:grid;grid-template-columns:2fr .8fr .8fr auto auto;gap:12px;align-items:center;background:#fff;border:1px solid rgba(208,213,221,.82);border-left:5px solid #d92d20;border-radius:24px;padding:16px;box-shadow:0 10px 30px rgba(16,24,40,.055);}
.lm-v58-bin-card b{display:block;color:#111827;font-size:17px;}.lm-v58-bin-card small,.lm-v58-bin-card span{display:block;color:#667085;font-weight:800;margin-top:4px;}.lm-v58-bin-card em{display:inline-flex;margin-top:8px;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:6px 10px;font-style:normal;font-weight:900;font-size:12px;}
.lm-v58-bin-card button{height:44px;border:0;border-radius:999px;padding:0 16px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:1000;white-space:nowrap;}.lm-v58-bin-card button.danger{background:linear-gradient(135deg,#ff3b30,#d70015);}
.lm-v58-log-panel{background:#fff;border:1px solid rgba(208,213,221,.82);border-radius:28px;padding:20px;box-shadow:0 14px 40px rgba(16,24,40,.06);}.lm-v58-log-list{display:grid;gap:8px;max-height:380px;overflow:auto;}.lm-v58-log-list>div{display:grid;grid-template-columns:1fr auto 2fr;gap:10px;align-items:center;border:1px solid rgba(208,213,221,.72);border-radius:16px;padding:10px 12px;background:#f8fafc;}.lm-v58-log-list span{font-weight:1000;color:#145a38}.lm-v58-log-list small{color:#667085;font-weight:800;}
.lm-v58-import-hero{border:2px solid rgba(21,144,82,.18)!important;box-shadow:0 20px 60px rgba(21,144,82,.10)!important;background:linear-gradient(180deg,#fff,#f8fcf9)!important;}
@media(max-width:900px){.lm-v58-bin-card{grid-template-columns:1fr;}.lm-v58-log-list>div{grid-template-columns:1fr}.lm-v58-delete-reason{width:100%;min-width:0}.lm-v58-bin-btn,.lm-v58-bin-link{width:100%;justify-content:center;}}

/* V59 商品清單左右分割 / 可收合 / 落地化按鈕 */
.lm-products-workspace{width:100%;}
.lm-products-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 18px;border:1px solid rgba(15,23,42,.08);border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 14px 34px rgba(15,23,42,.06);backdrop-filter:blur(18px);color:#607086;font-weight:800;}
.lm-products-toolbar span{font-size:14px;line-height:1.5;}
.lm-pane-toggle{border:0;border-radius:999px;padding:12px 18px;background:linear-gradient(135deg,#118943,#d6a90f);color:#fff;font-weight:900;box-shadow:0 12px 28px rgba(17,137,67,.22);cursor:pointer;white-space:nowrap;}
.lm-resizable-products{display:grid!important;grid-template-columns:minmax(260px,var(--product-left,36%)) 14px minmax(420px,1fr);gap:18px;align-items:start;}
.lm-resizable-products .lm-product-create-panel{min-width:0;overflow:hidden;transition:opacity .22s ease, transform .22s ease;}
.lm-splitter{width:14px;min-height:680px;border-radius:999px;background:linear-gradient(180deg,rgba(17,137,67,.18),rgba(214,169,15,.22));box-shadow:inset 0 0 0 1px rgba(17,137,67,.16);cursor:col-resize;position:relative;}
.lm-splitter:before{content:'⋮';position:sticky;top:45%;display:block;text-align:center;color:#148a48;font-size:22px;font-weight:900;line-height:40px;}
.lm-products-workspace.is-left-collapsed .lm-resizable-products{grid-template-columns:0 14px minmax(420px,1fr)!important;}
.lm-products-workspace.is-left-collapsed .lm-product-create-panel{opacity:0;pointer-events:none;transform:translateX(-12px);padding-left:0!important;padding-right:0!important;border-width:0!important;}
.lm-products-workspace.is-left-collapsed .lm-pane-toggle{background:linear-gradient(135deg,#d6a90f,#118943);}
.lm-inline-localize{display:inline-flex;margin:0;}
.lm-inline-localize button{border:0;border-radius:999px;padding:8px 10px;background:#fff7ed;color:#9a4b00;font-weight:900;box-shadow:inset 0 0 0 1px rgba(214,169,15,.35);cursor:pointer;white-space:nowrap;}
.lm-inline-localize button:hover{background:#fff0d3;}
.lm-row-actions{display:flex!important;gap:8px;align-items:center;flex-wrap:wrap;}
@media(max-width:900px){.lm-products-toolbar{align-items:flex-start;flex-direction:column}.lm-resizable-products,.lm-products-workspace.is-left-collapsed .lm-resizable-products{display:block!important}.lm-splitter{display:none}.lm-products-workspace.is-left-collapsed .lm-product-create-panel{display:none}.lm-product-list-panel{margin-top:18px}}

/* V61 product image delete + orphan image cleaner */
.lm-image-card{position:relative;}
.lm-image-delete-btn{
  position:absolute; top:86px; right:12px; z-index:8;
  width:34px; height:34px; border-radius:999px;
  border:2px solid rgba(255,255,255,.95);
  background:linear-gradient(135deg,#ff3b30,#c1121f);
  color:#fff; font-size:24px; font-weight:900; line-height:28px;
  display:none; align-items:center; justify-content:center;
  box-shadow:0 12px 26px rgba(193,18,31,.28),0 2px 8px rgba(0,0,0,.12);
  cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.lm-image-delete-btn.show{display:flex;}
.lm-image-delete-btn:hover{transform:scale(1.08) rotate(4deg); box-shadow:0 16px 34px rgba(193,18,31,.34),0 3px 10px rgba(0,0,0,.16);}
.lm-image-delete-btn:active{transform:scale(.94);}
.lm-image-cleaner{
  background:linear-gradient(180deg,#fff,#f8fbf8);
  border:1px solid rgba(21,128,61,.18);
}
.lm-cleaner-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:14px 0;}
.lm-danger-outline{
  border:1px solid rgba(220,38,38,.24);
  color:#b42318;
  background:#fff7f5;
  border-radius:18px;
  padding:13px 18px;
  font-weight:900;
  cursor:pointer;
}
.lm-danger-outline:hover{background:#ffe7e2;}
.lm-cleaner-result{
  border:1px dashed rgba(20,83,45,.22);
  background:rgba(255,255,255,.72);
  border-radius:18px;
  padding:14px 16px;
  color:#475569;
  line-height:1.65;
}
.lm-cleaner-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:10px;}
.lm-cleaner-list span{display:block;background:#f8fafc;border:1px solid #e5edf5;border-radius:14px;padding:8px 10px;font-size:13px;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.lm-cleaner-list small{color:#94a3b8;margin-left:6px;}
@media(max-width:720px){.lm-image-delete-btn{top:74px;right:10px;width:32px;height:32px;font-size:22px}.lm-cleaner-actions{display:grid}.lm-cleaner-actions button,.lm-cleaner-actions a{width:100%;}}

/* V62 商品清單欄位排序：除縮圖外皆可依數字/文字排序 */
.lm-product-admin-table thead th{white-space:nowrap;}
.lm-product-admin-table .lm-sort-head{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:7px 12px;
  border-radius:14px;
  color:#0f172a;
  text-decoration:none;
  transition:.18s ease;
  background:transparent;
}
.lm-product-admin-table .lm-sort-head:hover{
  background:rgba(20,137,77,.08);
  color:#128448;
  box-shadow:inset 0 0 0 1px rgba(20,137,77,.14);
}
.lm-product-admin-table .lm-sort-head.is-sorted{
  background:linear-gradient(135deg,rgba(20,137,77,.14),rgba(221,166,31,.16));
  color:#0b6b3b;
  box-shadow:inset 0 0 0 1px rgba(20,137,77,.22);
  font-weight:900;
}
.lm-product-admin-table .lm-sort-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#f3f6f8;
  color:#64748b;
  font-size:13px;
  line-height:1;
}
.lm-product-admin-table .lm-sort-head.is-sorted .lm-sort-mark{
  background:#14894d;
  color:#fff;
}
.lm-product-admin-table .lm-no-sort{color:#0f172a;}
@media(max-width:760px){
  .lm-product-admin-table .lm-sort-head{padding:6px 8px;gap:5px;}
  .lm-product-admin-table .lm-sort-mark{width:19px;height:19px;font-size:12px;}
}

/* === V63 single cart circle + small mobile logo === */
html body.lm-cart-collapsed #lm-cart,html body:not(.lm-cart-open) #lm-cart{
  border:0!important;background:transparent!important;box-shadow:none!important
}
html body.lm-cart-collapsed #lm-cart>b,html body:not(.lm-cart-open) #lm-cart>b{
  position:relative!important;background:transparent!important;box-shadow:none!important
}
html body.lm-cart-collapsed #lm-cart .lm-cart-title-icon,
html body:not(.lm-cart-open) #lm-cart .lm-cart-title-icon{display:none!important}
html body.lm-cart-collapsed #lm-cart-toggle,html body:not(.lm-cart-open) #lm-cart-toggle{
  position:absolute!important;inset:0!important;background:#fff url("categories/cart.svg") center/29px 29px no-repeat!important;
  color:transparent!important;box-shadow:0 8px 24px rgba(15,23,42,.18)!important
}
@media(max-width:760px){
  .lm-apple-toolbar{
    grid-template-columns:32px minmax(0,1fr) 38px 38px!important;
    gap:6px!important;padding:8px!important
  }
  .lm-apple-logo{
    grid-column:1!important;grid-row:1!important;display:flex!important;width:32px!important;height:40px!important;
    min-width:32px!important;align-items:center!important;justify-content:center!important
  }
  .lm-apple-logo img{display:block!important;width:30px!important;height:30px!important;border-radius:8px!important;filter:none!important}
  .lm-apple-logo span{display:none!important}
  .lm-apple-search{grid-column:2!important;grid-row:1!important}
  .lm-mobile-header-cart{grid-column:3!important;grid-row:1!important}
  .lm-mobile-menu-btn{grid-column:4!important;grid-row:1!important}
  .lm-mobile-header-cart>span.lm-css-cart-icon{
    display:block!important;width:27px!important;height:27px!important;
    background:url("categories/cart.svg") center/contain no-repeat!important;filter:brightness(0) invert(1)!important
  }
}

/* V63 professional booking schedule system */
.lm-schedule-nav{border-color:rgba(124,58,237,.24)!important;background:linear-gradient(180deg,#fff,#fbf8ff)!important;}
.lm-schedule-admin{display:grid;gap:22px;max-width:1500px;margin:0 auto 60px;padding:0 18px;}
.lm-schedule-head{border-color:rgba(124,58,237,.18)!important;background:linear-gradient(180deg,#fff,#fbf8ff)!important;}
.lm-schedule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.lm-schedule-panel,.lm-schedule-editor{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid rgba(208,213,221,.82);border-radius:28px;box-shadow:0 16px 46px rgba(16,24,40,.06);padding:22px;}
.lm-schedule-panel h3,.lm-schedule-editor h3,.lm-schedule-list h3{margin:0 0 14px;color:#101828;font-size:22px;}
.lm-schedule-panel input,.lm-schedule-panel select,.lm-schedule-panel textarea,.lm-schedule-editor input,.lm-schedule-editor select,.lm-schedule-editor textarea{width:100%;border:1px solid rgba(208,213,221,.92);border-radius:16px;min-height:48px;padding:0 14px;background:#fff;color:#1d2939;font-weight:800;outline:none;box-shadow:0 8px 18px rgba(16,24,40,.03);}
.lm-schedule-panel textarea,.lm-schedule-editor textarea{padding:12px 14px;min-height:82px;resize:vertical;}
.lm-schedule-panel button,.lm-schedule-editor button{border:0;border-radius:18px;min-height:52px;padding:0 18px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:1000;box-shadow:0 12px 28px rgba(21,144,82,.2);cursor:pointer;}
.lm-schedule-panel{display:grid;gap:12px;}
.lm-check{display:flex!important;align-items:center;gap:10px;font-weight:900;color:#344054;}
.lm-check input{width:18px!important;min-height:18px!important;height:18px!important;accent-color:#159052;box-shadow:none!important;}
.lm-schedule-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.lm-schedule-form-grid label{display:grid;gap:7px;color:#344054;font-weight:900;}
.lm-schedule-list{background:#fff;border:1px solid rgba(208,213,221,.82);border-radius:28px;box-shadow:0 16px 46px rgba(16,24,40,.06);padding:22px;overflow:auto;}
.lm-schedule-list table{width:100%;border-collapse:separate;border-spacing:0;min-width:1080px;}
.lm-schedule-list th{font-size:13px;letter-spacing:.04em;color:#667085;text-align:left;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:14px 12px;}
.lm-schedule-list td{border-bottom:1px solid #eef2f7;padding:14px 12px;vertical-align:middle;color:#1d2939;font-weight:800;}
.lm-schedule-list td small{display:block;margin-top:5px;color:#667085;}
.lm-schedule-list tr:hover td{background:#fbfdfc;}
.lm-schedule-list .lm-danger-outline{border:1px solid rgba(220,38,38,.24);color:#b42318;background:#fff7f5;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer;}
.kind-draft{background:#f2f4f7!important;color:#344054!important}.kind-open{background:#ecfdf3!important;color:#087443!important}.kind-full{background:#fffaeb!important;color:#b54708!important}.kind-closed{background:#f8fafc!important;color:#475467!important}.kind-cancelled{background:#fef3f2!important;color:#b42318!important}
@media(max-width:1100px){.lm-schedule-grid,.lm-schedule-form-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:720px){.lm-schedule-admin{padding:0 12px}.lm-schedule-grid,.lm-schedule-form-grid{grid-template-columns:1fr}.lm-schedule-panel,.lm-schedule-editor,.lm-schedule-list{border-radius:22px;padding:16px;}}

/* V64 booking schedule report dashboard */
.lm-booking-report-admin{max-width:1480px;margin:0 auto 48px;padding:0 18px}.lm-booking-report-head{border-color:rgba(20,137,77,.18);background:linear-gradient(180deg,#fff,#f8fcf9)}.lm-booking-report-nav{border-color:rgba(20,137,77,.24)!important;background:linear-gradient(180deg,#fff,#f8fcf9)!important}.lm-report-filter{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;background:#fff;border:1px solid rgba(208,213,221,.82);border-radius:26px;padding:18px;margin:16px 0;box-shadow:0 12px 36px rgba(16,24,40,.06)}.lm-report-filter label{display:grid;gap:7px;color:#344054;font-weight:900}.lm-report-filter input,.lm-report-filter select{height:48px;border-radius:16px;border:1px solid rgba(208,213,221,.92);background:#fff;padding:0 12px;font-weight:800}.lm-report-filter button{border:0;border-radius:18px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:1000}.lm-report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.lm-report-kpis>div{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(208,213,221,.82);border-radius:24px;padding:18px;box-shadow:0 12px 34px rgba(16,24,40,.06)}.lm-report-kpis span{display:block;color:#667085;font-weight:900}.lm-report-kpis b{display:block;font-size:32px;color:#101828;margin-top:8px}.lm-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lm-report-card{background:#fff;border:1px solid rgba(208,213,221,.82);border-radius:28px;padding:20px;box-shadow:0 14px 40px rgba(16,24,40,.06)}.lm-report-card.wide{grid-column:1/-1}.lm-report-card h3{margin:0 0 14px}.lm-report-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #e8eef5;background:#f8fafc;border-radius:16px;padding:12px 14px;margin:8px 0}.lm-report-row b{color:#111827}.lm-report-row span{color:#145a38;font-weight:1000}.lm-report-row small{color:#667085;font-weight:800}.lm-booking-detail-list{margin-top:18px}.lm-booking-detail-list table small{display:block;color:#667085;font-weight:700;margin-top:4px}.lm-report-status-form{display:flex;gap:8px;align-items:center}.lm-report-status-form select{height:40px;border-radius:14px;border:1px solid #d0d5dd;background:#fff;padding:0 10px;font-weight:800}.lm-report-status-form button{height:40px;border:0;border-radius:14px;background:linear-gradient(135deg,#159052,#e0a916);color:#fff;font-weight:900;padding:0 12px}@media(max-width:980px){.lm-report-filter{grid-template-columns:1fr 1fr}.lm-report-kpis{grid-template-columns:1fr 1fr}.lm-report-grid{grid-template-columns:1fr}.lm-report-row{grid-template-columns:1fr}.lm-report-status-form{display:grid}.lm-booking-report-admin{padding:0 12px}}@media(max-width:620px){.lm-report-filter,.lm-report-kpis{grid-template-columns:1fr}}

/* V66 預訂課程營運月曆 */
.lm-booking-calendar-page{max-width:1480px;margin:0 auto 48px;padding:0 18px}.lm-booking-calendar-head{border-color:rgba(21,128,61,.18);background:linear-gradient(180deg,#fff,#f8fcf9)}
.lm-booking-calendar-filter{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;background:rgba(255,255,255,.9);border:1px solid rgba(208,213,221,.82);border-radius:26px;padding:16px;margin:0 0 16px;box-shadow:0 14px 38px rgba(16,24,40,.06)}
.lm-booking-calendar-filter label{display:grid;gap:7px;font-weight:900;color:#475467}.lm-booking-calendar-filter input,.lm-booking-calendar-filter select{height:48px;border:1px solid rgba(208,213,221,.92);border-radius:16px;padding:0 12px;background:#fff;font-weight:850}.lm-booking-calendar-filter button{border:0;border-radius:16px;background:linear-gradient(135deg,#159052,#d9a51c);color:#fff;font-weight:1000}
.lm-calendar-month-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 14px}.lm-calendar-month-nav a,.lm-calendar-month-nav b{border-radius:999px;padding:12px 18px;background:#fff;border:1px solid rgba(208,213,221,.82);box-shadow:0 10px 24px rgba(16,24,40,.05);text-decoration:none;color:#145a38;font-weight:1000}.lm-calendar-month-nav b{color:#101828;background:linear-gradient(180deg,#fff,#f8fafc)}
.lm-booking-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:0 0 18px}.lm-cal-week{text-align:center;font-weight:1000;color:#667085;padding:8px}.lm-cal-day{min-height:128px;border-radius:22px;padding:12px;text-decoration:none;color:#172033;background:#fff;border:1px solid rgba(208,213,221,.82);box-shadow:0 10px 24px rgba(16,24,40,.045);display:grid;align-content:start;gap:6px;transition:.18s ease}.lm-cal-day.empty{background:transparent;border:0;box-shadow:none}.lm-cal-day:hover{transform:translateY(-2px);border-color:rgba(21,128,61,.32);box-shadow:0 16px 36px rgba(16,24,40,.08)}.lm-cal-day.selected{outline:3px solid rgba(21,144,82,.2);border-color:#159052}.lm-cal-day.has-booking{background:linear-gradient(180deg,#fff,#f8fcf9)}.lm-cal-date{font-weight:1000;font-size:18px}.lm-cal-day b{font-size:25px;color:#159052}.lm-cal-day small{font-weight:850;color:#667085}.lm-cal-day em{font-style:normal;font-weight:1000;color:#9a6700;font-size:13px}
.lm-calendar-summary-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 20px}.lm-calendar-summary-cards div{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(208,213,221,.82);border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(16,24,40,.05)}.lm-calendar-summary-cards span{display:block;color:#667085;font-weight:900}.lm-calendar-summary-cards b{display:block;margin-top:6px;font-size:25px;color:#101828}
.lm-day-schedule-panel{background:rgba(255,255,255,.88);border:1px solid rgba(208,213,221,.82);border-radius:28px;padding:20px;box-shadow:0 16px 46px rgba(16,24,40,.07)}.lm-day-schedule-panel h3{margin:0 0 14px}.lm-day-course-card{border:1px solid rgba(208,213,221,.84);border-radius:24px;background:#fff;margin:0 0 12px;overflow:hidden}.lm-day-course-card summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:1.5fr 1fr auto;gap:12px;align-items:center;padding:16px;background:linear-gradient(180deg,#fff,#f8fbf9)}.lm-day-course-card summary::-webkit-details-marker{display:none}.lm-day-course-card summary b{font-size:18px;color:#101828}.lm-day-course-card summary span,.lm-day-course-card summary small{display:block;color:#667085;font-weight:850;margin-top:4px}.lm-day-course-card summary em{font-style:normal;color:#145a38;font-weight:1000}.lm-day-course-card summary strong{font-size:22px;color:#9a6700;white-space:nowrap}.lm-course-stats-line{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid rgba(208,213,221,.7)}.lm-course-stats-line span{border-radius:999px;background:#f8fafc;border:1px solid rgba(208,213,221,.7);padding:8px 12px;font-weight:900;color:#334155}.lm-booking-attendees{display:grid;gap:10px;padding:0 16px 16px}.lm-attendee-row{display:grid;grid-template-columns:1.3fr .8fr .8fr .7fr auto;gap:10px;align-items:end;border:1px solid rgba(208,213,221,.75);border-radius:18px;padding:12px;background:#fff}.lm-attendee-row b{display:block;color:#101828}.lm-attendee-row small{display:block;color:#667085;font-weight:750}.lm-attendee-row label{display:grid;gap:5px;font-size:12px;font-weight:900;color:#667085}.lm-attendee-row select,.lm-attendee-row input{height:42px;border:1px solid rgba(208,213,221,.9);border-radius:13px;padding:0 10px;background:#fff;font-weight:850}.lm-attendee-row button{height:42px;border:0;border-radius:13px;background:linear-gradient(135deg,#159052,#d9a51c);color:#fff;font-weight:1000}
.lm-msg.err{background:#fff1f1;color:#b42318;border:1px solid #fecdca;border-radius:18px;padding:12px 16px;font-weight:900;margin:12px 0}
@media(max-width:980px){.lm-booking-calendar-filter{grid-template-columns:1fr 1fr}.lm-calendar-summary-cards{grid-template-columns:1fr 1fr}.lm-day-course-card summary{grid-template-columns:1fr}.lm-attendee-row{grid-template-columns:1fr 1fr}.lm-attendee-row>div{grid-column:1/-1}}@media(max-width:640px){.lm-booking-calendar-page{padding:0 10px}.lm-booking-calendar-filter,.lm-calendar-summary-cards{grid-template-columns:1fr}.lm-booking-calendar-grid{gap:5px}.lm-cal-day{min-height:94px;border-radius:16px;padding:8px}.lm-cal-day b{font-size:18px}.lm-cal-day small,.lm-cal-day em{font-size:11px}.lm-calendar-month-nav{display:grid}.lm-attendee-row{grid-template-columns:1fr}}

/* V68 Booking Operation Center: course price / paid / unpaid / revenue */
.lm-booking-calendar-head{border-color:rgba(21,128,61,.18)!important;background:linear-gradient(180deg,#fff,#f8fcf9)!important;}
.lm-course-price-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.lm-course-price-line em{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;font-weight:950;font-style:normal;}
.lm-course-price-line em+em{background:#ecfdf3;border-color:#abefc6;color:#087443;}
.lm-day-course-card summary strong{display:grid!important;gap:4px;align-content:center;justify-items:end;color:#101828;min-width:132px;}
.lm-day-course-card summary strong span{font-size:12px;color:#667085;font-weight:900;letter-spacing:.08em;}
.lm-course-stats-line span:nth-last-child(-n+2){background:#f8fafc;border-color:#d0d5dd;color:#101828;}
.lm-course-stats-line span:nth-last-child(1){background:#ecfdf3;border-color:#abefc6;color:#087443;}
.lm-attendee-row input[name="paid_amount"]{font-weight:950;color:#101828;}
@media(max-width:760px){.lm-day-course-card summary strong{justify-items:start}.lm-course-price-line{display:grid;gap:6px}.lm-course-price-line em{width:max-content;max-width:100%;}}

/* V69 booking operation center: 24 hour daily timeline */
.lm-day-hour-timeline-panel{
  background:linear-gradient(180deg,#fff,#f8fbf9);
  border:1px solid rgba(20,137,77,.16);
  border-radius:28px;
  padding:22px;
  margin:18px 0;
  box-shadow:0 18px 52px rgba(16,24,40,.07);
}
.lm-hour-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.lm-hour-head h3{margin:4px 0 6px;font-size:24px}.lm-hour-head p{margin:0;color:#667085;font-weight:800;line-height:1.6}.lm-hour-head>b{display:inline-flex;align-items:center;justify-content:center;min-width:94px;height:48px;border-radius:999px;background:linear-gradient(135deg,#14894d,#d8aa15);color:#fff;box-shadow:0 12px 28px rgba(20,137,77,.2)}
.lm-hour-timeline{display:grid;gap:8px;max-height:720px;overflow:auto;padding-right:6px;scrollbar-width:thin}.lm-hour-row{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:stretch;border:1px solid rgba(208,213,221,.76);border-radius:18px;background:rgba(255,255,255,.78);padding:10px}.lm-hour-row.has-course{border-color:rgba(20,137,77,.28);background:linear-gradient(90deg,rgba(20,137,77,.08),#fff 26%)}.lm-hour-label{display:flex;flex-direction:column;justify-content:center;border-right:1px dashed rgba(148,163,184,.45);padding-right:12px}.lm-hour-label b{font-size:19px;color:#0f172a}.lm-hour-label small{color:#94a3b8;font-weight:800;margin-top:4px}.lm-hour-content{display:grid;gap:8px;align-items:center}.lm-hour-empty{color:#94a3b8;font-weight:800;padding:12px}.lm-hour-course-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid rgba(20,137,77,.18);border-radius:16px;background:#fff;padding:12px 14px;text-decoration:none;color:#0f172a;box-shadow:0 8px 22px rgba(16,24,40,.05)}.lm-hour-course-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(16,24,40,.08)}.lm-hour-course-card strong{display:block;font-size:16px}.lm-hour-course-card span{display:block;color:#667085;font-weight:800;margin-top:4px}.lm-hour-metrics{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.lm-hour-metrics em{font-style:normal;border-radius:999px;padding:7px 10px;font-weight:950;background:#f8fafc;border:1px solid rgba(208,213,221,.85);color:#334155}.lm-hour-metrics em:first-child{background:#ecfdf3;color:#087443;border-color:#abefc6}.lm-hour-metrics em:last-child{background:#fffbeb;color:#a16207;border-color:#fde68a}.lm-day-course-card{scroll-margin-top:24px}
@media(max-width:760px){.lm-day-hour-timeline-panel{padding:16px;border-radius:22px}.lm-hour-head{display:grid}.lm-hour-row{grid-template-columns:1fr}.lm-hour-label{border-right:0;border-bottom:1px dashed rgba(148,163,184,.45);padding:0 0 8px}.lm-hour-course-card{grid-template-columns:1fr}.lm-hour-metrics{justify-content:flex-start}.lm-hour-timeline{max-height:620px}}

/* V70 24小時時段顯示篩選：全部 / 有課 / 單選時間點 */
.lm-hour-filter-panel{margin:0 0 16px;padding:16px;border:1px solid rgba(208,213,221,.78);border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbf9);box-shadow:0 12px 30px rgba(16,24,40,.05)}
.lm-hour-filter-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.lm-hour-filter-title b{font-size:18px;color:#0f172a}.lm-hour-filter-title span{color:#667085;font-weight:800;line-height:1.55;text-align:right}.lm-hour-filter-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.lm-hour-filter-actions button{border:1px solid rgba(20,137,77,.18);background:#fff;border-radius:999px;padding:10px 14px;font-weight:950;color:#14532d;cursor:pointer}.lm-hour-filter-actions button:hover{background:#ecfdf3}.lm-hour-dot-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.lm-hour-dot{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:1px solid rgba(208,213,221,.86);border-radius:999px;background:#fff;color:#344054;font-weight:900;cursor:pointer;position:relative;transition:.18s ease}.lm-hour-dot input{position:absolute;opacity:0;pointer-events:none}.lm-hour-dot i{width:10px;height:10px;border-radius:999px;background:#cbd5e1;box-shadow:0 0 0 4px rgba(203,213,225,.22)}.lm-hour-dot.has-course i{background:#14894d;box-shadow:0 0 0 4px rgba(20,137,77,.16)}.lm-hour-dot em{font-style:normal;font-size:11px;background:#fffbeb;color:#a16207;border:1px solid #fde68a;border-radius:999px;padding:2px 6px}.lm-hour-dot.checked{background:linear-gradient(135deg,#14894d,#d8aa15);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(20,137,77,.20)}.lm-hour-dot.checked i{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.25)}.lm-hour-dot.checked em{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.35)}.lm-hour-filter-state{margin-top:12px;border-radius:16px;background:#f8fafc;border:1px dashed rgba(148,163,184,.48);padding:10px 12px;color:#475569;font-weight:900}.lm-hour-row.is-hidden-by-hour{display:none!important}
@media(max-width:900px){.lm-hour-filter-title{display:grid}.lm-hour-filter-title span{text-align:left}.lm-hour-dot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){.lm-hour-dot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lm-hour-dot{font-size:12px;min-height:38px}}

/* V71 captured sale price display */
.lm-course-price-line em:nth-child(3){background:#fff7ed!important;border-color:#fed7aa!important;color:#9a3412!important;font-weight:1000!important;}
.lm-course-stats-line span:first-child + span + span + span + span + span + span{background:#f0fdf4!important;border-color:#bbf7d0!important;color:#166534!important;}

/* V74 公司場館/MLS 聯賣 scope */
.lm-company-scope-filter select{height:46px;border-radius:999px;border:1px solid rgba(208,213,221,.82);padding:0 16px;background:#fff;font-weight:900;color:#344054;box-shadow:0 10px 24px rgba(16,24,40,.06)}
.lm-schedule-scope-box{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;margin:0 0 16px;padding:14px 16px;border:1px solid rgba(21,144,82,.18);background:linear-gradient(135deg,rgba(21,144,82,.06),rgba(224,169,22,.08));border-radius:22px}.lm-schedule-scope-box label{font-weight:900;color:#344054}.lm-schedule-scope-box select{width:100%;height:46px;border-radius:16px;border:1px solid #d0d7e2;padding:0 12px;background:#fff;font-weight:900}.lm-mls-check{border:1px solid rgba(21,144,82,.18);background:#fff;border-radius:999px;padding:10px 14px!important;color:#14532d!important;font-weight:950!important;white-space:nowrap}.lm-mls-check input{accent-color:#159052}.lm-scope-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.lm-mls-badge,.lm-company-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:1000;line-height:1}.lm-mls-badge{background:linear-gradient(135deg,#0f8a4b,#d4a017);color:#fff;box-shadow:0 8px 18px rgba(21,144,82,.14)}.lm-company-badge{background:#f8fafc;border:1px solid #e2e8f0;color:#475569}.lm-inline-mls{display:inline-flex;margin:0}.lm-inline-mls label{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:999px;background:#f0fdf4;border:1px solid rgba(21,144,82,.22);color:#14532d;font-weight:950;white-space:nowrap}.lm-inline-mls input{accent-color:#159052}@media(max-width:760px){.lm-schedule-scope-box{grid-template-columns:1fr}.lm-company-scope-filter{width:100%}.lm-company-scope-filter select{width:100%}.lm-mls-check{white-space:normal;border-radius:18px}}

/* V76 Booking Engine Core：商品型態 / 固定課程 / 自由時段 / 混合模式 */
.lm-course-select-block,.lm-free-timeslot-block{border:1px solid rgba(21,144,82,.16);background:rgba(255,255,255,.74);border-radius:22px;padding:14px 16px;margin:12px 0;box-shadow:0 10px 28px rgba(16,24,40,.04)}
.lm-free-timeslot-block{border-color:rgba(214,169,15,.24);background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,248,231,.75))}
.lm-free-timeslot-block h3{margin:0 0 10px;font-size:18px;color:#1f2937}.booking-mode-course .lm-free-timeslot-block{display:none}.booking-mode-timeslot .lm-course-select-block{display:none}.booking-mode-hybrid .lm-course-select-block,.booking-mode-hybrid .lm-free-timeslot-block{display:block}.booking-mode-none .lm-course-select-block{display:none}
.lm-schedule-scope-box select[name="company_id"],select[name="booking_mode"],select[name="booking_subtype"]{font-weight:900;color:#1f2937}.lm-mls-check{background:linear-gradient(135deg,rgba(21,144,82,.10),rgba(214,169,15,.10));border:1px solid rgba(21,144,82,.20);border-radius:18px;padding:10px 12px!important}
.lm-v76-note{border:1px solid rgba(21,144,82,.18);background:linear-gradient(135deg,#fff,#f6fbf7);border-radius:22px;padding:16px 18px;margin:14px 0;color:#475569;font-weight:850;line-height:1.7}.lm-v76-note b{color:#0f8a4b}

/* V77 自由時段即時可預訂區段 / 拉桿選時 */
.lm-free-timeslot-block{border:1px solid rgba(20,137,77,.18);background:linear-gradient(135deg,rgba(20,137,77,.055),rgba(214,169,15,.08));border-radius:24px;padding:16px;margin-top:14px}.lm-room-line{font-weight:900;color:#475569;margin:4px 0 12px}.lm-timeslot-range{background:#fff;border:1px solid rgba(208,213,221,.85);border-radius:22px;padding:16px;margin:12px 0;box-shadow:0 12px 30px rgba(16,24,40,.05)}.lm-range-top,.lm-range-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.lm-range-top b{font-size:18px}.lm-range-top span{font-weight:1000;color:#0f766e}.lm-range-bars{display:grid;gap:10px;margin:16px 0}.lm-range-bars input[type=range]{width:100%;accent-color:#15803d}.lm-range-summary span{font-weight:900;color:#475569}.lm-range-summary strong{font-size:24px;color:#111827}.lm-available-segments{background:rgba(255,255,255,.72);border:1px dashed rgba(20,137,77,.28);border-radius:20px;padding:14px;margin-top:10px}.lm-available-segments>b{display:block;margin-bottom:10px;color:#14532d}.lm-available-segments div{display:flex;flex-wrap:wrap;gap:8px}.lm-available-segments button{border:0;border-radius:999px;padding:9px 14px;background:linear-gradient(135deg,#15803d,#d6a90f);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(21,128,61,.16)}.lm-available-segments .empty{display:inline-flex;border-radius:999px;background:#fff4f4;border:1px solid #fecaca;color:#b42318;padding:9px 14px;font-weight:900}.lm-available-segments small{display:block;margin-top:10px;color:#667085;font-weight:850;line-height:1.5}@media(max-width:720px){.lm-range-top,.lm-range-summary{display:grid}.lm-range-summary strong{font-size:22px}.lm-available-segments div{display:grid}.lm-available-segments button{width:100%;}}

/* V78 前台/後台時段佔用圖：像機位圖一樣看出已預訂區間 */
.lm-timeslot-occupancy{margin-top:14px;border:1px dashed rgba(20,137,77,.26);border-radius:22px;background:rgba(255,255,255,.7);padding:14px;}
.lm-occupancy-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.lm-occupancy-head b{font-size:16px;color:#14532d}.lm-occupancy-head span{font-size:13px;color:#64748b;font-weight:800}
.lm-timeslot-board{display:grid;gap:10px;}
.lm-board-scale{display:flex;justify-content:space-between;color:#64748b;font-weight:900;font-size:12px;padding:0 3px;}
.lm-board-track{position:relative;height:54px;border-radius:18px;background:linear-gradient(90deg,#ecfdf3,#f8fafc);border:1px solid #dbe7df;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);}
.lm-board-track .free,.lm-board-track .busy{position:absolute;top:9px;height:36px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;}
.lm-board-track .free{background:linear-gradient(135deg,#18a058,#d6a90f);color:#fff;border:0;cursor:pointer;box-shadow:0 8px 20px rgba(24,160,88,.16);}
.lm-board-track .busy{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;z-index:3;box-shadow:0 8px 24px rgba(185,28,28,.22);}
.lm-board-track .busy.schedule{background:linear-gradient(135deg,#f97316,#b45309)}
.lm-board-list{display:grid;gap:8px;}
.lm-board-reserved{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;border:1px solid #fecaca;background:#fff7f7;color:#7f1d1d;border-radius:16px;padding:10px 12px;font-weight:850;}
.lm-board-reserved b{font-size:13px}.lm-board-reserved span{font-size:13px;color:#7f1d1d}.lm-board-empty{display:block;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;padding:10px;color:#64748b;font-weight:850}
.lm-hour-course-card.is-timeslot{border-color:#fecaca!important;background:linear-gradient(180deg,#fff,#fff7f7)!important;}
.lm-hour-course-card.is-timeslot strong:before{content:'已預訂 ';display:inline-flex;margin-right:6px;color:#b91c1c;font-weight:1000;}
@media(max-width:720px){.lm-occupancy-head{display:grid}.lm-board-track{height:62px}.lm-board-track .free,.lm-board-track .busy{font-size:11px}.lm-board-reserved{grid-template-columns:1fr}}

/* V79 front timeslot privacy + claim-to-pay button */
.lm-board-reserved.claimable{
  border-color:rgba(217,119,6,.22)!important;
  background:linear-gradient(180deg,#fffaf0,#fff7ed)!important;
}
.lm-board-reserved .lm-claim-slot{
  margin-left:auto;
  border:0;
  border-radius:999px;
  padding:9px 14px;
  background:linear-gradient(135deg,#d97706,#f59e0b);
  color:#fff;
  font-weight:1000;
  box-shadow:0 10px 22px rgba(217,119,6,.22);
  cursor:pointer;
  white-space:nowrap;
}
.lm-board-reserved.claimable em{
  display:block;
  width:100%;
  margin-top:6px;
  color:#9a3412;
  font-size:12px;
  font-weight:900;
  font-style:normal;
}
.lm-board-reserved span{
  color:#991b1b;
  font-weight:900;
}
.lm-timeslot-board .busy.preorder{background:linear-gradient(135deg,#dc2626,#ef4444)!important;}
.lm-timeslot-board .busy.schedule{background:linear-gradient(135deg,#f59e0b,#d97706)!important;}
@media(max-width:720px){
  .lm-board-reserved .lm-claim-slot{width:100%;margin:8px 0 0;}
}

/* v79 hotfix: preorder mobile full width + correct start/end range fill direction */
@media(max-width:720px){
  body.lm-product-page .lm-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:8px 8px 24px!important;
  }
  body.lm-product-page .lm-topline{
    margin:0 0 12px!important;
    width:100%!important;
    border-radius:18px!important;
  }
  body.lm-product-page .lm-booking-page,
  body.lm-product-page .lm-preorder-page{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body.lm-product-page .lm-booking-card,
  body.lm-product-page .lm-preorder-card{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border-radius:18px!important;
    padding:18px 14px!important;
  }
  body.lm-product-page .lm-booking-time-panel,
  body.lm-product-page .lm-free-timeslot-block,
  body.lm-product-page .lm-timeslot-range,
  body.lm-product-page .lm-available-segments,
  body.lm-product-page .lm-timeslot-occupancy{
    width:100%!important;
    max-width:none!important;
  }
}
@media(max-width:420px){
  body.lm-product-page .lm-shell{padding-left:4px!important;padding-right:4px!important;}
  body.lm-product-page .lm-booking-card,
  body.lm-product-page .lm-preorder-card{border-radius:16px!important;padding-left:12px!important;padding-right:12px!important;}
}
.lm-range-bars input[type=range]{
  -webkit-appearance:none!important;
  appearance:none!important;
  height:8px!important;
  border-radius:999px!important;
  outline:none!important;
  accent-color:transparent!important;
  background:#d1d5db!important;
}
.lm-range-bars input[type=range]::-webkit-slider-runnable-track{
  height:8px!important;
  border-radius:999px!important;
  background:transparent!important;
}
.lm-range-bars input[type=range]::-moz-range-track{
  height:8px!important;
  border-radius:999px!important;
  background:transparent!important;
}
.lm-range-bars input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none!important;
  appearance:none!important;
  width:24px!important;
  height:24px!important;
  border-radius:999px!important;
  background:#15803d!important;
  border:3px solid #fff!important;
  box-shadow:0 5px 14px rgba(21,128,61,.28)!important;
  margin-top:-8px!important;
}
.lm-range-bars input[type=range]::-moz-range-thumb{
  width:24px!important;
  height:24px!important;
  border-radius:999px!important;
  background:#15803d!important;
  border:3px solid #fff!important;
  box-shadow:0 5px 14px rgba(21,128,61,.28)!important;
}
#lmStartRange{
  background:linear-gradient(to right,#d1d5db 0 var(--range-pct,0%),#15803d var(--range-pct,0%) 100%)!important;
}
#lmEndRange{
  background:linear-gradient(to right,#15803d 0 var(--range-pct,0%),#d1d5db var(--range-pct,0%) 100%)!important;
}

/* V80：宅即辦後台 Mac-style 一列式分組 MENU */
.lm-admin{padding-top:18px!important;}
.zjb-admin-topbar{
  width:min(1480px,calc(100% - 48px));
  margin:0 auto 22px;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  border:1px solid rgba(208,213,221,.82);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 16px 40px rgba(16,24,40,.06);
  position:sticky;
  top:12px;
  z-index:9800;
  backdrop-filter:blur(18px);
}
.zjb-admin-brand{display:flex;align-items:baseline;gap:14px;min-width:280px;white-space:nowrap;}
.zjb-admin-brand b{font-size:24px;font-weight:1000;letter-spacing:-.04em;color:#101828;}
.zjb-admin-brand small{font-size:13px;font-weight:850;color:#667085;}
.zjb-admin-menu{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1;min-width:0;}
.zjb-menu-group{position:relative;}
.zjb-menu-group>button{
  appearance:none;border:0;cursor:pointer;
  height:44px;padding:0 16px;border-radius:999px;
  background:#f8fafc;color:#263245;font-weight:950;font-size:15px;
  box-shadow:inset 0 0 0 1px rgba(208,213,221,.78);
  transition:.18s ease;
}
.zjb-menu-group>button:after{content:'⌄';font-size:13px;margin-left:8px;color:#98a2b3;}
.zjb-menu-group.on>button,.zjb-menu-group:hover>button{
  background:linear-gradient(135deg,#118943,#d7a90e);
  color:#fff;box-shadow:0 12px 28px rgba(17,137,67,.18);
}
.zjb-menu-group.on>button:after,.zjb-menu-group:hover>button:after{color:rgba(255,255,255,.86);}
.zjb-menu-drop{
  position:absolute;right:auto;left:0;top:calc(100% + 10px);
  width:230px;padding:8px;border-radius:20px;
  background:#fff;border:1px solid rgba(208,213,221,.9);
  box-shadow:0 22px 60px rgba(16,24,40,.16);
  display:none;z-index:9999;
}
.zjb-menu-drop-right{left:auto;right:0;}
.zjb-menu-group:hover .zjb-menu-drop,.zjb-menu-group:focus-within .zjb-menu-drop{display:grid;gap:4px;}
.zjb-menu-drop a{
  display:flex;align-items:center;min-height:42px;padding:9px 12px;border-radius:14px;
  color:#1d2939;text-decoration:none;font-weight:900;font-size:14px;
}
.zjb-menu-drop a:hover{background:#f1f8f4;color:#087443;}
.zjb-mobile-menu{display:none;margin:0;}
.zjb-mobile-menu select{
  width:100%;height:48px;border:1px solid rgba(208,213,221,.9);border-radius:16px;
  background:#fff;color:#1d2939;font-weight:950;padding:0 14px;
}
/* 移除舊大型後台 Dashboard 選單視覺殘留 */
.lm-admin-hero,.lm-admin-nav,.lm-admin-status-card{display:none!important;}
.lm-admin .lm-kicker:empty{display:none!important;}
.lm-admin h1:empty,.lm-admin h2:empty{display:none!important;}
@media(max-width:980px){
  .zjb-admin-topbar{width:calc(100% - 24px);top:8px;align-items:stretch;flex-direction:column;padding:12px;border-radius:20px;gap:10px;}
  .zjb-admin-brand{min-width:0;white-space:normal;display:grid;gap:2px;}
  .zjb-admin-brand b{font-size:21px;}
  .zjb-admin-brand small{font-size:12px;}
  .zjb-admin-menu{display:none;}
  .zjb-mobile-menu{display:block;}
}
@media(min-width:981px) and (max-width:1250px){
  .zjb-admin-brand small{display:none;}
  .zjb-admin-brand{min-width:220px;}
  .zjb-menu-group>button{padding:0 13px;}
}


/* V80 UX Product First */
.lm-hero-compact{padding:14px 20px!important}
.lm-hero-grid{display:grid!important;grid-template-columns:1fr auto!important;gap:12px!important;align-items:center!important}
.lm-kicker,.lm-compact-copy{display:none!important}
.lm-hero h1{font-size:32px!important;margin:4px 0 10px!important}
.lm-search{max-width:620px!important}
.lm-search input{height:48px!important}
.lm-member-mini{
padding:12px 18px!important;
min-width:auto!important;
border-radius:18px!important;
}
.lm-member-mini b{display:none!important}
.lm-member-mini small{display:none!important}
.lm-member-mini strong:before{content:'⭐ ';font-size:18px}
.lm-member-mini strong{font-size:22px!important}
@media(min-width:900px){
.lm-hero{min-height:auto!important}
}


/* === V80 Product First UX 精修：縮上方、Logo 放大、搜尋橫向、購物車精簡不置頂 === */
body{background:#f6f7f9!important;}
.lm-shell{max-width:100%!important;padding:8px 24px 80px!important;}
.lm-hero-compact{
  max-width:100%!important;
  margin:0 0 12px!important;
  padding:16px 22px 18px!important;
  border-radius:28px!important;
  box-shadow:0 12px 36px rgba(16,24,40,.07)!important;
}
.lm-hero-compact .lm-topbar{min-height:58px!important;}
.lm-logo-link{gap:14px!important;}
.lm-logo-link img{height:56px!important;width:56px!important;object-fit:contain!important;padding:6px!important;border-radius:16px!important;}
.lm-logo-link span{font-size:24px!important;font-weight:950!important;letter-spacing:-.03em!important;color:#137545!important;}
.lm-hero-compact nav a{padding:9px 15px!important;font-size:15px!important;}
.lm-hero-compact .lm-hero-grid{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:10px 0 4px!important;
}
.lm-hero-compact .lm-kicker,.lm-hero-compact .lm-compact-copy{display:none!important;}
.lm-hero-compact h1{
  font-size:clamp(26px,2.5vw,38px)!important;
  line-height:1.05!important;
  margin:0 0 10px!important;
  letter-spacing:-.045em!important;
}
.lm-hero-compact .lm-search{
  display:grid!important;
  grid-template-columns:minmax(280px,720px) 116px!important;
  align-items:center!important;
  gap:12px!important;
  max-width:860px!important;
  margin-top:0!important;
}
.lm-hero-compact .lm-search input{
  height:50px!important;
  border-radius:18px!important;
  padding:0 18px!important;
  font-size:16px!important;
}
.lm-hero-compact .lm-search button{
  height:50px!important;
  min-width:116px!important;
  border-radius:18px!important;
  padding:0 20px!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:nowrap!important;
  letter-spacing:.08em!important;
  font-size:16px!important;
  background:linear-gradient(135deg,#14864d,#c89f2a)!important;
}
.lm-member-mini{
  min-width:150px!important;
  padding:14px 18px!important;
  border-radius:22px!important;
  text-align:center!important;
  align-self:center!important;
}
.lm-member-mini b,.lm-member-mini small{display:none!important;}
.lm-member-mini strong{font-size:25px!important;margin:0!important;color:#167348!important;}
.lm-member-mini strong:before{content:'⭐ ';font-size:22px;}
.lm-main-tabs{
  margin:0!important;
  padding:14px 0 12px!important;
  background:transparent!important;
  position:relative!important;
  top:auto!important;
}
.lm-main-tabs a{padding:12px 22px!important;font-size:17px!important;}

/* 購物車預設縮成右下角小膠囊，不再鎖在上面；點「展開」才看明細 */
body:not(.lm-cart-open) .lm-cart,
body.lm-cart-collapsed .lm-cart{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  width:auto!important;
  min-width:132px!important;
  max-width:calc(100vw - 28px)!important;
  max-height:58px!important;
  padding:9px 10px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 16px 40px rgba(16,24,40,.16)!important;
}
body:not(.lm-cart-open) .lm-cart #lm-cart-items,
body:not(.lm-cart-open) .lm-cart .lm-payment-box,
body:not(.lm-cart-open) .lm-cart #lm-checkout,
body:not(.lm-cart-open) .lm-cart-pager,
body:not(.lm-cart-open) .lm-cart-total-panel,
body.lm-cart-collapsed .lm-cart #lm-cart-items,
body.lm-cart-collapsed .lm-cart .lm-payment-box,
body.lm-cart-collapsed .lm-cart #lm-checkout,
body.lm-cart-collapsed .lm-cart-pager,
body.lm-cart-collapsed .lm-cart-total-panel{display:none!important;}
body:not(.lm-cart-open) .lm-cart>b,
body.lm-cart-collapsed .lm-cart>b{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:0!important;
  white-space:nowrap!important;
}
body:not(.lm-cart-open) .lm-cart>b:before,
body.lm-cart-collapsed .lm-cart>b:before{content:'🛒';font-size:21px;line-height:1;}
body:not(.lm-cart-open) .lm-cart-count,
body.lm-cart-collapsed .lm-cart-count{margin:0!important;min-width:26px!important;height:26px!important;font-size:13px!important;}
body:not(.lm-cart-open) .lm-cart-toggle,
body.lm-cart-collapsed .lm-cart-toggle{
  display:inline-flex!important;
  height:34px!important;
  padding:0 13px!important;
  border-radius:999px!important;
  background:#147a45!important;
  color:#fff!important;
  border-color:#147a45!important;
  font-size:13px!important;
}
body:not(.lm-cart-collapsed):not(.lm-cart-open) .lm-cart-toggle{display:inline-flex!important;}
body:not(.lm-cart-collapsed) .lm-cart{
  right:18px!important;
  bottom:18px!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
}

@media(min-width:981px){
  body:not(.lm-cart-collapsed) .lm-cart{
    position:fixed!important;
    right:18px!important;
    bottom:18px!important;
    top:auto!important;
    left:auto!important;
    transform:none!important;
    width:min(360px,calc(100vw - 36px))!important;
    max-height:min(72vh,640px)!important;
    border-radius:26px!important;
  }
}
@media(max-width:760px){
  .lm-shell{padding:8px 10px 96px!important;}
  .lm-hero-compact{padding:12px!important;border-radius:22px!important;}
  .lm-topbar{flex-direction:column!important;align-items:flex-start!important;gap:10px!important;}
  .lm-logo-link img{height:48px!important;width:48px!important;}
  .lm-logo-link span{font-size:21px!important;}
  .lm-hero-compact .lm-hero-grid{grid-template-columns:1fr!important;gap:8px!important;padding-top:4px!important;}
  .lm-hero-compact h1{font-size:26px!important;margin-bottom:8px!important;}
  .lm-hero-compact .lm-search{grid-template-columns:1fr 86px!important;gap:8px!important;}
  .lm-hero-compact .lm-search input,.lm-hero-compact .lm-search button{height:46px!important;border-radius:16px!important;font-size:15px!important;}
  .lm-hero-compact .lm-search button{min-width:86px!important;padding:0 12px!important;}
  .lm-member-mini{display:none!important;}
  .lm-main-tabs{padding:10px 0!important;}
  .lm-main-tabs a{padding:10px 17px!important;font-size:16px!important;}
  body.lm-cart-open .lm-cart{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    width:auto!important;
    max-height:78vh!important;
    transform:none!important;
  }
}

/* === V80 UX hotfix 20260608-2: LOGO標題層級、購物車正確收合/展開 === */
.lm-logo-link img{
  height:64px!important;
  width:64px!important;
  padding:7px!important;
  border-radius:18px!important;
}
.lm-logo-link span{
  font-size:26px!important;
  font-weight:900!important;
}
.lm-hero-compact h1{
  font-size:clamp(20px,1.7vw,27px)!important;
  font-weight:760!important;
  letter-spacing:-.03em!important;
  line-height:1.15!important;
  margin:2px 0 12px!important;
}

/* 購物車：預設只是一顆右下角小按鈕；按展開才打開明細，不再卡在上方，也不會整條橫在商品上 */
body.lm-cart-collapsed .lm-cart,
body:not(.lm-cart-open) .lm-cart{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  width:auto!important;
  min-width:118px!important;
  max-width:calc(100vw - 36px)!important;
  height:54px!important;
  max-height:54px!important;
  padding:8px 10px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:9999!important;
}
body.lm-cart-open .lm-cart{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  width:min(360px,calc(100vw - 36px))!important;
  height:auto!important;
  max-height:min(72vh,640px)!important;
  padding:18px!important;
  border-radius:26px!important;
  overflow:auto!important;
  z-index:9999!important;
}
body.lm-cart-open .lm-cart #lm-cart-items,
body.lm-cart-open .lm-cart .lm-payment-box,
body.lm-cart-open .lm-cart #lm-checkout,
body.lm-cart-open .lm-cart-pager,
body.lm-cart-open .lm-cart-total-panel{display:block!important;}
body.lm-cart-open .lm-cart>b{
  margin:0 0 12px!important;
  font-size:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.lm-cart-open .lm-cart>b:before{content:none!important;}
body.lm-cart-open .lm-cart-toggle{background:#147a45!important;color:#fff!important;border-color:#147a45!important;}

@media(max-width:760px){
  .lm-logo-link img{height:54px!important;width:54px!important;}
  .lm-logo-link span{font-size:22px!important;font-weight:900!important;}
  .lm-hero-compact h1{font-size:21px!important;font-weight:760!important;margin:0 0 9px!important;}
  body.lm-cart-open .lm-cart{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;max-height:78vh!important;}
}

/* === V81 cart drawer refined UX 20260608: sticky compact header/footer, scroll-only item area === */
body.lm-cart-open .lm-cart{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:0!important;
  width:min(380px,calc(100vw - 36px))!important;
  max-height:min(76vh,660px)!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 24px 70px rgba(16,24,40,.18)!important;
}
body.lm-cart-open .lm-cart>b{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  height:62px!important;
  min-height:62px!important;
  margin:0!important;
  padding:12px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(233,237,243,.9)!important;
  backdrop-filter:blur(14px)!important;
  font-size:18px!important;
  font-weight:880!important;
}
body.lm-cart-open .lm-cart>b::before{
  content:'🛒'!important;
  font-size:20px!important;
  margin-right:4px!important;
}
body.lm-cart-open .lm-cart-count{
  min-width:34px!important;
  height:34px!important;
  font-size:15px!important;
  margin-left:auto!important;
  background:#ef233c!important;
  box-shadow:0 0 0 8px rgba(239,35,60,.10)!important;
}
body.lm-cart-open .lm-cart-toggle{
  min-width:58px!important;
  height:36px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  font-size:14px!important;
  font-weight:950!important;
  background:#147a45!important;
  color:#fff!important;
  border-color:#147a45!important;
  box-shadow:none!important;
}
body.lm-cart-open .lm-cart #lm-cart-items{
  flex:1 1 auto!important;
  display:block!important;
  min-height:140px!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding:12px 16px 10px!important;
  margin:0!important;
  border-bottom:0!important;
  overscroll-behavior:contain!important;
}
body.lm-cart-open .lm-cart #lm-cart-items .lm-cart-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto auto!important;
  gap:7px!important;
  align-items:center!important;
  padding:10px 0!important;
  min-height:48px!important;
  border-bottom:1px solid rgba(233,237,243,.9)!important;
}
body.lm-cart-open .lm-cart-name{
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:850!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.lm-cart-open .lm-cart-line strong{
  font-size:12px!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#eef8f1!important;
  color:#147a45!important;
  white-space:nowrap!important;
}
body.lm-cart-open .lm-cart-price{
  font-size:13px!important;
  font-weight:900!important;
  color:#344054!important;
  white-space:nowrap!important;
}
body.lm-cart-open .lm-cart-line button{
  width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  font-size:16px!important;
  line-height:1!important;
  background:#fff!important;
}
body.lm-cart-open .lm-cart-pager{
  flex:0 0 auto!important;
  padding:0 16px 8px!important;
  margin:0!important;
}
body.lm-cart-open .lm-cart-total-panel,
body.lm-cart-open .lm-payment-select-box,
body.lm-cart-open .lm-cart .lm-payment-box,
body.lm-cart-open .lm-cart #lm-checkout{
  flex:0 0 auto!important;
}
body.lm-cart-open .lm-cart-total-panel{
  margin:0 16px 8px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px solid #e9edf3!important;
}
body.lm-cart-open .lm-total-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.lm-cart-open .lm-total-meta span,
body.lm-cart-open .lm-total-meta small{
  display:inline!important;
  font-size:12px!important;
  line-height:1.25!important;
}
body.lm-cart-open .lm-total-meta small::before{content:'｜';color:#98a2b3;margin:0 2px;}
body.lm-cart-open .lm-total-amount{
  font-size:22px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.lm-cart-open .lm-cart-clear{
  width:100%!important;
  height:34px!important;
  margin-top:8px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.lm-cart-open .lm-payment-select-box,
body.lm-cart-open .lm-cart .lm-payment-box{
  margin:0 16px 8px!important;
  padding:0!important;
  border-top:0!important;
  display:grid!important;
  gap:6px!important;
  max-height:70px!important;
  overflow:visible!important;
}
body.lm-cart-open .lm-payment-select-box label{
  font-size:12px!important;
  margin:0!important;
}
body.lm-cart-open .lm-payment-select-box select{
  height:42px!important;
  border-radius:15px!important;
  padding:0 12px!important;
  font-size:14px!important;
}
body.lm-cart-open .lm-cart #lm-checkout{
  position:sticky!important;
  bottom:0!important;
  z-index:5!important;
  width:calc(100% - 32px)!important;
  height:54px!important;
  min-height:54px!important;
  margin:0 16px 16px!important;
  border-radius:18px!important;
  font-size:16px!important;
  font-weight:950!important;
  background:linear-gradient(135deg,#087a42,#e5a81d)!important;
  box-shadow:0 14px 30px rgba(8,122,66,.20)!important;
}
body.lm-cart-open .lm-mobile-cart-summary{display:none!important;}
body.lm-cart-open .lm-cart-empty{padding:16px 0!important;text-align:center!important;}

@media(max-width:760px){
  body.lm-cart-open .lm-cart{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    width:auto!important;
    max-height:80vh!important;
  }
  body.lm-cart-open .lm-cart>b{
    height:58px!important;
    min-height:58px!important;
    padding:10px 14px!important;
    font-size:17px!important;
  }
  body.lm-cart-open .lm-cart #lm-cart-items{padding:10px 14px!important;}
  body.lm-cart-open .lm-cart #lm-cart-items .lm-cart-line{
    grid-template-columns:minmax(0,1fr) auto auto!important;
  }
  body.lm-cart-open .lm-cart-price{
    grid-column:1 / -1!important;
    text-align:left!important;
    margin-top:-4px!important;
  }
  body.lm-cart-open .lm-cart-total-panel,
  body.lm-cart-open .lm-payment-select-box,
  body.lm-cart-open .lm-cart .lm-payment-box{margin-left:14px!important;margin-right:14px!important;}
  body.lm-cart-open .lm-cart #lm-checkout{width:calc(100% - 28px)!important;margin:0 14px 14px!important;}
}


/* === V81.1 ProductFirst: top menu points inline + compact back-to-top === */
.lm-topbar-productfirst{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
.lm-topbar-right{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  min-width:0!important;
  position:relative!important;
  z-index:2!important;
}
.lm-topbar-right nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.lm-member-inline{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  min-width:0!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  box-shadow:0 8px 20px rgba(16,24,40,.06)!important;
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(230,234,240,.95)!important;
  white-space:nowrap!important;
}
.lm-member-inline b{
  display:inline!important;
  max-width:92px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:13px!important;
  font-weight:750!important;
  color:#344054!important;
}
.lm-member-inline small{display:none!important;}
.lm-member-inline strong{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  color:#147a45!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:1!important;
}
.lm-member-inline strong:before{content:'⭐';font-size:14px!important;margin-right:4px!important;}
.lm-hero-compact .lm-hero-grid{
  grid-template-columns:1fr!important;
  padding:16px 10px 10px!important;
}
.lm-hero-compact h1{
  font-size:24px!important;
  font-weight:680!important;
  letter-spacing:-.035em!important;
  margin:0 0 10px!important;
}
.lm-hero-compact .lm-search{
  margin-top:8px!important;
  max-width:860px!important;
}
.lm-hero-compact .lm-search button{
  min-width:116px!important;
  height:52px!important;
  border-radius:18px!important;
}
.lm-logo-link span{font-weight:900!important;}
.lm-scroll-top{
  right:24px!important;
  bottom:calc(104px + env(safe-area-inset-bottom))!important;
  width:38px!important;
  height:38px!important;
  border:1px solid rgba(230,234,240,.98)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;
  color:#147a45!important;
  font-size:17px!important;
  font-weight:850!important;
  box-shadow:0 10px 24px rgba(16,24,40,.13)!important;
  backdrop-filter:blur(14px)!important;
}
.lm-scroll-top.show{transform:translateY(0) scale(1)!important;}
.lm-scroll-top:hover{transform:translateY(-2px) scale(1.02)!important;}
body.lm-cart-open .lm-scroll-top{
  bottom:calc(112px + env(safe-area-inset-bottom))!important;
}
@media(max-width:980px){
  .lm-topbar-productfirst{align-items:flex-start!important;}
  .lm-topbar-right{flex:1 1 auto!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
  .lm-member-inline{display:inline-flex!important;}
}
@media(max-width:640px){
  .lm-topbar-productfirst{flex-direction:column!important;align-items:stretch!important;gap:10px!important;}
  .lm-topbar-right{width:100%!important;justify-content:space-between!important;gap:8px!important;}
  .lm-topbar-right nav{gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;max-width:100%!important;}
  .lm-topbar-right nav a{flex:0 0 auto!important;padding:9px 12px!important;font-size:13px!important;}
  .lm-member-inline{flex:0 0 auto!important;padding:8px 10px!important;}
  .lm-member-inline b{display:none!important;}
  .lm-member-inline strong{font-size:14px!important;}
  .lm-hero-compact .lm-hero-grid{padding:12px 2px 4px!important;}
  .lm-hero-compact h1{font-size:20px!important;font-weight:650!important;}
  .lm-scroll-top{right:18px!important;bottom:calc(92px + env(safe-area-inset-bottom))!important;width:36px!important;height:36px!important;font-size:16px!important;}
}

/* V82：預訂拉霸不可跨越已佔用時段；灰色斜線區為不可預訂 */
.lm-range-bars{
  gap:14px!important;
}
.lm-range-row{
  position:relative!important;
  width:100%!important;
  height:28px!important;
  display:flex!important;
  align-items:center!important;
}
.lm-range-row input[type=range]{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
}
.lm-range-blocked-overlay{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:50%!important;
  height:12px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  overflow:hidden!important;
  pointer-events:none!important;
  z-index:3!important;
}
.lm-range-blocked-overlay i{
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  border-radius:999px!important;
  background:repeating-linear-gradient(135deg,rgba(100,116,139,.72) 0 7px,rgba(226,232,240,.72) 7px 14px)!important;
  box-shadow:inset 0 0 0 1px rgba(100,116,139,.18)!important;
}
.lm-range-row input[type=range]::-webkit-slider-thumb{position:relative!important;z-index:5!important;}
.lm-range-row input[type=range]::-moz-range-thumb{position:relative!important;z-index:5!important;}
.lm-available-segments small::before{
  content:'已佔用時段會以斜線阻斷，拉霸只能停在可預訂區段內。';
  display:block;
  color:#14532d;
  font-weight:950;
  margin-bottom:4px;
}

/* V83：分段式時段拉霸 - 已佔用區斜線阻斷，可點選任一連續綠色區段再拖拉起訖 */
.lm-range-row{
  height:34px!important;
  border-radius:999px!important;
  overflow:visible!important;
}
.lm-range-row input[type=range]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:34px!important;
  opacity:.98!important;
  background:transparent!important;
  pointer-events:auto!important;
}
.lm-range-row input[type=range]::-webkit-slider-runnable-track{
  height:14px!important;
  background:transparent!important;
}
.lm-range-row input[type=range]::-moz-range-track{
  height:14px!important;
  background:transparent!important;
}
.lm-range-free-overlay,
.lm-range-active-overlay,
.lm-range-blocked-overlay{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:50%!important;
  height:16px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  overflow:hidden!important;
}
.lm-range-free-overlay{
  z-index:1!important;
  background:#d1d7df!important;
  box-shadow:inset 0 0 0 1px rgba(100,116,139,.18)!important;
  pointer-events:auto!important;
}
.lm-range-free-overlay .lm-free-zone{
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  border:0!important;
  padding:0!important;
  border-radius:999px!important;
  cursor:pointer!important;
  background:linear-gradient(135deg,#16843f,#15803d)!important;
  opacity:.72!important;
}
.lm-range-free-overlay .lm-free-zone.active,
.lm-range-free-overlay .lm-free-zone:hover{
  opacity:1!important;
  filter:saturate(1.12)!important;
}
.lm-range-active-overlay{
  z-index:2!important;
  pointer-events:none!important;
}
.lm-range-active-overlay i{
  position:absolute!important;
  top:-5px!important;
  bottom:-5px!important;
  border-radius:999px!important;
  background:rgba(4,74,33,.78)!important;
  box-shadow:0 8px 18px rgba(4,74,33,.22)!important;
}
.lm-range-blocked-overlay{
  z-index:3!important;
  pointer-events:none!important;
  background:transparent!important;
}
.lm-range-blocked-overlay i{
  height:100%!important;
  background:repeating-linear-gradient(135deg,rgba(100,116,139,.78) 0 8px,rgba(226,232,240,.78) 8px 16px)!important;
}
.lm-range-row input[type=range]::-webkit-slider-thumb{
  position:relative!important;
  z-index:8!important;
  width:28px!important;
  height:28px!important;
  margin-top:-7px!important;
  background:#16843f!important;
  border:4px solid #fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.20)!important;
}
.lm-range-row input[type=range]::-moz-range-thumb{
  position:relative!important;
  z-index:8!important;
  width:28px!important;
  height:28px!important;
  background:#16843f!important;
  border:4px solid #fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.20)!important;
}
.lm-available-segments button.active-segment{
  box-shadow:0 0 0 3px rgba(21,128,61,.18),0 10px 20px rgba(21,128,61,.18)!important;
}

/* V84：預訂時間 UX 精簡版 - 上方線條顯示可/不可區間，下方只選開始時間與使用時長 */
.lm-preorder-page .lm-booking-time-panel{
  gap:12px!important;
}
.lm-preorder-page .lm-free-timeslot-block{
  border-radius:22px!important;
  padding:14px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(245,250,246,.86))!important;
}
.lm-preorder-page .lm-free-timeslot-block h3{
  font-size:18px!important;
  margin-bottom:6px!important;
}
.lm-preorder-page .lm-room-line{
  font-size:13px!important;
  line-height:1.45!important;
  margin-bottom:10px!important;
  color:#64748b!important;
}
.lm-preorder-page .lm-timeslot-range{
  padding:14px!important;
  border-radius:20px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.05)!important;
}
.lm-preorder-page .lm-range-top{
  margin-bottom:10px!important;
}
.lm-preorder-page .lm-range-top b{
  font-size:17px!important;
  font-weight:900!important;
}
.lm-preorder-page .lm-range-top span{
  font-size:16px!important;
}
.lm-availability-line{
  display:grid;
  gap:6px;
  margin:4px 0 12px;
}
.lm-availability-scale{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#94a3b8;
  font-size:12px;
  font-weight:850;
  padding:0 2px;
}
.lm-availability-track{
  position:relative;
  height:26px;
  border-radius:999px;
  background:#eef2f6;
  border:1px solid #d8dee8;
  overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}
.lm-availability-free,
.lm-availability-busy{
  position:absolute;
  top:0;
  height:100%;
  border:0;
}
.lm-availability-free{
  cursor:pointer;
  background:linear-gradient(135deg,#12843f,#159052);
  color:#fff;
  z-index:2;
}
.lm-availability-free i{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,0));
}
.lm-availability-free span{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
  opacity:.92;
  pointer-events:none;
}
.lm-availability-busy{
  z-index:3;
  background:repeating-linear-gradient(135deg,rgba(148,163,184,.62) 0 8px,rgba(255,255,255,.72) 8px 16px)!important;
  border-left:1px solid rgba(100,116,139,.28);
  border-right:1px solid rgba(100,116,139,.28);
}
.lm-time-picker-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:12px;
  align-items:end;
  margin-top:8px;
}
.lm-time-picker-row label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:13px;
  font-weight:950;
}
.lm-time-picker-row select{
  height:46px;
  border-radius:14px;
  border:1px solid #d8dee8;
  background:#fff;
  padding:0 14px;
  font-size:16px;
  font-weight:900;
  color:#0f172a;
}
.lm-duration-control{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  height:46px;
  border:1px solid #d8dee8;
  border-radius:14px;
  background:#fff;
  padding:0 12px;
}
.lm-duration-control input[type=range]{
  -webkit-appearance:none!important;
  appearance:none!important;
  width:100%!important;
  height:5px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#159052,#d6a90f)!important;
  outline:none!important;
}
.lm-duration-control input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none!important;
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:4px solid #159052!important;
  box-shadow:0 4px 12px rgba(21,144,82,.25)!important;
  margin-top:0!important;
}
.lm-duration-control input[type=range]::-moz-range-thumb{
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:4px solid #159052!important;
  box-shadow:0 4px 12px rgba(21,144,82,.25)!important;
}
.lm-duration-control b{
  min-width:72px;
  text-align:right;
  color:#14532d;
  font-size:14px;
  white-space:nowrap;
}
.lm-preorder-page .lm-range-summary{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid #eef2f7;
}
.lm-preorder-page .lm-range-summary span{
  font-size:16px!important;
}
.lm-preorder-page .lm-range-summary strong{
  font-size:24px!important;
}
.lm-preorder-page .lm-available-segments{
  padding:12px!important;
  border-radius:18px!important;
}
.lm-preorder-page .lm-available-segments>b{
  margin-bottom:8px!important;
}
.lm-preorder-page .lm-available-segments small{
  font-size:12px!important;
  margin-top:8px!important;
}
.lm-preorder-page .lm-timeslot-occupancy{
  padding:12px!important;
  border-radius:18px!important;
}
.lm-preorder-page .lm-occupancy-head span{
  font-size:12px!important;
}
.lm-board-list.compact{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.lm-board-list.compact .lm-board-reserved{
  display:inline-flex!important;
  grid-template-columns:none!important;
  gap:8px!important;
  padding:8px 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
}
.lm-board-list.compact .lm-board-reserved b,
.lm-board-list.compact .lm-board-reserved span{
  font-size:12px!important;
}
/* 我的訂單頁：跟首頁同一排精簡，不再大區塊塞會員與點數 */
.lm-order-hero-compact{
  padding:12px 18px!important;
  min-height:auto!important;
  border-radius:24px!important;
}
.lm-order-hero-compact .lm-topbar{
  margin:0!important;
  padding:0!important;
  min-height:52px!important;
}
.lm-order-title-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(226,232,240,.8);
  margin-top:8px;
  padding-top:10px;
}
.lm-order-title-line h1{
  margin:0!important;
  font-size:22px!important;
  letter-spacing:-.03em!important;
  font-weight:850!important;
}
.lm-order-title-line span{
  color:#64748b;
  font-size:13px;
  font-weight:850;
}
.lm-order-hero-compact .lm-member-inline{
  display:inline-flex!important;
  margin:0!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(16,24,40,.06)!important;
}
@media(max-width:720px){
  .lm-time-picker-row{grid-template-columns:1fr!important;gap:10px!important;}
  .lm-availability-track{height:24px!important;}
  .lm-availability-free span{display:none!important;}
  .lm-preorder-page .lm-range-top{display:grid!important;gap:4px!important;}
  .lm-preorder-page .lm-range-top span{font-size:15px!important;}
  .lm-order-hero-compact{padding:10px 12px!important;border-radius:18px!important;}
  .lm-order-hero-compact .lm-topbar{display:flex!important;gap:8px!important;}
  .lm-order-hero-compact nav{display:flex!important;overflow-x:auto!important;white-space:nowrap!important;gap:6px!important;}
  .lm-order-title-line{align-items:flex-start;flex-direction:column;gap:3px!important;}
  .lm-order-title-line h1{font-size:20px!important;}
}

/* V85：時間預訂區再精簡 - 細線區間、細拉霸、已選時段標籤 */
.lm-preorder-page .lm-free-timeslot-block{
  padding:10px 12px!important;
  border-radius:18px!important;
}
.lm-preorder-page .lm-free-timeslot-block h3{
  font-size:16px!important;
  margin:0 0 4px!important;
}
.lm-preorder-page .lm-room-line{
  display:none!important;
}
.lm-preorder-page .lm-booking-grid:has(#lmFreeDate){
  margin-bottom:8px!important;
}
.lm-preorder-page .lm-booking-grid:has(#lmFreeDate) label{
  max-width:260px!important;
}
.lm-preorder-page .lm-timeslot-range{
  padding:12px 14px!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
}
.lm-preorder-page .lm-range-top{
  margin-bottom:8px!important;
}
.lm-preorder-page .lm-range-top b{
  font-size:16px!important;
  font-weight:850!important;
}
.lm-preorder-page .lm-range-top span{
  font-size:15px!important;
  font-weight:900!important;
  color:#0f766e!important;
}
.lm-availability-line{
  gap:3px!important;
  margin:2px 0 10px!important;
}
.lm-availability-scale{
  font-size:11px!important;
  padding:0 1px!important;
}
.lm-availability-track{
  height:10px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  border:1px solid #dde5ee!important;
  overflow:visible!important;
  box-shadow:none!important;
}
.lm-availability-free,
.lm-availability-busy{
  top:0!important;
  height:10px!important;
  border-radius:999px!important;
}
.lm-availability-free{
  background:#168a45!important;
  box-shadow:0 0 0 1px rgba(22,138,69,.08)!important;
}
.lm-availability-free span,
.lm-availability-free i{
  display:none!important;
}
.lm-availability-free.is-active::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:14px;
  border-radius:999px;
  transform:translate(-50%,-50%);
  background:#fff;
  border:3px solid #168a45;
  box-shadow:0 4px 10px rgba(15,23,42,.15);
}
.lm-availability-busy{
  background:repeating-linear-gradient(135deg,rgba(148,163,184,.5) 0 5px,rgba(255,255,255,.78) 5px 10px)!important;
  border-left:0!important;
  border-right:0!important;
}
.lm-time-picker-row{
  grid-template-columns:210px 1fr!important;
  gap:10px!important;
  margin-top:10px!important;
}
.lm-time-picker-row label{
  font-size:12px!important;
  gap:5px!important;
}
.lm-time-picker-row select{
  height:40px!important;
  border-radius:13px!important;
  font-size:15px!important;
  padding:0 12px!important;
}
.lm-duration-control{
  height:40px!important;
  border-radius:13px!important;
  padding:0 10px!important;
  grid-template-columns:1fr 66px!important;
}
.lm-duration-control input[type=range]{
  height:4px!important;
  background:linear-gradient(90deg,#168a45,#d8a70c)!important;
}
.lm-duration-control input[type=range]::-webkit-slider-thumb{
  width:16px!important;
  height:16px!important;
  border-width:4px!important;
  box-shadow:0 3px 8px rgba(21,144,82,.22)!important;
}
.lm-duration-control input[type=range]::-moz-range-thumb{
  width:16px!important;
  height:16px!important;
  border-width:4px!important;
  box-shadow:0 3px 8px rgba(21,144,82,.22)!important;
}
.lm-duration-control b{
  min-width:58px!important;
  font-size:13px!important;
}
.lm-preorder-page .lm-range-summary{
  margin-top:8px!important;
  padding-top:8px!important;
}
.lm-preorder-page .lm-range-summary span{
  font-size:15px!important;
}
.lm-preorder-page .lm-range-summary strong{
  font-size:22px!important;
}
.lm-preorder-page .lm-available-segments{
  padding:10px 12px!important;
  border-radius:16px!important;
}
.lm-segment-title-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-bottom:8px!important;
}
.lm-segment-title-row>b{
  color:#14532d!important;
  font-size:15px!important;
  font-weight:900!important;
}
.lm-selected-time-label{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:800!important;
}
.lm-selected-time-label em{
  display:inline-flex!important;
  padding:7px 13px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#168a45,#d6a60d)!important;
  color:#fff!important;
  font-style:normal!important;
  font-size:13px!important;
  font-weight:950!important;
  box-shadow:0 8px 16px rgba(21,128,61,.14)!important;
}
.lm-preorder-page #lmFreeSegments{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
.lm-preorder-page #lmFreeSegments button{
  padding:8px 13px!important;
  min-height:0!important;
  border-radius:999px!important;
  font-size:13px!important;
  font-weight:900!important;
}
.lm-preorder-page #lmFreeSegments button.active-segment{
  background:linear-gradient(135deg,#168a45,#d6a60d)!important;
  color:#fff!important;
  box-shadow:0 8px 16px rgba(21,128,61,.14)!important;
}
.lm-preorder-page .lm-available-segments small{
  display:block!important;
  margin-top:7px!important;
  font-size:11.5px!important;
  line-height:1.55!important;
}
.lm-preorder-page .lm-timeslot-occupancy{
  margin-top:10px!important;
}
@media(max-width:720px){
  .lm-time-picker-row{grid-template-columns:1fr!important;}
  .lm-selected-time-label{width:100%!important;justify-content:space-between!important;}
}

/* V86：依照最終圖示調整 - 細時間軸、細使用時長拉霸、已選區塊置底 */
.lm-preorder-page .lm-timeslot-range{
  padding:10px 12px!important;
  border-radius:16px!important;
}
.lm-preorder-page .lm-range-top{
  margin-bottom:7px!important;
}
.lm-preorder-page .lm-range-top b{
  font-size:15px!important;
  font-weight:850!important;
}
.lm-preorder-page .lm-range-top span{
  font-size:14px!important;
  font-weight:900!important;
}
.lm-availability-line{
  gap:2px!important;
  margin:0 0 12px!important;
}
.lm-availability-scale{
  font-size:11px!important;
  line-height:1.1!important;
  padding:0 1px 2px!important;
}
.lm-availability-track{
  height:5px!important;
  min-height:5px!important;
  border:0!important;
  background:#e7edf4!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.lm-availability-free,
.lm-availability-busy{
  top:0!important;
  height:5px!important;
  min-height:5px!important;
  border-radius:999px!important;
}
.lm-availability-free{
  background:#168a45!important;
  box-shadow:none!important;
}
.lm-availability-busy{
  background:repeating-linear-gradient(135deg,rgba(148,163,184,.55) 0 4px,rgba(255,255,255,.85) 4px 8px)!important;
}
.lm-availability-free.is-active::after{
  width:13px!important;
  height:13px!important;
  border-width:3px!important;
}
.lm-time-picker-row{
  grid-template-columns:220px 1fr!important;
  gap:10px!important;
  margin-top:8px!important;
}
.lm-time-picker-row label{
  font-size:12px!important;
  gap:5px!important;
}
.lm-time-picker-row select{
  height:38px!important;
  border-radius:12px!important;
  font-size:15px!important;
}
.lm-duration-control{
  height:38px!important;
  border-radius:12px!important;
  grid-template-columns:1fr 60px!important;
  padding:0 10px!important;
  background:#fff!important;
}
.lm-duration-control input[type=range]{
  height:3px!important;
  background:linear-gradient(90deg,#168a45,#d6a60d)!important;
}
.lm-duration-control input[type=range]::-webkit-slider-thumb{
  width:13px!important;
  height:13px!important;
  border-width:3px!important;
  box-shadow:0 2px 8px rgba(21,128,61,.18)!important;
}
.lm-duration-control input[type=range]::-moz-range-thumb{
  width:13px!important;
  height:13px!important;
  border-width:3px!important;
  box-shadow:0 2px 8px rgba(21,128,61,.18)!important;
}
.lm-duration-control b{
  min-width:52px!important;
  font-size:13px!important;
}
.lm-preorder-page .lm-range-summary{
  margin-top:8px!important;
  padding-top:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.lm-preorder-page .lm-range-summary span{
  font-size:15px!important;
  color:#475569!important;
}
.lm-preorder-page .lm-range-summary strong{
  font-size:22px!important;
}
.lm-preorder-page .lm-available-segments{
  padding:10px 12px!important;
  border-radius:16px!important;
}
.lm-preorder-page .lm-available-segments > b,
.lm-segment-title-row > b{
  display:block!important;
  color:#14532d!important;
  font-size:15px!important;
  font-weight:900!important;
  margin-bottom:8px!important;
}
.lm-segment-title-row{
  display:block!important;
  margin:0!important;
}
.lm-segment-title-row .lm-selected-time-label{
  display:none!important;
}
.lm-preorder-page #lmFreeSegments{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-bottom:8px!important;
}
.lm-preorder-page #lmFreeSegments button{
  padding:7px 13px!important;
  border-radius:999px!important;
  font-size:13px!important;
  font-weight:900!important;
}
.lm-preorder-page .lm-available-segments small{
  display:block!important;
  margin:4px 0 0!important;
  font-size:11.5px!important;
  line-height:1.45!important;
}
.lm-selected-final-row{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  border-top:1px solid rgba(226,232,240,.95)!important;
  margin-top:10px!important;
  padding-top:10px!important;
}
.lm-selected-final-row span{
  color:#64748b!important;
  font-size:13px!important;
  font-weight:900!important;
}
.lm-selected-final-row em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 14px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#168a45,#d6a60d)!important;
  color:#fff!important;
  font-style:normal!important;
  font-size:13px!important;
  font-weight:950!important;
  box-shadow:0 8px 16px rgba(21,128,61,.12)!important;
}
@media(max-width:720px){
  .lm-time-picker-row{grid-template-columns:1fr!important;gap:8px!important;}
  .lm-preorder-page .lm-timeslot-range{padding:10px!important;}
  .lm-selected-final-row{justify-content:space-between!important;}
}


/* V87：修正預訂時間軸與使用時長拉霸粗細，首頁主分類置頂 */
.lm-preorder-page .lm-availability-track{
  height:9px!important;
  min-height:9px!important;
  border-radius:999px!important;
  background:#edf2f7!important;
  overflow:visible!important;
}
.lm-preorder-page .lm-availability-free,
.lm-preorder-page .lm-availability-busy{
  top:0!important;
  height:9px!important;
  min-height:9px!important;
  border-radius:999px!important;
}
.lm-preorder-page .lm-availability-busy{
  background:repeating-linear-gradient(135deg,rgba(148,163,184,.58) 0 5px,rgba(255,255,255,.95) 5px 10px)!important;
}
.lm-preorder-page .lm-availability-free.is-active::after{
  width:15px!important;
  height:15px!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  border:3px solid #15803d!important;
  background:#fff!important;
}
.lm-preorder-page .lm-availability-line{margin-bottom:14px!important;}
.lm-preorder-page .lm-duration-control{
  height:34px!important;
  border-radius:12px!important;
  background:#fff!important;
  border:1px solid #dbe3ee!important;
  grid-template-columns:1fr 58px!important;
}
.lm-preorder-page .lm-duration-control input[type=range]{
  -webkit-appearance:none!important;
  appearance:none!important;
  height:18px!important;
  background:transparent!important;
  cursor:pointer!important;
}
.lm-preorder-page .lm-duration-control input[type=range]::-webkit-slider-runnable-track{
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#168a45,#d6a60d)!important;
}
.lm-preorder-page .lm-duration-control input[type=range]::-moz-range-track{
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#168a45,#d6a60d)!important;
}
.lm-preorder-page .lm-duration-control input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none!important;
  width:12px!important;
  height:12px!important;
  margin-top:-4px!important;
  border:3px solid #168a45!important;
  background:#fff!important;
  border-radius:999px!important;
  box-shadow:0 2px 8px rgba(21,128,61,.18)!important;
}
.lm-preorder-page .lm-duration-control input[type=range]::-moz-range-thumb{
  width:12px!important;
  height:12px!important;
  border:3px solid #168a45!important;
  background:#fff!important;
  border-radius:999px!important;
  box-shadow:0 2px 8px rgba(21,128,61,.18)!important;
}
.lm-main-tabs{
  position:sticky!important;
  top:0!important;
  z-index:1200!important;
  background:rgba(248,250,252,.94)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  border-bottom:1px solid rgba(226,232,240,.88)!important;
  padding:10px 0!important;
  margin:0!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
.lm-main-tabs::-webkit-scrollbar{display:none!important;}
.lm-main-tabs a{
  flex:0 0 auto!important;
  min-width:58px!important;
  text-align:center!important;
}
.lm-mobile-view-switch{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
}
@media(max-width:720px){
  .lm-main-tabs{top:0!important;padding:8px 10px!important;margin-left:-10px!important;margin-right:-10px!important;}
  .lm-main-tabs a{min-width:52px!important;padding:10px 14px!important;font-size:15px!important;}
  .lm-mobile-view-switch{margin-top:8px!important;}
  .lm-preorder-page .lm-availability-track,
  .lm-preorder-page .lm-availability-free,
  .lm-preorder-page .lm-availability-busy{height:8px!important;min-height:8px!important;}
  .lm-preorder-page .lm-duration-control input[type=range]::-webkit-slider-runnable-track{height:3px!important;}
  .lm-preorder-page .lm-duration-control input[type=range]::-moz-range-track{height:3px!important;}
}

/* V88：商品首頁精簡商品優先版（接近 17Life / momo 手機瀏覽效率） */
body{
  background:#f6f7f8!important;
  color:#1f2937!important;
}
.lm-shell{
  max-width:1180px!important;
  padding:10px 14px 88px!important;
}
.lm-hero.lm-hero-compact{
  position:sticky!important;
  top:0!important;
  z-index:50!important;
  border-radius:0!important;
  margin:-10px -14px 0!important;
  padding:8px 14px 10px!important;
  border:0!important;
  border-bottom:1px solid #e8edf3!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 6px 18px rgba(16,24,40,.06)!important;
  backdrop-filter:blur(16px)!important;
  overflow:visible!important;
}
.lm-hero.lm-hero-compact:before{display:none!important;}
.lm-topbar-productfirst{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:40px!important;
}
.lm-logo-link{
  gap:6px!important;
  text-decoration:none!important;
  flex:0 0 auto!important;
}
.lm-logo-link img{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.lm-logo-link span{
  font-size:18px!important;
  font-weight:950!important;
  color:#087443!important;
  white-space:nowrap!important;
}
.lm-topbar-right{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.lm-hero nav{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  overflow:auto!important;
  justify-content:flex-end!important;
  scrollbar-width:none!important;
}
.lm-hero nav::-webkit-scrollbar{display:none!important;}
.lm-hero nav a{
  padding:6px 10px!important;
  font-size:12px!important;
  line-height:1!important;
  border-radius:999px!important;
  color:#475467!important;
  background:#fff!important;
  box-shadow:none!important;
}
.lm-member-inline{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
.lm-member-inline b{
  display:inline!important;
  font-size:12px!important;
  color:#667085!important;
  max-width:68px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.lm-member-inline strong{
  display:inline-flex!important;
  align-items:center!important;
  gap:2px!important;
  font-size:13px!important;
  color:#087443!important;
  font-weight:950!important;
}
.lm-member-inline strong:before{content:'⭐';font-size:13px;}
.lm-hero-grid{
  display:block!important;
  padding:8px 0 0!important;
}
.lm-hero h1{
  display:none!important;
}
.lm-search{
  max-width:none!important;
  margin:0!important;
  gap:8px!important;
  align-items:center!important;
}
.lm-search input{
  height:42px!important;
  min-height:42px!important;
  border-radius:999px!important;
  padding:0 14px!important;
  background:#f4f5f7!important;
  border:1px solid #eef1f5!important;
  font-size:15px!important;
  box-shadow:none!important;
}
.lm-search button{
  height:42px!important;
  min-width:64px!important;
  border-radius:999px!important;
  padding:0 16px!important;
  background:#14833f!important;
  box-shadow:none!important;
  font-size:14px!important;
}
.lm-main-tabs{
  position:sticky!important;
  top:101px!important;
  z-index:45!important;
  margin:0 -14px 8px!important;
  padding:8px 14px!important;
  gap:8px!important;
  background:rgba(246,247,248,.96)!important;
  border-bottom:1px solid #e8edf3!important;
  backdrop-filter:blur(16px)!important;
}
.lm-main-tabs a{
  padding:8px 13px!important;
  min-width:46px!important;
  text-align:center!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#344054!important;
  border:1px solid #e8edf3!important;
  box-shadow:none!important;
  font-size:14px!important;
}
.lm-main-tabs a.on{
  background:#111827!important;
  color:#fff!important;
  border-color:#111827!important;
}
.lm-filter-panel{
  margin:0 0 8px!important;
  padding:10px!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
  border:1px solid #e8edf3!important;
}
.lm-filter-panel>div{padding:8px!important;border-radius:14px!important;}
.lm-filter-panel b{font-size:13px!important;}
.lm-chips{gap:7px!important;}
.lm-chips a{
  padding:7px 10px!important;
  font-size:12px!important;
  box-shadow:none!important;
  border-radius:999px!important;
}
.lm-mobile-view-switch,
.lm-note-cards{
  display:none!important;
}
.lm-products{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
}
.lm-product{
  min-height:0!important;
  padding:0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #edf0f4!important;
  box-shadow:none!important;
  transition:none!important;
}
.lm-product:hover{
  transform:none!important;
  box-shadow:0 6px 18px rgba(16,24,40,.06)!important;
}
.lm-img{
  height:auto!important;
  aspect-ratio:1/1!important;
  border-radius:0!important;
  background:#f3f4f6!important;
}
.lm-img img{
  object-fit:cover!important;
}
.lm-badges{
  order:3!important;
  display:block!important;
  margin:0 10px 5px!important;
  color:#98a2b3!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.lm-badges span{
  display:none!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  font-size:11px!important;
  color:#98a2b3!important;
  font-weight:700!important;
}
.lm-badges span:first-child,
.lm-badges span:nth-child(3){display:inline!important;}
.lm-badges span:first-child:after{content:' · ';}
.lm-product h3{
  order:2!important;
  min-height:39px!important;
  margin:9px 10px 4px!important;
  font-size:14px!important;
  line-height:1.38!important;
  font-weight:750!important;
  letter-spacing:0!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.lm-title-link{text-decoration:none!important;color:#111827!important;}
.lm-product p,
.lm-meta{
  display:none!important;
}
.lm-price{
  order:4!important;
  margin:0 10px 10px!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  gap:5px!important;
  min-height:23px!important;
}
.lm-price del{
  font-size:12px!important;
  color:#b8bec8!important;
}
.lm-price strong{
  font-size:18px!important;
  color:#e53935!important;
  letter-spacing:-.02em!important;
}
.lm-kind-price strong{
  font-size:14px!important;
  color:#14833f!important;
}
.lm-kind-price span{
  display:none!important;
}
.lm-product-actions{
  order:5!important;
  display:flex!important;
  gap:6px!important;
  padding:0 10px 10px!important;
  margin:0!important;
}
.lm-product-actions .lm-view{
  display:none!important;
}
.lm-add,
.lm-action-link{
  width:100%!important;
  min-height:34px!important;
  border-radius:999px!important;
  padding:8px 10px!important;
  background:#14833f!important;
  color:#fff!important;
  font-size:13px!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.lm-home-pagination{
  margin:14px 0!important;
  padding:10px!important;
  border-radius:16px!important;
  background:#fff!important;
  border:1px solid #e8edf3!important;
  box-shadow:none!important;
}
.lm-home-pagination a,
.lm-home-pagination span{font-size:13px!important;}
.lm-cart{
  box-shadow:0 10px 30px rgba(16,24,40,.12)!important;
}
@media(max-width:1180px){
  .lm-products{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:780px){
  .lm-shell{padding:0 8px 82px!important;}
  .lm-hero.lm-hero-compact{
    margin:0 -8px!important;
    padding:7px 10px 8px!important;
  }
  .lm-topbar-productfirst{gap:8px!important;}
  .lm-logo-link span{font-size:16px!important;}
  .lm-logo-link img{width:30px!important;height:30px!important;}
  .lm-topbar-right nav a:nth-child(1),
  .lm-topbar-right nav a:nth-child(3){display:none!important;}
  .lm-hero nav a{font-size:11px!important;padding:6px 8px!important;}
  .lm-member-inline b{display:none!important;}
  .lm-search input{height:38px!important;min-height:38px!important;font-size:14px!important;}
  .lm-search button{height:38px!important;min-width:54px!important;font-size:13px!important;padding:0 12px!important;}
  .lm-main-tabs{
    top:84px!important;
    margin:0 -8px 8px!important;
    padding:7px 8px!important;
    gap:7px!important;
  }
  .lm-main-tabs a{
    min-width:44px!important;
    padding:7px 12px!important;
    font-size:14px!important;
  }
  .lm-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.lm-mobile-one-col .lm-products,
  body.lm-mobile-two-col .lm-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .lm-product{border-radius:12px!important;}
  .lm-product h3{
    margin:8px 8px 3px!important;
    font-size:13px!important;
    min-height:36px!important;
  }
  .lm-badges{margin:0 8px 4px!important;}
  .lm-badges span{font-size:10px!important;}
  .lm-price{margin:0 8px 8px!important;}
  .lm-price strong{font-size:17px!important;}
  .lm-price del{font-size:11px!important;}
  .lm-product-actions{padding:0 8px 8px!important;}
  .lm-add,.lm-action-link{min-height:30px!important;font-size:12px!important;padding:6px 9px!important;}
  .lm-filter-panel{margin-bottom:8px!important;padding:8px!important;}
}

/* === V89：商品首頁極簡 Header + 商品卡去除大字型態標題 === */
.lm-hero-v89{
  padding:8px 12px 0!important;
}
.lm-hero-v89 .lm-v89-searchbar{
  min-height:44px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
}
.lm-hero-v89 .lm-logo-link img{
  width:32px!important;
  height:32px!important;
  border-radius:9px!important;
}
.lm-hero-v89 .lm-logo-link span{
  font-size:16px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
.lm-search-inline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 52px!important;
  gap:6px!important;
  margin:0!important;
  width:100%!important;
}
.lm-search-inline input{
  height:34px!important;
  min-height:34px!important;
  border-radius:999px!important;
  padding:0 12px!important;
  font-size:13px!important;
  background:#f5f6f7!important;
  border:1px solid #eceff3!important;
}
.lm-search-inline button{
  height:34px!important;
  min-width:52px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.lm-hero-v89 .lm-main-tabs-v89{
  position:static!important;
  top:auto!important;
  margin:4px -12px 0!important;
  padding:6px 10px!important;
  border-top:1px solid #f0f2f5!important;
  border-bottom:1px solid #e8edf3!important;
  background:rgba(255,255,255,.96)!important;
  display:flex!important;
  gap:6px!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
.lm-hero-v89 .lm-main-tabs-v89::-webkit-scrollbar{display:none!important;}
.lm-hero-v89 .lm-main-tabs-v89 a{
  flex:1 0 auto!important;
  min-width:42px!important;
  padding:6px 10px!important;
  font-size:13px!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
.lm-products{
  margin-top:8px!important;
}
.lm-product .lm-badges{
  margin:7px 8px 2px!important;
  display:flex!important;
  gap:4px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.lm-product .lm-badges span{
  display:none!important;
  flex:0 0 auto!important;
  max-width:70px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding:2px 5px!important;
  border-radius:999px!important;
  background:#f5f6f7!important;
  color:#667085!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:650!important;
}
.lm-product .lm-badges span:first-child,
.lm-product .lm-badges span:nth-child(2),
.lm-product .lm-badges span:nth-child(3){display:inline-block!important;}
.lm-product .lm-badges span:first-child:after{content:''!important;}
.lm-product h3{
  margin:4px 8px 5px!important;
  font-size:13px!important;
  line-height:1.32!important;
  min-height:34px!important;
  font-weight:700!important;
}
.lm-kind-price{
  min-height:0!important;
  margin:0 8px 7px!important;
}
.lm-kind-price strong{
  font-size:13px!important;
  color:#e53935!important;
  font-weight:800!important;
}
.kind-card-ad .lm-price,
.kind-card-booking .lm-price{
  display:none!important;
}
.kind-card-ad .lm-product-actions,
.kind-card-booking .lm-product-actions,
.kind-card-preorder .lm-product-actions{
  padding-top:0!important;
}
@media(max-width:780px){
  .lm-shell{padding-top:0!important;}
  .lm-hero.lm-hero-compact.lm-hero-v89{
    margin:0 -8px!important;
    padding:6px 8px 0!important;
  }
  .lm-hero-v89 .lm-v89-searchbar{min-height:40px!important;gap:6px!important;}
  .lm-hero-v89 .lm-logo-link img{width:28px!important;height:28px!important;}
  .lm-hero-v89 .lm-logo-link span{font-size:14px!important;}
  .lm-search-inline{grid-template-columns:minmax(0,1fr) 46px!important;gap:5px!important;}
  .lm-search-inline input{height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 10px!important;}
  .lm-search-inline button{height:32px!important;min-width:46px!important;font-size:12px!important;padding:0 8px!important;}
  .lm-hero-v89 .lm-main-tabs-v89{margin:4px -8px 0!important;padding:5px 7px!important;gap:5px!important;}
  .lm-hero-v89 .lm-main-tabs-v89 a{min-width:38px!important;padding:5px 9px!important;font-size:13px!important;}
  .lm-product .lm-badges{margin:6px 7px 1px!important;gap:3px!important;}
  .lm-product .lm-badges span{font-size:9px!important;padding:2px 4px!important;max-width:54px!important;}
  .lm-product h3{margin:4px 7px 4px!important;font-size:12.5px!important;min-height:33px!important;}
  .lm-product-actions{padding:0 7px 7px!important;}
}

/* === V91：Apple / Mac style 商品首頁工具列，不再是大方塊，也不遮住商品 === */
body{background:#f5f6f7!important;}
.lm-shell{max-width:1360px!important;padding:10px 18px 88px!important;}
.lm-hero.lm-hero-compact.lm-hero-v89{
  position:sticky!important;top:0!important;z-index:120!important;margin:0 0 12px!important;padding:8px 14px 9px!important;
  border-radius:0 0 22px 22px!important;border:0!important;border-bottom:1px solid rgba(208,213,221,.75)!important;
  background:rgba(255,255,255,.82)!important;box-shadow:0 8px 22px rgba(16,24,40,.055)!important;
  backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important;overflow:visible!important;
}
.lm-hero.lm-hero-compact.lm-hero-v89:before{display:none!important;}
.lm-v91-toolbar{display:grid!important;grid-template-columns:auto minmax(360px,1fr) auto!important;align-items:center!important;gap:14px!important;min-height:54px!important;width:100%!important;}
.lm-v91-toolbar .lm-logo-link{display:inline-flex!important;align-items:center!important;gap:10px!important;min-width:max-content!important;}
.lm-v91-toolbar .lm-logo-link img{width:42px!important;height:42px!important;padding:4px!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 14px rgba(16,24,40,.07)!important;}
.lm-v91-toolbar .lm-logo-link span{font-size:22px!important;font-weight:950!important;letter-spacing:-.03em!important;color:#087443!important;}
.lm-v91-toolbar .lm-search-inline{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;gap:10px!important;width:100%!important;max-width:none!important;margin:0!important;}
.lm-v91-toolbar .lm-search-inline input{height:46px!important;min-height:46px!important;border-radius:999px!important;padding:0 22px!important;font-size:16px!important;background:rgba(248,250,252,.96)!important;border:1px solid rgba(208,213,221,.9)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)!important;}
.lm-v91-toolbar .lm-search-inline button{height:46px!important;min-width:78px!important;border-radius:999px!important;padding:0 18px!important;font-size:15px!important;font-weight:900!important;background:linear-gradient(135deg,#14834f,#c8a016)!important;color:#fff!important;box-shadow:0 8px 18px rgba(20,131,79,.18)!important;}
.lm-store-nav{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;white-space:nowrap!important;overflow:visible!important;}
.lm-store-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:34px!important;padding:0 13px!important;border-radius:999px!important;border:1px solid rgba(208,213,221,.8)!important;background:rgba(255,255,255,.75)!important;box-shadow:none!important;text-decoration:none!important;color:#344054!important;font-size:13px!important;font-weight:850!important;}
.lm-store-nav a:hover{background:#fff!important;border-color:#cfd6df!important;}
.lm-hero-v89 .lm-main-tabs-v89{position:static!important;top:auto!important;z-index:auto!important;margin:6px 0 0!important;padding:6px 0 0!important;border-top:1px solid rgba(232,237,243,.9)!important;border-bottom:0!important;background:transparent!important;display:flex!important;gap:6px!important;overflow-x:auto!important;scrollbar-width:none!important;white-space:nowrap!important;}
.lm-hero-v89 .lm-main-tabs-v89 a{flex:1 1 0!important;min-width:64px!important;height:34px!important;padding:0 16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;border:0!important;background:transparent!important;color:#475467!important;box-shadow:none!important;font-size:14px!important;font-weight:900!important;}
.lm-hero-v89 .lm-main-tabs-v89 a.on{background:#101828!important;color:#fff!important;}
.lm-products{margin-top:0!important;position:relative!important;z-index:1!important;}
@media(max-width:980px){
  .lm-shell{padding:0 10px 96px!important;}
  .lm-hero.lm-hero-compact.lm-hero-v89{border-radius:0 0 18px 18px!important;padding:8px 10px 8px!important;margin:0 0 10px!important;}
  .lm-v91-toolbar{grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important;min-height:50px!important;}
  .lm-v91-toolbar .lm-logo-link img{width:44px!important;height:44px!important;border-radius:13px!important;}
  .lm-v91-toolbar .lm-logo-link span{font-size:20px!important;}
  .lm-v91-toolbar .lm-search-inline{grid-template-columns:minmax(0,1fr)!important;gap:0!important;}
  .lm-v91-toolbar .lm-search-inline input{height:42px!important;min-height:42px!important;font-size:15px!important;padding:0 16px!important;}
  .lm-v91-toolbar .lm-search-inline button{display:none!important;}
  .lm-store-nav{grid-column:1 / -1!important;justify-content:flex-start!important;overflow-x:auto!important;padding:1px 0 0!important;scrollbar-width:none!important;}
  .lm-store-nav::-webkit-scrollbar{display:none!important;}
  .lm-store-nav a{height:30px!important;padding:0 11px!important;font-size:12px!important;background:rgba(255,255,255,.65)!important;}
  .lm-hero-v89 .lm-main-tabs-v89{margin-top:5px!important;padding-top:5px!important;gap:4px!important;}
  .lm-hero-v89 .lm-main-tabs-v89 a{height:30px!important;min-width:46px!important;padding:0 12px!important;font-size:13px!important;}
}
@media(max-width:520px){
  .lm-shell{padding-left:0!important;padding-right:0!important;}
  .lm-products{padding-left:8px!important;padding-right:8px!important;}
  .lm-filter-panel,.lm-mobile-view-switch{margin-left:8px!important;margin-right:8px!important;}
  .lm-hero.lm-hero-compact.lm-hero-v89{padding:7px 8px 7px!important;}
  .lm-v91-toolbar{grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;}
  .lm-v91-toolbar .lm-logo-link{gap:7px!important;}
  .lm-v91-toolbar .lm-logo-link img{width:42px!important;height:42px!important;}
  .lm-v91-toolbar .lm-logo-link span{font-size:18px!important;}
  .lm-v91-toolbar .lm-search-inline input{height:40px!important;min-height:40px!important;font-size:14px!important;padding:0 14px!important;}
}

/* === V92 Unified Apple / Mac Style Header across mall pages === */
.lm-shell{max-width:1280px;padding-top:14px!important}
.lm-apple-store-header{
  position:sticky;top:0;z-index:80;margin:0 0 14px!important;
  border-bottom:1px solid rgba(226,232,240,.82);
  background:rgba(250,251,252,.78);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  box-shadow:0 12px 34px rgba(15,23,42,.055);
  border-radius:0!important;
  padding:0!important;
  overflow:visible!important;
}
.lm-apple-toolbar{
  height:68px;display:grid;grid-template-columns:auto minmax(260px,1fr) auto;gap:16px;align-items:center;
  padding:8px 18px 8px 18px;
}
.lm-apple-logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:950;color:#08723f;white-space:nowrap;letter-spacing:-.03em;font-size:22px;min-width:max-content}
.lm-apple-logo img{width:38px;height:38px;border-radius:12px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.08))}
.lm-apple-search{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:12px;align-items:center;margin:0;min-width:0}
.lm-apple-search input{width:100%;height:48px;border:1px solid rgba(226,232,240,.95);background:rgba(255,255,255,.82);border-radius:999px;padding:0 20px;font-size:18px;font-weight:650;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);min-width:0}
.lm-apple-search input:focus{border-color:#148449;box-shadow:0 0 0 4px rgba(20,132,73,.1)}
.lm-apple-search button{height:48px;border:0;border-radius:999px;background:linear-gradient(135deg,#178449,#caa414);color:#fff;font-weight:950;font-size:18px;box-shadow:0 12px 26px rgba(20,132,73,.18);cursor:pointer}
.lm-apple-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;min-width:max-content}
.lm-apple-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border-radius:999px;border:1px solid rgba(226,232,240,.95);background:rgba(255,255,255,.72);text-decoration:none;color:#344054;font-weight:900;font-size:14px;box-shadow:0 4px 14px rgba(15,23,42,.035)}
.lm-apple-actions a:hover{background:#fff;color:#0f172a;border-color:#cfd8e3}
.lm-apple-page-title{font-size:20px;font-weight:950;letter-spacing:-.035em;color:#111827;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lm-apple-cats{height:44px;display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;padding:0 18px 8px;scrollbar-width:none;border-top:1px solid rgba(226,232,240,.7)}
.lm-apple-cats::-webkit-scrollbar{display:none}
.lm-apple-cats a{flex:1 1 0;min-width:74px;text-align:center;padding:8px 12px;border-radius:999px;text-decoration:none;color:#475467;font-weight:950;border:1px solid transparent;background:transparent;white-space:nowrap;line-height:1}
.lm-apple-cats a.on{background:#111827;color:#fff;border-color:#111827;box-shadow:0 10px 22px rgba(17,24,39,.12)}
.lm-apple-cats a:not(.on):hover{background:rgba(255,255,255,.76);border-color:#e5e7eb;color:#111827}
.lm-admin-unified-store-header{max-width:1280px;margin:0 auto 14px}
.lm-order-title-line-slim{margin:0 0 14px;padding:0 4px;display:flex;justify-content:space-between;align-items:end;gap:12px}.lm-order-title-line-slim h1{font-size:28px;margin:0;letter-spacing:-.04em}.lm-order-title-line-slim span{color:#667085;font-weight:850}
/* avoid the old square hero look when old classes remain */
.lm-hero-v89,.lm-hero-compact{box-shadow:none!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible!important}.lm-hero-v89:before,.lm-hero-compact:before{display:none!important}
/* Product grid should start after the toolbar, not underneath it */
.lm-products{margin-top:10px!important}
/* Desktop product card: calmer color and more compact info */
.lm-product{border-color:#dfe7e1!important;box-shadow:0 14px 34px rgba(15,23,42,.055)!important;background:#fff!important;overflow:hidden}
.lm-product .lm-img{border-radius:0!important;background:#f7f8fa}.lm-product h3{font-size:22px!important;line-height:1.25!important;margin:12px 16px 8px!important;letter-spacing:-.04em}.lm-product p{display:none!important}.lm-product .lm-badges{padding:0 16px!important;margin-top:8px!important;gap:6px!important}.lm-product .lm-badges span{font-size:12px!important;padding:5px 8px!important;background:#f5f7fa!important;color:#667085!important;border-radius:999px!important}.lm-product .lm-kind-pill.kind-product{background:#16a34a!important;color:#fff!important}.lm-product .lm-kind-pill.kind-ad,.lm-product .lm-kind-pill.kind-booking,.lm-product .lm-kind-pill.kind-preorder{background:#0b84c6!important;color:#fff!important}.lm-product .lm-meta{padding:0 16px!important;margin-top:10px!important;gap:4px!important}.lm-product .lm-meta small:first-child{display:none!important}.lm-product .lm-price{padding:8px 16px 0!important}.lm-product .lm-price strong{font-size:24px!important;color:#ef4444!important}.lm-product .lm-product-actions{padding:10px 16px 16px!important}
@media(max-width:980px){
  .lm-shell{padding:8px 10px 80px!important}.lm-apple-store-header{margin-left:-10px!important;margin-right:-10px!important;margin-bottom:10px!important}.lm-apple-toolbar{height:58px;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:7px 12px}.lm-apple-logo span{display:none}.lm-apple-logo img{width:42px;height:42px;border-radius:13px}.lm-apple-search{grid-template-columns:minmax(0,1fr);gap:0}.lm-apple-search input{height:42px;font-size:15px;padding:0 14px 0 16px;background:#fff}.lm-apple-search button{display:none}.lm-apple-actions{grid-column:1/-1;display:flex;overflow-x:auto;justify-content:flex-start;gap:6px;padding-bottom:4px;scrollbar-width:none}.lm-apple-actions::-webkit-scrollbar{display:none}.lm-apple-actions a{font-size:12px;min-height:30px;padding:6px 10px;background:#fff}.lm-apple-page-title{font-size:17px}.lm-apple-cats{height:42px;padding:0 12px 7px;gap:8px}.lm-apple-cats a{flex:0 0 auto;min-width:54px;padding:8px 13px;font-size:14px;background:#fff;border-color:#edf0f4}.lm-apple-cats a.on{background:#111827;color:#fff}.lm-mobile-view-switch{position:static!important;margin:8px 0!important}.lm-product{border-radius:16px!important;border-width:1px!important}.lm-product h3{font-size:16px!important;margin:9px 10px 6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.lm-product .lm-badges{padding:0 10px!important;margin-top:6px!important}.lm-product .lm-badges span{font-size:10px!important;padding:4px 6px!important}.lm-product .lm-meta{padding:0 10px!important;margin-top:6px!important}.lm-product .lm-price{padding:5px 10px 0!important}.lm-product .lm-price strong{font-size:18px!important}.lm-product .lm-product-actions{padding:7px 10px 10px!important}.lm-product .lm-product-actions .lm-view{display:none!important}
}
@media(max-width:520px){.lm-apple-toolbar{height:auto;min-height:58px}.lm-apple-store-header{border-radius:0!important}.lm-apple-logo img{width:40px;height:40px}.lm-apple-search input{font-size:14px}.lm-apple-actions{display:none}.lm-apple-cats{position:relative}.lm-products{gap:8px!important}.lm-products .lm-img img{aspect-ratio:1/1;object-fit:cover}.lm-product h3{font-size:15px!important}.lm-product .lm-badges span:nth-child(n+4){display:none!important}}

.lm-mobile-menu-btn{display:none}
@media (max-width:768px){
 .lm-apple-toolbar{grid-template-columns:auto 1fr auto}
 .lm-apple-logo img{width:48px;height:48px}
 .lm-apple-logo span{font-size:24px}
 .lm-apple-search input{height:44px;font-size:16px}
 .lm-apple-search button{display:none}
 .lm-mobile-menu-btn{display:block;border:0;background:transparent;font-size:28px;font-weight:700}
 .lm-apple-actions{display:none;position:absolute;right:12px;top:64px;flex-direction:column;background:#fff;padding:10px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
 .lm-apple-actions.show{display:flex}
}


/* V93 fix: mobile menu actually clickable and layered */
.lm-mobile-menu-btn{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:rgba(255,255,255,.72);border-radius:14px;color:#111;font-size:24px;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;z-index:10050}
@media (max-width:768px){
  .lm-apple-toolbar{grid-template-columns:auto minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;position:relative!important;}
  .lm-mobile-menu-btn{display:inline-flex!important;}
  .lm-apple-actions{display:none!important;position:absolute!important;right:8px!important;top:calc(100% + 8px)!important;z-index:10080!important;min-width:156px!important;flex-direction:column!important;gap:4px!important;padding:8px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:16px!important;box-shadow:0 16px 40px rgba(0,0,0,.16)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;}
  .lm-apple-actions.show{display:flex!important;}
  .lm-apple-actions a{display:block!important;padding:10px 12px!important;border-radius:12px!important;color:#111!important;text-decoration:none!important;font-size:14px!important;white-space:nowrap!important;}
  .lm-apple-actions a:hover{background:rgba(0,0,0,.05)!important;}
}


/* V94 LINE in-app browser blocker */
#zjbLineBrowserBlocker{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(248,250,252,.96);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.zjb-line-browser-card{
  width:min(420px,100%);
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  box-shadow:0 24px 80px rgba(15,23,42,.18);
  padding:28px 22px 22px;
  text-align:center;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","Microsoft JhengHei",Arial,sans-serif;
}
.zjb-line-browser-logo{
  width:76px;
  height:76px;
  margin:0 auto 16px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eefdf5,#ffffff);
  border:1px solid rgba(22,163,74,.16);
  color:#166534;
  font-weight:800;
  letter-spacing:.04em;
}
.zjb-line-browser-card h2{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.25;
  color:#111827;
}
.zjb-line-browser-card p{
  margin:0 auto 18px;
  color:#475569;
  font-size:15px;
  line-height:1.7;
}
.zjb-line-browser-card button{
  width:100%;
  height:48px;
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:16px;
  font-weight:700;
  margin-top:10px;
}
.zjb-line-browser-card button.secondary{
  background:#f1f5f9;
  color:#111827;
}
.zjb-line-browser-card small{
  display:block;
  margin-top:14px;
  color:#64748b;
  line-height:1.6;
}


/* V95 mobile compact product list mode */
.lm-view-switch{display:flex;align-items:center;gap:8px;margin:8px auto 10px;max-width:1480px;padding:0 14px}
.lm-view-switch button{border:1px solid rgba(15,23,42,.10);background:rgba(255,255,255,.82);color:#334155;border-radius:999px;height:34px;padding:0 13px;font-size:14px;font-weight:750;box-shadow:0 4px 14px rgba(15,23,42,.05)}
.lm-view-switch button.active{background:#111827;color:#fff;border-color:#111827}
@media (min-width:769px){.lm-view-switch{display:none}}
@media (max-width:768px){
 .lm-products.compact-list,.products-grid.compact-list,.product-grid.compact-list,.mall-products.compact-list,#products.compact-list{display:flex!important;flex-direction:column;gap:0;padding:0 10px 96px}
 .compact-list .lm-product-card,.compact-list .product-card,.compact-list article,.compact-list .mall-card{width:100%!important;display:grid!important;grid-template-columns:116px 1fr;gap:10px;min-height:132px;padding:10px 4px;border-radius:0!important;border:0!important;border-bottom:1px solid rgba(15,23,42,.10)!important;background:rgba(255,255,255,.96)!important;box-shadow:none!important;overflow:hidden}
 .compact-list .lm-product-card img,.compact-list .product-card img,.compact-list article img,.compact-list .mall-card img{width:116px!important;height:116px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:10px!important;grid-row:1 / span 6}
 .compact-list .lm-product-title,.compact-list .product-title,.compact-list h2,.compact-list h3{font-size:17px!important;line-height:1.35!important;font-weight:800!important;margin:2px 0 4px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .compact-list .lm-product-price,.compact-list .price,.compact-list .mall-price{font-size:22px!important;line-height:1.15!important;color:#ef4444!important;font-weight:850!important;margin:2px 0!important}
 .compact-list .lm-tags,.compact-list .tags,.compact-list .badge-row,.compact-list .lm-card-tags{display:flex!important;flex-wrap:wrap;gap:4px;margin:4px 0!important}
 .compact-list .lm-tags span,.compact-list .tags span,.compact-list .badge-row span,.compact-list .lm-card-tags span{font-size:11px!important;padding:2px 6px!important;border-radius:999px!important}
 .compact-list .lm-product-meta,.compact-list .meta,.compact-list .reward,.compact-list .sold,.compact-list .points{font-size:12px!important;color:#64748b!important;margin:2px 0!important}
 .compact-list .lm-product-desc,.compact-list .description,.compact-list .subtitle{display:none!important}
 .compact-list .lm-product-actions,.compact-list .card-actions,.compact-list .actions{margin-top:4px!important}
 .compact-list .lm-product-actions button,.compact-list .card-actions button,.compact-list .actions button,.compact-list a.btn,.compact-list .btn{height:34px!important;min-height:34px!important;font-size:13px!important;padding:0 12px!important;border-radius:999px!important}
 .compact-list .big-type,.compact-list .large-label,.compact-list .display-type,.compact-list [data-big-label]{display:none!important}
}


/* V96 true 17Life-like mobile list mode */
@media (max-width:768px){
  .lm-view-switch{
    padding:0 12px;
    margin:6px 0 4px;
  }

  /* product grid containers */
  .lm-products.compact-list,
  .products-grid.compact-list,
  .product-grid.compact-list,
  .mall-products.compact-list,
  #products.compact-list,
  .compact-list{
    display:block!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }

  /* common card names in this project */
  .compact-list > *,
  .lm-products.compact-list > *,
  .products-grid.compact-list > *,
  .product-grid.compact-list > *,
  .mall-products.compact-list > *,
  #products.compact-list > *{
    display:grid!important;
    grid-template-columns:132px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
    column-gap:12px!important;
    row-gap:4px!important;
    min-height:148px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:12px 14px!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid rgba(15,23,42,.10)!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }

  .compact-list > * img,
  .lm-products.compact-list > * img,
  .products-grid.compact-list > * img,
  .product-grid.compact-list > * img,
  .mall-products.compact-list > * img,
  #products.compact-list > * img{
    grid-column:1!important;
    grid-row:1 / span 5!important;
    width:132px!important;
    height:132px!important;
    min-width:132px!important;
    max-width:132px!important;
    aspect-ratio:1/1!important;
    object-fit:cover!important;
    border-radius:8px!important;
    margin:0!important;
  }

  .compact-list > *:not(img) > img:first-child{
    grid-column:1!important;
  }

  .compact-list h1,
  .compact-list h2,
  .compact-list h3,
  .compact-list h4,
  .compact-list .lm-product-title,
  .compact-list .product-title,
  .compact-list .mall-product-title,
  .compact-list .card-title{
    grid-column:2!important;
    grid-row:auto!important;
    font-size:18px!important;
    line-height:1.36!important;
    font-weight:800!important;
    color:#111827!important;
    margin:0 0 2px!important;
    padding:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .compact-list .lm-product-price,
  .compact-list .product-price,
  .compact-list .mall-price,
  .compact-list .price,
  .compact-list [class*="price"]{
    grid-column:2!important;
    font-size:24px!important;
    line-height:1.1!important;
    font-weight:900!important;
    color:#e3342f!important;
    margin:2px 0!important;
    text-align:left!important;
  }

  .compact-list .lm-tags,
  .compact-list .tags,
  .compact-list .badge-row,
  .compact-list .lm-card-tags,
  .compact-list [class*="tag"],
  .compact-list [class*="badge"]{
    grid-column:2!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:4px!important;
    margin:0 0 3px!important;
    align-items:center!important;
  }

  .compact-list .lm-tags span,
  .compact-list .tags span,
  .compact-list .badge-row span,
  .compact-list .lm-card-tags span,
  .compact-list [class*="tag"] span,
  .compact-list [class*="badge"] span{
    font-size:11px!important;
    line-height:1!important;
    padding:4px 7px!important;
    border-radius:999px!important;
  }

  .compact-list .lm-product-meta,
  .compact-list .meta,
  .compact-list .sold,
  .compact-list .reward,
  .compact-list .points,
  .compact-list [class*="reward"],
  .compact-list [class*="point"],
  .compact-list [class*="sold"]{
    grid-column:2!important;
    font-size:13px!important;
    line-height:1.35!important;
    color:#64748b!important;
    margin:1px 0!important;
    text-align:left!important;
  }

  .compact-list .lm-product-actions,
  .compact-list .product-actions,
  .compact-list .card-actions,
  .compact-list .actions{
    grid-column:2!important;
    display:flex!important;
    justify-content:flex-start!important;
    gap:6px!important;
    margin-top:3px!important;
  }

  .compact-list button,
  .compact-list .btn,
  .compact-list a.btn{
    min-height:30px!important;
    height:30px!important;
    padding:0 10px!important;
    font-size:12px!important;
    border-radius:999px!important;
  }

  /* hide bulky duplicated text/blocks in compact list */
  .compact-list .lm-product-desc,
  .compact-list .description,
  .compact-list .subtitle,
  .compact-list .big-type,
  .compact-list .large-label,
  .compact-list .display-type,
  .compact-list [data-big-label]{
    display:none!important;
  }

  /* make cards not green framed in compact mode */
  .compact-list > *,
  .lm-products.compact-list > *,
  .products-grid.compact-list > *,
  .product-grid.compact-list > *,
  .mall-products.compact-list > *,
  #products.compact-list > *{
    outline:0!important;
  }
}


/* V97 compact list: image left, info right, title full-width below */
@media (max-width:768px){
 .lm-products.compact-list,.products-grid.compact-list,.product-grid.compact-list,.mall-products.compact-list,#products.compact-list,.compact-list{display:block!important;padding:0 8px 96px!important;background:#fff!important}
 .compact-list>*{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-areas:"img info" "title title"!important;gap:8px 10px!important;padding:10px 8px 12px!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(15,23,42,.1)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;outline:0!important;min-height:0!important}
 .compact-list>* img{grid-area:img!important;width:112px!important;height:112px!important;min-width:112px!important;max-width:112px!important;object-fit:cover!important;border-radius:10px!important;margin:0!important;align-self:start!important}
 .compact-list h1,.compact-list h2,.compact-list h3,.compact-list h4,.compact-list .lm-product-title,.compact-list .product-title,.compact-list .mall-product-title,.compact-list .card-title{grid-area:title!important;font-size:17px!important;line-height:1.35!important;font-weight:800!important;color:#111827!important;margin:0!important;padding:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
 .compact-list .lm-tags,.compact-list .tags,.compact-list .badge-row,.compact-list .lm-card-tags,.compact-list [class*="tag"],.compact-list [class*="badge"]{grid-column:2!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:0 0 4px!important;align-items:center!important}
 .compact-list .lm-tags span,.compact-list .tags span,.compact-list .badge-row span,.compact-list .lm-card-tags span,.compact-list [class*="tag"] span,.compact-list [class*="badge"] span{font-size:11px!important;line-height:1!important;padding:4px 7px!important;border-radius:999px!important}
 .compact-list .lm-product-price,.compact-list .product-price,.compact-list .mall-price,.compact-list .price,.compact-list [class*="price"]{grid-column:2!important;font-size:22px!important;line-height:1.05!important;font-weight:900!important;color:#ef4444!important;margin:3px 0!important;text-align:left!important}
 .compact-list .lm-product-meta,.compact-list .meta,.compact-list .sold,.compact-list .reward,.compact-list .points,.compact-list [class*="reward"],.compact-list [class*="point"],.compact-list [class*="sold"]{grid-column:2!important;font-size:12px!important;line-height:1.35!important;color:#64748b!important;margin:2px 0!important;text-align:left!important}
 .compact-list .lm-product-actions,.compact-list .product-actions,.compact-list .card-actions,.compact-list .actions{grid-column:2!important;display:flex!important;justify-content:flex-start!important;gap:6px!important;margin-top:4px!important}
 .compact-list button,.compact-list .btn,.compact-list a.btn{min-height:30px!important;height:30px!important;padding:0 10px!important;font-size:12px!important;border-radius:999px!important}
 .compact-list .lm-product-desc,.compact-list .description,.compact-list .subtitle,.compact-list .big-type,.compact-list .large-label,.compact-list .display-type,.compact-list [data-big-label]{display:none!important}
}

/* V98_ULTRA_COMPACT */
@media(max-width:768px){
.product-card,.mall-card,.item-card{
min-height:auto!important;
padding:8px!important;
}
.product-card .price,.mall-price{
display:inline-block!important;
font-size:22px!important;
margin-right:8px!important;
}
.product-card .btn,.mall-card .btn{
display:inline-flex!important;
vertical-align:middle!important;
}
.product-card .reward,.points{
position:absolute!important;
top:8px!important;
right:8px!important;
font-size:12px!important;
}
.product-card .supplier,
.product-card .source,
.product-card .description{
display:none!important;
}
}
@media(min-width:769px){
.product-card,.mall-card,.item-card{
max-height:420px!important;
overflow:hidden!important;
}
.product-card img,.mall-card img{
max-height:180px!important;
object-fit:cover!important;
}
}


/* V98B_DESKTOP_4COL_REAL_FIX */
@media (min-width: 1024px){
  .lm-products,
  .products-grid,
  .product-grid,
  .mall-products,
  #products,
  .products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:start!important;
  }

  .lm-products > *,
  .products-grid > *,
  .product-grid > *,
  .mall-products > *,
  #products > *,
  .products > *{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    height:auto!important;
    max-height:360px!important;
    overflow:hidden!important;
    border-radius:20px!important;
  }

  .lm-products > * img,
  .products-grid > * img,
  .product-grid > * img,
  .mall-products > * img,
  #products > * img,
  .products > * img{
    width:100%!important;
    height:170px!important;
    max-height:170px!important;
    aspect-ratio:16/10!important;
    object-fit:cover!important;
  }

  .lm-product-title,
  .product-title,
  .mall-product-title,
  .card-title,
  .lm-products h2,
  .lm-products h3,
  .products-grid h2,
  .products-grid h3,
  .product-grid h2,
  .product-grid h3,
  .mall-products h2,
  .mall-products h3,
  #products h2,
  #products h3{
    font-size:18px!important;
    line-height:1.35!important;
    margin:10px 12px 6px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .lm-product-price,
  .product-price,
  .mall-price,
  .price{
    font-size:22px!important;
    margin:6px 12px!important;
  }

  .lm-product-actions,
  .product-actions,
  .card-actions,
  .actions{
    margin:6px 12px 12px!important;
  }

  .lm-product-actions button,
  .product-actions button,
  .card-actions button,
  .actions button,
  a.btn,
  .btn{
    min-height:36px!important;
    height:36px!important;
    font-size:14px!important;
    border-radius:999px!important;
  }

  .lm-product-desc,
  .description,
  .subtitle,
  .supplier,
  .source{
    display:none!important;
  }
}

@media (min-width: 1440px){
  .lm-products,
  .products-grid,
  .product-grid,
  .mall-products,
  #products,
  .products{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:20px!important;
  }
}


/* V100 REAL PRODUCT CARD TEMPLATE */
.v100-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
.lm-product-v100{min-height:0!important;max-height:none!important;padding:0!important;overflow:hidden!important;border-radius:24px!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 14px 34px rgba(15,23,42,.07)!important}
.lm-product-v100:hover{transform:translateY(-2px)!important}
.lm-product-v100 .lm-v100-top{display:block!important}
.lm-product-v100 .lm-img{width:100%!important;height:168px!important;border-radius:0!important;display:block!important;background:#f8fafc!important}
.lm-product-v100 .lm-img img{width:100%!important;height:100%!important;object-fit:cover!important}
.lm-product-v100 .lm-v100-info{padding:10px 12px 0!important}
.lm-product-v100 .lm-v100-tags{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin:0 0 8px!important}
.lm-product-v100 .lm-v100-tags span{font-size:11px!important;line-height:1!important;padding:5px 8px!important;border-radius:999px!important;background:#f8fafc!important;color:#64748b!important;font-weight:850!important}
.lm-product-v100 .lm-v100-tags .lm-kind-pill{color:#fff!important;background:linear-gradient(135deg,#149447,#1fbe69)!important}
.lm-info-btn{margin-left:auto!important;width:26px!important;height:26px!important;border-radius:999px!important;border:1px solid rgba(15,23,42,.10)!important;background:#fff!important;color:#334155!important;font-weight:900!important;cursor:pointer!important}
.lm-product-v100 .lm-v100-points{font-size:12px!important;color:#64748b!important;font-weight:800!important;margin:0 0 8px!important}
.lm-product-v100 .lm-v100-buy{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 10px!important}
.lm-product-v100 .lm-price{flex:1 1 auto!important;display:flex!important;align-items:baseline!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;position:static!important}
.lm-product-v100 .lm-price del{font-size:12px!important;color:#94a3b8!important}
.lm-product-v100 .lm-price strong{font-size:21px!important;line-height:1!important;color:#ef4444!important;font-weight:950!important;white-space:nowrap!important}
.lm-product-v100 .lm-add,.lm-product-v100 .lm-action-link{flex:0 0 auto!important;height:34px!important;min-height:34px!important;padding:0 12px!important;border-radius:999px!important;font-size:13px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;background:#138a45!important;color:#fff!important;border:0!important;box-shadow:none!important}
.lm-product-v100 h3{margin:0!important;padding:0 12px 13px!important;font-size:17px!important;line-height:1.35!important;font-weight:900!important;min-height:58px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.lm-product-v100 h3 a{text-decoration:none!important;color:#111827!important}
#lm-info-popover{position:fixed;z-index:2147483000;inset:auto 18px 18px auto;width:min(360px,calc(100vw - 36px));background:#fff;border:1px solid rgba(15,23,42,.10);border-radius:20px;box-shadow:0 24px 80px rgba(15,23,42,.22);padding:16px;color:#334155;font-size:14px;line-height:1.7}
#lm-info-popover b{display:block;color:#111827;margin-bottom:8px;font-size:16px}
#lm-info-popover button{position:absolute;right:10px;top:8px;border:0;background:#f1f5f9;border-radius:999px;width:28px;height:28px;font-weight:900}
@media(max-width:1180px){.v100-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.v100-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:768px){
 .v100-products{display:block!important;padding:0 8px 110px!important}
 .lm-product-v100{margin:0!important;border-radius:0!important;border:0!important;border-bottom:1px solid rgba(15,23,42,.10)!important;box-shadow:none!important;background:#fff!important}
 .lm-product-v100 .lm-v100-top{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:10px!important;padding:10px 6px 8px!important}
 .lm-product-v100 .lm-img{width:112px!important;height:112px!important;border-radius:10px!important;overflow:hidden!important}
 .lm-product-v100 .lm-v100-info{padding:0!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
 .lm-product-v100 .lm-v100-tags{gap:4px!important;margin:0 0 4px!important}
 .lm-product-v100 .lm-v100-tags span{font-size:11px!important;padding:4px 7px!important}
 .lm-info-btn{width:24px!important;height:24px!important;font-size:12px!important}
 .lm-product-v100 .lm-v100-points{font-size:12px!important;margin:0 0 4px!important}
 .lm-product-v100 .lm-v100-buy{margin:0!important;gap:6px!important}
 .lm-product-v100 .lm-price strong{font-size:20px!important}
 .lm-product-v100 .lm-price del{display:none!important}
 .lm-product-v100 .lm-add,.lm-product-v100 .lm-action-link{height:32px!important;min-height:32px!important;padding:0 10px!important;font-size:12px!important;max-width:116px!important;white-space:nowrap!important}
 .lm-product-v100 h3{padding:0 6px 11px!important;font-size:17px!important;min-height:0!important}
}


/* V101 MOBILE CARD SPACING FIX - prevent info column from collapsing */
@media(max-width:768px){
  .v100-products{
    display:block!important;
    width:100%!important;
    padding:0 10px 110px!important;
    box-sizing:border-box!important;
  }

  .lm-product-v100{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:0 0 8px!important;
    border-radius:18px!important;
    border:2px solid rgba(18,143,72,.85)!important;
    background:#fbfffc!important;
    overflow:hidden!important;
  }

  .lm-product-v100 .lm-v100-top{
    display:grid!important;
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px 10px 6px!important;
    align-items:start!important;
    box-sizing:border-box!important;
  }

  .lm-product-v100 .lm-img{
    width:96px!important;
    height:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    border-radius:10px!important;
    overflow:hidden!important;
  }

  .lm-product-v100 .lm-img img{
    width:96px!important;
    height:96px!important;
    object-fit:cover!important;
  }

  .lm-product-v100 .lm-v100-info{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:6px!important;
    padding:0!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-v100-tags{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
    width:100%!important;
    margin:0!important;
    overflow:hidden!important;
  }

  .lm-product-v100 .lm-v100-tags span{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    max-width:72px!important;
    height:22px!important;
    padding:0 7px!important;
    font-size:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
  }

  .lm-product-v100 .lm-v100-tags span:nth-child(n+3){
    display:none!important;
  }

  .lm-product-v100 .lm-v100-tags .lm-info-btn,
  .lm-info-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 24px!important;
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0!important;
    margin-left:auto!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-v100-points{
    display:block!important;
    width:100%!important;
    font-size:12px!important;
    line-height:1.2!important;
    margin:0!important;
    color:#64748b!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
    min-width:0!important;
  }

  .lm-product-v100 .lm-price{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    align-items:baseline!important;
    gap:4px!important;
    margin:0!important;
    position:static!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    font-size:20px!important;
    line-height:1!important;
    color:#ef4444!important;
    font-weight:950!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-price del{
    display:none!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:72px!important;
    max-width:none!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 10px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
    writing-mode:horizontal-tb!important;
  }

  .lm-product-v100 h3{
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:0 10px 12px!important;
    margin:0!important;
    font-size:17px!important;
    line-height:1.35!important;
    font-weight:900!important;
    color:#111827!important;
    white-space:normal!important;
    overflow:hidden!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }

  .lm-product-v100 h3 a{
    color:#111827!important;
    text-decoration:none!important;
  }
}


/* V102 MOBILE PRICE NO CLIP FIX */
@media(max-width:768px){
  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  .lm-product-v100 .lm-price{
    flex:0 0 auto!important;
    min-width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    white-space:nowrap!important;
    text-overflow:clip!important;
  }
  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    min-width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    white-space:nowrap!important;
    text-overflow:clip!important;
    font-size:19px!important;
    letter-spacing:-.02em!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex:0 1 auto!important;
    min-width:58px!important;
    max-width:92px!important;
    padding:0 8px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
  }
}
@media(max-width:380px){
  .lm-product-v100 .lm-v100-top{
    grid-template-columns:88px minmax(0,1fr)!important;
    gap:8px!important;
  }
  .lm-product-v100 .lm-img,
  .lm-product-v100 .lm-img img{
    width:88px!important;
    height:88px!important;
    min-width:88px!important;
    max-width:88px!important;
  }
  .lm-product-v100 .lm-price strong{
    font-size:18px!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    min-width:52px!important;
    max-width:76px!important;
    padding:0 6px!important;
    font-size:11px!important;
  }
}
@media(max-width:340px){
  .lm-product-v100 .lm-v100-buy{
    flex-wrap:wrap!important;
    align-items:flex-start!important;
  }
  .lm-product-v100 .lm-price{
    width:100%!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    margin-top:2px!important;
  }
}


/* V103 price/unit and mobile action row fix */
.lm-product-v100 .lm-v100-buy{overflow:visible!important}
.lm-product-v100 .lm-price strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(min-width:769px){
 .lm-product-v100 .lm-v100-buy{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:40px!important}
 .lm-product-v100 .lm-price{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 100px)!important}
 .lm-product-v100 .lm-price strong{font-size:19px!important;line-height:1.25!important;display:block!important;word-break:keep-all!important}
 .lm-product-v100 .lm-add,.lm-product-v100 .lm-action-link{flex:0 0 auto!important;min-width:88px!important}
}
@media(max-width:768px){
 .lm-product-v100 .lm-v100-top{grid-template-columns:104px minmax(0,1fr)!important}
 .lm-product-v100 .lm-img,.lm-product-v100 .lm-img img{width:104px!important;height:104px!important;min-width:104px!important;max-width:104px!important}
 .lm-product-v100 .lm-v100-buy{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;width:100%!important;overflow:visible!important}
 .lm-product-v100 .lm-price{grid-column:1!important;min-width:0!important;max-width:100%!important;width:100%!important;overflow:visible!important;white-space:normal!important}
 .lm-product-v100 .lm-price strong{display:block!important;font-size:18px!important;line-height:1.18!important;letter-spacing:-.03em!important;white-space:normal!important;word-break:keep-all!important;overflow:visible!important;text-overflow:clip!important}
 .lm-product-v100 .lm-add,.lm-product-v100 .lm-action-link{grid-column:2!important;min-width:62px!important;max-width:86px!important;width:auto!important;height:31px!important;padding:0 8px!important;font-size:11px!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .lm-product-v100 .lm-v100-points{white-space:nowrap!important;overflow:visible!important}
}
@media(max-width:360px){
 .lm-product-v100 .lm-v100-top{grid-template-columns:92px minmax(0,1fr)!important}
 .lm-product-v100 .lm-img,.lm-product-v100 .lm-img img{width:92px!important;height:92px!important;min-width:92px!important;max-width:92px!important}
 .lm-product-v100 .lm-price strong{font-size:16px!important}
 .lm-product-v100 .lm-add,.lm-product-v100 .lm-action-link{min-width:54px!important;max-width:72px!important;font-size:10px!important;padding:0 5px!important}
}


/* V104 remove mobile view switch and force card style */
.lm-view-switch{display:none!important}
@media(max-width:768px){
  .compact-list,
  .lm-products.compact-list,
  .products-grid.compact-list,
  .product-grid.compact-list,
  .mall-products.compact-list,
  #products.compact-list{
    display:block!important;
  }
}


/* V105 final card price/button layout fix */
.lm-product-v100 .lm-v100-buy,
.lm-product .lm-v100-buy{
  position:relative!important;
  overflow:visible!important;
}

/* Desktop: price/unit and action must stay inside info area, above title */
@media(min-width:769px){
  .v100-products,
  .lm-products{
    align-items:start!important;
  }

  .lm-product-v100{
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }

  .lm-product-v100 .lm-img{
    height:165px!important;
    min-height:165px!important;
    max-height:165px!important;
  }

  .lm-product-v100 .lm-v100-info{
    padding:10px 12px 0!important;
    min-height:116px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }

  .lm-product-v100 .lm-v100-tags{
    height:28px!important;
    margin:0!important;
    overflow:hidden!important;
  }

  .lm-product-v100 .lm-v100-points{
    margin:0!important;
    height:18px!important;
    line-height:18px!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
    min-height:38px!important;
  }

  .lm-product-v100 .lm-price{
    grid-column:1!important;
    position:static!important;
    margin:0!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    overflow:visible!important;
    text-align:left!important;
  }

  .lm-product-v100 .lm-price strong{
    display:block!important;
    font-size:20px!important;
    line-height:1.2!important;
    color:#ef4444!important;
    font-weight:950!important;
    white-space:normal!important;
    word-break:keep-all!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price del{
    display:none!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    grid-column:2!important;
    position:static!important;
    width:auto!important;
    min-width:82px!important;
    max-width:118px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 12px!important;
    font-size:13px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
  }

  .lm-product-v100 h3{
    margin:0!important;
    padding:8px 12px 14px!important;
    min-height:56px!important;
    font-size:19px!important;
    line-height:1.32!important;
  }
}

/* Mobile: keep button inside card, readable and never breaking out */
@media(max-width:768px){
  .lm-product-v100{
    overflow:hidden!important;
  }

  .lm-product-v100 .lm-v100-top{
    grid-template-columns:104px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-img,
  .lm-product-v100 .lm-img img{
    width:104px!important;
    height:104px!important;
    min-width:104px!important;
    max-width:104px!important;
  }

  .lm-product-v100 .lm-v100-info{
    min-width:0!important;
    width:100%!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    margin:0!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price{
    grid-column:1!important;
    min-width:0!important;
    width:100%!important;
    position:static!important;
    margin:0!important;
    overflow:visible!important;
    text-align:left!important;
  }

  .lm-product-v100 .lm-price strong{
    display:block!important;
    font-size:19px!important;
    line-height:1.12!important;
    letter-spacing:-.03em!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    color:#ef4444!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    grid-column:2!important;
    position:static!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:74px!important;
    max-width:96px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 10px!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
    transform:none!important;
  }

  .lm-product-v100 h3{
    padding:0 10px 12px!important;
    font-size:16px!important;
    line-height:1.35!important;
  }
}

@media(max-width:380px){
  .lm-product-v100 .lm-v100-top{
    grid-template-columns:94px minmax(0,1fr)!important;
    gap:8px!important;
  }
  .lm-product-v100 .lm-img,
  .lm-product-v100 .lm-img img{
    width:94px!important;
    height:94px!important;
    min-width:94px!important;
    max-width:94px!important;
  }
  .lm-product-v100 .lm-price strong{
    font-size:18px!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    min-width:66px!important;
    max-width:84px!important;
    height:32px!important;
    font-size:12px!important;
    padding:0 8px!important;
  }
}


/* V106 price unit no-wrap + mobile button width fix */

/* Desktop: price + unit must stay in one line */
@media(min-width:769px){
  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
  }

  .lm-product-v100 .lm-price{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    width:auto!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:19px!important;
    line-height:1.1!important;
    letter-spacing:-.02em!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex:0 0 auto!important;
    min-width:94px!important;
    max-width:126px!important;
    white-space:nowrap!important;
  }
}

/* Mobile: give action button enough width and avoid ugly squeezed text */
@media(max-width:768px){
  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    width:100%!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price{
    flex:1 1 auto!important;
    min-width:0!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:18px!important;
    line-height:1.1!important;
    letter-spacing:-.03em!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex:0 0 106px!important;
    width:106px!important;
    min-width:106px!important;
    max-width:106px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 10px!important;
    font-size:13px!important;
    font-weight:900!important;
    letter-spacing:-.02em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
  }
}

@media(max-width:380px){
  .lm-product-v100 .lm-v100-buy{
    gap:6px!important;
  }

  .lm-product-v100 .lm-price strong{
    font-size:17px!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex-basis:96px!important;
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    font-size:12px!important;
    padding:0 8px!important;
  }
}

@media(max-width:340px){
  .lm-product-v100 .lm-v100-buy{
    flex-wrap:wrap!important;
  }
  .lm-product-v100 .lm-price{
    flex:0 0 100%!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    margin-left:auto!important;
  }
}


/* V107 REAL PRICE OUTPUT + NO WRAP FIX */

/* 強制覆蓋前面版本造成的斷行、截字、價格被擋問題 */
.lm-product-v100 .lm-v100-buy,
.lm-product-v100 .lm-price,
.lm-product-v100 .lm-price strong,
.lm-product-v100 .lm-add,
.lm-product-v100 .lm-action-link{
  visibility:visible!important;
  opacity:1!important;
}

@media(min-width:769px){
  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
    min-height:38px!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price{
    position:static!important;
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    width:auto!important;
    margin:0!important;
    overflow:visible!important;
    white-space:nowrap!important;
    text-align:left!important;
  }

  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    font-size:19px!important;
    line-height:1.15!important;
    color:#ef4444!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:none!important;
  }

  .lm-product-v100 .lm-price del{
    display:none!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    position:static!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:98px!important;
    max-width:136px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 12px!important;
    font-size:13px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    transform:none!important;
  }
}

@media(max-width:768px){
  .lm-product-v100 .lm-v100-top{
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:10px!important;
  }

  .lm-product-v100 .lm-img,
  .lm-product-v100 .lm-img img{
    width:96px!important;
    height:96px!important;
    min-width:96px!important;
    max-width:96px!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    overflow:visible!important;
    flex-wrap:wrap!important;
  }

  .lm-product-v100 .lm-price{
    position:static!important;
    flex:0 0 auto!important;
    min-width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    overflow:visible!important;
    white-space:nowrap!important;
    text-align:left!important;
  }

  .lm-product-v100 .lm-price strong{
    display:inline-block!important;
    font-size:19px!important;
    line-height:1.1!important;
    color:#ef4444!important;
    font-weight:950!important;
    letter-spacing:-.03em!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:none!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    position:static!important;
    flex:0 0 128px!important;
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 10px!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-radius:999px!important;
    transform:none!important;
  }
}

@media(max-width:380px){
  .lm-product-v100 .lm-v100-top{
    grid-template-columns:88px minmax(0,1fr)!important;
    gap:8px!important;
  }

  .lm-product-v100 .lm-img,
  .lm-product-v100 .lm-img img{
    width:88px!important;
    height:88px!important;
    min-width:88px!important;
    max-width:88px!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    flex-basis:118px!important;
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
    font-size:12px!important;
  }

  .lm-product-v100 .lm-price strong{
    font-size:18px!important;
  }
}


/* V108 compact price + points to prevent overflow */
@media(min-width:769px){
  .lm-product-v100 .lm-v100-info{
    gap:6px!important;
  }

  .lm-product-v100 .lm-v100-points{
    font-size:11px!important;
    line-height:1.1!important;
    margin:0!important;
    color:#64748b!important;
    font-weight:750!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
    min-height:34px!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    grid-column:1!important;
    grid-row:1!important;
    min-width:82px!important;
    max-width:104px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 10px!important;
    font-size:12px!important;
  }

  .lm-product-v100 .lm-price{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-align:left!important;
  }

  .lm-product-v100 .lm-price strong{
    display:block!important;
    font-size:16px!important;
    line-height:1.1!important;
    letter-spacing:-.04em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }

  .lm-product-v100 .lm-price del{
    display:none!important;
  }
}

@media(max-width:768px){
  .lm-product-v100 .lm-v100-points{
    font-size:11px!important;
    line-height:1.1!important;
    margin:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .lm-product-v100 .lm-v100-buy{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
    align-items:center!important;
  }

  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    grid-column:1!important;
    min-width:78px!important;
    max-width:104px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 9px!important;
    font-size:12px!important;
  }

  .lm-product-v100 .lm-price{
    grid-column:2!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-price strong{
    font-size:18px!important;
    line-height:1.1!important;
    letter-spacing:-.04em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
}

@media(max-width:380px){
  .lm-product-v100 .lm-price strong{
    font-size:16px!important;
  }
  .lm-product-v100 .lm-add,
  .lm-product-v100 .lm-action-link{
    min-width:70px!important;
    max-width:92px!important;
    font-size:11px!important;
    padding:0 7px!important;
  }
}


/* V109 product unit admin/front */
.lm-v109-unit-row select,
.lm-v109-unit-row input{width:100%}
.lm-product-v100 .lm-price strong,
.lm-detail-info .lm-price strong{
  white-space:nowrap!important;
  word-break:keep-all!important;
}
@media(max-width:768px){
  .lm-product-v100 .lm-price strong{
    font-size:16px!important;
    letter-spacing:-.04em!important;
  }
}


/* V110 手機版：金額大字，計價單位下一行靠右 */
@media(max-width:768px){

  .lm-product-v100 .lm-price{
      text-align:right!important;
      width:100%!important;
  }

  .lm-product-v100 .lm-price strong{
      display:block!important;
      white-space:normal!important;
      line-height:1.05!important;
      font-size:20px!important;
      overflow:visible!important;
      text-overflow:clip!important;
  }

  .lm-product-v100 .lm-price strong br{
      display:block!important;
  }

  .lm-product-v100 .lm-price .lm-unit{
      display:block!important;
      text-align:right!important;
      font-size:12px!important;
      color:#64748b!important;
      margin-top:2px!important;
      font-weight:700!important;
  }
}


/* V111 mobile: $ amount + unit next line */
@media(max-width:768px){
  .lm-product-v100 .lm-v100-buy{
    align-items:center!important;
  }

  .lm-product-v100 .lm-price{
    text-align:right!important;
    min-width:72px!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  .lm-product-v100 .lm-price strong{
    display:block!important;
    text-align:right!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.05!important;
  }

  .lm-product-v100 .lm-price .lm-mobile-money{
    display:block!important;
    font-size:22px!important;
    line-height:1!important;
    font-weight:950!important;
    color:#ef4444!important;
    letter-spacing:-.04em!important;
    white-space:nowrap!important;
  }

  .lm-product-v100 .lm-price .lm-unit{
    display:block!important;
    text-align:right!important;
    font-size:12px!important;
    line-height:1.15!important;
    margin-top:3px!important;
    color:#64748b!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }
}

@media(max-width:380px){
  .lm-product-v100 .lm-price .lm-mobile-money{
    font-size:20px!important;
  }
  .lm-product-v100 .lm-price .lm-unit{
    font-size:11px!important;
  }
}


/* V113 order search/filter/sort */
.lm-order-search-v113{display:grid;grid-template-columns:2fr repeat(4,minmax(130px,1fr));gap:10px;align-items:end;padding:14px;margin:12px 0 10px;border:1px solid rgba(15,23,42,.08);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 12px 34px rgba(15,23,42,.06);backdrop-filter:blur(14px)}
.lm-order-search-v113 label{display:flex;flex-direction:column;gap:6px;color:#475569;font-size:12px;font-weight:800}
.lm-order-search-v113 input,.lm-order-search-v113 select{width:100%;height:40px;border:1px solid rgba(15,23,42,.10);border-radius:14px;background:#fff;padding:0 12px;color:#111827;font-weight:750;outline:none}
.lm-order-search-v113 .wide{grid-column:span 2}
.lm-order-search-v113 .actions{display:flex;gap:8px;align-items:center}
.lm-order-search-v113 .actions button,.lm-order-search-v113 .actions a{height:40px;border-radius:999px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;border:0}
.lm-order-search-v113 .actions button{background:linear-gradient(135deg,#148a43,#d6a51c);color:#fff}
.lm-order-search-v113 .actions a{background:#f8fafc;color:#334155;border:1px solid rgba(15,23,42,.08)}
.lm-order-sort-v113{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:4px 0 12px;color:#64748b;font-size:13px;font-weight:850}
.lm-order-sort-v113 a{text-decoration:none;color:#334155;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:999px;padding:8px 12px}
.lm-v113-pager{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:18px 0}
.lm-v113-pager a,.lm-v113-pager span{min-width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;background:#fff;border:1px solid rgba(15,23,42,.08);text-decoration:none;color:#334155;font-weight:900}
.lm-v113-pager a.on{background:#111827;color:#fff}.lm-v113-pager a.disabled{pointer-events:none;opacity:.35}.lm-v113-pager small{color:#64748b;font-weight:800}
@media(max-width:1100px){.lm-order-search-v113{grid-template-columns:1fr 1fr}.lm-order-search-v113 .wide{grid-column:1/-1}}
@media(max-width:700px){.lm-order-search-v113{grid-template-columns:1fr}.lm-order-search-v113 .wide{grid-column:auto}.lm-order-search-v113 .actions{justify-content:stretch}.lm-order-search-v113 .actions button,.lm-order-search-v113 .actions a{flex:1}}

/* v14 — PrestaShop-inspired storefront and back office layout */
:root{--ps-blue:#25b9d7;--ps-navy:#1f2d3d;--ps-sidebar:#2b3643;--ps-bg:#f5f6f8;--ps-border:#dfe3e8;--ps-text:#363a41}
body{background:var(--ps-bg);color:var(--ps-text)}
.lm-shell{max-width:1440px;margin:0 auto;padding:0 22px 70px}
.lm-apple-store-header{margin:0 -22px;background:#fff;border:0;border-bottom:1px solid var(--ps-border);border-radius:0;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.lm-apple-toolbar{max-width:1440px;margin:auto;min-height:76px;padding:12px 22px;display:grid;grid-template-columns:260px minmax(280px,1fr) auto;gap:24px}
.lm-apple-logo img{width:48px;height:48px;object-fit:contain}.lm-apple-logo span{font-size:20px;font-weight:800;color:var(--ps-navy)}
.lm-apple-search{max-width:680px;width:100%;justify-self:center;border:1px solid #bbc2ca;border-radius:3px;background:#fff;overflow:hidden;box-shadow:none}.lm-apple-search input{border:0;border-radius:0;background:#fff;padding:13px 16px}.lm-apple-search button{border:0;border-radius:0;background:var(--ps-blue);color:#fff;padding:0 24px;font-weight:700}
.lm-apple-actions a{border:0;background:transparent;border-radius:3px;color:#4a4f55;font-size:14px;padding:10px}.lm-apple-actions a:hover{background:#eef9fb;color:#168fa8}
.lm-apple-cats{max-width:1440px;margin:auto;padding:0 22px;justify-content:flex-start;gap:0;border-top:1px solid #f0f1f2}.lm-apple-cats a{border-radius:0;border:0;border-bottom:3px solid transparent;padding:14px 22px;background:transparent}.lm-apple-cats a.on,.lm-apple-cats a:hover{background:#f8fcfd;color:#168fa8;border-bottom-color:var(--ps-blue)}
.ps-breadcrumb{display:flex;gap:9px;align-items:center;padding:18px 0;font-size:13px;color:#7a7f85}.ps-breadcrumb a{color:#168fa8;text-decoration:none}.ps-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(110deg,#273746,#1b2631);color:#fff;padding:30px 36px;margin-bottom:24px;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.12)}.ps-hero small{color:#8ee5f2;text-transform:uppercase;font-weight:800;letter-spacing:.12em}.ps-hero h1{margin:5px 0 7px;font-size:34px}.ps-hero p{margin:0;color:#dbe2e8}.ps-hero-badge{text-align:center;min-width:110px}.ps-hero-badge b{display:block;font-size:34px}.ps-hero-badge span{font-size:13px;color:#b9c5cf}
.ps-shop-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}.ps-facets{background:#fff;border:1px solid var(--ps-border);border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.05);overflow:hidden}.ps-facet-title{padding:17px 18px;background:#fafafa;border-bottom:1px solid var(--ps-border);font-size:17px;font-weight:800}.ps-category-list a{display:flex;justify-content:space-between;padding:13px 18px;color:#4a4f55;text-decoration:none;border-bottom:1px solid #eef0f2}.ps-category-list a:hover,.ps-category-list a.on{color:#168fa8;background:#f2fbfd;font-weight:700}.ps-category-list em{font-style:normal;color:#a8adb3}.ps-facet-block{padding:18px;border-top:1px solid var(--ps-border)}.ps-facet-block>b{display:block;margin-bottom:12px;font-size:14px}.ps-check-list{display:flex;flex-direction:column;gap:4px}.ps-check-list a{padding:8px 10px;color:#555;text-decoration:none;border-radius:2px;font-size:13px}.ps-check-list a:before{content:'□';margin-right:8px;color:#9da3aa}.ps-check-list a.on{background:#eaf8fb;color:#168fa8;font-weight:700}.ps-check-list a.on:before{content:'✓';color:#168fa8}.ps-catalog-main{min-width:0}.ps-catalog-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--ps-border);padding:15px 18px;margin-bottom:16px;border-radius:3px}.ps-catalog-toolbar b{font-size:18px}.ps-catalog-toolbar span{margin-left:10px;color:#8a8f95;font-size:13px}.ps-catalog-toolbar label{font-size:13px}.ps-catalog-toolbar select{margin-left:8px;padding:8px 28px 8px 10px;border:1px solid #bbc2ca;background:#fff}
.lm-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.lm-product{background:#fff!important;border:1px solid var(--ps-border)!important;border-radius:3px!important;box-shadow:0 1px 3px rgba(0,0,0,.05)!important;padding:12px!important;transition:.18s}.lm-product:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(0,0,0,.12)!important}.lm-product .lm-img{border-radius:2px!important;background:#fff!important}.lm-product h3{font-size:15px!important;min-height:42px}.lm-v100-tags span,.lm-kind-pill{border-radius:2px!important}.lm-v100-points{color:#168fa8!important}.lm-add{border-radius:3px!important;background:var(--ps-blue)!important}.lm-price strong{color:#e55353!important}.lm-mobile-view-switch{background:#fff;border:1px solid var(--ps-border);border-radius:3px;margin-bottom:15px}.lm-note-cards{display:none}
/* Back office: PrestaShop-style permanent left navigation */
.lm-admin{max-width:none!important;margin:0!important;padding:0 22px 70px 270px!important;background:var(--ps-bg);min-height:100vh}.lm-admin-unified-store-header{display:none}.zjb-admin-topbar{position:fixed!important;left:0;top:0;bottom:0;width:248px;height:100vh;z-index:300;background:var(--ps-sidebar)!important;color:#fff;display:block!important;padding:0!important;overflow-y:auto;box-shadow:2px 0 8px rgba(0,0,0,.16);border:0!important}.zjb-admin-brand{padding:24px 20px 20px;background:#202a35;border-bottom:1px solid rgba(255,255,255,.08)}.zjb-admin-brand b{font-size:18px;color:#fff}.zjb-admin-brand small{display:block;margin-top:7px;color:#9eabb8;line-height:1.5}.zjb-admin-menu{display:block!important;padding:12px 0}.zjb-menu-group{display:block!important}.zjb-menu-group>button{width:100%;text-align:left;padding:13px 20px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d8e0e7!important;font-weight:700}.zjb-menu-group.on>button,.zjb-menu-group>button:hover{background:#202a35!important;color:#fff!important;border-left:4px solid var(--ps-blue)!important;padding-left:16px!important}.zjb-menu-drop,.zjb-menu-group:hover .zjb-menu-drop{position:static!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 8px!important;min-width:0!important}.zjb-menu-drop a{display:block!important;padding:10px 20px 10px 34px!important;color:#aeb9c4!important;background:transparent!important;border-radius:0!important;font-size:13px}.zjb-menu-drop a:hover{color:#fff!important;background:#344353!important}.zjb-mobile-menu{display:none!important}.lm-admin>section,.lm-admin>.lm-ok,.lm-admin>form{max-width:1500px;margin-left:auto;margin-right:auto}.lm-admin h2{color:#363a41}.lm-admin section,.lm-admin .lm-panel,.lm-orders-v42{border-radius:3px!important}.lm-admin button,.lm-admin .lm-primary,.lm-export-btn.primary{border-radius:3px!important}.lm-admin table{border-collapse:collapse}.lm-admin th{background:#f6f7f8!important;color:#555!important;border-bottom:2px solid #dfe3e8!important}.lm-admin td{border-bottom:1px solid #e8eaed!important}.lm-admin input,.lm-admin select,.lm-admin textarea{border-radius:2px!important;border-color:#bbc2ca!important}.lm-admin .lm-kicker{color:#168fa8!important}
@media(max-width:1180px){.lm-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.ps-shop-layout{grid-template-columns:1fr}.ps-facets{display:none}.lm-products{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-apple-toolbar{grid-template-columns:1fr auto}.lm-apple-search{grid-column:1/-1;grid-row:2}.lm-admin{padding:0 12px 80px!important}.zjb-admin-topbar{position:relative!important;width:auto;height:auto;margin:0 -12px 18px;overflow:visible}.zjb-admin-menu{display:grid!important;grid-template-columns:repeat(4,1fr)!important}.zjb-menu-drop{display:none!important}.zjb-menu-group:hover .zjb-menu-drop{display:block!important;position:absolute!important;background:#2b3643!important;min-width:200px!important}.zjb-admin-brand{padding:16px 18px}.ps-hero{padding:24px}.ps-hero h1{font-size:27px}}
@media(max-width:600px){.lm-shell{padding:0 10px 60px}.lm-apple-store-header{margin:0 -10px}.lm-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ps-hero-badge{display:none}.ps-catalog-toolbar{align-items:flex-start;gap:12px}.ps-catalog-toolbar label{display:none}.lm-product{padding:8px!important}.zjb-admin-menu{grid-template-columns:repeat(2,1fr)!important}}

/* v15 — modern marketplace seller center UI */
.lm-admin{padding-left:236px!important;background:#f6f7f9!important}
.zjb-admin-topbar{width:220px!important;background:#fff!important;color:#273142!important;border-right:1px solid #e7e9ee!important;box-shadow:none!important}
.zjb-admin-brand{background:#fff!important;border-bottom:1px solid #edf0f3!important;padding:22px 18px!important}
.zjb-admin-brand b{color:#20252d!important}.zjb-admin-brand small{color:#8b95a4!important}
.zjb-menu-group>button{color:#4d5968!important;padding:12px 18px!important;font-weight:800!important}
.zjb-menu-group.on>button,.zjb-menu-group>button:hover{background:#fff4ef!important;color:#ee4d2d!important;border-left:3px solid #ee4d2d!important;padding-left:15px!important}
.zjb-menu-drop a{color:#748091!important;padding:9px 18px 9px 32px!important}
.zjb-menu-drop a:hover{background:#fff7f3!important;color:#ee4d2d!important}

/* product list: list first, add form on demand */
.lm-products-workspace{max-width:1580px;margin:22px auto!important}
.lm-products-toolbar{background:#fff;border:1px solid #e6e9ee;border-radius:12px;padding:14px 18px!important;box-shadow:0 1px 3px rgba(16,24,40,.04)}
.lm-products-toolbar .lm-pane-toggle{background:#ee4d2d!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:10px 16px!important;box-shadow:none!important}
.lm-products-toolbar span{color:#7c8796!important}
.lm-resizable-products,.lm-products-workspace.is-left-collapsed .lm-resizable-products{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
.lm-splitter{display:none!important}
.lm-product-create-panel{position:relative!important;top:auto!important;order:1;max-width:none!important;border:1px solid #e6e9ee!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important;padding:24px!important}
.lm-product-list-panel{order:2;border:1px solid #e6e9ee!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important;background:#fff!important;padding:0!important}
.lm-products-workspace.is-left-collapsed .lm-product-create-panel{display:none!important}
.lm-product-list-head{padding:22px 24px 12px!important;margin:0!important;border-bottom:1px solid #eef0f3}
.lm-product-list-head h2{font-size:24px!important;letter-spacing:-.02em!important}.lm-product-list-head p{font-size:14px!important}
.lm-partner-filter{padding:16px 24px!important;margin:0!important;border-bottom:1px solid #eef0f3;background:#fbfcfd}
.lm-partner-filter a{border-radius:7px!important;box-shadow:none!important;padding:8px 12px!important}
.lm-partner-filter a.on{background:#fff0ea!important;color:#ee4d2d!important;border-color:#ffcbbb!important}
.lm-table-scroll{overflow:auto!important;padding:0 18px 14px}
.lm-product-admin-table{min-width:1120px!important}
.lm-product-admin-table th{height:48px;padding:0 12px!important;background:#fafbfc!important;font-size:12px!important;color:#7b8491!important;text-transform:none!important}
.lm-product-admin-table td{padding:14px 12px!important;vertical-align:middle!important;background:#fff}
.lm-product-admin-table tbody tr:hover td{background:#fffaf8!important}
.lm-click-table tbody tr:hover{transform:none!important}
.lm-admin-product-thumb{width:58px!important;height:58px!important;border-radius:8px!important;object-fit:cover!important;border:1px solid #e8ebef!important}
.lm-product-title-link{font-size:14px!important}.lm-click-table td small{max-width:420px!important;color:#9199a5!important}
.lm-source-pill,.lm-status-pill,.lm-kind-pill{border-radius:6px!important;padding:5px 8px!important;font-size:11px!important}
.lm-row-actions{white-space:normal!important;min-width:170px}.lm-row-actions a,.lm-row-actions button{border-radius:6px!important;padding:7px 10px!important;box-shadow:none!important}
.lm-row-actions a:first-child{background:#fff0ea!important;color:#ee4d2d!important;border-color:#ffcbbb!important}
.lm-admin-pagination{padding:18px 24px!important;border-top:1px solid #eef0f3!important;margin:0!important}

/* create product form: spacious sections */
.lm-product-create-panel .lm-section-head{margin-bottom:22px!important}.lm-product-create-panel .lm-section-head h2{font-size:24px!important}
.lm-product-create-panel>input,.lm-product-create-panel>select,.lm-product-create-panel>textarea,.lm-product-create-panel .lm-row{max-width:1080px}
.lm-product-create-panel input,.lm-product-create-panel select,.lm-product-create-panel textarea{min-height:44px!important;border-radius:8px!important;border:1px solid #dfe3e8!important;background:#fff!important;padding:11px 13px!important}
.lm-product-create-panel textarea{min-height:110px!important}
.lm-product-create-panel .lm-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.lm-product-create-panel>button{width:auto!important;min-width:150px!important;border-radius:8px!important;background:#ee4d2d!important;padding:12px 22px!important}

/* product editor: no cramped two-column layout */
.lm-manager-shell{display:block!important;max-width:1580px;margin:22px auto!important}
.lm-product-sidebar{position:relative!important;top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 250px!important;gap:16px!important;margin-bottom:18px!important}
.lm-product-picker,.lm-product-live-card,.lm-prestashop-editor,.lm-editor-card{border:1px solid #e6e9ee!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important;background:#fff!important;backdrop-filter:none!important}
.lm-product-picker{padding:20px 22px!important}.lm-product-picker h2{font-size:23px!important;letter-spacing:-.02em!important}.lm-product-picker p{margin-bottom:12px!important}
.lm-product-picker select{border-radius:8px!important;min-height:44px!important}.lm-picker-actions{display:flex!important;gap:10px!important;margin-top:12px!important}
.lm-product-live-card{display:grid!important;grid-template-columns:76px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:12px!important;padding:14px!important}
.lm-product-live-card img{grid-row:1/3;width:76px!important;height:76px!important;aspect-ratio:1!important;border-radius:8px!important}.lm-product-live-card b{font-size:15px!important;margin:0!important}.lm-product-live-card span{font-size:13px!important}
.lm-prestashop-editor{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.lm-editor-hero{position:sticky!important;top:0!important;z-index:20!important;border-radius:12px!important;padding:16px 20px!important;margin-bottom:16px!important;box-shadow:0 2px 8px rgba(16,24,40,.08)!important;background:#fff!important}
.lm-editor-hero h2{font-size:23px!important;letter-spacing:-.02em!important}.lm-editor-hero p{margin:4px 0 0!important;font-size:13px!important}
.lm-editor-actions a,.lm-editor-actions button{border-radius:8px!important;padding:10px 16px!important;box-shadow:none!important}.lm-editor-actions button{background:#ee4d2d!important}
.lm-editor-layout{display:block!important;margin:0!important}
.lm-editor-card{padding:24px!important;margin-bottom:16px!important}.lm-editor-card h3{font-size:18px!important;margin-bottom:20px!important;padding-bottom:14px!important;border-bottom:1px solid #edf0f3!important}
.lm-prestashop-editor label{font-size:13px!important;font-weight:700!important;margin-bottom:16px!important;color:#4a5565!important}
.lm-prestashop-editor input,.lm-prestashop-editor select,.lm-prestashop-editor textarea{border-radius:8px!important;min-height:44px!important;padding:11px 13px!important;border:1px solid #dfe3e8!important}
.lm-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
.lm-image-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.lm-image-card{border-radius:10px!important;padding:12px!important}.lm-image-frame{border-radius:8px!important}
.lm-html-editor{min-height:360px!important;border-radius:8px!important;padding:20px!important}
.lm-sticky-save{border-radius:10px!important;bottom:12px!important;background:#fff!important;color:#273142!important;border:1px solid #e2e6eb!important;box-shadow:0 8px 24px rgba(16,24,40,.14)!important}.lm-sticky-save button{background:#ee4d2d!important;color:#fff!important;border-radius:8px!important}

@media(max-width:1100px){.lm-admin{padding-left:0!important}.zjb-admin-topbar{width:auto!important}.lm-product-sidebar{grid-template-columns:1fr!important}.lm-product-live-card{display:none!important}.lm-image-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.lm-editor-row,.lm-product-create-panel .lm-row{grid-template-columns:1fr!important}.lm-image-card-grid{grid-template-columns:1fr!important}.lm-editor-card{padding:16px!important}.lm-product-list-head{padding:18px!important}.lm-partner-filter{padding:12px 18px!important}.lm-editor-hero{position:relative!important;align-items:stretch!important}.lm-editor-actions{display:grid!important;grid-template-columns:1fr 1fr!important}}
\n\n/* =========================================================\n   2026-07-21 CONVERGED V1\n   Front: grocery marketplace layout\n   Admin: collapsible seller-center sidebar + clear form zones\n   ========================================================= */\n:root{--zjb-green:#0d5b4d;--zjb-green2:#19bf75;--zjb-bg:#f4f6f8;--zjb-line:#e5e9ee;--zjb-text:#1f2937;--zjb-muted:#6b7280;--zjb-blue:#eaf3ff;--zjb-orange:#fff3e5;--zjb-green-soft:#eaf8f1;--zjb-purple:#f2ecff}\nbody{background:#fff;color:var(--zjb-text)}\n.lm-shell{max-width:1440px;margin:0 auto;padding:0 14px 40px}\n.lm-apple-store-header{position:sticky;top:0;z-index:90;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);margin:0 -14px 18px}\n.lm-apple-toolbar{background:var(--zjb-green);min-height:72px;padding:10px 22px;display:grid;grid-template-columns:220px minmax(320px,1fr) auto;gap:18px;align-items:center}\n.lm-apple-logo,.lm-apple-logo span{color:#fff!important}.lm-apple-logo img{height:44px;max-width:150px;object-fit:contain}.lm-apple-search{display:grid!important;grid-template-columns:1fr 92px;max-width:none;background:#fff;border-radius:4px;overflow:hidden}.lm-apple-search input{height:44px;border:0!important;padding:0 16px;font-size:15px}.lm-apple-search button{border:0;background:var(--zjb-green2);color:#fff;font-weight:800}.lm-apple-actions a{color:#fff!important;font-weight:700}.lm-apple-cats{min-height:46px;padding:0 22px;display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--zjb-line);overflow:auto}.lm-apple-cats a{padding:13px 16px;color:#263238;font-weight:700;white-space:nowrap;border-bottom:3px solid transparent}.lm-apple-cats a.on{color:var(--zjb-green2);border-bottom-color:var(--zjb-green2)}\n.ps-breadcrumb{font-size:13px;margin-bottom:12px}.ps-hero{background:linear-gradient(105deg,#eefaf5,#f9fffc);border:1px solid #d8eee5;border-radius:8px;min-height:150px;padding:28px 34px}.ps-hero h1{font-size:32px}.ps-hero-badge{background:#fff;border:1px solid #d9ebe4;box-shadow:0 8px 24px rgba(13,91,77,.08)}\n.ps-shop-layout{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:22px!important;align-items:start}.ps-facets{position:sticky;top:138px;border:1px solid var(--zjb-line);border-radius:6px;background:#fff;overflow:hidden}.ps-facet-title{background:#f7f8fa;padding:16px 18px;font-size:17px;font-weight:900;border-bottom:1px solid var(--zjb-line)}.ps-category-list a,.ps-check-list a{border-bottom:1px solid #f0f2f4;padding:11px 16px}.ps-category-list a.on,.ps-check-list a.on{background:var(--zjb-green-soft);color:var(--zjb-green);font-weight:800}.ps-facet-block{padding:16px;border-top:8px solid var(--zjb-bg)}.ps-facet-block>b{display:block;margin-bottom:10px;font-size:15px}.ps-catalog-toolbar{border:1px solid var(--zjb-line);background:#fff;border-radius:6px;padding:14px 16px;margin-bottom:16px}.lm-products.v100-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}.lm-product-v100{border:1px solid var(--zjb-line)!important;border-radius:6px!important;background:#fff;box-shadow:none!important;overflow:hidden;transition:.18s}.lm-product-v100:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.08)!important}.lm-product-v100 .lm-v100-top{display:block!important}.lm-product-v100 .lm-img{height:210px!important;background:#fff;border-bottom:1px solid #f0f2f4}.lm-product-v100 .lm-img img{width:100%;height:100%;object-fit:contain;padding:12px}.lm-product-v100 .lm-v100-info{padding:10px 12px 4px!important}.lm-product-v100 h3{padding:0 12px 14px!important;min-height:54px;font-size:14px;line-height:1.45}.lm-v100-tags{font-size:11px}.lm-v100-points{color:#f59e0b;font-weight:800}.lm-price strong{color:var(--zjb-green2)!important}.lm-add{background:var(--zjb-green2)!important;border-radius:4px!important}.lm-control-cards.lm-note-cards{display:none!important}\n\n/* Admin becomes a left seller-center navigation */\nbody:has(.lm-admin){background:var(--zjb-bg)}\n.lm-admin{min-height:100vh;padding-left:248px;transition:padding-left .22s ease}.lm-admin-unified-store-header{display:none!important}.zjb-admin-topbar{position:fixed!important;left:0;top:0;bottom:0;width:248px;height:100vh!important;z-index:1000;background:#fff!important;border-right:1px solid var(--zjb-line);box-shadow:4px 0 18px rgba(17,24,39,.05);padding:18px 12px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow-y:auto;transition:width .22s ease}.zjb-sidebar-toggle{width:42px;height:42px;border:1px solid var(--zjb-line);background:#fff;border-radius:10px;font-size:20px;cursor:pointer;margin:0 0 14px 4px;color:#374151}.zjb-sidebar-toggle:hover{background:var(--zjb-green-soft);color:var(--zjb-green)}.zjb-admin-brand{padding:4px 10px 18px!important;border-bottom:1px solid var(--zjb-line);margin-bottom:12px}.zjb-admin-brand b{display:block;font-size:18px;color:var(--zjb-green)}.zjb-admin-brand small{display:block;margin-top:6px;color:var(--zjb-muted);line-height:1.5}.zjb-admin-menu{display:flex!important;flex-direction:column!important;gap:7px!important}.zjb-menu-group{width:100%;position:relative}.zjb-menu-group>button{width:100%!important;height:46px!important;text-align:left!important;padding:0 15px!important;border:0!important;border-radius:9px!important;background:#fff!important;color:#374151!important;font-weight:800!important}.zjb-menu-group.on>button,.zjb-menu-group>button:hover{background:var(--zjb-green-soft)!important;color:var(--zjb-green)!important}.zjb-menu-drop,.zjb-menu-drop-right{position:static!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;border:0!important;padding:3px 0 6px 14px!important;background:transparent!important;min-width:0!important}.zjb-menu-drop a{display:block!important;padding:9px 12px!important;border-radius:7px!important;color:#64748b!important;font-size:13px!important}.zjb-menu-drop a:hover{background:#f3f6f8!important;color:var(--zjb-green)!important}.zjb-mobile-menu{display:none!important}.lm-admin>section,.lm-admin>.lm-ok{margin-left:24px!important;margin-right:24px!important}.lm-admin>.lm-ok{margin-top:20px!important}\nbody.zjb-sidebar-collapsed .lm-admin{padding-left:76px}.zjb-sidebar-collapsed .zjb-admin-topbar{width:76px;padding-left:10px!important;padding-right:10px!important;overflow:visible}.zjb-sidebar-collapsed .zjb-admin-brand{display:none}.zjb-sidebar-collapsed .zjb-menu-group>button{font-size:0;text-align:center!important;padding:0!important}.zjb-sidebar-collapsed .zjb-menu-group>button:before{font-size:20px;display:block}.zjb-sidebar-collapsed .zjb-menu-group:nth-child(1)>button:before{content:'📦'}.zjb-sidebar-collapsed .zjb-menu-group:nth-child(2)>button:before{content:'🧾'}.zjb-sidebar-collapsed .zjb-menu-group:nth-child(3)>button:before{content:'📅'}.zjb-sidebar-collapsed .zjb-menu-group:nth-child(4)>button:before{content:'⚙️'}.zjb-sidebar-collapsed .zjb-menu-drop{display:none!important}.zjb-sidebar-collapsed .zjb-menu-group:hover .zjb-menu-drop{display:block!important;position:absolute!important;left:62px!important;top:0!important;width:210px!important;background:#fff!important;border:1px solid var(--zjb-line)!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important;padding:8px!important;border-radius:10px!important}.zjb-sidebar-collapsed .zjb-sidebar-toggle{margin-left:6px}\n\n/* Clear seller-center content blocks */\n.lm-panel,.lm-table,.lm-editor-card,.lm-product-list-panel,.lm-products-toolbar,.lm-order-tools,.lm-order-search-v113{border:1px solid var(--zjb-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 12px rgba(17,24,39,.04)!important}.lm-panel,.lm-editor-card{padding:24px!important}.lm-section-head,.lm-product-list-head,.lm-editor-toolbar{padding:18px 22px!important;background:#f8fafc!important;border-bottom:1px solid var(--zjb-line)!important}.lm-section-head h2,.lm-product-list-head h2,.lm-editor-toolbar h2{margin:3px 0 4px!important;font-size:20px!important}.lm-kicker{color:var(--zjb-green)!important;font-weight:900!important}.lm-product-list-panel{overflow:hidden}.lm-table-scroll{padding:0 16px 16px}.lm-product-admin-table{min-width:1080px}.lm-product-admin-table thead th{background:#f8fafc!important;position:sticky;top:0;z-index:2}.lm-product-admin-table td{padding:16px 10px!important;vertical-align:middle!important}.lm-admin-product-thumb{width:72px!important;height:72px!important;border-radius:8px!important}.lm-product-title-link{font-size:15px!important}.lm-row-actions{min-width:200px}.lm-row-actions a,.lm-row-actions button{border-radius:7px!important;padding:7px 10px!important}.lm-product-create-panel{border-top:6px solid #3b82f6!important;background:linear-gradient(#f5f9ff 0 72px,#fff 72px)!important}.lm-prestashop-editor .lm-editor-main>.lm-editor-card:nth-child(4n+1),.lm-editor-main>.lm-editor-card:nth-child(4n+1){border-top:6px solid #3b82f6!important}.lm-prestashop-editor .lm-editor-main>.lm-editor-card:nth-child(4n+2),.lm-editor-main>.lm-editor-card:nth-child(4n+2){border-top:6px solid #f59e0b!important}.lm-prestashop-editor .lm-editor-main>.lm-editor-card:nth-child(4n+3),.lm-editor-main>.lm-editor-card:nth-child(4n+3){border-top:6px solid #10b981!important}.lm-prestashop-editor .lm-editor-main>.lm-editor-card:nth-child(4n),.lm-editor-main>.lm-editor-card:nth-child(4n){border-top:6px solid #8b5cf6!important}.lm-editor-layout{gap:22px!important}.lm-editor-card label,.lm-panel label{display:flex;flex-direction:column;gap:7px;font-weight:800;color:#334155}.lm-editor-card input,.lm-editor-card select,.lm-editor-card textarea,.lm-panel input,.lm-panel select,.lm-panel textarea{min-height:44px;border:1px solid #cfd7e3!important;border-radius:8px!important;background:#fff!important;padding:10px 12px!important}.lm-editor-card input:focus,.lm-editor-card select:focus,.lm-editor-card textarea:focus,.lm-panel input:focus,.lm-panel select:focus,.lm-panel textarea:focus{outline:3px solid rgba(25,191,117,.14)!important;border-color:var(--zjb-green2)!important}.lm-image-card-grid{grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:18px!important}.lm-image-card{border:1px solid var(--zjb-line)!important;border-radius:12px!important;padding:12px!important;background:#fff!important}.lm-image-frame{min-height:210px!important;background:#f8fafc!important;border-radius:9px!important}.lm-editor-actions button,.lm-panel>button,.lm-export-btn.primary{background:var(--zjb-green2)!important;border-color:var(--zjb-green2)!important;color:#fff!important;border-radius:8px!important}\n@media(max-width:1180px){.lm-products.v100-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ps-shop-layout{grid-template-columns:220px minmax(0,1fr)!important}.lm-apple-toolbar{grid-template-columns:180px minmax(240px,1fr) auto}}\n@media(max-width:900px){.lm-admin{padding-left:0!important}.zjb-admin-topbar{position:sticky!important;top:0!important;width:100%!important;height:auto!important;bottom:auto!important;display:block!important;padding:10px 14px!important}.zjb-sidebar-toggle{display:none}.zjb-admin-brand{display:none!important}.zjb-admin-menu{display:none!important}.zjb-mobile-menu{display:block!important}.lm-admin>section,.lm-admin>.lm-ok{margin-left:12px!important;margin-right:12px!important}.lm-apple-toolbar{grid-template-columns:1fr auto}.lm-apple-logo{grid-column:1}.lm-apple-search{grid-column:1/-1;grid-row:2}.ps-shop-layout{display:block!important}.ps-facets{position:static;margin-bottom:16px}.lm-products.v100-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lm-image-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}\n@media(max-width:560px){.lm-shell{padding-left:8px;padding-right:8px}.lm-apple-store-header{margin-left:-8px;margin-right:-8px}.lm-apple-toolbar{padding:10px 12px}.lm-apple-logo span{display:none}.lm-apple-cats{padding:0 8px}.ps-hero{padding:20px;min-height:auto}.ps-hero h1{font-size:24px}.lm-products.v100-products{gap:9px!important}.lm-product-v100 .lm-img{height:150px!important}.lm-product-v100 h3{font-size:13px}.lm-image-card-grid{grid-template-columns:1fr!important}}\n
/* 2026-07-21 Hero text contrast fix */
.ps-hero{color:#16352e!important}
.ps-hero small{color:#0f9f73!important}
.ps-hero h1{color:#16352e!important;text-shadow:none!important}
.ps-hero p{color:#52606d!important}
.ps-hero-badge b{color:#0d5b4d!important}
.ps-hero-badge span{color:#64748b!important}


/* === 2026-07-21 Header title/menu visibility hotfix === */
.lm-apple-store-header .lm-apple-toolbar{
  background:#ffffff !important;
  border-bottom:1px solid #e5e9ee !important;
}
.lm-apple-store-header .lm-apple-logo,
.lm-apple-store-header .lm-apple-logo span{
  color:#0d5b4d !important;
}
.lm-apple-store-header .lm-apple-search{
  background:#ffffff !important;
  border:1px solid #aeb8c5 !important;
  box-shadow:none !important;
}
.lm-apple-store-header .lm-apple-search input{
  color:#1f2937 !important;
  background:#ffffff !important;
  opacity:1 !important;
}
.lm-apple-store-header .lm-apple-search input::placeholder{
  color:#6b7280 !important;
  opacity:1 !important;
}
.lm-apple-store-header .lm-apple-search button{
  background:#19a96b !important;
  color:#ffffff !important;
  opacity:1 !important;
}
.lm-apple-store-header .lm-apple-actions{
  display:flex !important;
  gap:8px !important;
}
.lm-apple-store-header .lm-apple-actions a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:9px 13px !important;
  border:1px solid #dce3ea !important;
  border-radius:8px !important;
  background:#f7f9fb !important;
  color:#24313d !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  opacity:1 !important;
  text-shadow:none !important;
  box-shadow:none !important;
}
.lm-apple-store-header .lm-apple-actions a:hover{
  background:#eaf8f1 !important;
  border-color:#9dd7bd !important;
  color:#0d5b4d !important;
}
.lm-apple-store-header .lm-apple-cats{
  background:#ffffff !important;
}
.lm-apple-store-header .lm-apple-cats a{
  color:#263238 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
.lm-apple-store-header .lm-apple-cats a.on{
  color:#0d5b4d !important;
  background:#eefaf5 !important;
  border-bottom-color:#19a96b !important;
}
@media(max-width:900px){
  .lm-apple-store-header .lm-apple-actions{
    display:none !important;
  }
  .lm-apple-store-header .lm-apple-actions.show{
    display:flex !important;
  }
}

/* === TRUE COLLAPSE + RBAC + VISUAL PUBLISH V1 === */
body.zjb-sidebar-collapsed .lm-admin{padding-left:0!important}
body.zjb-sidebar-collapsed .zjb-admin-topbar{width:0!important;padding:0!important;border:0!important;overflow:visible!important;box-shadow:none!important}
body.zjb-sidebar-collapsed .zjb-admin-topbar>*:not(.zjb-sidebar-toggle){display:none!important}
body.zjb-sidebar-collapsed .zjb-sidebar-toggle{position:fixed!important;left:14px!important;top:14px!important;margin:0!important;z-index:1200!important;background:#fff!important;box-shadow:0 8px 25px rgba(0,0,0,.18)!important}
body.zjb-sidebar-collapsed .lm-admin>section,body.zjb-sidebar-collapsed .lm-admin>.lm-ok{margin-left:24px!important}
.lm-shortcode-slider{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:12px;margin:20px 0}.lm-shortcode-slide{min-width:100%;position:relative;scroll-snap-align:start}.lm-shortcode-slide img{width:100%;max-height:380px;object-fit:cover;border-radius:14px}.lm-shortcode-slide span{position:absolute;left:20px;bottom:20px;background:rgba(0,0,0,.62);color:#fff;padding:9px 13px;border-radius:8px}
.lm-rbac-page,.publish-body{margin:0;background:#f4f6f8;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#24313d}
.rbac-head,.publish-head{min-height:68px;background:#fff;border-bottom:1px solid #dfe5ec;display:flex;align-items:center;gap:20px;padding:12px 24px;position:sticky;top:0;z-index:20}.rbac-head h1{margin:0;flex:1;font-size:23px}.rbac-head a,.publish-head a{color:#0d5b4d;font-weight:800;text-decoration:none}.rbac-shell{max-width:1500px;margin:auto;padding:22px;display:grid;gap:20px}.rbac-card{background:#fff;border:1px solid #e1e7ee;border-radius:14px;overflow:hidden}.rbac-blue{border-top:7px solid #3b82f6}.rbac-green{border-top:7px solid #10b981}.rbac-orange{border-top:7px solid #f59e0b}.rbac-title{padding:18px 22px;background:#f8fafc;border-bottom:1px solid #e5e9ee}.rbac-title b{font-size:20px}.rbac-title small{display:block;color:#64748b;margin-top:6px}.rbac-form{padding:20px;display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.rbac-form label,.role-box>label{font-weight:800;color:#334155}.rbac-form input,.rbac-form select,.role-box input{width:100%;height:44px;border:1px solid #cfd7e3;border-radius:8px;padding:8px 11px;margin-top:7px}.rbac-form button,.role-box button,.publish-head button,.publish-save{border:0;border-radius:8px;background:#19a96b;color:#fff;font-weight:900;padding:12px 18px}.rbac-check{display:flex!important;align-items:center;gap:8px}.rbac-check input{width:auto;height:auto;margin:0}.rbac-table{overflow:auto;padding:0 20px 20px}.rbac-table table{width:100%;border-collapse:collapse}.rbac-table th,.rbac-table td{text-align:left;padding:13px;border-bottom:1px solid #edf0f3}.rbac-pill{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}.rbac-pill.on{background:#eaf8f1;color:#087443}.rbac-pill.off{background:#fff1f2;color:#be123c}.role-box{padding:18px 20px;border-bottom:1px solid #edf0f3}.perm-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:14px 0}.perm-grid label{background:#f7f9fb;border:1px solid #e4e9ef;border-radius:8px;padding:10px}.perm-grid input{margin-right:6px}.rbac-ok,.rbac-err,.publish-msg{padding:12px 16px;border-radius:9px}.rbac-ok,.publish-msg.ok{background:#eaf8f1;color:#087443}.rbac-err,.publish-msg.err{background:#fff1f2;color:#be123c}
.publish-head>div{flex:1}.publish-head b{display:block;font-size:18px}.publish-head small{display:block;color:#64748b;margin-top:3px}.publish-layout{display:grid;grid-template-columns:minmax(520px,48%) minmax(0,52%);gap:20px;max-width:1700px;margin:auto;padding:20px}.publish-editor{display:grid;gap:17px}.publish-zone{background:#fff;border:1px solid #e1e7ee;border-radius:14px;padding:22px}.publish-zone h2{margin:0 -22px 18px;padding:0 22px 16px;border-bottom:1px solid #e7ebf0;font-size:20px}.zone-blue{border-top:7px solid #3b82f6}.zone-orange{border-top:7px solid #f59e0b}.zone-green{border-top:7px solid #10b981}.zone-purple{border-top:7px solid #8b5cf6}.publish-zone label{display:flex;flex-direction:column;gap:7px;font-weight:800;color:#334155;margin:10px 0}.publish-zone input,.publish-zone select{height:45px;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px}.price-grid,.group-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.switch-line{flex-direction:row!important;align-items:center}.switch-line input{height:auto}.region-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.region-grid label{flex-direction:row;background:#f7f9fb;padding:10px;border-radius:8px;margin:0}.region-grid input{height:auto}.editor-tools{display:flex;gap:8px;flex-wrap:wrap}.editor-tools button{border:1px solid #d5dce5;background:#fff;border-radius:7px;padding:8px 11px;font-weight:800}.editor-tools button:nth-child(3){background:#eef6ff}.editor-tools button:nth-child(4){background:#f3edff}.#dropHint{}#dropHint{margin:10px 0;padding:10px;background:#f8fafc;border:1px dashed #b9c4d0;border-radius:8px;color:#64748b}#visualEditor{min-height:430px;background:#fff;border:2px dashed #c7d1dc;border-radius:10px;padding:18px;line-height:1.8;outline:none}#visualEditor:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.12)}#visualEditor img{max-width:100%;border-radius:10px}.content-canvas{padding:24px;background:#f7f9fc;border:1px solid #dfe6ee;border-radius:12px;margin:14px 0}.publish-status{display:flex;gap:8px;align-items:center;font-weight:900}.publish-save{font-size:17px}.publish-preview{min-width:0}.preview-sticky{position:sticky;top:90px}.preview-label{font-weight:900;color:#0d5b4d;margin-bottom:9px}.preview-card{display:grid;grid-template-columns:48% 1fr;background:#fff;border:1px solid #dfe5ec;border-radius:15px;overflow:hidden;box-shadow:0 12px 35px rgba(15,23,42,.08)}.preview-card>img{width:100%;height:430px;object-fit:contain;background:#f8fafc}.preview-card>div{padding:35px}.preview-card h1{font-size:30px}.preview-card p{color:#64748b}.preview-card strong{display:block;color:#19a96b;font-size:30px;margin:24px 0}.preview-card button{background:#19a96b;color:#fff;border:0;border-radius:8px;padding:14px 24px;font-weight:900}.preview-tag{color:#0d5b4d;font-weight:900}.preview-content{margin-top:16px;background:#fff;border:1px solid #dfe5ec;border-radius:15px;padding:28px;min-height:220px}.preview-content img{max-width:100%;border-radius:10px}
@media(max-width:1000px){.publish-layout{grid-template-columns:1fr}.preview-sticky{position:static}.rbac-form{grid-template-columns:1fr 1fr}.perm-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.rbac-form,.price-grid,.group-fields{grid-template-columns:1fr}.publish-layout{padding:10px}.preview-card{grid-template-columns:1fr}.preview-card>img{height:280px}.perm-grid{grid-template-columns:1fr}}

.worker-product-body{background:#f4f1ec!important}.worker-product-toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 24px 12px;max-width:1800px;margin:auto}.worker-product-toolbar h1{margin:0;font-size:26px}.worker-product-toolbar p{margin:5px 0 0;color:#6b7280}.worker-new-product{background:#7db43a;color:#fff;text-decoration:none;font-weight:900;border-radius:10px;padding:12px 18px}.worker-product-layout{display:grid!important;grid-template-columns:320px minmax(620px,1fr) minmax(360px,.72fr)!important;gap:18px!important;max-width:1800px!important;margin:auto!important;padding:10px 20px 30px!important;align-items:start!important}.worker-product-list,.worker-product-editor,.worker-product-preview .preview-sticky{background:#fff;border:1px solid #e7e0d8;border-radius:18px;box-shadow:0 10px 28px rgba(54,43,34,.06)}.worker-product-list{position:sticky;top:86px;overflow:hidden;max-height:calc(100vh - 110px)}.worker-list-head{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid #eee8e1}.worker-list-head b{font-size:21px}.worker-list-head small{display:block;color:#8b8177;margin-top:3px}.worker-list-head a{background:#7db43a;color:#fff;text-decoration:none;font-weight:900;border-radius:999px;padding:8px 13px;font-size:13px}.worker-product-search{padding:12px 14px;border-bottom:1px solid #eee8e1}.worker-product-search input{width:100%;height:40px;border:1px solid #ddd6cd;border-radius:10px;padding:0 12px}.worker-product-items{overflow:auto;max-height:calc(100vh - 225px);padding:10px}.worker-product-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #ece5dd;border-radius:14px;text-decoration:none;color:#24313d;margin-bottom:10px;background:#fff}.worker-product-item.on{border:2px solid #6db33f;background:#f7fff1}.worker-product-thumb{width:64px;height:64px;border-radius:12px;background:#f5f1eb;display:flex;align-items:center;justify-content:center;overflow:hidden}.worker-product-thumb img{width:100%;height:100%;object-fit:cover}.worker-product-copy{min-width:0}.worker-product-copy b,.worker-product-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.worker-product-copy small{color:#8a8178;margin:4px 0 7px}.worker-product-copy div{display:flex;gap:9px;font-size:12px}.worker-product-copy span{color:#17855a;font-weight:900}.worker-product-copy em{font-style:normal;color:#6b7280}.worker-product-state{font-size:11px;font-weight:900;border-radius:999px;padding:5px 8px}.worker-product-state.ok{background:#e8f8ee;color:#15824f}.worker-product-state.off{background:#fff1f1;color:#c2413d}.worker-product-editor{padding:0 18px 20px;overflow:hidden}.worker-selected-title{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:13px;align-items:center;margin:0 -18px 18px;padding:18px;border-bottom:1px solid #ece5dd;background:linear-gradient(100deg,#fff,#f7fbff)}.worker-selected-icon{width:58px;height:58px;border-radius:15px;background:#edf5ff;display:grid;place-items:center;font-size:28px}.worker-selected-title h2{margin:0;font-size:23px}.worker-selected-title p{margin:5px 0 0;color:#7a746e}.worker-selected-badges{display:flex;gap:6px}.worker-selected-badges span{border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900}.worker-selected-badges .green{background:#e8faef;color:#11834d}.worker-selected-badges .orange{background:#fff2df;color:#b76512}.worker-product-editor .publish-zone{border-radius:14px!important;box-shadow:none!important;border:1px solid #e8e1d9!important;padding:18px!important}.worker-product-editor .publish-zone h2{margin:-18px -18px 16px!important;padding:14px 18px!important;font-size:18px!important}.worker-product-editor .zone-blue h2{background:#edf6ff;color:#255f91}.worker-product-editor .zone-orange h2{background:#fff5e9;color:#9a5d17}.worker-product-editor .zone-green h2{background:#edfaf3;color:#176e4b}.worker-product-editor .zone-purple h2{background:#f4efff;color:#6842a0}.worker-product-preview .preview-sticky{padding:14px;position:sticky;top:86px}.worker-product-preview .preview-card{grid-template-columns:1fr!important;box-shadow:none!important}.worker-product-preview .preview-card>img{height:280px!important}.worker-product-preview .preview-card>div{padding:22px!important}.publish-save,.publish-head button{background:#7db43a!important}@media(max-width:1450px){.worker-product-layout{grid-template-columns:290px minmax(560px,1fr)!important}.worker-product-preview{grid-column:2}.worker-product-preview .preview-sticky{position:static}}@media(max-width:980px){.worker-product-layout{grid-template-columns:1fr!important}.worker-product-list{position:static;max-height:none}.worker-product-items{max-height:360px}.worker-product-preview{grid-column:auto}}

.member-login-actions{display:grid;gap:10px;margin-top:14px}.line-login-btn,.register-btn{display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:10px;padding:14px;font-weight:900}.line-login-btn{background:#06c755;color:#fff}.register-btn{background:#eef6ff;color:#245b88;border:1px solid #cfe2f5}.member-form-body{margin:0;min-height:100vh;background:#f4f6f8;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;display:grid;place-items:center;color:#24313d}.member-form-card{width:min(94vw,760px);background:#fff;border-radius:18px;padding:32px;border-top:7px solid #19a96b;box-shadow:0 20px 60px rgba(15,23,42,.12)}.member-form-card.wide-card{width:min(94vw,900px)}.member-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.member-grid label{display:flex;flex-direction:column;gap:7px;font-weight:800}.member-grid .wide{grid-column:1/-1}.member-grid input{height:46px;border:1px solid #cfd7e3;border-radius:9px;padding:0 12px}.member-grid button,.member-form-card button{border:0;border-radius:9px;background:#19a96b;color:#fff;padding:14px;font-weight:900}.mf-ok,.mf-err{padding:12px;border-radius:9px;margin:12px 0}.mf-ok{background:#eaf8f1;color:#087443}.mf-err{background:#fff1f2;color:#be123c}.seller-admin-body{margin:0;background:#f4f6f8;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif}.seller-admin-card{max-width:1400px;margin:28px auto;background:#fff;border-radius:18px;padding:24px}.seller-head{display:flex;justify-content:space-between;align-items:center}.seller-table{overflow:auto}.seller-table table{width:100%;border-collapse:collapse}.seller-table th,.seller-table td{padding:14px;border-bottom:1px solid #e5e9ee;text-align:left}.seller-table small{display:block;color:#6b7280;margin-top:4px}.seller-table button{border:0;border-radius:8px;background:#19a96b;color:#fff;padding:9px 12px;font-weight:800}.seller-table button.danger{background:#ef4444}.contract-box{background:#f8fafc;border:1px solid #dfe6ee;border-radius:12px;padding:22px;line-height:1.8}.agree{display:flex;gap:8px;margin:16px 0;font-weight:800}@media(max-width:640px){.member-grid{grid-template-columns:1fr}.member-grid .wide{grid-column:auto}}

.member-console-body,.supplier-console-body,.approval-body{margin:0;background:#f4f1ec;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#26313b}.member-console{max-width:1200px;margin:24px auto;padding:0 16px}.member-console-head,.supplier-top,.approval-shell>header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:20px 24px;border-radius:16px;margin-bottom:18px}.console-card,.detail-card{background:#fff;border:1px solid #e7e0d8;border-radius:16px;padding:22px;margin-bottom:16px}.console-card.blue,.detail-card.blue{border-top:7px solid #4b9fe1}.console-card.green,.detail-card.green{border-top:7px solid #55ae74}.detail-card.orange{border-top:7px solid #e59a42}.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.status-grid>div{background:#f8fafc;border:1px solid #e6ebf0;border-radius:12px;padding:14px}.status-grid small,.status-grid b{display:block}.supplier-top{margin:0;border-radius:0}.supplier-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;padding:18px}.supplier-list{background:#fff;border-radius:16px;overflow:hidden;align-self:start;position:sticky;top:18px;max-height:calc(100vh - 36px)}.supplier-list-title{display:flex;justify-content:space-between;padding:18px;border-bottom:1px solid #eee}.supplier-list>input{width:calc(100% - 24px);margin:12px;height:40px;border:1px solid #ddd;border-radius:9px;padding:0 10px}.supplier-person{display:grid;grid-template-columns:48px 1fr;gap:10px;padding:12px;text-decoration:none;color:#26313b;border-top:1px solid #f0ece7}.supplier-person.on{background:#f3fff0;border-left:5px solid #73b642}.person-icon,.hero-icon{display:grid;place-items:center;background:#eef6ff;border-radius:12px;font-size:24px}.supplier-person small,.supplier-person em{display:block;color:#777;font-style:normal;margin-top:3px}.supplier-detail{min-width:0}.detail-hero{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;background:#fff;padding:18px;border-radius:16px;margin-bottom:15px}.detail-hero h2{margin:0}.detail-hero p{margin:4px 0;color:#777}.review-pill{padding:7px 11px;border-radius:999px;background:#eef1f4;font-weight:900}.review-pill.approved{background:#e7f8ee;color:#13764b}.review-pill.rejected{background:#fff0f0;color:#b42318}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.detail-grid label,.document-grid label{display:flex;flex-direction:column;gap:7px;font-weight:800}.detail-grid .wide{grid-column:1/-1}.detail-grid input,.detail-grid select,.document-grid input,.document-grid select,.document-grid textarea{min-height:44px;border:1px solid #d8d3cc;border-radius:9px;padding:9px}.document-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.document-grid textarea{min-height:90px}.empty-doc{padding:35px;background:#faf7f3;border:1px dashed #d8d0c7;border-radius:10px;text-align:center}.save-member{width:100%;border:0;background:#79b43b;color:#fff;padding:15px;border-radius:10px;font-weight:900}.approval-shell{max-width:1500px;margin:20px auto;padding:0 15px}.approval-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.approval-product{display:grid;grid-template-columns:180px 1fr;gap:16px;background:#fff;border-radius:15px;padding:14px;border:1px solid #e6e0d9}.approval-product img{width:180px;height:150px;object-fit:contain;background:#f7f7f7;border-radius:10px}.approval-product h3{margin:5px 0}.approval-product input{width:100%;height:39px;border:1px solid #ddd;border-radius:8px;padding:0 9px;margin:10px 0}.approval-product button{border:0;border-radius:8px;padding:9px 12px;background:#4cae69;color:#fff;font-weight:900}.approval-product button.warn{background:#e5a13e}.approval-product button.danger{background:#dc4c4c}.groupbuy-box{display:grid;grid-template-columns:auto auto auto 1fr;gap:10px;align-items:center;background:#fff4df;border:1px solid #efc77d;border-radius:12px;padding:13px;margin:12px 0}.groupbuy-box b{color:#aa5b00}.groupbuy-box strong{text-align:right;color:#d44322}.product-rating-summary{font-weight:900;color:#d68700;margin:10px 0}.review-btn{margin-left:10px;background:#fff3df;color:#a85a00;text-decoration:none;border-radius:999px;padding:5px 9px;font-weight:900}.rating-pick{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.rating-pick label{background:#fff4db;border:1px solid #edc978;border-radius:9px;padding:10px}.member-form-card textarea{width:100%;min-height:150px;border:1px solid #ddd;border-radius:10px;padding:12px;margin:10px 0}@media(max-width:900px){.supplier-layout{grid-template-columns:1fr}.supplier-list{position:static;max-height:400px}.detail-grid,.status-grid{grid-template-columns:1fr 1fr}.approval-grid{grid-template-columns:1fr}}@media(max-width:600px){.detail-grid,.status-grid,.document-grid{grid-template-columns:1fr}.approval-product{grid-template-columns:1fr}.approval-product img{width:100%}.groupbuy-box{grid-template-columns:1fr 1fr}.groupbuy-box strong{text-align:left}}

/* === Approval search + Creative Slider === */
.approval-head-actions{display:flex;gap:8px}.approval-filter-bar{display:grid;grid-template-columns:minmax(260px,1.8fr) minmax(180px,1fr) minmax(150px,.8fr) minmax(180px,1fr) auto auto;gap:12px;align-items:end;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:17px;margin:18px 0}.approval-filter-bar label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:#334155}.approval-filter-bar input,.approval-filter-bar select{height:44px;border:1px solid #cbd5e1;border-radius:8px;padding:0 11px;background:#fff}.approval-filter-bar button,.approval-filter-bar>a{height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:0 17px;text-decoration:none;font-weight:900}.approval-filter-bar button{background:#19a96b;color:#fff}.approval-filter-bar>a{background:#f1f5f9;color:#475569}.approval-result-head{display:flex;justify-content:space-between;padding:11px 4px;color:#64748b}.approval-product-image{position:relative}.approval-product-image>span{position:absolute;left:8px;top:8px;background:#17212b;color:#fff;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:900}.approval-meta{display:flex;justify-content:space-between;gap:8px}.approval-meta em{font-style:normal;color:#64748b;font-size:12px}.approval-group{margin:9px 0;padding:8px 10px;border-radius:8px;background:#fff5e9;color:#9a5d17;font-size:13px;font-weight:800}.approval-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.approval-actions a{display:inline-flex;align-items:center;padding:8px 10px;border:1px solid #cbd5e1;border-radius:7px;text-decoration:none;color:#334155;font-weight:800}.approval-empty{text-align:center;padding:40px;background:#fff;border-radius:14px;color:#64748b}
.slider-admin-body{margin:0;background:#f4f6f8;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#24313d}.slider-admin-shell{max-width:1800px;margin:auto;padding:20px}.slider-admin-head{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:16px;padding:20px 24px;border-top:6px solid #8b5cf6}.slider-admin-head h1{margin:0}.slider-admin-head p{margin:5px 0 0;color:#64748b}.slider-admin-head>div:last-child{display:flex;gap:8px}.slider-admin-head a{padding:10px 13px;border:1px solid #d7dee7;border-radius:8px;text-decoration:none;color:#334155;font-weight:800}.slider-admin-layout{display:grid;grid-template-columns:260px minmax(600px,1fr) minmax(320px,.7fr);gap:18px;margin-top:18px;align-items:start}.slider-module-list,.slider-editor,.slider-live-preview{background:#fff;border:1px solid #e1e7ee;border-radius:16px;overflow:hidden}.slider-module-list{position:sticky;top:15px}.slider-list-title{display:flex;justify-content:space-between;padding:16px;border-bottom:1px solid #e5e9ee}.slider-list-title a{background:#8b5cf6;color:#fff;text-decoration:none;border-radius:999px;padding:6px 10px;font-weight:900}.slider-module-list>a{display:grid;grid-template-columns:auto 1fr auto;gap:8px;padding:13px 14px;text-decoration:none;color:#334155;border-bottom:1px solid #edf0f3}.slider-module-list>a.on{background:#f4efff;border-left:4px solid #8b5cf6}.slider-module-list>a b{color:#6d28d9}.slider-module-list>a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slider-module-list>a em{font-style:normal;font-size:11px}.slider-zone{margin:16px;border:1px solid #e1e7ee;border-radius:13px;overflow:hidden}.slider-zone>h2,.slider-zone-title{margin:0;padding:15px 18px;border-bottom:1px solid #e1e7ee}.slider-blue{border-top:6px solid #3b82f6}.slider-blue>h2{background:#eef6ff;color:#245b88}.slider-purple{border-top:6px solid #8b5cf6}.slider-zone-title{background:#f4efff;color:#6842a0;display:flex;justify-content:space-between;align-items:center}.slider-zone-title h2{margin:0;font-size:20px}.slider-zone-title button{border:0;background:#8b5cf6;color:#fff;border-radius:8px;padding:9px 12px;font-weight:900}.slider-green{border-top:6px solid #10b981}.slider-green>h2{background:#edfaf3;color:#176e4b}.slider-form-grid{padding:17px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.slider-form-grid label,.slide-fields label{display:flex;flex-direction:column;gap:6px;font-weight:800;font-size:13px}.slider-form-grid input,.slider-form-grid select,.slide-fields input{height:43px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px}.slider-form-grid .wide{grid-column:1/-1}.slider-check{flex-direction:row!important;align-items:center}.slider-check input{height:auto}.slide-edit-card{display:grid;grid-template-columns:220px 1fr auto;gap:14px;padding:16px;border-bottom:1px solid #e5e9ee}.slide-preview{height:145px;border-radius:10px;background:#f1f5f9;display:grid;place-items:center;overflow:hidden;color:#94a3b8}.slide-preview img{width:100%;height:100%;object-fit:cover}.slide-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.remove-slide{align-self:start;border:0;background:#fff1f2;color:#be123c;border-radius:8px;padding:9px;font-weight:900}.slider-shortcode-box{display:flex;gap:10px;padding:18px}.slider-shortcode-box code{font-size:28px;background:#17212b;color:#fff;border-radius:9px;padding:10px 18px}.slider-shortcode-box button{border:0;border-radius:8px;background:#10b981;color:#fff;padding:0 15px;font-weight:900}.slider-zone>p{padding:0 18px 16px;color:#64748b}.slider-save-bar{position:sticky;bottom:12px;display:flex;gap:10px;margin:16px;background:#17212b;border-radius:12px;padding:12px;z-index:5}.slider-save-bar button{border:0;border-radius:8px;background:#19a96b;color:#fff;padding:12px 18px;font-weight:900}.slider-save-bar button.danger{background:#ef4444}.slider-live-preview{position:sticky;top:15px;padding:14px}.slider-preview-head{font-weight:900;margin-bottom:10px}.creative-slider{position:relative;height:var(--cs-height,420px);overflow:hidden;border-radius:14px;background:#111}.cs-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .7s ease,transform .7s ease;display:block;color:#fff;text-decoration:none}.cs-slide.is-active{opacity:1;pointer-events:auto}.cs-slide img{width:100%;height:100%;object-fit:cover}.cs-caption{position:absolute;left:8%;bottom:12%;max-width:70%;background:rgba(0,0,0,.48);padding:18px 22px;border-radius:12px;backdrop-filter:blur(6px)}.cs-caption h3{margin:0 0 8px;font-size:clamp(22px,3vw,42px)}.cs-caption p{margin:0 0 12px}.cs-caption span{display:inline-flex;background:#fff;color:#111;padding:8px 12px;border-radius:7px;font-weight:900}.effect-slide .cs-slide{transform:translateX(10%)}.effect-slide .cs-slide.is-active{transform:translateX(0)}.effect-zoom .cs-slide{transform:scale(1.1)}.effect-zoom .cs-slide.is-active{transform:scale(1)}.effect-flip .cs-slide{transform:rotateY(18deg) scale(.96)}.effect-flip .cs-slide.is-active{transform:none}.cs-prev,.cs-next{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.82);font-size:30px}.cs-prev{left:14px}.cs-next{right:14px}.cs-dots{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:7px;z-index:4}.cs-dots button{width:10px;height:10px;border:0;border-radius:50%;background:rgba(255,255,255,.55);padding:0}.cs-dots button.on{background:#fff;transform:scale(1.25)}
@media(max-width:1200px){.slider-admin-layout{grid-template-columns:230px 1fr}.slider-live-preview{grid-column:2;position:static}.approval-filter-bar{grid-template-columns:1fr 1fr 1fr}.approval-filter-bar button,.approval-filter-bar>a{align-self:end}}
@media(max-width:760px){.slider-admin-layout{grid-template-columns:1fr}.slider-module-list,.slider-live-preview{position:static}.slide-edit-card{grid-template-columns:1fr}.slide-fields,.slider-form-grid{grid-template-columns:1fr}.slider-form-grid .wide{grid-column:auto}.approval-filter-bar{grid-template-columns:1fr}.slider-admin-head{align-items:flex-start;flex-direction:column}}

/* === Slider supplier isolation === */
.slider-template-library{margin-top:18px;background:#fff;border:1px solid #ddd6fe;border-top:6px solid #8b5cf6;border-radius:15px;padding:18px}.slider-template-library h2{margin:0;color:#5b21b6}.slider-template-library>div:first-child p{margin:5px 0 14px;color:#64748b}.slider-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.slider-template-grid article{border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#faf8ff}.slider-template-grid article>b{display:inline-flex;background:#ede9fe;color:#6d28d9;border-radius:999px;padding:5px 9px}.slider-template-grid h3{margin:10px 0 5px}.slider-template-grid p{min-height:38px;color:#64748b;font-size:13px}.slider-template-grid button{border:0;border-radius:8px;background:#8b5cf6;color:#fff;padding:10px 12px;font-weight:900}.slider-owner-lock{grid-column:1/-1;background:#eefaf5;border:1px solid #bce7d2;border-radius:10px;padding:12px;display:grid;gap:4px}.slider-owner-lock b{color:#087443}.slider-owner-lock span{font-weight:900}.slider-owner-lock small{color:#64748b}.slider-module-list>a em{max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.slider-preview-empty{min-height:260px;border:2px dashed #cbd5e1;border-radius:13px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;color:#64748b}.slider-preview-empty b{font-size:18px;color:#334155;margin-bottom:7px}.slider-live-preview .creative-slider{width:100%;min-height:180px}.slider-live-preview .cs-caption{z-index:2}.slider-live-preview .effect-fade .cs-slide{transform:none}.slider-live-preview .effect-slide .cs-slide{transform:translateX(18%)}.slider-live-preview .effect-slide .cs-slide.is-active{transform:translateX(0)}.slider-live-preview .effect-zoom .cs-slide{transform:scale(1.16)}.slider-live-preview .effect-zoom .cs-slide.is-active{transform:scale(1)}.slider-live-preview .effect-flip{perspective:1200px}.slider-live-preview .effect-flip .cs-slide{transform:rotateY(35deg) scale(.92);transform-origin:center}.slider-live-preview .effect-flip .cs-slide.is-active{transform:rotateY(0) scale(1)}

/* === Mall mobile commerce + rich editor v3 === */
.rich-editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:12px;background:#f5f2ff;border:1px solid #ddd6fe;border-radius:12px 12px 0 0;position:sticky;top:0;z-index:8}
.rich-editor-toolbar button,.rich-editor-toolbar select,.rich-editor-toolbar input[type=color],.rich-editor-toolbar a{min-height:38px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:7px 10px;font:inherit;font-weight:800;color:#334155;text-decoration:none;cursor:pointer}
.rich-editor-toolbar button:hover,.rich-editor-toolbar button.on{background:#6d28d9;color:#fff;border-color:#6d28d9}
.rich-editor-toolbar input[type=color]{width:44px;padding:4px}
.rich-editor-help{padding:10px 12px;background:#fff;border-left:1px solid #ddd6fe;border-right:1px solid #ddd6fe;color:#64748b;font-size:13px}
.rich-visual-editor,.rich-source-editor{width:100%;min-height:520px;border:1px solid #c4b5fd;border-radius:0 0 12px 12px;padding:20px;background:#fff;outline:none;overflow:auto;line-height:1.85;font-size:16px}
.rich-source-editor{font-family:Consolas,Monaco,monospace;white-space:pre;resize:vertical}
.rich-visual-editor:focus,.rich-source-editor:focus{box-shadow:0 0 0 3px rgba(109,40,217,.13)}
.rich-visual-editor img,.preview-content img,.lm-html-content img{max-width:100%;height:auto}
.content-canvas{padding:24px;margin:18px 0;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}
.content-table{width:100%;border-collapse:collapse;margin:18px 0}.content-table th,.content-table td{border:1px solid #cbd5e1;padding:10px}.content-table th{background:#f1f5f9}
.content-media{margin:18px 0;text-align:center}.content-media figcaption{font-size:13px;color:#64748b;margin-top:6px}
.media-resize-wrap{position:relative;width:min(100%,720px);height:405px;min-width:240px;min-height:160px;max-width:100%;resize:both;overflow:hidden;border:2px dashed #a78bfa;border-radius:12px;margin:18px auto;background:#111}
.media-resize-wrap iframe,.media-resize-wrap video{display:block;width:100%;height:100%;border:0}
.slider-shortcode-marker{display:block;padding:16px;border:2px dashed #8b5cf6;border-radius:10px;background:#f5f3ff;color:#6d28d9;font-weight:900;text-align:center}
.preview-content .slider-shortcode-marker{display:none}
.lm-card-groupbuy{margin:8px 0;padding:9px 10px;border-radius:10px;background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fdba74;color:#9a3412}
.lm-card-groupbuy>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.lm-card-groupbuy b{font-size:13px}.lm-card-groupbuy span{font-size:11px;font-weight:800}.lm-card-groupbuy strong{display:block;margin-top:5px;font-size:16px;letter-spacing:.03em}
.lm-card-groupbuy.urgent{background:linear-gradient(135deg,#fff1f2,#ffe4e6);border-color:#fb7185;color:#be123c}.lm-card-groupbuy.ended{filter:grayscale(1);opacity:.7}
.groupbuy-box{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px;border-radius:14px;background:#fff7ed;border:1px solid #fdba74}.groupbuy-box strong{margin-left:auto;color:#c2410c;font-size:18px}
@media(max-width:760px){
 body{overflow-x:hidden}
 .lm-shell{padding:10px 8px 90px;max-width:100%}
 .lm-apple-store-header{margin:0 -8px}
 .lm-apple-toolbar{display:grid!important;grid-template-columns:auto auto 1fr;gap:10px;padding:12px!important}
 .lm-apple-logo{grid-column:1}.lm-mobile-menu-btn{grid-column:2}.lm-apple-search{grid-column:1/-1;grid-row:2;width:100%!important;margin:0!important}
 .lm-apple-actions{right:10px!important;top:62px!important;min-width:180px!important;padding:10px!important;gap:7px!important}
 .lm-apple-actions a{padding:11px 13px!important;text-align:center}
 .lm-apple-cats{overflow-x:auto;white-space:nowrap;scrollbar-width:none}
 .ps-breadcrumb{padding:12px 4px}.ps-hero{padding:20px!important;border-radius:14px!important}.ps-hero h1{font-size:28px!important}
 .ps-shop-layout{display:block!important}.ps-facets{display:none!important}.ps-catalog-main{min-width:0}
 .ps-catalog-toolbar{padding:13px!important;border-radius:12px!important}
 .lm-products.v100-products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .lm-product-v100{min-width:0!important;width:100%!important;border-radius:16px!important;padding:10px!important;border-width:2px!important;overflow:hidden!important}
 .lm-product-v100 .lm-v100-top{display:flex!important;flex-direction:column!important;min-width:0!important}
 .lm-product-v100 .lm-img{width:100%!important;height:auto!important;aspect-ratio:1/1;display:block!important}
 .lm-product-v100 .lm-img img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:10px!important}
 .lm-product-v100 .lm-v100-info{width:100%!important;min-width:0!important;overflow:visible!important}
 .lm-v100-tags{display:grid!important;grid-template-columns:auto 1fr auto;gap:5px!important;margin-top:8px;align-items:center}
 .lm-v100-tags>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .lm-v100-points{font-size:12px!important;margin:5px 0!important}
 .lm-v100-buy{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:100%!important;overflow:visible!important}
 .lm-v100-buy .lm-price{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:4px!important;width:100%!important;min-width:0!important;overflow:visible!important}
 .lm-v100-buy .lm-price del{font-size:11px!important;color:#94a3b8!important}
 .lm-v100-buy .lm-price strong{display:block!important;width:100%!important;font-size:20px!important;line-height:1.15!important;color:#ef4444!important;white-space:normal!important;overflow:visible!important;word-break:break-word!important}
 .lm-v100-buy .lm-add{width:100%!important;min-width:0!important;white-space:normal!important;padding:10px 6px!important;border-radius:999px!important;font-size:13px!important}
 .lm-product-v100 h3{margin:10px 1px 2px!important;font-size:14px!important;line-height:1.45!important;min-height:41px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .lm-card-groupbuy{padding:7px!important}.lm-card-groupbuy>div{display:block!important}.lm-card-groupbuy strong{font-size:14px!important}
 .lm-cart{max-width:calc(100vw - 20px)!important;right:10px!important;bottom:12px!important}
 body.lm-mobile-one-col .lm-products.v100-products{grid-template-columns:1fr!important}
 body.lm-mobile-one-col .lm-product-v100 .lm-v100-top{display:grid!important;grid-template-columns:130px 1fr!important;gap:12px!important}
 body.lm-mobile-one-col .lm-product-v100 .lm-img{aspect-ratio:1/1}
 .product-rich-editor-zone{overflow:visible}.rich-editor-toolbar{position:relative}.rich-visual-editor,.rich-source-editor{min-height:380px}
 .media-resize-wrap{width:100%;height:210px;resize:vertical}
 .lm-detail{display:block!important}.lm-gallery,.lm-detail-info{width:100%!important}.lm-detail-copy{padding:16px!important}
}
@media(max-width:380px){
 .lm-products.v100-products{gap:7px!important}.lm-product-v100{padding:8px!important}.lm-v100-buy .lm-price strong{font-size:18px!important}
}

/* === Visual Slider editor block + cart close icon v4 === */
.slider-editor-block{display:block;margin:18px 0;border:2px solid #8b5cf6;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(109,40,217,.12)}
.slider-editor-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;background:#f5f3ff;color:#6d28d9}
.slider-editor-block-head>div{display:flex;gap:6px}.slider-editor-block-head button{border:1px solid #c4b5fd;border-radius:7px;background:#fff;color:#6d28d9;padding:6px 9px;font-weight:900;cursor:pointer}
.slider-editor-render{padding:12px;min-height:150px}.slider-editor-render>.creative-slider{width:100%;height:min(var(--cs-height,420px),360px)}
.slider-editor-error{padding:30px;text-align:center;border:2px dashed #f59e0b;border-radius:10px;background:#fffbeb;color:#92400e;font-weight:800}
.lm-cart-toggle.is-close{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border-radius:50%!important;font-size:32px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:640px){
 .lm-cart-toggle.is-close{background:#ef4444!important;color:#fff!important;box-shadow:0 0 0 8px rgba(239,68,68,.12),0 8px 24px rgba(239,68,68,.35)!important}
 body.lm-cart-open #lm-cart .lm-cart-toggle{position:relative!important;right:auto!important;top:auto!important}
}

@media(max-width:640px){
  .lm-cart-toggle:not(.is-close){min-width:76px!important;padding:0 16px!important;border-radius:999px!important;font-size:16px!important;font-weight:900!important}
}

.product-unit-setting{grid-column:1/-1;display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr);gap:12px;padding:14px;border:1px solid #b7e4cd;border-radius:12px;background:#f0fbf5}
.product-unit-setting small{grid-column:1/-1;color:#39705a;line-height:1.6;font-weight:700}
.product-unit-setting label{display:flex;flex-direction:column;gap:6px;font-weight:900}
.product-unit-setting select,.product-unit-setting input{height:43px;border:1px solid #b8c8bf;border-radius:8px;background:#fff;padding:0 10px}
@media(max-width:760px){.product-unit-setting{grid-template-columns:1fr}}

/* === Marketplace categories + Shopee-style price v9 === */
.market-category-gallery{margin:14px 0 20px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden}
.market-category-title{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #eef0f2}.market-category-title b{font-size:20px}.market-category-title span{color:#64748b;font-size:13px}
.market-category-scroll{display:grid;grid-template-columns:repeat(8,minmax(120px,1fr));overflow-x:auto}
.market-category-scroll a{min-height:128px;padding:15px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;text-decoration:none;color:#27313d;border-right:1px solid #eef0f2;border-bottom:1px solid #eef0f2;font-weight:800}
.market-category-scroll a:hover,.market-category-scroll a.on{background:#fff7f3;color:#ee4d2d}.market-category-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#f5f5f5;font-size:36px}
.lm-apple-cats a{display:flex!important;align-items:center;justify-content:center;gap:6px}.lm-cat-icon{font-size:17px}
.shopee-price-zone{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:end;gap:3px 7px;width:100%;min-width:0;padding-top:3px}
.shopee-discount{grid-column:1;grid-row:1;background:#fff1e8;color:#ee4d2d;border:1px solid #ffb89f;border-radius:4px;padding:2px 5px;font-size:12px;font-weight:900;white-space:nowrap}
.shopee-price-zone del{grid-column:2;grid-row:1;color:#9ca3af;font-size:12px;align-self:center;white-space:nowrap}
.shopee-current-price{grid-column:1/-1;display:flex;align-items:baseline;min-width:0;color:#ee4d2d;white-space:nowrap}
.shopee-current-price small{font-size:14px;font-weight:800;margin-right:2px}.shopee-current-price strong{font-size:27px;line-height:1;font-weight:900;letter-spacing:-.03em}.shopee-current-price em{font-style:normal;color:#64748b;font-size:12px;margin-left:4px}
.shopee-sold{grid-column:1/-1;color:#6b7280;font-size:12px;text-align:right;white-space:nowrap}.shopee-text-price strong{font-size:18px;white-space:normal}
.lm-v100-buy{overflow:visible!important}.lm-product-v100{overflow:visible!important}.lm-product-v100 .lm-v100-info{overflow:visible!important}
@media(max-width:1100px){.market-category-scroll{grid-template-columns:repeat(6,minmax(115px,1fr))}}
@media(max-width:760px){
 .market-category-gallery{margin:8px 0 14px;border-radius:0}.market-category-title{padding:12px}
 .market-category-scroll{display:flex}.market-category-scroll a{flex:0 0 104px;min-height:105px;padding:10px 5px;font-size:12px}.market-category-icon{width:52px;height:52px;font-size:29px}
 .shopee-current-price strong{font-size:21px}.shopee-current-price small{font-size:12px}.shopee-current-price em{font-size:11px}
 .shopee-price-zone{grid-template-columns:auto minmax(0,1fr)}.shopee-price-zone del{overflow:hidden;text-overflow:ellipsis}
 .lm-v100-buy .lm-add{margin-top:5px}
 body.lm-cart-collapsed #lm-cart-toggle:not(.is-close){display:inline-flex!important;min-width:76px!important;width:auto!important;color:#fff!important;background:#15803d!important;font-size:15px!important}
 body.lm-cart-collapsed #lm-cart-toggle:not(.is-close)::before{content:none!important}
}

/* === Checkout inline auth v10 === */
body.checkout-modal-open{overflow:hidden}.checkout-auth-modal{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;padding:18px}.checkout-auth-modal[hidden]{display:none}.checkout-auth-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(8px)}.checkout-auth-card{position:relative;z-index:1;width:min(94vw,520px);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.3);border-top:7px solid #19a96b}.checkout-auth-close{position:absolute;right:14px;top:12px;width:42px;height:42px;border:0;border-radius:50%;background:#f1f5f9;font-size:28px;cursor:pointer}.checkout-auth-brand{color:#15925a;font-weight:950;font-size:13px;letter-spacing:.08em}.checkout-auth-card h2{margin:7px 0;font-size:28px}.checkout-auth-card>p{color:#64748b;line-height:1.6}.checkout-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.checkout-auth-tabs button{border:1px solid #dbe3e8;background:#f8fafc;border-radius:10px;padding:12px;font-weight:900}.checkout-auth-tabs button.on{background:#15925a;color:#fff;border-color:#15925a}.checkout-auth-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkout-auth-form label{display:flex;flex-direction:column;gap:6px;font-weight:850}.checkout-auth-form input,.checkout-auth-form textarea{width:100%;border:1px solid #cfd8df;border-radius:10px;padding:12px;font:inherit}.checkout-auth-form textarea{min-height:90px;resize:vertical}.checkout-auth-form button,.checkout-line-login{grid-column:1/-1;border:0;border-radius:11px;padding:14px;background:#15925a;color:#fff;font-weight:950;text-align:center;text-decoration:none;font-size:16px}.checkout-line-login{display:block;margin-top:12px;background:#06c755}.checkout-auth-message{padding:11px;border-radius:9px;background:#fff1f2;color:#be123c;margin-bottom:12px}.checkout-auth-message.ok{background:#eafaf0;color:#087443}.checkout-detail-form .wide{grid-column:1/-1}
@media(max-width:620px){.checkout-auth-modal{padding:0;align-items:end}.checkout-auth-card{width:100%;max-height:92vh;border-radius:24px 24px 0 0;padding:24px 18px 28px}.checkout-auth-form{grid-template-columns:1fr}.checkout-auth-form .wide,.checkout-auth-form button{grid-column:1}.checkout-auth-card h2{font-size:24px}}

/* === Cart/group-buy bug fixes v11 === */
.lm-card-groupbuy .groupbuy-title-row{display:block!important}
.lm-card-groupbuy .groupbuy-progress-row{display:block!important;margin-top:5px;font-size:13px;line-height:1.45;color:#9a3412;white-space:normal}
.lm-card-groupbuy .groupbuy-progress-row b{font-size:13px}
.lm-card-groupbuy>strong{display:block!important;margin-top:7px}
@media(max-width:640px){
 body.lm-cart-open #lm-cart-toggle,
 #lm-cart-toggle.is-close{display:inline-flex!important;width:46px!important;min-width:46px!important;height:46px!important;padding:0!important;border-radius:50%!important;background:#ef4444!important;color:#fff!important;font-size:31px!important;line-height:1!important;align-items:center!important;justify-content:center!important}
 body.lm-cart-collapsed #lm-cart-toggle:not(.is-close){width:auto!important;min-width:76px!important;height:44px!important;background:#15803d!important;color:#fff!important;font-size:15px!important;border-radius:999px!important}
 .lm-card-groupbuy{min-height:112px}
}

/* === Group-buy cycle display v12 === */
.lm-card-groupbuy{display:block!important}
.lm-card-groupbuy .groupbuy-title-row{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.lm-card-groupbuy .groupbuy-title-row>span{font-size:11px;font-weight:900;color:#b45309;background:#ffedd5;border-radius:999px;padding:3px 7px;white-space:nowrap}
.lm-card-groupbuy .groupbuy-progress-row{display:flex!important;align-items:baseline;justify-content:space-between;gap:8px;margin-top:7px;padding-top:7px;border-top:1px dashed rgba(194,65,12,.25);font-size:13px}
.lm-card-groupbuy .groupbuy-progress-row>b{font-size:15px;color:#9a3412;white-space:nowrap}
.lm-card-groupbuy .groupbuy-remaining-row{display:block;margin-top:4px;font-size:12px;color:#c2410c}
.lm-card-groupbuy .groupbuy-remaining-row>b{font-size:14px}
.groupbuy-cycle-box{display:grid!important;grid-template-columns:auto repeat(3,max-content);gap:8px 12px;align-items:center}
.groupbuy-cycle-box>strong{margin-left:auto}
@media(max-width:760px){
 .lm-card-groupbuy{min-height:136px!important;padding:9px!important}
 .lm-card-groupbuy .groupbuy-title-row>span{font-size:10px;padding:2px 5px}
 .lm-card-groupbuy .groupbuy-progress-row{font-size:12px}
 .lm-card-groupbuy .groupbuy-progress-row>b{font-size:14px}
 .groupbuy-cycle-box{grid-template-columns:1fr 1fr!important}
 .groupbuy-cycle-box>strong{grid-column:1/-1;margin-left:0}
}

/* === Group-buy rules and capacity v13 === */
.group-fields label small{display:block;margin-top:5px;color:#64748b;font-size:12px;line-height:1.45}
.groupbuy-cap-row{margin-top:4px;font-size:12px;color:#7c3aed}.groupbuy-cap-row b{font-size:13px}
.groupbuy-closed-badge{margin-top:7px;padding:6px 8px;border-radius:8px;background:#fee2e2;color:#b91c1c;font-weight:900;text-align:center}
.lm-add:disabled{cursor:not-allowed!important;background:#94a3b8!important;color:#fff!important;opacity:.85}

/* === V14 mall UIUX reconstruction === */
.lm-apple-store-header{position:relative;z-index:80;background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden}
.lm-apple-toolbar{display:grid!important;grid-template-columns:220px minmax(280px,1fr) auto!important;align-items:center!important;gap:18px!important;padding:14px 20px!important}
.lm-apple-logo{min-width:0!important}.lm-apple-logo img{width:54px!important;height:54px!important}.lm-apple-logo span{font-size:22px!important}
.lm-apple-search{min-width:0!important;width:100%!important;margin:0!important}
.lm-apple-actions{position:static!important;display:flex!important;align-items:center!important;gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-width:0!important}
.lm-apple-actions a{white-space:nowrap!important;padding:11px 14px!important;border:1px solid #dbe3ea!important;border-radius:10px!important;background:#f8fafc!important;color:#1f2937!important}
.lm-mobile-menu-btn{display:none!important}
.lm-apple-cats{height:52px!important;display:flex!important;align-items:stretch!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;border-top:1px solid #e5e7eb!important;scrollbar-width:thin}
.lm-apple-cats a{flex:0 0 auto!important;min-width:124px!important;height:51px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:0 14px!important;border:0!important;border-right:1px solid #eef2f5!important;border-radius:0!important;background:#fff!important;color:#334155!important;white-space:nowrap!important;font-size:14px!important;box-shadow:none!important}
.lm-apple-cats a.on{color:#078c52!important;background:#effcf6!important;border-bottom:3px solid #10b981!important}
.lm-apple-cats a:hover{background:#f8fafc!important}.lm-cat-icon{font-size:18px!important;flex:0 0 auto}

.lm-products.v100-products{align-items:stretch!important}
.lm-product-v100{height:660px!important;min-height:660px!important;max-height:660px!important;display:grid!important;grid-template-rows:1fr auto!important;overflow:hidden!important}
.lm-product-v100 .lm-v100-top{display:grid!important;grid-template-rows:190px 1fr!important;min-height:0!important}
.lm-product-v100 .lm-img{height:190px!important}
.lm-product-v100 .lm-v100-info{display:grid!important;grid-template-rows:auto auto 184px 118px!important;gap:0!important;min-height:0!important;padding:12px 13px 0!important;overflow:hidden!important}
.lm-product-v100 .lm-v100-tags{min-height:30px!important;margin:0 0 5px!important}
.lm-product-v100 .lm-v100-points{height:24px!important;margin:0!important}
.lm-card-groupbuy{position:relative!important;height:174px!important;min-height:174px!important;max-height:174px!important;margin:4px 0 6px!important;padding:12px!important;overflow:hidden!important;display:block!important}
.lm-card-groupbuy .groupbuy-title-row{height:28px!important;padding-right:88px!important}
.group-state-badge{position:absolute!important;right:9px!important;top:9px!important;max-width:84px!important;overflow:hidden!important;text-overflow:ellipsis!important;background:#16a34a!important;color:#fff!important;border-radius:999px!important;padding:5px 8px!important;font-size:10px!important}
.group-state-not_started .group-state-badge{background:#64748b!important}.group-state-expired .group-state-badge{background:#374151!important}.group-state-sold_out .group-state-badge,.group-state-closed .group-state-badge{background:#dc2626!important}
.group-completed-row{font-size:11px!important;color:#b45309!important;margin-top:3px!important}
.lm-card-groupbuy .groupbuy-progress-row{margin-top:5px!important;padding-top:5px!important}
.lm-card-groupbuy .groupbuy-remaining-row,.lm-card-groupbuy .groupbuy-cap-row{font-size:11px!important;margin-top:3px!important}
.lm-card-groupbuy>strong{font-size:16px!important;margin-top:7px!important}
.lm-product-v100 .lm-v100-buy{height:112px!important;display:grid!important;grid-template-rows:72px 38px!important;gap:2px!important;margin:0!important;overflow:hidden!important}
.shopee-price-zone{height:72px!important;align-content:center!important;overflow:hidden!important}
.shopee-current-price strong{font-size:25px!important}
.lm-product-v100 .lm-add{height:38px!important;width:100%!important;margin:0!important}
.lm-product-v100 h3{height:72px!important;min-height:72px!important;max-height:72px!important;margin:0!important;padding:13px!important;font-size:19px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}

/* Fast cart rows */
.lm-cart-line{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:13px 42px 13px 4px!important;border-bottom:1px solid #e5e7eb!important;transition:opacity .15s ease,transform .15s ease!important}
.lm-cart-row-main{min-width:0!important;display:grid!important;gap:4px!important}.lm-cart-name{font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.lm-cart-price{color:#ee4d2d!important;font-weight:900!important}
.lm-cart-stepper{display:grid!important;grid-template-columns:36px 38px 36px!important;align-items:center!important;border:1px solid #dbe3ea!important;border-radius:10px!important;overflow:hidden!important}
.lm-cart-stepper button{width:36px!important;height:36px!important;border:0!important;border-radius:0!important;background:#f8fafc!important;font-size:22px!important}
.lm-cart-stepper strong{display:grid!important;place-items:center!important;height:36px!important;border-left:1px solid #e5e7eb!important;border-right:1px solid #e5e7eb!important}
.lm-cart-remove{position:absolute!important;right:2px!important;top:50%!important;transform:translateY(-50%)!important;width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:#fff1f2!important;color:#dc2626!important;font-size:22px!important;font-weight:900!important}
.lm-cart-row-removing{opacity:0!important;transform:translateX(20px)!important}
.lm-value-pulse{animation:lmValuePulse .22s ease}@keyframes lmValuePulse{50%{transform:scale(1.16);color:#ee4d2d}}
.lm-total-amount{display:inline-block!important}

@media(min-width:761px) and (max-width:1180px){
 .lm-apple-toolbar{grid-template-columns:170px minmax(240px,1fr)!important}.lm-apple-actions{grid-column:1/-1!important;justify-content:flex-end!important}
 .lm-apple-cats a{min-width:112px!important}
 .lm-products.v100-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .lm-product-v100{height:640px!important;min-height:640px!important;max-height:640px!important}
}
@media(max-width:760px){
 .lm-apple-store-header{border-radius:0!important}
 .lm-apple-toolbar{grid-template-columns:auto auto!important;padding:12px!important}.lm-mobile-menu-btn{display:block!important}.lm-apple-actions{position:absolute!important;display:none!important}.lm-apple-actions.open{display:grid!important}
 .lm-apple-cats{height:54px!important}.lm-apple-cats a{min-width:132px!important;height:53px!important}
 .lm-product-v100{height:auto!important;min-height:620px!important;max-height:none!important}
 .lm-product-v100 .lm-v100-info{grid-template-rows:auto auto 174px 118px!important}
}

/* === V14.2 attractive product cards === */
.lm-product-v100{position:relative!important}
.lm-product-v100 .lm-img{position:relative!important;overflow:hidden!important}
.product-promo-ribbon{position:absolute;left:10px;top:10px;z-index:3;display:inline-flex;align-items:center;min-height:26px;padding:5px 9px;border-radius:999px;background:#ee4d2d;color:#fff;font-size:11px;font-weight:950;box-shadow:0 4px 14px rgba(238,77,45,.28)}
.no-groupbuy .product-promo-ribbon{background:#7c3aed}.kind-card-booking .product-promo-ribbon{background:#0f766e}.kind-card-preorder .product-promo-ribbon{background:#2563eb}.kind-card-ad .product-promo-ribbon{background:#d97706}

/* Separate templates for group-buy and ordinary products */
.lm-product-v100.no-groupbuy{height:560px!important;min-height:560px!important;max-height:560px!important}
.lm-product-v100.no-groupbuy .lm-v100-info{grid-template-rows:auto auto 112px 118px!important}
.lm-product-v100.no-groupbuy .lm-v100-top{grid-template-rows:190px 1fr!important}
.lm-product-v100.has-groupbuy{height:660px!important;min-height:660px!important;max-height:660px!important}

.lm-card-benefits{height:102px!important;min-height:102px!important;max-height:102px!important;margin:4px 0 6px!important;padding:12px!important;border-radius:12px!important;background:linear-gradient(135deg,#fff7ed,#fff)!important;border:1px solid #fed7aa!important;overflow:hidden!important;display:grid!important;align-content:center!important;gap:9px!important}
.benefit-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.benefit-main b{font-size:13px!important;color:#9a3412!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.benefit-badge{display:inline-flex!important;align-items:center!important;padding:4px 7px!important;border-radius:999px!important;background:#ffedd5!important;color:#c2410c!important;font-size:10px!important;font-weight:950!important;white-space:nowrap!important}
.benefit-sub{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
.benefit-sub span{display:inline-flex!important;align-items:center!important;padding:4px 7px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#475569!important;font-size:10px!important;font-weight:850!important}

.no-groupbuy .lm-v100-buy{height:112px!important;grid-template-rows:72px 38px!important}
.no-groupbuy h3{height:72px!important}
.has-groupbuy .lm-v100-buy{height:112px!important}

/* Stronger ecommerce hierarchy */
.shopee-price-zone{padding:6px 0 4px!important}
.shopee-current-price{min-height:32px!important}
.shopee-current-price small{font-size:13px!important;color:#ee4d2d!important}
.shopee-current-price strong{font-size:28px!important;line-height:1!important;color:#ee4d2d!important}
.shopee-current-price em{font-size:12px!important;color:#64748b!important}
.shopee-price-zone del{font-size:11px!important}
.shopee-sold{font-size:11px!important;color:#64748b!important;text-align:left!important}
.lm-product-v100 .lm-add{font-weight:950!important;letter-spacing:.02em!important;box-shadow:0 6px 16px rgba(21,128,61,.18)!important}
.lm-product-v100 .lm-add:not(:disabled):hover{transform:translateY(-1px)!important;filter:brightness(1.04)!important}

/* Prevent empty vertical voids in service/preorder/ad cards */
.kind-card-preorder.no-groupbuy .lm-card-benefits,
.kind-card-booking.no-groupbuy .lm-card-benefits,
.kind-card-ad.no-groupbuy .lm-card-benefits{background:linear-gradient(135deg,#eff6ff,#fff)!important;border-color:#bfdbfe!important}
.kind-card-preorder.no-groupbuy .benefit-main b,
.kind-card-booking.no-groupbuy .benefit-main b,
.kind-card-ad.no-groupbuy .benefit-main b{color:#1d4ed8!important}

@media(min-width:761px) and (max-width:1180px){
 .lm-product-v100.no-groupbuy{height:540px!important;min-height:540px!important;max-height:540px!important}
 .lm-product-v100.has-groupbuy{height:640px!important;min-height:640px!important;max-height:640px!important}
 .shopee-current-price strong{font-size:24px!important}
}
@media(max-width:760px){
 .lm-product-v100.no-groupbuy{min-height:500px!important;height:auto!important;max-height:none!important}
 .lm-product-v100.has-groupbuy{min-height:620px!important;height:auto!important;max-height:none!important}
 .lm-card-benefits{height:96px!important;min-height:96px!important}
 .benefit-main b{font-size:12px!important}
 .product-promo-ribbon{left:8px;top:8px}
}

/* === V15 Apple Store product card layout === */
.lm-products.v100-products{align-items:stretch!important}
.lm-product-v100,
.lm-product-v100.no-groupbuy,
.lm-product-v100.has-groupbuy{
  height:auto!important;
  min-height:660px!important;
  max-height:none!important;
  display:grid!important;
  grid-template-rows:auto 72px 174px!important;
  overflow:hidden!important;
  border:1px solid rgba(15,23,42,.10)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 16px 42px rgba(15,23,42,.08)!important;
  transition:transform .22s ease,box-shadow .22s ease!important;
}
.lm-product-v100:hover{transform:translateY(-4px)!important;box-shadow:0 22px 54px rgba(15,23,42,.13)!important}
.lm-product-v100 .lm-v100-top{
  display:grid!important;
  grid-template-rows:190px auto!important;
  min-height:0!important;
}
.lm-product-v100 .lm-v100-info{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  padding:12px 14px 10px!important;
  overflow:visible!important;
}
.lm-product-v100.no-groupbuy .lm-v100-info,
.lm-product-v100.has-groupbuy .lm-v100-info{grid-template-rows:none!important}
.lm-product-v100 h3{
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
  margin:0!important;
  padding:12px 16px 10px!important;
  display:flex!important;
  align-items:flex-start!important;
  overflow:hidden!important;
  border-top:1px solid rgba(226,232,240,.72)!important;
  background:#fff!important;
}
.lm-product-v100 h3 a{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  width:100%!important;
  color:#111827!important;
  font-size:18px!important;
  font-weight:850!important;
  line-height:1.35!important;
  letter-spacing:-.015em!important;
  text-decoration:none!important;
}

/* Content area naturally fills without fake blank price/action space */
.lm-card-benefits{margin-top:auto!important}
.lm-card-groupbuy{margin-top:6px!important}
.lm-v100-info>.lm-v100-buy{display:none!important}

/* Apple-style fixed footer: price line then bottom action */
.apple-card-footer{
  height:174px!important;
  min-height:174px!important;
  max-height:174px!important;
  display:grid!important;
  grid-template-rows:104px 48px!important;
  gap:10px!important;
  padding:10px 14px 12px!important;
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)!important;
  border-top:1px solid #eef2f5!important;
  overflow:hidden!important;
}
.apple-price-block{
  min-width:0!important;
  display:grid!important;
  grid-template-rows:24px 46px 24px!important;
  align-content:center!important;
  overflow:visible!important;
}
.apple-price-meta{
  min-height:24px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.apple-discount{
  display:inline-flex!important;
  align-items:center!important;
  height:23px!important;
  padding:0 8px!important;
  border-radius:7px!important;
  background:#fff1eb!important;
  border:1px solid #ffb49e!important;
  color:#e74725!important;
  font-size:12px!important;
  font-weight:900!important;
}
.apple-price-meta del{
  color:#98a2b3!important;
  font-size:12px!important;
  text-decoration-thickness:1px!important;
}
.apple-price-line{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:baseline!important;
  gap:3px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  color:#f04438!important;
}
.apple-price-line small{font-size:14px!important;font-weight:800!important}
.apple-price-line strong{
  min-width:0!important;
  font-size:31px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.apple-price-line em{
  margin-left:3px!important;
  color:#667085!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.apple-sale-line{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:8px!important;
  color:#667085!important;
  font-size:11px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
.apple-card-action{
  align-self:end!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  border:0!important;
  border-radius:13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  background:#007a46!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  box-shadow:none!important;
  transition:background .18s ease,transform .18s ease!important;
}
.apple-card-action:not(:disabled):hover{background:#00683c!important;transform:translateY(-1px)!important}
.apple-card-action:disabled{background:#98a2b3!important;color:#fff!important}
.apple-text-price .apple-price-line{align-items:center!important;color:#f04438!important}
.apple-text-price .apple-price-line strong{
  white-space:normal!important;
  font-size:24px!important;
  line-height:1.08!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

/* Keep all card information contained */
.lm-product-v100 .shopee-price-zone,
.lm-product-v100 .shopee-current-price,
.lm-product-v100 .shopee-sold{display:none!important}
.lm-product-v100 .lm-card-benefits{
  height:102px!important;
  min-height:102px!important;
  max-height:102px!important;
}
.lm-product-v100 .lm-card-groupbuy{
  height:174px!important;
  min-height:174px!important;
  max-height:174px!important;
}

/* Responsive tablet */
@media(min-width:761px) and (max-width:1180px){
 .lm-product-v100,
 .lm-product-v100.no-groupbuy,
 .lm-product-v100.has-groupbuy{
   min-height:640px!important;
   grid-template-rows:auto 68px 166px!important;
 }
 .lm-product-v100 h3{height:68px!important;min-height:68px!important;max-height:68px!important;padding:11px 13px!important}
 .lm-product-v100 h3 a{font-size:16px!important}
 .apple-card-footer{height:166px!important;min-height:166px!important;max-height:166px!important;grid-template-rows:98px 46px!important;padding:9px 12px 11px!important}
 .apple-price-line strong{font-size:27px!important}
 .apple-card-action{height:46px!important;min-height:46px!important;font-size:14px!important}
}

/* Mobile two columns: preserve full price, move unit below only when needed */
@media(max-width:760px){
 .lm-product-v100,
 .lm-product-v100.no-groupbuy,
 .lm-product-v100.has-groupbuy{
   min-height:590px!important;
   grid-template-rows:auto 64px 160px!important;
 }
 .lm-product-v100 .lm-v100-top{grid-template-rows:auto auto!important}
 .lm-product-v100 h3{height:64px!important;min-height:64px!important;max-height:64px!important;padding:10px!important}
 .lm-product-v100 h3 a{font-size:14px!important}
 .apple-card-footer{height:160px!important;min-height:160px!important;max-height:160px!important;grid-template-rows:94px 44px!important;gap:8px!important;padding:8px 10px 10px!important}
 .apple-price-line{flex-wrap:wrap!important;align-content:center!important}
 .apple-price-line strong{font-size:22px!important}
 .apple-price-line em{font-size:11px!important}
 .apple-price-meta{gap:5px!important}
 .apple-discount{padding:0 5px!important;font-size:10px!important}
 .apple-card-action{height:44px!important;min-height:44px!important;border-radius:11px!important;font-size:13px!important}
 .apple-sale-line{font-size:10px!important}
}

/* === V16 clean product cards: desktop/tablet/mobile === */
.mall-card-v16{
  min-width:0!important;
  height:660px!important;
  display:grid!important;
  grid-template-rows:190px minmax(0,1fr) 170px!important;
  border:1px solid rgba(15,23,42,.10)!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(15,23,42,.08)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
.mall-card-v16:hover{transform:translateY(-3px)!important;box-shadow:0 22px 48px rgba(15,23,42,.13)!important}
.v16-image{position:relative;display:block;width:100%;height:190px;background:#f5f6f7;overflow:hidden}
.v16-image img{width:100%;height:100%;object-fit:cover;display:block}
.v16-ribbon{position:absolute;top:10px;left:10px;padding:5px 9px;border-radius:999px;background:#ee4d2d;color:#fff;font-size:11px;font-weight:900;box-shadow:0 5px 15px rgba(238,77,45,.25)}
.no-groupbuy .v16-ribbon{background:#6e5ae6}
.v16-body{min-height:0;padding:13px 14px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.v16-meta{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;min-height:28px}
.v16-kind{padding:5px 8px;border-radius:999px;background:#12a05c;color:#fff;font-size:11px;font-weight:900;white-space:nowrap}
.v16-source{font-size:11px;font-weight:800;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v16-title{height:52px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#101828;text-decoration:none;font-size:18px;font-weight:850;line-height:1.42;letter-spacing:-.015em}
.v16-reward{font-size:12px;font-weight:750;color:#667085}
.v16-benefits{margin-top:auto;height:95px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#fff);display:grid;align-content:center;gap:9px;overflow:hidden}
.v16-benefits>div{display:flex;justify-content:space-between;gap:8px;align-items:center}
.v16-benefits span{padding:4px 7px;border-radius:999px;background:#fff1e8;color:#ee4d2d;font-size:10px;font-weight:900;white-space:nowrap}
.v16-benefits b{min-width:0;color:#2563eb;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v16-benefits p{margin:0;color:#475467;font-size:11px;font-weight:750}
.v16-group{margin-top:auto;height:174px;padding:11px;border:1px solid #fdba74;border-radius:14px;background:linear-gradient(135deg,#fff7ed,#fff);color:#9a3412;display:grid;grid-template-rows:25px auto 28px 20px 20px 26px;gap:2px;overflow:hidden}
.v16-group-head{display:flex;justify-content:space-between;align-items:center;gap:7px}
.v16-group-head b{font-size:13px}
.v16-group-head span{max-width:90px;padding:4px 7px;border-radius:999px;background:#64748b;color:#fff;font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-state-open .v16-group-head span{background:#16a34a}.group-state-sold_out .v16-group-head span,.group-state-closed .v16-group-head span{background:#dc2626}.group-state-expired .v16-group-head span{background:#374151}
.v16-completed,.v16-remaining,.v16-capacity{font-size:11px;font-weight:750}
.v16-progress{display:flex;justify-content:space-between;align-items:center;padding-top:5px;border-top:1px dashed rgba(194,65,12,.25);font-size:12px}
.v16-progress strong{font-size:15px}.v16-countdown{font-size:16px;align-self:end}
.v16-footer{height:170px;padding:11px 14px 13px;border-top:1px solid #eef2f5;background:#fbfcfe;display:grid;grid-template-rows:101px 46px;gap:9px;overflow:hidden}
.v16-price{min-width:0;display:grid;grid-template-rows:24px 47px 24px;align-content:center}
.v16-price-top{display:flex;align-items:center;gap:8px;min-width:0}
.v16-price-top span{padding:3px 7px;border:1px solid #ffb49e;border-radius:6px;background:#fff1eb;color:#e74725;font-size:11px;font-weight:900}
.v16-price-top del{font-size:11px;color:#98a2b3;white-space:nowrap}
.v16-price-main{display:flex;align-items:baseline;gap:3px;min-width:0;color:#f04438;white-space:nowrap;overflow:visible}
.v16-price-main small{font-size:14px;font-weight:800}.v16-price-main strong{font-size:31px;line-height:1;font-weight:900;letter-spacing:-.04em;white-space:nowrap}.v16-price-main em{font-size:12px;font-style:normal;font-weight:700;color:#667085;white-space:nowrap}
.v16-price-bottom{display:flex;justify-content:space-between;gap:8px;color:#667085;font-size:11px;font-weight:750;white-space:nowrap}
.v16-action{width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;border:0!important;border-radius:13px!important;background:#007a46!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;font-weight:900!important;text-decoration:none!important}
.v16-action:disabled{background:#98a2b3!important}.v16-text-price .v16-price-main strong{font-size:24px;white-space:normal;line-height:1.1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Hide legacy card internals that may still be targeted by old CSS */
.mall-card-v16 .lm-v100-top,.mall-card-v16 .lm-v100-info,.mall-card-v16 .apple-card-footer,.mall-card-v16 h3,.mall-card-v16 .shopee-price-zone{display:none!important}

/* Tablet */
@media(min-width:761px) and (max-width:1180px){
 .lm-products.v100-products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
 .mall-card-v16{height:630px!important;grid-template-rows:175px minmax(0,1fr) 162px!important}
 .v16-image{height:175px}.v16-title{font-size:16px;height:48px}.v16-body{padding:11px 12px}.v16-footer{height:162px;grid-template-rows:96px 44px;padding:9px 12px 11px}
 .v16-price-main strong{font-size:27px}.v16-action{height:44px!important;min-height:44px!important;font-size:14px!important}
}

/* Mobile */
@media(max-width:760px){
 .lm-products.v100-products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:0!important}
 .mall-card-v16{height:540px!important;min-width:0!important;grid-template-rows:145px minmax(0,1fr) 150px!important;border-radius:18px!important}
 .v16-image{height:145px}.v16-ribbon{top:7px;left:7px;padding:4px 7px;font-size:9px}
 .v16-body{padding:9px;gap:5px}.v16-meta{grid-template-columns:auto 1fr auto;gap:4px;min-height:24px}.v16-kind{padding:4px 6px;font-size:9px}.v16-source{font-size:9px}.lm-info-btn{width:24px!important;height:24px!important;font-size:11px!important}
 .v16-title{height:42px;font-size:13px;line-height:1.35}.v16-reward{font-size:10px}
 .v16-benefits{height:79px;padding:8px;gap:6px;border-radius:11px}.v16-benefits span{padding:3px 5px;font-size:8px}.v16-benefits b{font-size:9px}.v16-benefits p{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .v16-group{height:126px;padding:8px;border-radius:11px;grid-template-rows:21px auto 23px 17px 17px 21px;gap:1px}
 .v16-group-head b{font-size:10px}.v16-group-head span{max-width:64px;padding:3px 5px;font-size:8px}.v16-completed,.v16-remaining,.v16-capacity{font-size:9px}.v16-progress{font-size:9px}.v16-progress strong{font-size:11px}.v16-countdown{font-size:12px}
 .v16-footer{height:150px;padding:8px 9px 10px;grid-template-rows:88px 42px;gap:10px}
 .v16-price{grid-template-rows:20px 42px 20px}.v16-price-top{gap:4px}.v16-price-top span{padding:2px 4px;font-size:8px}.v16-price-top del{font-size:8px}
 .v16-price-main{flex-wrap:nowrap;overflow:visible}.v16-price-main small{font-size:10px}.v16-price-main strong{font-size:21px;letter-spacing:-.04em}.v16-price-main em{font-size:9px;margin-left:1px}
 .v16-price-bottom{font-size:8px;gap:4px}.v16-action{height:42px!important;min-height:42px!important;border-radius:10px!important;font-size:12px!important;padding:0 5px!important}
 .v16-text-price .v16-price-main strong{font-size:18px}
}

/* Very small phones */
@media(max-width:380px){
 .lm-products.v100-products{gap:7px!important}
 .mall-card-v16{height:525px!important;grid-template-rows:135px minmax(0,1fr) 146px!important}
 .v16-image{height:135px}.v16-price-main strong{font-size:19px}.v16-action{font-size:11px!important}
}

/* Optional single-column mobile mode */
@media(max-width:760px){
 body.lm-mobile-one-col .lm-products.v100-products{grid-template-columns:1fr!important}
 body.lm-mobile-one-col .mall-card-v16{height:590px!important;grid-template-rows:240px minmax(0,1fr) 155px!important}
 body.lm-mobile-one-col .v16-image{height:240px}
 body.lm-mobile-one-col .v16-title{font-size:17px;height:48px}
 body.lm-mobile-one-col .v16-price-main strong{font-size:29px}
}

/* === V17 Shopee-inspired natural-height cards === */
.lm-mobile-view-switch{display:none}

/* Desktop grid: natural card height, no forced stretching */
.lm-products.v100-products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
.mall-card-v16,
.mall-card-v16.no-groupbuy,
.mall-card-v16.has-groupbuy{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-self:start!important;
  overflow:hidden!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 6px 20px rgba(15,23,42,.07)!important;
}
.mall-card-v16:hover{transform:translateY(-2px)!important;box-shadow:0 12px 28px rgba(15,23,42,.12)!important}

.v16-image{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  flex:0 0 auto!important;
  background:#f7f7f7!important;
}
.v16-image img{width:100%!important;height:100%!important;object-fit:cover!important}

.v16-body{
  min-height:0!important;
  height:auto!important;
  padding:12px 13px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  overflow:visible!important;
}
.v16-meta{min-height:28px!important}
.v16-kind{font-size:12px!important}
.v16-source{font-size:12px!important}
.v16-title{
  height:auto!important;
  min-height:48px!important;
  max-height:none!important;
  font-size:17px!important;
  line-height:1.42!important;
  -webkit-line-clamp:2!important;
}
.v16-reward{font-size:13px!important}

.v16-benefits{
  height:auto!important;
  min-height:82px!important;
  max-height:none!important;
  margin-top:4px!important;
  padding:11px!important;
}
.v16-benefits span{font-size:11px!important}
.v16-benefits b{font-size:12px!important}
.v16-benefits p{font-size:11px!important}

.v16-group{
  height:auto!important;
  min-height:154px!important;
  max-height:none!important;
  margin-top:4px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  padding:11px!important;
}
.v16-group-head{min-height:26px!important}
.v16-completed,.v16-remaining,.v16-capacity{font-size:12px!important}
.v16-progress{font-size:12px!important}
.v16-progress strong{font-size:15px!important}
.v16-countdown{font-size:16px!important;margin-top:2px!important}

/* Price and action area: separate full-width rows */
.v16-footer{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:auto!important;
  padding:12px 13px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:11px!important;
  border-top:1px solid #f0f2f5!important;
  background:#fff!important;
  overflow:visible!important;
}
.v16-price{
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  overflow:visible!important;
}
.v16-price-top{
  min-height:22px!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.v16-price-top span{font-size:12px!important}
.v16-price-top del{font-size:12px!important}
.v16-price-main{
  width:100%!important;
  min-height:38px!important;
  display:flex!important;
  align-items:baseline!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
.v16-price-main small{font-size:14px!important}
.v16-price-main strong{
  font-size:30px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.v16-price-main em{font-size:13px!important;white-space:nowrap!important}
.v16-price-bottom{
  min-height:20px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:space-between!important;
  gap:4px 8px!important;
  font-size:12px!important;
  white-space:normal!important;
}
.v16-action{
  width:100%!important;
  min-height:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  font-size:15px!important;
  border-radius:10px!important;
}
.v16-text-price .v16-price-main strong{
  font-size:23px!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
  display:block!important;
}

/* Tablet */
@media(min-width:761px) and (max-width:1180px){
  .lm-products.v100-products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .v16-title{font-size:16px!important}
  .v16-price-main strong{font-size:27px!important}
}

/* Mobile switch and two-column default */
@media(max-width:760px){
  .lm-mobile-view-switch{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:8px 0 12px!important;
    padding:10px 12px!important;
    border:1px solid #e5e7eb!important;
    border-radius:12px!important;
    background:#fff!important;
  }
  .lm-mobile-view-switch>div:first-child b{display:block;font-size:15px!important}
  .lm-mobile-view-switch>div:first-child span{display:block;margin-top:2px;color:#667085;font-size:11px!important}
  .lm-view-toggle{display:flex!important;gap:5px!important}
  .lm-view-toggle button{
    min-width:66px!important;
    height:36px!important;
    border:1px solid #d0d5dd!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#344054!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  .lm-view-toggle button.on{background:#007a46!important;border-color:#007a46!important;color:#fff!important}

  .lm-products.v100-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .mall-card-v16,
  .mall-card-v16.no-groupbuy,
  .mall-card-v16.has-groupbuy{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    border-radius:14px!important;
  }
  .v16-image{aspect-ratio:1/1!important}
  .v16-ribbon{font-size:10px!important}
  .v16-body{padding:9px!important;gap:6px!important}
  .v16-meta{min-height:25px!important}
  .v16-kind{font-size:10px!important}
  .v16-source{font-size:10px!important}
  .v16-title{
    min-height:43px!important;
    font-size:14px!important;
    line-height:1.4!important;
  }
  .v16-reward{font-size:11px!important}
  .v16-benefits{
    min-height:76px!important;
    padding:8px!important;
    gap:6px!important;
  }
  .v16-benefits>div{display:block!important}
  .v16-benefits span{font-size:9px!important}
  .v16-benefits b{display:block;margin-top:5px;font-size:10px!important;white-space:normal!important}
  .v16-benefits p{font-size:9px!important;white-space:normal!important}
  .v16-group{
    min-height:138px!important;
    padding:8px!important;
    gap:4px!important;
  }
  .v16-group-head b{font-size:11px!important}
  .v16-group-head span{font-size:9px!important}
  .v16-completed,.v16-remaining,.v16-capacity{font-size:10px!important}
  .v16-progress{font-size:10px!important}
  .v16-progress strong{font-size:12px!important}
  .v16-countdown{font-size:13px!important}
  .v16-footer{padding:9px!important;gap:8px!important}
  .v16-price-top{min-height:18px!important}
  .v16-price-top span,.v16-price-top del{font-size:9px!important}
  .v16-price-main{min-height:34px!important}
  .v16-price-main small{font-size:11px!important}
  .v16-price-main strong{font-size:21px!important}
  .v16-price-main em{font-size:10px!important}
  .v16-price-bottom{font-size:9px!important}
  .v16-action{height:40px!important;min-height:40px!important;flex-basis:40px!important;font-size:12px!important}
  .v16-text-price .v16-price-main strong{font-size:18px!important}
}

/* Mobile one-column: larger readable Shopee-style card */
@media(max-width:760px){
  body.lm-mobile-one-col .lm-products.v100-products{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body.lm-mobile-one-col .mall-card-v16{
    display:grid!important;
    grid-template-columns:42% 58%!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
  }
  body.lm-mobile-one-col .v16-image{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    height:100%!important;
    min-height:260px!important;
    aspect-ratio:auto!important;
  }
  body.lm-mobile-one-col .v16-body{
    grid-column:2!important;
    grid-row:1!important;
    padding:12px!important;
  }
  body.lm-mobile-one-col .v16-footer{
    grid-column:2!important;
    grid-row:2!important;
    padding:10px 12px 12px!important;
  }
  body.lm-mobile-one-col .v16-title{
    min-height:48px!important;
    font-size:17px!important;
  }
  body.lm-mobile-one-col .v16-reward{font-size:12px!important}
  body.lm-mobile-one-col .v16-benefits{min-height:82px!important}
  body.lm-mobile-one-col .v16-price-main strong{font-size:27px!important}
  body.lm-mobile-one-col .v16-price-main em{font-size:12px!important}
  body.lm-mobile-one-col .v16-price-bottom{font-size:11px!important}
  body.lm-mobile-one-col .v16-action{height:44px!important;min-height:44px!important;flex-basis:44px!important;font-size:14px!important}
}

/* Narrow phones stay readable */
@media(max-width:390px){
  .lm-products.v100-products{gap:8px!important}
  .v16-title{font-size:13px!important}
  .v16-price-main strong{font-size:19px!important}
  .v16-action{font-size:11px!important}
  body.lm-mobile-one-col .mall-card-v16{
    grid-template-columns:40% 60%!important;
  }
  body.lm-mobile-one-col .v16-price-main strong{font-size:24px!important}
}

/* === V18 unified pricing + correct mobile one-column === */

/* Every monetary price uses one visual system */
.v16-price-main{
  display:flex!important;
  width:100%!important;
  align-items:baseline!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  color:#ee4d2d!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.v16-price-main small{
  flex:0 0 auto!important;
  color:#ee4d2d!important;
  font-size:14px!important;
  font-weight:850!important;
}
.v16-price-main strong{
  flex:0 0 auto!important;
  color:#ee4d2d!important;
  font-size:30px!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.v16-price-main em{
  flex:0 0 auto!important;
  color:#667085!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
.v16-text-price .v16-price-main strong{
  color:#ee4d2d!important;
  font-size:26px!important;
  line-height:1.12!important;
}

/* Do not let old generic rules make service prices smaller or differently aligned */
.kind-card-preorder .v16-price-main strong,
.kind-card-booking .v16-price-main strong,
.kind-card-ad .v16-price-main strong,
.kind-card-product .v16-price-main strong{
  color:#ee4d2d!important;
  font-size:30px!important;
}

/* Mobile double column remains readable */
@media(max-width:760px){
  .v16-price-main strong,
  .kind-card-preorder .v16-price-main strong,
  .kind-card-booking .v16-price-main strong,
  .kind-card-ad .v16-price-main strong,
  .kind-card-product .v16-price-main strong{
    font-size:22px!important;
  }
  .v16-price-main small{font-size:11px!important}
  .v16-price-main em{font-size:10px!important}
}

/* Mobile one-column must be image above, content below — never image-left/text-right */
@media(max-width:760px){
  body.lm-mobile-one-col .lm-products.v100-products{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body.lm-mobile-one-col .mall-card-v16{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  body.lm-mobile-one-col .v16-image{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/10!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
  body.lm-mobile-one-col .v16-body{
    width:100%!important;
    grid-column:auto!important;
    grid-row:auto!important;
    padding:14px!important;
    gap:9px!important;
  }
  body.lm-mobile-one-col .v16-meta{min-height:30px!important}
  body.lm-mobile-one-col .v16-kind{font-size:12px!important}
  body.lm-mobile-one-col .v16-source{font-size:12px!important}
  body.lm-mobile-one-col .v16-title{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    font-size:19px!important;
    line-height:1.42!important;
    -webkit-line-clamp:3!important;
  }
  body.lm-mobile-one-col .v16-reward{font-size:13px!important}
  body.lm-mobile-one-col .v16-benefits{
    min-height:88px!important;
    padding:12px!important;
  }
  body.lm-mobile-one-col .v16-benefits span{font-size:11px!important}
  body.lm-mobile-one-col .v16-benefits b{font-size:13px!important}
  body.lm-mobile-one-col .v16-benefits p{font-size:12px!important}
  body.lm-mobile-one-col .v16-group{
    min-height:150px!important;
    padding:12px!important;
  }
  body.lm-mobile-one-col .v16-group-head b{font-size:13px!important}
  body.lm-mobile-one-col .v16-group-head span{font-size:10px!important}
  body.lm-mobile-one-col .v16-completed,
  body.lm-mobile-one-col .v16-remaining,
  body.lm-mobile-one-col .v16-capacity{font-size:12px!important}
  body.lm-mobile-one-col .v16-progress{font-size:12px!important}
  body.lm-mobile-one-col .v16-progress strong{font-size:16px!important}
  body.lm-mobile-one-col .v16-countdown{font-size:17px!important}
  body.lm-mobile-one-col .v16-footer{
    width:100%!important;
    grid-column:auto!important;
    grid-row:auto!important;
    padding:13px 14px 15px!important;
    gap:12px!important;
  }
  body.lm-mobile-one-col .v16-price-main strong,
  body.lm-mobile-one-col .kind-card-preorder .v16-price-main strong,
  body.lm-mobile-one-col .kind-card-booking .v16-price-main strong,
  body.lm-mobile-one-col .kind-card-ad .v16-price-main strong,
  body.lm-mobile-one-col .kind-card-product .v16-price-main strong{
    font-size:32px!important;
  }
  body.lm-mobile-one-col .v16-price-main small{font-size:15px!important}
  body.lm-mobile-one-col .v16-price-main em{font-size:14px!important}
  body.lm-mobile-one-col .v16-price-bottom{font-size:12px!important}
  body.lm-mobile-one-col .v16-action{
    height:50px!important;
    min-height:50px!important;
    flex-basis:50px!important;
    font-size:16px!important;
    border-radius:12px!important;
  }
}

/* Group status visual must follow corrected server state */
.group-state-open .v16-group-head span{background:#16a34a!important}
.group-state-not_started .v16-group-head span{background:#64748b!important}
.group-state-expired .v16-group-head span{background:#374151!important}
.group-state-sold_out .v16-group-head span,
.group-state-closed .v16-group-head span{background:#dc2626!important}

/* === V19 cart-only redesign; product cards untouched === */
#lm-cart{
  box-sizing:border-box!important;
  background:rgba(255,255,255,.98)!important;
  color:#172033!important;
  border:1px solid rgba(15,23,42,.10)!important;
  box-shadow:0 22px 60px rgba(15,23,42,.20)!important;
  overflow:hidden!important;
}
#lm-cart> b{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:58px!important;
  padding:0 18px!important;
  margin:0!important;
  border-bottom:1px solid #e9edf2!important;
  font-size:20px!important;
  font-weight:900!important;
}
.lm-cart-count{
  display:grid!important;
  place-items:center!important;
  min-width:34px!important;
  height:34px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:#ef2b2d!important;
  color:#fff!important;
  font-size:16px!important;
}
#lm-cart-items{
  box-sizing:border-box!important;
  max-height:min(43vh,430px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:4px 16px!important;
}
.lm-cart-line{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:14px!important;
  align-items:center!important;
  padding:15px 0!important;
  border-bottom:1px solid #edf0f3!important;
  transition:opacity .12s ease,transform .12s ease!important;
}
.lm-cart-row-main{
  min-width:0!important;
  display:grid!important;
  gap:5px!important;
}
.lm-cart-name{
  display:block!important;
  min-width:0!important;
  color:#172033!important;
  font-size:15px!important;
  line-height:1.38!important;
  font-weight:850!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.lm-cart-price{
  color:#475467!important;
  font-size:14px!important;
  font-weight:800!important;
}
.lm-cart-controls{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  flex:0 0 auto!important;
}
.lm-cart-stepper{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:44px 46px 44px!important;
  align-items:center!important;
  height:46px!important;
  border:1px solid #d8dee6!important;
  border-radius:13px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.lm-cart-stepper button{
  touch-action:manipulation!important;
  appearance:none!important;
  width:44px!important;
  height:46px!important;
  min-width:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#f7f9fb!important;
  color:#111827!important;
  font-size:24px!important;
  line-height:1!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.lm-cart-stepper button:active{background:#e9f7ef!important;transform:scale(.95)!important}
.lm-cart-stepper button:disabled{opacity:.55!important}
.lm-cart-stepper strong{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  border-left:1px solid #e5e9ef!important;
  border-right:1px solid #e5e9ef!important;
  background:#fff!important;
  color:#087443!important;
  font-size:17px!important;
  font-weight:900!important;
}
.lm-cart-remove{
  position:static!important;
  transform:none!important;
  touch-action:manipulation!important;
  width:auto!important;
  min-width:52px!important;
  height:42px!important;
  padding:0 11px!important;
  border:1px solid #fecaca!important;
  border-radius:11px!important;
  background:#fff5f5!important;
  color:#d92d20!important;
  font-size:13px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.lm-cart-remove:active{background:#fee2e2!important;transform:scale(.96)!important}
.lm-cart-row-removing{opacity:0!important;transform:translateX(14px)!important}

#lm-cart .lm-cart-total-panel,
#lm-cart .lm-payment-box,
#lm-cart #lm-checkout{
  margin-left:16px!important;
  margin-right:16px!important;
}
#lm-cart .lm-cart-total-panel{padding:14px 0!important}
#lm-cart .lm-payment-box{margin-top:8px!important}
#lm-cart #lm-checkout{
  width:calc(100% - 32px)!important;
  min-height:50px!important;
  margin-top:14px!important;
  margin-bottom:16px!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#087443,#d8b51b)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:900!important;
}
.lm-cart-toggle{
  touch-action:manipulation!important;
  cursor:pointer!important;
}

/* Desktop: compact right-side drawer */
@media(min-width:641px){
  #lm-cart{
    position:fixed!important;
    right:22px!important;
    bottom:22px!important;
    width:min(430px,calc(100vw - 44px))!important;
    max-height:calc(100vh - 44px)!important;
    border-radius:22px!important;
    z-index:10020!important;
  }
  body.lm-cart-collapsed #lm-cart{
    width:auto!important;
    max-height:64px!important;
    min-width:160px!important;
  }
  body.lm-cart-collapsed #lm-cart> b{
    border-bottom:0!important;
    padding-right:78px!important;
  }
  body.lm-cart-collapsed #lm-cart-items,
  body.lm-cart-collapsed #lm-cart .lm-cart-total-panel,
  body.lm-cart-collapsed #lm-cart .lm-payment-box,
  body.lm-cart-collapsed #lm-cart #lm-checkout,
  body.lm-cart-collapsed #lm-cart .lm-cart-pager{display:none!important}
}

/* Mobile: true bottom sheet with reachable controls */
@media(max-width:640px){
  #lm-cart{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    max-width:none!important;
    max-height:min(82dvh,760px)!important;
    border-radius:24px 24px 0 0!important;
    z-index:10020!important;
    padding-bottom:max(0px,env(safe-area-inset-bottom))!important;
  }
  #lm-cart> b{
    min-height:62px!important;
    padding:0 72px 0 18px!important;
    font-size:19px!important;
  }
  #lm-cart-items{
    max-height:35dvh!important;
    padding:2px 15px!important;
  }
  .lm-cart-line{
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:14px 0!important;
  }
  .lm-cart-name{font-size:15px!important}
  .lm-cart-price{font-size:14px!important}
  .lm-cart-controls{
    width:100%!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  .lm-cart-stepper{
    grid-template-columns:48px 54px 48px!important;
    height:48px!important;
  }
  .lm-cart-stepper button{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    font-size:26px!important;
  }
  .lm-cart-stepper strong{
    width:54px!important;
    height:48px!important;
    font-size:18px!important;
  }
  .lm-cart-remove{
    min-width:72px!important;
    height:46px!important;
    font-size:14px!important;
  }
  #lm-cart .lm-cart-total-panel,
  #lm-cart .lm-payment-box,
  #lm-cart #lm-checkout{
    margin-left:15px!important;
    margin-right:15px!important;
  }
  #lm-cart #lm-checkout{
    width:calc(100% - 30px)!important;
    min-height:52px!important;
    margin-bottom:max(14px,env(safe-area-inset-bottom))!important;
  }
  #lm-cart-toggle{
    position:absolute!important;
    right:14px!important;
    top:10px!important;
    z-index:5!important;
  }
  body.lm-cart-open #lm-cart-toggle,
  #lm-cart-toggle.is-close{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    padding:0!important;
    border-radius:50%!important;
    background:#087443!important;
    color:#fff!important;
    font-size:26px!important;
  }
  body.lm-cart-collapsed #lm-cart{
    left:auto!important;
    right:12px!important;
    bottom:12px!important;
    width:auto!important;
    min-width:170px!important;
    max-height:60px!important;
    border-radius:999px!important;
    padding:0!important;
  }
  body.lm-cart-collapsed #lm-cart> b{
    min-height:60px!important;
    padding:0 82px 0 18px!important;
    border:0!important;
    font-size:16px!important;
  }
  body.lm-cart-collapsed #lm-cart-items,
  body.lm-cart-collapsed #lm-cart .lm-cart-total-panel,
  body.lm-cart-collapsed #lm-cart .lm-payment-box,
  body.lm-cart-collapsed #lm-cart #lm-checkout,
  body.lm-cart-collapsed #lm-cart .lm-cart-pager{display:none!important}
  body.lm-cart-collapsed #lm-cart-toggle{
    top:8px!important;
    right:8px!important;
    width:auto!important;
    min-width:68px!important;
    height:44px!important;
    padding:0 14px!important;
    border-radius:999px!important;
    background:#087443!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:900!important;
  }
}

/* === V20 cross-browser SVG category/cart icons === */
.lm-cat-icon{
  width:22px!important;
  height:22px!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 22px!important;
  color:#344054!important;
}
.lm-cat-icon img{
  width:20px!important;
  height:20px!important;
  display:block!important;
  object-fit:contain!important;
  color:inherit!important;
}
.market-category-icon{
  width:64px!important;
  height:64px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#f4f4f5!important;
  color:#344054!important;
  font-size:0!important;
}
.market-category-icon img{
  width:42px!important;
  height:42px!important;
  display:block!important;
  object-fit:contain!important;
}
.market-category-scroll a:hover .market-category-icon,
.market-category-scroll a.on .market-category-icon{
  background:#fff1eb!important;
  color:#ee4d2d!important;
}
.lm-cart-title-icon{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  display:inline-block!important;
  background:url("categories/cart.svg") center/contain no-repeat!important;
}
body:not(.lm-cart-open) .lm-cart>b:before,
body.lm-cart-collapsed .lm-cart>b:before{
  content:none!important;
  display:none!important;
}
body:not(.lm-cart-open) .lm-cart>b,
body.lm-cart-collapsed .lm-cart>b{
  font-size:16px!important;
}
@media(max-width:760px){
  .lm-cat-icon{width:20px!important;height:20px!important;flex-basis:20px!important}
  .lm-cat-icon img{width:18px!important;height:18px!important}
  .market-category-icon{width:52px!important;height:52px!important}
  .market-category-icon img{width:34px!important;height:34px!important}
}

/* === V21 colored categories + uncut reward display === */

/* Category icon color presentation */
.market-category-icon{
  background:#fff!important;
  border:1px solid #eef1f5!important;
  box-shadow:0 6px 14px rgba(15,23,42,.06)!important;
}
.market-category-icon img{
  width:46px!important;
  height:46px!important;
}
.lm-cat-icon img{
  width:22px!important;
  height:22px!important;
}
.market-category-scroll a:hover .market-category-icon,
.market-category-scroll a.on .market-category-icon{
  background:#fff!important;
  transform:translateY(-2px)!important;
  box-shadow:0 9px 20px rgba(15,23,42,.11)!important;
}
.market-category-scroll a:hover,
.market-category-scroll a.on{
  color:#0f766e!important;
}

/* Reward / benefit section must never clip long text */
.v16-benefits,
.lm-card-benefits{
  overflow:visible!important;
  height:auto!important;
  min-height:92px!important;
  max-height:none!important;
}
.v16-benefits>div,
.benefit-main{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
.v16-benefits>div span,
.benefit-badge{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.v16-benefits>div b,
.benefit-main b{
  display:block!important;
  min-width:0!important;
  width:100%!important;
  color:#2563eb!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:900!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word!important;
  text-align:right!important;
}
.v16-benefits p,
.benefit-sub{
  width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Narrow desktop/tablet cards: stack the point text if needed */
@media(min-width:761px) and (max-width:1180px){
  .v16-benefits>div,
  .benefit-main{
    grid-template-columns:1fr!important;
    align-items:start!important;
    gap:5px!important;
  }
  .v16-benefits>div b,
  .benefit-main b{
    text-align:left!important;
    font-size:12px!important;
  }
}

/* Mobile: readable reward block in both one and two columns */
@media(max-width:760px){
  .market-category-icon img{width:38px!important;height:38px!important}
  .v16-benefits,
  .lm-card-benefits{
    min-height:84px!important;
    padding:9px!important;
  }
  .v16-benefits>div,
  .benefit-main{
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .v16-benefits>div b,
  .benefit-main b{
    font-size:11px!important;
    line-height:1.35!important;
    text-align:left!important;
  }
  body.lm-mobile-one-col .v16-benefits>div,
  body.lm-mobile-one-col .benefit-main{
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  body.lm-mobile-one-col .v16-benefits>div b,
  body.lm-mobile-one-col .benefit-main b{
    font-size:13px!important;
    text-align:right!important;
  }
}

/* === V22 category -> brand/provider -> products === */
.brand-provider-gallery{
  margin:16px 0 20px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.brand-provider-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid #eef1f4;
}
.brand-provider-head>div{display:flex;align-items:baseline;gap:12px;min-width:0}
.brand-provider-head b{font-size:20px;color:#182230}
.brand-provider-head span{font-size:13px;color:#667085}
.brand-provider-head>a{color:#087443;text-decoration:none;font-size:13px;font-weight:900;white-space:nowrap}
.brand-provider-list{
  display:flex;
  gap:0;
  overflow-x:auto;
  scrollbar-width:thin;
}
.brand-provider-card{
  flex:0 0 170px;
  min-height:145px;
  padding:16px 12px;
  border-right:1px solid #eef1f4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  text-decoration:none;
  color:#182230;
  background:#fff;
  transition:background .18s ease,transform .18s ease;
}
.brand-provider-card:hover,
.brand-provider-card.on{background:#effcf6;color:#087443}
.brand-provider-card:hover{transform:translateY(-1px)}
.brand-provider-logo{
  width:62px;
  height:62px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0f9f6e,#44c68a);
  color:#fff;
  font-size:24px;
  font-weight:950;
  box-shadow:0 8px 20px rgba(15,159,110,.20);
}
.brand-all-logo{background:linear-gradient(135deg,#344054,#667085);font-size:16px;letter-spacing:.06em}
.brand-provider-card strong{
  width:100%;
  font-size:15px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.brand-provider-card small{font-size:11px;color:#667085}

/* Product card now explicitly labels the provider as the brand. */
.v16-meta{grid-template-columns:auto minmax(0,1fr) auto!important}
.v16-source{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.v16-source small{
  flex:0 0 auto;
  padding:2px 5px;
  border-radius:5px;
  background:#f2f4f7;
  color:#667085;
  font-size:9px;
  font-weight:800;
}
.v16-source b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#475467;
  font-size:11px;
  font-weight:900;
}
@media(max-width:760px){
  .brand-provider-gallery{margin:10px 0 14px;border-radius:12px}
  .brand-provider-head{padding:12px}
  .brand-provider-head>div{display:block}
  .brand-provider-head b{font-size:17px}
  .brand-provider-head span{display:block;margin-top:3px;font-size:11px}
  .brand-provider-card{flex-basis:132px;min-height:122px;padding:12px 8px}
  .brand-provider-logo{width:52px;height:52px;font-size:20px}
  .brand-provider-card strong{font-size:13px}
  .v16-source{gap:3px!important}
  .v16-source small{font-size:8px;padding:2px 4px}
  .v16-source b{font-size:9px}
}

/* Booking submit visibility fix */
.lm-booking-form select{
  width:100%;
  margin-top:8px;
  border:1px solid rgba(15,23,42,.14);
  border-radius:18px;
  padding:14px 42px 14px 16px;
  font:inherit;
  color:#101828;
  background-color:#fff;
}
.lm-booking-submit-bar{
  display:grid;
  gap:8px;
  margin-top:4px;
  padding-top:16px;
  border-top:1px solid rgba(15,23,42,.08);
}
.lm-booking-submit{
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-height:56px;
  visibility:visible!important;
  opacity:1!important;
  position:relative;
  z-index:5;
  background:#087443!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(8,116,67,.22);
}
.lm-booking-submit-bar small{
  text-align:center;
  color:#667085;
  font-weight:700;
}
@media(max-width:720px){
  .lm-booking-page{padding-bottom:110px}
  .lm-booking-submit-bar{
    position:sticky;
    bottom:8px;
    z-index:50;
    margin:8px -10px -10px;
    padding:10px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 35px rgba(15,23,42,.16);
    backdrop-filter:blur(10px);
  }
  .lm-booking-submit{min-height:58px;font-size:17px}
  .lm-booking-submit-bar small{font-size:11px}
}


/* === V24.2 cart toggle semantics fix: never use X for expand/collapse === */
#lm-cart-toggle,
body.lm-cart-open #lm-cart-toggle,
body.lm-cart-collapsed #lm-cart-toggle,
#lm-cart-toggle.is-close,
#lm-cart-toggle.is-open{
  width:auto!important;
  min-width:76px!important;
  height:44px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#15803d!important;
  color:#fff!important;
  border:0!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
\n\n/* 2026-07-27 商城後台帳號與登出入口 */\n.zjb-admin-account{margin-top:auto;padding:16px 10px 6px;border-top:1px solid var(--zjb-line,#e5e7eb)}\n.zjb-admin-user{display:flex;align-items:center;gap:10px;padding:0 4px 12px;min-width:0}\n.zjb-admin-user-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#ecfdf3;flex:0 0 auto}\n.zjb-admin-user div{min-width:0}\n.zjb-admin-user b,.zjb-admin-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.zjb-admin-user b{font-size:14px;color:#1f2937}\n.zjb-admin-user small{margin-top:2px;font-size:11px;color:#94a3b8}\n.zjb-admin-logout{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;color:#c24141!important;text-decoration:none!important;font-weight:900;font-size:14px}\n.zjb-admin-logout:hover{background:#fee2e2;color:#991b1b!important}\nbody.zjb-sidebar-collapsed .zjb-admin-account{padding:10px 7px 6px}\nbody.zjb-sidebar-collapsed .zjb-admin-user{display:none}\nbody.zjb-sidebar-collapsed .zjb-admin-logout{font-size:0;padding:0}\nbody.zjb-sidebar-collapsed .zjb-admin-logout span{font-size:20px}\n@media(max-width:900px){.zjb-admin-account{display:none!important}}\n
/* =========================================================
   2026-07-28 product_images workspace width / clipping fix
   Keep the editor inside the visible seller-center viewport.
   ========================================================= */
body:has(.lm-admin){overflow-x:hidden!important}
.lm-admin{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
.lm-admin > .lm-manager-shell{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:20px 24px 40px!important;
  padding:0!important;
  overflow:visible!important;
}
.lm-manager-shell,
.lm-manager-shell *,
.lm-prestashop-editor,
.lm-editor-layout,
.lm-editor-card,
.lm-product-sidebar{
  min-width:0!important;
  box-sizing:border-box!important;
}
.lm-product-sidebar{
  width:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(220px,280px)!important;
}
.lm-prestashop-editor{
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
.lm-editor-hero{
  width:100%!important;
  max-width:100%!important;
}
.lm-editor-hero > div:first-child{min-width:0!important}
.lm-editor-hero h2,.lm-editor-hero p{
  overflow-wrap:anywhere!important;
}
.lm-editor-actions{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.lm-editor-card{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.lm-editor-row{
  width:100%!important;
  min-width:0!important;
}
.lm-prestashop-editor input,
.lm-prestashop-editor select,
.lm-prestashop-editor textarea{
  min-width:0!important;
  max-width:100%!important;
}
.lm-v40-images{overflow:visible!important}
.lm-image-card-grid{
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  overflow:visible!important;
}
.lm-image-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.lm-image-frame{
  min-height:0!important;
  aspect-ratio:1/1!important;
}
.lm-image-card input{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.lm-upload-row{
  width:100%!important;
  min-width:0!important;
}
.lm-upload-row > *{min-width:0!important}
.lm-drag-help{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
.lm-drag-help b{text-align:left!important;overflow-wrap:anywhere!important}

@media (min-width:1500px){
  .lm-image-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:1250px){
  .lm-admin > .lm-manager-shell{margin-left:18px!important;margin-right:18px!important}
  .lm-product-sidebar{grid-template-columns:1fr!important}
  .lm-product-live-card{display:none!important}
  .lm-image-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .lm-admin > .lm-manager-shell{margin:14px 12px 32px!important}
  .lm-editor-hero{position:relative!important;top:auto!important}
  .lm-editor-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;white-space:normal!important}
  .lm-editor-actions a,.lm-editor-actions button{text-align:center!important;width:100%!important}
}

/* V110：品牌商城固定單行，依容器寬度自動分頁並以左右鍵換頁。 */
.lm-home-brand-pager{grid-column:1/-1;position:relative;min-width:0;padding:0 42px 22px}.lm-home-brand-pager .lm-home-brand-grid{display:grid!important;grid-template-columns:repeat(var(--brand-page-count,6),minmax(0,1fr));gap:14px;min-width:0}.lm-home-brand-card[hidden]{display:none!important}.lm-brand-page-arrow{position:absolute;top:50%;z-index:2;width:34px;height:52px;margin-top:-35px;border:1px solid #dbe3df;border-radius:11px;background:#fff;color:#13784f;font-size:34px;line-height:1;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.10)}.lm-brand-page-arrow.prev{left:0}.lm-brand-page-arrow.next{right:0}.lm-brand-page-arrow:disabled{opacity:.28;cursor:default;box-shadow:none}.lm-brand-page-status{position:absolute;left:50%;bottom:0;transform:translateX(-50%);color:#718078;font-size:12px;font-weight:800}.lm-home-brand-pager.single-page{padding-left:0;padding-right:0}.lm-home-brand-pager.single-page .lm-brand-page-arrow{display:none}
@media(max-width:900px){.lm-home-brand-pager{padding:0 34px 20px}.lm-brand-page-arrow{width:28px;height:46px;font-size:28px}.lm-home-brand-card{padding:14px 8px}.lm-home-brand-card>span{width:70px;height:56px}}
@media(max-width:600px){.lm-home-brand-pager{padding:0 25px 18px}.lm-home-brand-pager .lm-home-brand-grid{gap:6px}.lm-home-brand-card{gap:5px!important;padding:9px 3px!important;border-radius:12px!important;border-top-width:3px!important}.lm-home-brand-card>span{width:48px!important;height:40px!important;border-radius:9px!important}.lm-home-brand-card img{padding:2px!important}.lm-home-brand-card strong{width:100%;font-size:11px!important;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-home-brand-card small{font-size:10px!important;white-space:nowrap}.lm-brand-page-arrow{width:21px;height:40px;margin-top:-28px;border-radius:8px;font-size:23px}.lm-brand-page-status{font-size:10px}}
@media (max-width:640px){
  .lm-admin > .lm-manager-shell{margin:10px 8px 28px!important}
  .lm-product-picker,.lm-editor-card{padding:15px!important}
  .lm-editor-row{grid-template-columns:1fr!important;gap:0!important}
  .lm-image-card-grid{grid-template-columns:1fr!important;gap:12px!important}
  .lm-editor-actions{grid-template-columns:1fr!important}
  .lm-picker-actions{display:grid!important;grid-template-columns:1fr!important}
}

/* =========================================================
   V3.3 商品清單：可拖欄寬、凍結首列首欄、精簡商品名稱
   ========================================================= */
.lm-product-list-panel .lm-table-scroll{
  position:relative;
  max-height:calc(100vh - 250px);
  overflow:auto!important;
  padding:0!important;
  border-radius:12px;
  scrollbar-gutter:stable;
}
.lm-product-admin-table{
  width:max-content!important;
  min-width:100%!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.lm-product-admin-table th,
.lm-product-admin-table td{
  position:relative;
  overflow:hidden;
  text-overflow:ellipsis;
  border-right:1px solid #edf0f3!important;
}
.lm-product-admin-table thead th{
  position:sticky!important;
  top:0;
  z-index:12;
  background:#f7f9fb!important;
  box-shadow:0 1px 0 #dfe5eb;
}
.lm-product-admin-table thead th:first-child{
  left:0;
  z-index:15;
}
.lm-product-admin-table tbody td:first-child{
  position:sticky!important;
  left:0;
  z-index:8;
  background:#fff!important;
  box-shadow:1px 0 0 #e4e8ed,6px 0 12px rgba(15,23,42,.04);
}
.lm-product-admin-table tbody tr:hover td:first-child{background:#fffaf8!important}
.lm-col-resizer{
  position:absolute;
  top:0;
  right:-3px;
  width:8px;
  height:100%;
  cursor:col-resize;
  z-index:20;
  touch-action:none;
}
.lm-col-resizer:after{
  content:"";
  position:absolute;
  top:10px;
  bottom:10px;
  left:3px;
  width:2px;
  border-radius:2px;
  background:transparent;
}
.lm-col-resizer:hover:after,.lm-col-resizing .lm-col-resizer:after{background:#19bf75}
body.lm-col-resizing{cursor:col-resize!important;user-select:none!important}
.lm-product-title-cell{width:9.5em;min-width:9.5em;white-space:normal!important}
.lm-product-title-cell .lm-product-title-link{
  display:block;
  width:8em;
  max-width:8em;
  white-space:normal!important;
  word-break:break-all;
  overflow-wrap:anywhere;
  line-height:1.45;
}
.lm-product-title-cell small{
  display:block;
  width:8em;
  white-space:normal;
  word-break:break-all;
  color:#84909d;
  margin-top:4px;
}
.lm-row-actions{min-width:310px;white-space:normal!important}
.lm-inline-product-delete{display:inline-block;margin:3px 0 3px 4px}
.lm-danger-btn{
  border:1px solid #ef4444!important;
  background:#fff!important;
  color:#dc2626!important;
  border-radius:7px!important;
  padding:7px 10px!important;
  font-weight:800!important;
  cursor:pointer;
}
.lm-danger-btn:hover{background:#fff1f2!important}
@media(max-width:900px){
  .lm-product-list-panel .lm-table-scroll{max-height:68vh}
  .lm-product-admin-table{min-width:980px!important}
}

/* V3.4 coupon admin + checkout */
.lm-coupon-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;align-items:end}.lm-coupon-form label{display:grid;gap:6px}.lm-code-generator{display:flex;gap:7px}.lm-code-generator input{min-width:0;flex:1}.lm-code-generator button{white-space:nowrap}.lm-coupon-form .primary{height:44px}.lm-coupon-table{min-width:900px}.lm-coupon-entry{padding:10px 0;border-top:1px solid #eee}.lm-coupon-entry>div{display:flex;gap:7px;margin-top:5px}.lm-coupon-entry input{min-width:0;flex:1}.lm-coupon-entry small{display:block;margin-top:5px}.lm-coupon-entry small.ok{color:#16803c}.lm-coupon-entry small.error{color:#c62828}@media(max-width:900px){.lm-coupon-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.lm-coupon-form{grid-template-columns:1fr}}

/* v3.5 商品頁：右側推薦列與購物清單精緻化 */
body.lm-product-page .lm-product-ad-rail{
  top:96px!important;
  right:14px!important;
  width:136px!important;
  max-height:calc(100vh - 120px)!important;
  padding:8px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 16px 42px rgba(16,24,40,.14)!important;
  border:1px solid rgba(226,232,240,.95)!important;
}
body.lm-product-page .lm-ad-rail-scroll{
  max-height:calc(100vh - 145px)!important;
  padding:0 2px 0 0!important;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
body.lm-product-page .lm-ad-rail-item{
  padding:6px!important;
  margin-bottom:7px!important;
  border:1px solid #eef2f6!important;
  background:#fff!important;
  border-radius:12px!important;
}
body.lm-product-page .lm-ad-rail-item img{
  border-radius:9px!important;
  aspect-ratio:1/1!important;
}
body.lm-product-page .lm-ad-rail-item b{
  font-size:11px!important;
  line-height:1.4!important;
  margin-top:5px!important;
}
body.lm-product-page .lm-ad-rail-item em{
  font-size:12px!important;
  margin-top:2px!important;
}
body.lm-product-page .lm-ad-rail-toggle{
  left:-30px!important;
  top:16px!important;
  width:30px!important;
  height:64px!important;
  border-radius:10px 0 0 10px!important;
  font-size:12px!important;
  box-shadow:-5px 8px 18px rgba(16,24,40,.08)!important;
}

/* 購物清單收合時只保留乾淨的小型按鈕，避免優惠碼區露出 */
body.lm-product-page.lm-cart-collapsed .lm-cart{
  width:188px!important;
  height:58px!important;
  min-height:58px!important;
  max-height:58px!important;
  right:18px!important;
  bottom:18px!important;
  top:auto!important;
  transform:none!important;
  padding:9px 11px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 14px 36px rgba(16,24,40,.18)!important;
}
body.lm-product-page.lm-cart-collapsed .lm-cart>b{
  height:40px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  font-size:14px!important;
  white-space:nowrap!important;
}
body.lm-product-page.lm-cart-collapsed .lm-cart #lm-cart-items,
body.lm-product-page.lm-cart-collapsed .lm-cart .lm-payment-box,
body.lm-product-page.lm-cart-collapsed .lm-cart .lm-payment-select-box,
body.lm-product-page.lm-cart-collapsed .lm-cart .lm-coupon-entry,
body.lm-product-page.lm-cart-collapsed .lm-cart #lm-checkout,
body.lm-product-page.lm-cart-collapsed .lm-cart .lm-cart-total-panel,
body.lm-product-page.lm-cart-collapsed .lm-cart .lm-mobile-cart-summary{
  display:none!important;
}
body.lm-product-page.lm-cart-collapsed .lm-cart-toggle{
  min-width:62px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  background:#147a45!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
}

/* 展開後是清楚的右側購物抽屜，不壓住商品內容 */
body.lm-product-page:not(.lm-cart-collapsed) .lm-cart{
  right:18px!important;
  top:92px!important;
  bottom:auto!important;
  transform:none!important;
  width:340px!important;
  max-height:calc(100vh - 116px)!important;
  padding:16px!important;
  border-radius:22px!important;
  overflow:auto!important;
  box-shadow:0 20px 60px rgba(16,24,40,.2)!important;
}
body.lm-product-page .lm-coupon-entry{
  display:grid;
  gap:7px;
  margin:10px 0;
  padding:12px;
  border:1px solid #e8edf3;
  border-radius:16px;
  background:#f8fafc;
}
body.lm-product-page .lm-coupon-entry>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
body.lm-product-page .lm-coupon-entry input{
  min-width:0!important;
  height:40px!important;
  border:1px solid #dfe5ec!important;
  border-radius:12px!important;
  padding:0 11px!important;
}
body.lm-product-page .lm-coupon-entry button{
  height:40px!important;
  border:0!important;
  border-radius:12px!important;
  padding:0 14px!important;
  background:#171717!important;
  color:#fff!important;
  font-weight:900!important;
}

@media(max-width:1180px){
  body.lm-product-page .lm-product-ad-rail{display:none!important;}
}
@media(max-width:980px){
  body.lm-product-page.lm-cart-collapsed .lm-cart,
  body.lm-product-page:not(.lm-cart-collapsed) .lm-cart{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    width:auto!important;
    transform:none!important;
  }
  body.lm-product-page:not(.lm-cart-collapsed) .lm-cart{
    max-height:72vh!important;
  }
}

/* === v3.6 購物清單／優惠碼位置修正 ===
   優惠碼只屬於「展開後的結帳清單」，絕不出現在收合按鈕旁或清單外。 */
.lm-cart .lm-coupon-entry{
  display:none!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart .lm-coupon-entry{
  display:grid!important;
  order:30;
  width:100%!important;
  margin:0!important;
  padding:12px!important;
  border:1px solid #e5e9ef!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart .lm-payment-box,
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart .lm-payment-select-box{
  order:20;
}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart #lm-checkout{
  order:40;
}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart>b{order:1}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart #lm-cart-items{order:10}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart .lm-cart-total-panel{order:15}
body.lm-cart-open:not(.lm-cart-collapsed) .lm-cart .lm-mobile-cart-summary{order:35}

/* 收合狀態只顯示購物清單標題、件數與展開按鈕 */
body:not(.lm-cart-open) .lm-cart .lm-coupon-entry,
body.lm-cart-collapsed .lm-cart .lm-coupon-entry,
body:not(.lm-cart-open) .lm-cart .lm-payment-box,
body:not(.lm-cart-open) .lm-cart .lm-payment-select-box,
body:not(.lm-cart-open) .lm-cart #lm-checkout,
body:not(.lm-cart-open) .lm-cart .lm-cart-total-panel,
body:not(.lm-cart-open) .lm-cart #lm-cart-items,
body.lm-cart-collapsed .lm-cart .lm-payment-box,
body.lm-cart-collapsed .lm-cart .lm-payment-select-box,
body.lm-cart-collapsed .lm-cart #lm-checkout,
body.lm-cart-collapsed .lm-cart .lm-cart-total-panel,
body.lm-cart-collapsed .lm-cart #lm-cart-items{
  display:none!important;
}

body:not(.lm-cart-open) .lm-cart,
body.lm-cart-collapsed .lm-cart{
  display:block!important;
  width:210px!important;
  height:60px!important;
  min-height:60px!important;
  max-height:60px!important;
  padding:10px 12px!important;
  overflow:hidden!important;
}
body:not(.lm-cart-open) .lm-cart>b,
body.lm-cart-collapsed .lm-cart>b{
  display:flex!important;
  height:40px!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin:0!important;
  gap:8px!important;
}

/* === v3.7 會員優惠券錢包＋右側廣告縮圖列復原 === */
body.lm-product-page .lm-product-ad-rail{display:block!important;visibility:visible!important;z-index:350!important;opacity:1}
body.lm-product-page .lm-product-ad-rail.closed{display:block!important;visibility:visible!important;opacity:.92!important;transform:translateX(calc(100% + 10px))!important}
body.lm-product-page .lm-product-ad-rail.closed .lm-ad-rail-toggle{visibility:visible!important;opacity:1!important}
@media(max-width:900px){body.lm-product-page .lm-product-ad-rail{display:none!important}}
.lm-product-coupon-wallet{margin-top:16px;padding:14px;border:1px solid #f2d5b5;border-radius:18px;background:linear-gradient(135deg,#fffaf3,#fff)}
.lm-coupon-wallet-head>div{display:flex;align-items:baseline;gap:10px}.lm-coupon-wallet-head b{font-size:18px;color:#9b4b12}.lm-coupon-wallet-head span{font-size:12px;color:#7a6a5e}
.lm-coupon-wallet-list{display:grid;gap:9px;margin-top:10px;max-height:230px;overflow:auto;scroll-behavior:smooth}
.lm-coupon-ticket{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px dashed #ee9e55;border-radius:14px;background:#fff}
.lm-coupon-ticket>div{display:grid;gap:2px}.lm-coupon-ticket strong{color:#e45616;font-size:18px}.lm-coupon-ticket span{font-weight:800}.lm-coupon-ticket small{color:#7c6f65}.lm-coupon-ticket button,.lm-coupon-ticket a{border:0;border-radius:11px;padding:9px 12px;background:#ee4d2d;color:#fff;text-decoration:none;font-weight:900;white-space:nowrap;cursor:pointer}.lm-coupon-ticket.owned{opacity:.72}.lm-coupon-ticket.owned button{background:#d9dee5;color:#657080;cursor:default}
body.lm-product-page .lm-coupon-entry select{min-width:0!important;width:100%!important;height:42px!important;border:1px solid #dfe5ec!important;border-radius:12px!important;padding:0 10px!important;background:#fff!important}
@media(max-width:640px){.lm-coupon-wallet-head>div{display:grid;gap:3px}.lm-coupon-ticket{grid-template-columns:1fr}.lm-coupon-ticket button,.lm-coupon-ticket a{width:100%;text-align:center}}

/* V3.8 advanced coupon settings */
.lm-coupon-form-advanced{grid-template-columns:repeat(4,minmax(180px,1fr));padding:18px;border:1px solid #e7ebf0;border-radius:18px;background:#fbfcfe}.lm-coupon-form-advanced small{font-size:12px;color:#667085}.lm-role-checks{display:flex;flex-wrap:wrap;gap:8px}.lm-role-checks label{display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #dfe5ec;border-radius:10px;background:#fff}.lm-coupon-help{margin:16px 0;padding:14px 16px;border-radius:14px;background:#f0f9f4;border:1px solid #c9ead6;color:#245c38}.lm-coupon-table{min-width:1220px}@media(max-width:1200px){.lm-coupon-form-advanced{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.lm-coupon-form-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.lm-coupon-form-advanced{grid-template-columns:1fr}}

/* v4.0 Coupon Center */
.lm-coupon-center{max-width:1500px;margin:0 auto}.lm-coupon-center-head{align-items:flex-start;gap:24px}.lm-eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:.14em;color:#159447;margin-bottom:6px}.lm-coupon-center-head h2{margin:0 0 6px;font-size:30px}.lm-coupon-center-head p{margin:0;color:#667085}.lm-coupon-head-badges{display:flex;gap:8px;flex-wrap:wrap}.lm-coupon-head-badges span{padding:8px 12px;border-radius:999px;background:#f2f8f4;color:#15703a;font-size:13px;font-weight:800;border:1px solid #d9ebdf}.lm-coupon-center-form{display:grid;gap:16px}.lm-coupon-section{border:1px solid #e4e9ef;border-radius:18px;background:#fff;padding:20px;box-shadow:0 8px 24px rgba(16,24,40,.035)}.lm-coupon-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.lm-coupon-section-title>b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eef8f1;color:#168a45}.lm-coupon-section-title h3{margin:0 0 3px;font-size:18px}.lm-coupon-section-title p{margin:0;color:#7a8493;font-size:13px}.lm-coupon-grid{display:grid;gap:14px}.lm-coupon-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lm-coupon-grid label{display:grid;gap:6px;font-weight:800;color:#253247}.lm-coupon-grid input,.lm-coupon-grid select{min-width:0;width:100%;height:46px}.lm-coupon-grid small{font-size:12px;color:#667085;font-weight:500}.lm-role-card-grid{display:grid;grid-template-columns:repeat(8,minmax(92px,1fr));gap:10px}.lm-role-card{position:relative;min-height:92px;border:1px solid #dfe5ec;border-radius:15px;background:#fbfcfe;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:9px;cursor:pointer;transition:.18s ease;padding:12px!important}.lm-role-card:hover{transform:translateY(-2px);border-color:#a9d9ba;box-shadow:0 8px 18px rgba(19,129,62,.08)}.lm-role-card input{position:absolute;opacity:0;pointer-events:none}.lm-role-checkmark{width:32px;height:32px;border-radius:9px;border:2px solid #aab3bf;background:#fff;color:transparent;display:grid;place-items:center;font-size:21px;font-weight:900}.lm-role-card:has(input:checked){border-color:#159447;background:#f0fbf4;box-shadow:inset 0 0 0 1px #159447}.lm-role-card:has(input:checked) .lm-role-checkmark{background:#159447;border-color:#159447;color:#fff}.lm-role-card-all:has(input:checked){background:linear-gradient(135deg,#edf9f1,#fff9e9);border-color:#159447}.lm-coupon-switch-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.lm-switch-card{display:flex!important;align-items:center;gap:12px;padding:14px 16px!important;border:1px solid #e0e6ed;border-radius:14px;background:#fbfcfe;cursor:pointer}.lm-switch-card input{position:absolute;opacity:0}.lm-switch-card>span{width:43px;height:24px;border-radius:999px;background:#cfd6df;position:relative;flex:0 0 auto}.lm-switch-card>span:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:white;top:3px;left:3px;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.18s}.lm-switch-card:has(input:checked)>span{background:#159447}.lm-switch-card:has(input:checked)>span:after{left:22px}.lm-switch-card div{display:grid;gap:2px}.lm-switch-card small{color:#7a8493;font-size:12px}.lm-coupon-submitbar{position:sticky;bottom:12px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px;border-radius:16px;background:rgba(22,34,50,.95);color:#fff;box-shadow:0 14px 35px rgba(15,23,42,.22);backdrop-filter:blur(8px)}.lm-coupon-submitbar div{display:grid;gap:2px}.lm-coupon-submitbar span{font-size:12px;color:#d3dae4}.lm-coupon-submitbar .primary{min-width:180px;height:46px}.lm-coupon-list-head{margin-top:24px}.lm-coupon-list-head h3{margin:0 0 4px}.lm-coupon-list-head p{margin:0;color:#7a8493}.lm-status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}.lm-status-pill.on{background:#e9f8ef;color:#14803f}.lm-status-pill.off{background:#f2f4f7;color:#667085}
@media(max-width:1250px){.lm-coupon-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-role-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.lm-coupon-center-head{display:grid}.lm-coupon-grid-4,.lm-coupon-switch-row{grid-template-columns:1fr}.lm-role-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-coupon-section{padding:15px}.lm-coupon-submitbar{position:static;display:grid}.lm-coupon-submitbar .primary{width:100%}}


/* === v4.1 購物清單結帳區 UIUX：優惠券與結帳按鈕完全分列 === */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{
  gap:12px!important;
  padding:18px!important;
}
body.lm-product-page .lm-payment-select-box{
  display:grid!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.lm-product-page .lm-payment-select-box label,
body.lm-product-page .lm-coupon-entry label{
  font-size:14px!important;
  line-height:1.4!important;
  color:#344054!important;
  font-weight:900!important;
}
body.lm-product-page .lm-payment-select-box select,
body.lm-product-page .lm-coupon-entry select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  padding:0 42px 0 14px!important;
  border:1px solid #d9e0e8!important;
  border-radius:14px!important;
  background-color:#fff!important;
  color:#182230!important;
  font-size:15px!important;
  font-weight:750!important;
  box-shadow:0 1px 2px rgba(16,24,40,.04)!important;
}
body.lm-product-page .lm-coupon-entry{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid #dde5ee!important;
  border-radius:17px!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}
body.lm-product-page .lm-coupon-entry-head{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.lm-product-page .lm-coupon-entry-head span{
  color:#7a8493!important;
  font-size:11px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
body.lm-product-page .lm-coupon-entry>div:not(.lm-coupon-entry-head){
  display:contents!important;
}
body.lm-product-page .lm-coupon-entry #lm-coupon-apply{
  position:static!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid #cfd7e2!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#253247!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
body.lm-product-page .lm-coupon-entry #lm-coupon-apply:hover{
  border-color:#159447!important;
  color:#147a45!important;
  background:#f2fbf5!important;
}
body.lm-product-page .lm-coupon-entry small{
  min-height:0!important;
  margin:0!important;
  color:#667085!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body.lm-product-page #lm-checkout{
  position:static!important;
  display:block!important;
  order:40!important;
  width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  margin:0!important;
  padding:0 18px!important;
  border-radius:15px!important;
  font-size:18px!important;
  letter-spacing:.02em!important;
  box-shadow:0 12px 24px rgba(20,122,69,.18)!important;
}
@media(max-width:640px){
  body.lm-product-page .lm-coupon-entry-head{display:grid!important;gap:2px!important}
  body.lm-product-page .lm-coupon-entry-head span{white-space:normal!important}
  body.lm-product-page #lm-checkout{min-height:56px!important;font-size:17px!important}
}


/* v4.2 購物車結帳堆疊：禁止優惠券與結帳按鈕重疊 */
body.lm-product-page .lm-cart-checkout-stack{display:none;width:100%;min-width:0;flex:0 0 auto;position:relative;isolation:isolate}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;order:20!important;width:100%!important;padding:0 0 8px!important}
body.lm-product-page .lm-cart-checkout-stack>*{position:static!important;inset:auto!important;float:none!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
body.lm-product-page .lm-cart-checkout-stack .lm-coupon-entry{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;overflow:visible!important}
body.lm-product-page .lm-cart-checkout-stack #lm-checkout{display:block!important;position:relative!important;z-index:1!important;margin-top:2px!important;min-height:58px!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{padding-bottom:24px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
body:not(.lm-cart-open) .lm-cart-checkout-stack,body.lm-cart-collapsed .lm-cart-checkout-stack{display:none!important}

/* v4.2 統一商品編輯頁 */
.unified-product-basic{display:grid;gap:16px}.merchant-identity-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:15px;border:1px solid #dce9e1;border-radius:16px;background:linear-gradient(135deg,#f4fbf6,#fff)}.merchant-logo{width:72px;height:72px;border-radius:16px;background:#fff;border:1px solid #dfe7e2;display:grid;place-items:center;overflow:hidden}.merchant-logo img{width:100%;height:100%;object-fit:contain}.merchant-logo span{font-size:28px;font-weight:900;color:#16894a}.merchant-identity-card div:last-child{display:grid;gap:3px}.merchant-identity-card small{color:#718096}.merchant-identity-card b{font-size:20px}.merchant-identity-card em{font-style:normal;color:#526174}.unified-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.publish-inline-card{padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fbfcfe}.publish-inline-card h3{margin:0 0 4px}.publish-inline-card p{margin:0 0 13px;color:#687386;font-size:13px}.publish-image-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.publish-image-grid label{display:grid;gap:7px;padding:9px;border:1px solid #e0e6ed;border-radius:13px;background:#fff}.publish-image-grid img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:9px;background:#f4f6f8}.publish-image-grid span{font-size:12px;font-weight:900}.publish-coupon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.publish-coupon-grid label{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:12px!important;border:1px solid #dfe5ec;border-radius:13px;background:#fff;cursor:pointer}.publish-coupon-grid label:has(input:checked){border-color:#159447;background:#f1fbf4;box-shadow:inset 0 0 0 1px #159447}.publish-coupon-grid input{width:20px!important;height:20px!important}.publish-coupon-grid span{display:grid;gap:2px}.publish-coupon-grid small{color:#6c7788}.publish-empty-note{padding:14px;border-radius:12px;background:#f4f6f8;color:#6c7788}@media(max-width:1100px){.publish-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.publish-coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.unified-product-grid,.publish-coupon-grid{grid-template-columns:1fr}.publish-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-identity-card{grid-template-columns:56px minmax(0,1fr)}.merchant-logo{width:56px;height:56px}}

/* v4.2.2 平台／供應商品牌化統一商品編輯 */
body.worker-product-body{--merchant-primary:#16894a;--merchant-secondary:#e7a900}
body.worker-product-body .publish-head{background:linear-gradient(135deg,var(--merchant-primary),color-mix(in srgb,var(--merchant-primary) 72%,#0c1725));border-bottom:3px solid var(--merchant-secondary)}
.publish-brand-head{display:flex;align-items:center;gap:12px;min-width:0}
.publish-brand-logo{width:46px;height:46px;flex:0 0 46px;border-radius:13px;background:#fff;border:1px solid rgba(255,255,255,.45);display:grid;place-items:center;overflow:hidden;color:var(--merchant-primary)}
.publish-brand-logo img{width:100%;height:100%;object-fit:contain}.publish-brand-logo b{font-size:13px}
body.worker-product-body .publish-save,body.worker-product-body .worker-new-product,body.worker-product-body .publish-head>button{background:linear-gradient(135deg,var(--merchant-primary),var(--merchant-secondary))!important}
body.worker-product-body .worker-product-item.on{border-color:var(--merchant-primary)!important;box-shadow:inset 4px 0 0 var(--merchant-primary)}
body.worker-product-body .merchant-identity-card{border-color:color-mix(in srgb,var(--merchant-primary) 35%,#dce9e1);background:linear-gradient(135deg,color-mix(in srgb,var(--merchant-primary) 8%,#fff),#fff)}
body.worker-product-body .merchant-logo{color:var(--merchant-primary);border-color:color-mix(in srgb,var(--merchant-primary) 30%,#dfe7e2)}
body.worker-product-body .zone-blue{border-top-color:var(--merchant-primary)!important}
body.worker-product-body .worker-selected-badges .green{background:color-mix(in srgb,var(--merchant-primary) 13%,#fff);color:var(--merchant-primary)}
body.is-platform-editor #partnerSelect{border:2px solid var(--merchant-primary);background:#fff;font-weight:850}
body.is-supplier-editor #partnerSelect{background:#f2f5f7;color:#647184;cursor:not-allowed}
@media(max-width:760px){.publish-brand-head small{display:none}.publish-brand-logo{width:38px;height:38px;flex-basis:38px}.publish-head{gap:8px}.publish-head>a{font-size:13px}}

/* v4.2.3 unified editor + collapsible multi-device live preview */
.worker-product-layout{display:grid!important;grid-template-columns:280px minmax(620px,1fr) minmax(390px,520px)!important;gap:20px!important;align-items:start!important;max-width:1920px!important;margin:0 auto!important;padding:0 20px 48px!important}
.worker-product-editor{min-width:0!important}.publish-editor{display:grid!important;gap:18px!important}.publish-zone{margin:0!important;border-radius:18px!important;padding:24px!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important;border:1px solid #e6ebf2!important;background:#fff!important}.publish-zone>h2{margin:0 0 20px!important;font-size:20px!important;display:flex!important;align-items:center!important;gap:10px!important}.unified-product-grid,.price-grid,.group-fields{gap:16px!important}.publish-editor label{display:grid!important;gap:8px!important;font-weight:750!important;color:#26344a!important}.publish-editor input,.publish-editor select,.publish-editor textarea{width:100%!important;min-width:0!important;border:1px solid #d7dee9!important;border-radius:12px!important;background:#fff!important;padding:12px 14px!important;min-height:46px!important;font:inherit!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important}.publish-editor input:focus,.publish-editor select:focus,.publish-editor textarea:focus{outline:0!important;border-color:var(--merchant-primary)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--merchant-primary) 15%,transparent)!important}.publish-inline-card{border:1px solid #e2e8f0!important;border-radius:16px!important;padding:18px!important;background:#f8fafc!important}.rich-editor-toolbar{position:sticky!important;top:76px!important;z-index:8!important;padding:10px!important;border-radius:14px 14px 0 0!important;background:#fff!important;border:1px solid #dfe5ee!important;box-shadow:0 6px 18px rgba(15,23,42,.08)!important}.rich-visual-editor{min-height:520px!important;max-width:100%!important;padding:28px!important;border:1px solid #dfe5ee!important;border-top:0!important;border-radius:0 0 14px 14px!important;background:#fff!important;line-height:1.75!important;overflow-wrap:anywhere!important}.rich-visual-editor img,.rich-visual-editor video,.rich-visual-editor iframe{max-width:100%!important;height:auto!important}.worker-product-preview{min-width:0!important;position:relative!important}.preview-sticky{position:sticky!important;top:82px!important;border:1px solid #dfe5ee!important;border-radius:20px!important;background:#eef2f7!important;padding:12px!important;box-shadow:0 14px 36px rgba(15,23,42,.12)!important;max-height:calc(100vh - 100px)!important;overflow:hidden!important}.preview-toolbar{display:grid!important;grid-template-columns:1fr auto auto!important;align-items:center!important;gap:10px!important;padding:4px 4px 12px!important}.preview-heading{display:grid!important;gap:2px!important}.preview-heading b{font-size:16px!important}.preview-heading small{font-size:12px!important;color:#64748b!important}.preview-device-switch{display:flex!important;gap:4px!important;background:#dde4ed!important;padding:4px!important;border-radius:10px!important}.preview-device-switch button,.preview-collapse-btn{border:0!important;cursor:pointer!important;font-weight:800!important}.preview-device-switch button{display:flex!important;align-items:center!important;gap:5px!important;padding:7px 9px!important;border-radius:8px!important;background:transparent!important;color:#5b6678!important}.preview-device-switch button.on{background:#fff!important;color:var(--merchant-primary)!important;box-shadow:0 2px 8px rgba(15,23,42,.1)!important}.preview-device-switch button span{font-size:12px!important}.preview-collapse-btn{padding:9px 12px!important;border-radius:10px!important;background:#172033!important;color:#fff!important;white-space:nowrap!important}.preview-stage{margin:0 auto!important;transition:width .25s ease,max-width .25s ease!important}.preview-stage.device-desktop{width:100%!important}.preview-stage.device-tablet{width:768px!important;max-width:100%!important}.preview-stage.device-mobile{width:390px!important;max-width:100%!important}.preview-browser-chrome{height:34px!important;border-radius:13px 13px 0 0!important;background:#202737!important;color:#d8deea!important;display:flex!important;align-items:center!important;gap:6px!important;padding:0 12px!important;font-size:11px!important}.preview-browser-chrome i{width:8px!important;height:8px!important;border-radius:50%!important;background:#64748b!important}.preview-browser-chrome span{margin-left:6px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.preview-viewport{background:#fff!important;border-radius:0 0 13px 13px!important;max-height:calc(100vh - 190px)!important;overflow:auto!important;scrollbar-gutter:stable!important}.preview-card{display:grid!important;grid-template-columns:minmax(150px,45%) 1fr!important;gap:18px!important;padding:18px!important;border-bottom:1px solid #edf0f5!important;background:#fff!important}.preview-card>img{width:100%!important;aspect-ratio:1/1!important;object-fit:contain!important;border-radius:14px!important;background:#f7f8fa!important}.preview-card h1{font-size:clamp(18px,2vw,28px)!important;line-height:1.35!important;margin:8px 0!important}.preview-card p{color:#667085!important}.preview-card strong{display:block!important;font-size:24px!important;color:#e23b2d!important;margin:14px 0!important}.preview-card button{width:100%!important;border:0!important;border-radius:10px!important;padding:12px!important;background:linear-gradient(135deg,var(--merchant-primary),var(--merchant-secondary))!important;color:#fff!important;font-weight:900!important}.preview-content{padding:22px!important;line-height:1.75!important;overflow-wrap:anywhere!important}.preview-content>*{max-width:100%!important}.preview-content img,.preview-content video,.preview-content iframe,.preview-content table{max-width:100%!important;height:auto!important}.device-tablet .preview-card{grid-template-columns:1fr!important}.device-mobile .preview-card{grid-template-columns:1fr!important;padding:12px!important;gap:10px!important}.device-mobile .preview-card h1{font-size:19px!important}.device-mobile .preview-content{padding:14px!important;font-size:14px!important}.worker-product-preview.is-collapsed{width:58px!important}.worker-product-preview.is-collapsed .preview-sticky{padding:6px!important}.worker-product-preview.is-collapsed .preview-heading,.worker-product-preview.is-collapsed .preview-device-switch,.worker-product-preview.is-collapsed .preview-stage{display:none!important}.worker-product-preview.is-collapsed .preview-toolbar{display:block!important}.worker-product-preview.is-collapsed .preview-collapse-btn{writing-mode:vertical-rl!important;height:150px!important;width:44px!important}.worker-product-layout.preview-is-collapsed{grid-template-columns:280px minmax(0,1fr) 58px!important}
@media(max-width:1450px){.worker-product-layout{grid-template-columns:250px minmax(560px,1fr) minmax(340px,430px)!important}.preview-device-switch button span{display:none!important}}
@media(max-width:1120px){.worker-product-layout,.worker-product-layout.preview-is-collapsed{grid-template-columns:240px minmax(0,1fr)!important}.worker-product-preview{grid-column:2!important}.preview-sticky{position:relative!important;top:auto!important;max-height:none!important}.preview-viewport{max-height:700px!important}.worker-product-preview.is-collapsed{width:auto!important}.worker-product-preview.is-collapsed .preview-collapse-btn{writing-mode:horizontal-tb!important;height:auto!important;width:auto!important}.worker-product-preview.is-collapsed .preview-toolbar{display:flex!important;justify-content:flex-end!important}}
@media(max-width:760px){.worker-product-layout,.worker-product-layout.preview-is-collapsed{display:block!important;padding:0 12px 36px!important}.worker-product-list{position:relative!important;max-height:300px!important;margin-bottom:14px!important}.publish-zone{padding:16px!important;border-radius:14px!important}.unified-product-grid,.price-grid,.group-fields{grid-template-columns:1fr!important}.preview-toolbar{grid-template-columns:1fr auto!important}.preview-device-switch{grid-column:1/-1!important;justify-content:center!important}.preview-device-switch button span{display:inline!important}.preview-sticky{border-radius:14px!important}.rich-visual-editor{min-height:380px!important;padding:16px!important}.rich-editor-toolbar{top:0!important}}

/* v4.2.4 multi-store parent / child order breakdown */
.lm-store-order-breakdown{margin:16px 0;padding:16px;border:1px solid #dfe8e3;border-radius:16px;background:#f8fbf9;display:grid;gap:10px}.lm-store-order-title{display:flex;justify-content:space-between;gap:12px;align-items:end}.lm-store-order-title b{font-size:16px}.lm-store-order-title small{color:#64748b}.lm-store-order-row{display:grid;grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(95px,.7fr)) auto;gap:12px;align-items:center;padding:12px;background:#fff;border:1px solid #e5ece8;border-radius:12px}.lm-store-order-row>div{display:grid;gap:3px}.lm-store-order-row span,.lm-store-order-row small{font-size:12px;color:#64748b}.lm-store-order-row strong{color:#087443;font-size:17px}@media(max-width:900px){.lm-store-order-row{grid-template-columns:1fr 1fr}.lm-store-order-row>div:first-child{grid-column:1/-1}.lm-store-order-title{align-items:start;flex-direction:column}}

/* v4.2.5 商品刪除、手機側覽與桌機/平板全螢幕預覽 */
.publish-head-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.publish-head-actions form{margin:0}.publish-delete-btn,.publish-primary-save{height:44px;border-radius:12px;padding:0 18px;font-weight:900;cursor:pointer}.publish-delete-btn{border:1px solid rgba(255,255,255,.7)!important;background:rgba(111,15,24,.92)!important;color:#fff!important}.publish-delete-btn:hover{background:#a81927!important}.publish-primary-save{border:0;background:#fff!important;color:var(--merchant-primary)!important}
.worker-product-preview .preview-stage.device-mobile{width:390px;max-width:100%;margin:0 auto;background:#e9edf2;border-radius:30px;padding:12px;box-shadow:0 18px 45px rgba(15,23,42,.15)}
.worker-product-preview .preview-stage.device-mobile .preview-browser-chrome{border-radius:20px 20px 0 0}.worker-product-preview .preview-stage.device-mobile .preview-viewport{height:680px;border-radius:0 0 20px 20px;background:#fff;overflow:auto}.worker-product-preview .preview-stage.device-mobile .preview-card{grid-template-columns:1fr!important}.worker-product-preview .preview-stage.device-mobile .preview-card img{width:100%;max-height:300px;object-fit:contain}.worker-product-preview .preview-stage.device-mobile .preview-card>div{padding:18px}
.preview-modal[hidden]{display:none!important}.preview-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:24px}.preview-modal-backdrop{position:absolute;inset:0;background:rgba(7,13,24,.78);backdrop-filter:blur(8px)}.preview-modal-dialog{position:relative;z-index:1;width:min(1500px,96vw);height:min(920px,94vh);display:grid;grid-template-rows:auto minmax(0,1fr);background:#f2f5f8;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.4)}.preview-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff;border-bottom:1px solid #dfe5ec}.preview-modal-head>div{display:grid;gap:2px}.preview-modal-head small{color:#7a8493}.preview-modal-head button{width:42px;height:42px;border:0;border-radius:12px;background:#eef1f5;font-size:28px;cursor:pointer}.preview-modal-stage{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);margin:auto;background:#dce2e9;box-shadow:0 18px 55px rgba(15,23,42,.18);transition:.2s}.preview-modal-stage.device-desktop{width:calc(100% - 48px);height:calc(100% - 42px);border-radius:16px;overflow:hidden}.preview-modal-stage.device-tablet{width:min(820px,calc(100% - 48px));height:calc(100% - 42px);border-radius:24px;overflow:hidden}.preview-modal-stage .preview-viewport{overflow:auto;background:#fff}.preview-modal-stage.device-desktop .preview-card{grid-template-columns:minmax(360px,45%) minmax(0,1fr)}.preview-modal-stage.device-tablet .preview-card{grid-template-columns:1fr}.preview-modal-open{overflow:hidden}
@media(max-width:760px){.publish-head{flex-wrap:wrap}.publish-head-actions{width:100%;justify-content:flex-end}.publish-delete-btn,.publish-primary-save{flex:1}.preview-modal{padding:8px}.preview-modal-dialog{width:100%;height:100%;border-radius:16px}.preview-device-switch [data-open-preview]{display:none}}

/* v4.2.5 購物車展開與結帳區重新整理 */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{display:grid!important;grid-template-rows:auto minmax(120px,1fr) auto!important;gap:0!important;width:min(430px,calc(100vw - 24px))!important;max-height:min(760px,calc(100vh - 24px))!important;padding:0!important;border:1px solid #dfe5ec!important;border-radius:22px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(15,23,42,.25)!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart>b{display:flex!important;align-items:center!important;min-height:58px!important;padding:0 18px!important;margin:0!important;border-bottom:1px solid #e8edf2!important;background:#fff!important;font-size:18px!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart #lm-cart-items{display:block!important;overflow:auto!important;padding:12px 16px!important;margin:0!important;background:#f7f9fb!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack{display:grid!important;gap:10px!important;padding:14px 16px 16px!important;margin:0!important;background:#fff!important;border-top:1px solid #e6ebf0!important;overflow:visible!important}
body.lm-product-page .lm-cart-checkout-stack .lm-payment-box{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.lm-payment-select-box label{display:block;margin:0 0 6px;font-size:12px;font-weight:900;color:#526174}.lm-payment-select-box select{width:100%!important;height:44px!important;border:1px solid #d7dee7!important;border-radius:12px!important;background:#fff!important;padding:0 11px!important}
body.lm-product-page .lm-cart-checkout-stack .lm-coupon-entry{padding:11px!important;gap:8px!important;border:1px solid #e1e7ed!important;border-radius:14px!important;background:#f8fafc!important}.lm-coupon-entry-head label{font-size:13px!important}.lm-coupon-entry-head span{display:none!important}body.lm-product-page .lm-coupon-entry select{height:42px!important}body.lm-product-page .lm-coupon-entry #lm-coupon-apply{height:40px!important;background:#fff!important}
body.lm-product-page .lm-cart-checkout-stack #lm-checkout{height:56px!important;min-height:56px!important;border:0!important;border-radius:14px!important;background:#159447!important;color:#fff!important;font-size:17px!important;font-weight:950!important;box-shadow:0 10px 22px rgba(21,148,71,.22)!important}
body.lm-product-page .lm-cart-checkout-stack #lm-checkout:hover{filter:brightness(.96)}body.lm-product-page .lm-mobile-cart-summary{margin:0!important;padding:8px 2px 0!important;border-top:0!important;background:transparent!important}
@media(max-width:640px){body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{inset:auto 8px 8px 8px!important;width:auto!important;max-height:calc(100vh - 16px)!important;border-radius:20px!important}body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack{padding:12px!important}}


/* v4.2.6 VVIP + 商品媒體 Slider + 置頂浮動操作列 */
body.publish-body{padding-top:76px!important}.publish-head.worker-product-head{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:99990!important;min-height:68px!important;box-shadow:0 8px 28px rgba(15,23,42,.16)!important;backdrop-filter:blur(14px)}
.publish-head-actions{position:sticky;top:10px;z-index:3}.publish-primary-save,.publish-delete-btn{box-shadow:0 8px 20px rgba(15,23,42,.16)}
.publish-preview-slider{min-width:0}.publish-preview-main{position:relative;display:grid;place-items:center;min-height:260px;background:#f5f7fa;border-radius:16px;overflow:hidden}.publish-preview-main>img{width:100%!important;height:100%!important;max-height:420px!important;object-fit:contain!important;background:#fff}.pv-slide-prev,.pv-slide-next{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(17,24,39,.72);color:#fff;font-size:30px;line-height:1;cursor:pointer}.pv-slide-prev{left:10px}.pv-slide-next{right:10px}.pv-slide-count{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:12px;font-weight:900}.publish-preview-thumbs{display:flex;gap:8px;margin-top:9px;overflow:auto;padding:2px}.publish-preview-thumbs button{flex:0 0 58px;width:58px;height:58px;padding:3px;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer}.publish-preview-thumbs button.on{border-color:var(--merchant-primary)}.publish-preview-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px}.pv-tier-prices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.pv-tier-prices span{display:grid;gap:2px;padding:9px 10px;border-radius:10px;background:#f7f9fb;color:#64748b;font-size:12px}.pv-tier-prices b{color:#b42318;font-size:14px}.device-mobile .publish-preview-main{min-height:240px}.device-mobile .publish-preview-thumbs button{flex-basis:50px;width:50px;height:50px}
@media(max-width:760px){body.publish-body{padding-top:128px!important}.publish-head.worker-product-head{min-height:118px!important}.publish-head-actions{position:static}.publish-preview-main{min-height:220px}.pv-tier-prices{grid-template-columns:1fr}}

/* v4.2.7 修正：購物車下方可完整到達結帳、預覽 Slider 箭頭固定左右側 */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{
  grid-template-rows:auto minmax(110px,1fr) minmax(0,auto)!important;
  height:min(820px,calc(100vh - 24px))!important;
  max-height:calc(100vh - 24px)!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack{
  min-height:0!important;
  max-height:min(430px,58vh)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-bottom:16px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack #lm-checkout{
  position:sticky!important;
  bottom:0!important;
  z-index:8!important;
  flex:0 0 auto!important;
  margin-top:2px!important;
  box-shadow:0 -8px 16px #fff,0 10px 22px rgba(21,148,71,.22)!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart #lm-cart-items{
  min-height:100px!important;
  max-height:none!important;
}

/* 避免 preview-card 的通用 CTA 樣式套到 Slider 左右箭頭 */
.preview-card .publish-preview-main .pv-slide-prev,
.preview-card .publish-preview-main .pv-slide-next,
.preview-modal .publish-preview-main .pv-slide-prev,
.preview-modal .publish-preview-main .pv-slide-next{
  position:absolute!important;
  top:50%!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  z-index:20!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.7)!important;
  border-radius:50%!important;
  background:rgba(15,23,42,.72)!important;
  background-image:none!important;
  color:#fff!important;
  font-size:30px!important;
  font-weight:500!important;
  line-height:1!important;
  box-shadow:0 5px 16px rgba(15,23,42,.24)!important;
  cursor:pointer!important;
}
.preview-card .publish-preview-main .pv-slide-prev,
.preview-modal .publish-preview-main .pv-slide-prev{left:12px!important;right:auto!important;}
.preview-card .publish-preview-main .pv-slide-next,
.preview-modal .publish-preview-main .pv-slide-next{right:12px!important;left:auto!important;}
.preview-card .publish-preview-main .pv-slide-prev:hover,
.preview-card .publish-preview-main .pv-slide-next:hover,
.preview-modal .publish-preview-main .pv-slide-prev:hover,
.preview-modal .publish-preview-main .pv-slide-next:hover{
  background:rgba(15,23,42,.92)!important;
  transform:translateY(-50%) scale(1.04)!important;
}

@media(max-width:640px){
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{
    height:calc(100dvh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    grid-template-rows:auto minmax(90px,1fr) minmax(0,58%)!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart-checkout-stack{
    max-height:none!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
  .preview-card .publish-preview-main .pv-slide-prev,
  .preview-card .publish-preview-main .pv-slide-next{
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
    font-size:26px!important;
  }
}


/* v4.2.8 購物車浮動位置與商品編輯頂部操作列 UIUX */
/* 收合購物車離開瀏覽器底部，避免被底部工具列或視窗邊界裁切 */
body.lm-product-page.lm-cart-collapsed .lm-cart{
  bottom:84px!important;
  right:24px!important;
  z-index:99980!important;
}
/* 展開後固定於右上安全區，整個面板都留在可視範圍 */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart,
body.lm-product-page:not(.lm-cart-collapsed) .lm-cart{
  top:82px!important;
  bottom:auto!important;
  right:24px!important;
  height:auto!important;
  max-height:calc(100dvh - 104px)!important;
  z-index:99980!important;
}
@media(max-width:980px){
  body.lm-product-page.lm-cart-collapsed .lm-cart{
    left:auto!important;
    right:12px!important;
    bottom:78px!important;
    width:200px!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart,
  body.lm-product-page:not(.lm-cart-collapsed) .lm-cart{
    left:10px!important;
    right:10px!important;
    top:72px!important;
    bottom:auto!important;
    width:auto!important;
    max-height:calc(100dvh - 86px)!important;
  }
}
@media(max-width:640px){
  body.lm-product-page.lm-cart-collapsed .lm-cart{
    bottom:72px!important;
    right:10px!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{
    inset:64px 8px auto 8px!important;
    max-height:calc(100dvh - 74px)!important;
  }
}

/* 商品編輯頁置頂列：提升標題對比、層級與按鈕辨識 */
body.worker-product-body .publish-head.worker-product-head{
  min-height:78px!important;
  padding:10px clamp(18px,2vw,34px)!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  background:linear-gradient(115deg,
    color-mix(in srgb,var(--merchant-primary) 88%,#071a12),
    color-mix(in srgb,var(--merchant-primary) 68%,#102535))!important;
  border-bottom:3px solid var(--merchant-secondary)!important;
}
body.publish-body{padding-top:88px!important}
body.worker-product-body .publish-head>a{
  flex:0 0 auto;
  color:#fff!important;
  opacity:1!important;
  font-weight:900!important;
  text-decoration:none!important;
  padding:10px 12px!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.12)!important;
}
body.worker-product-body .publish-head>a:hover{background:rgba(255,255,255,.22)!important}
.publish-brand-head{flex:1 1 auto!important;min-width:240px!important}
.publish-brand-head>div{min-width:0!important}
.publish-brand-head b{
  display:block!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:950!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-shadow:0 1px 2px rgba(0,0,0,.25)!important;
}
.publish-brand-head small{
  display:block!important;
  margin-top:4px!important;
  color:rgba(255,255,255,.84)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.35!important;
}
.publish-brand-logo{
  background:#fff!important;
  border:2px solid rgba(255,255,255,.88)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.18)!important;
}
.publish-head-actions{position:static!important;display:flex!important;gap:10px!important;flex:0 0 auto!important}
.publish-head-actions>*{flex:0 0 auto!important}
.publish-delete-btn,.publish-primary-save,.publish-view-product{
  height:46px!important;
  min-width:112px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 18px!important;
  border-radius:12px!important;
  font-size:15px!important;
  font-weight:950!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
.publish-primary-save{background:var(--merchant-secondary)!important;color:#142015!important;border:1px solid rgba(255,255,255,.32)!important}
.publish-view-product{background:#fff!important;color:var(--merchant-primary)!important;border:1px solid rgba(255,255,255,.9)!important}
.publish-delete-btn{background:#9f2230!important;color:#fff!important;border:1px solid rgba(255,255,255,.6)!important}
.publish-primary-save:hover,.publish-view-product:hover,.publish-delete-btn:hover{transform:translateY(-1px);filter:brightness(1.04)}
@media(max-width:900px){
  body.publish-body{padding-top:142px!important}
  body.worker-product-body .publish-head.worker-product-head{min-height:132px!important;flex-wrap:wrap!important;gap:8px 12px!important}
  .publish-brand-head{order:1;flex:1 1 calc(100% - 140px)!important;min-width:0!important}
  body.worker-product-body .publish-head>a{order:0}
  .publish-head-actions{order:2;width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .publish-head-actions>*{min-width:0!important;width:100%!important}
  .publish-delete-form button{width:100%!important}
}


/* v4.2.9：購物車預設收合、品牌 LOGO 編輯與商品管理頂部操作列精修 */
body.lm-product-page:not(.lm-cart-open) .lm-cart,
body.lm-product-page.lm-cart-collapsed .lm-cart{
  display:flex!important;
  top:auto!important;
  left:auto!important;
  right:24px!important;
  bottom:28px!important;
  width:auto!important;
  min-width:270px!important;
  max-width:calc(100vw - 32px)!important;
  height:66px!important;
  min-height:66px!important;
  max-height:66px!important;
  padding:8px 12px!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 14px 42px rgba(15,23,42,.22)!important;
}
body.lm-product-page:not(.lm-cart-open) .lm-cart>b,
body.lm-product-page.lm-cart-collapsed .lm-cart>b{width:100%!important;min-height:48px!important;padding:0 8px!important;border:0!important;gap:10px!important;background:transparent!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{top:84px!important;right:24px!important;bottom:auto!important;max-height:calc(100dvh - 108px)!important}
@media(max-width:640px){body.lm-product-page:not(.lm-cart-open) .lm-cart,body.lm-product-page.lm-cart-collapsed .lm-cart{right:10px!important;bottom:18px!important;min-width:220px!important;height:60px!important;min-height:60px!important;max-height:60px!important}body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) .lm-cart{top:68px!important;right:8px!important;left:8px!important;max-height:calc(100dvh - 78px)!important}}

.publish-brand-logo{position:relative!important;overflow:hidden!important;cursor:pointer!important;padding:0!important;background:linear-gradient(145deg,var(--merchant-secondary),color-mix(in srgb,var(--merchant-primary) 78%,#fff))!important;border-color:rgba(255,255,255,.72)!important;color:#fff!important}
.publish-brand-logo b{color:#fff!important;font-size:15px!important;text-shadow:0 1px 2px rgba(0,0,0,.22)!important}.publish-brand-logo img{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}.publish-brand-logo>span{position:absolute;inset:auto 0 0;padding:2px 0;background:rgba(15,23,42,.74);color:#fff;font-size:9px;font-weight:900;opacity:0;transition:.18s}.publish-brand-logo:hover>span{opacity:1}
body.worker-product-body .publish-head.worker-product-head{background:linear-gradient(110deg,color-mix(in srgb,var(--merchant-primary) 92%,#071a12),color-mix(in srgb,var(--merchant-primary) 72%,#0f2c22))!important}.publish-back{border:1px solid rgba(255,255,255,.18)!important}.publish-head-actions{align-items:center!important}.publish-view-product{order:1;background:#fff!important;color:#0f5132!important}.publish-delete-form{order:2}.publish-primary-save{order:3;background:var(--merchant-secondary)!important;color:#17331f!important}.publish-delete-btn{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important}.publish-delete-btn:hover{background:#9f2230!important}
.merchant-logo{position:relative!important;appearance:none;border:1px solid color-mix(in srgb,var(--merchant-primary) 42%,#d8e5dc)!important;cursor:pointer!important;overflow:hidden!important;background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--merchant-primary) 8%,#fff))!important}.merchant-logo img{width:100%;height:100%;object-fit:contain}.merchant-logo span{color:var(--merchant-primary)!important;font-weight:950!important}.merchant-logo em{position:absolute;left:0;right:0;bottom:0;padding:4px 2px;background:rgba(15,23,42,.76);color:#fff;font-size:10px;font-style:normal;font-weight:900;opacity:0;transition:.18s}.merchant-logo:hover em{opacity:1}
.logo-crop-modal[hidden]{display:none!important}.logo-crop-modal{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.66);backdrop-filter:blur(7px)}body.logo-modal-open{overflow:hidden}.logo-crop-dialog{width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.35)}.logo-crop-head{display:flex;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e5eaf0}.logo-crop-head b{display:block;font-size:20px;color:#172033}.logo-crop-head small{display:block;margin-top:4px;color:#64748b}.logo-crop-head button{width:38px;height:38px;border:0;border-radius:50%;background:#eef2f6;font-size:25px;cursor:pointer}.logo-crop-stage{display:grid;place-items:center;padding:20px;background:#f6f8fa}.logo-crop-stage canvas{width:min(480px,100%);height:auto;aspect-ratio:1;border-radius:18px;box-shadow:0 8px 28px rgba(15,23,42,.14);touch-action:none;cursor:grab}.logo-crop-controls{display:grid;gap:14px;padding:18px 20px}.logo-crop-controls label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;font-weight:900}.logo-crop-controls>div{display:flex;justify-content:flex-end;gap:10px}.logo-crop-cancel,.logo-crop-save{min-height:44px;padding:0 18px;border-radius:12px;font-weight:900;cursor:pointer}.logo-crop-cancel{border:1px solid #d8dee7;background:#fff}.logo-crop-save{border:0;background:var(--merchant-primary);color:#fff}
/* v4.3.0 unified store setup */
.lm-store-setup{padding:24px;max-width:1600px;margin:auto}.lm-store-setup-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.lm-store-setup-head span{font-size:12px;font-weight:900;letter-spacing:.14em;color:#16894a}.lm-store-setup-head h1{margin:5px 0;font-size:30px}.lm-store-setup-head p{margin:0;color:#667085}.lm-store-add{background:#16894a;color:#fff;text-decoration:none;padding:13px 18px;border-radius:12px;font-weight:900}.lm-store-setup-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;align-items:start}.lm-store-list-panel,.lm-store-editor{background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 12px 32px rgba(15,23,42,.07)}.lm-store-list-panel{position:sticky;top:92px;overflow:hidden}.lm-store-list-title{display:flex;justify-content:space-between;padding:20px 20px 12px}.lm-store-list-title b{font-size:20px}.lm-store-list-title span{background:#eef8f2;color:#16894a;padding:5px 9px;border-radius:999px;font-weight:800}.lm-store-search{width:calc(100% - 32px)!important;margin:0 16px 12px!important;border-radius:12px!important}.lm-store-list{max-height:70vh;overflow:auto;padding:6px 12px 14px}.lm-store-row{display:grid;grid-template-columns:52px minmax(0,1fr) 18px;gap:12px;align-items:center;text-decoration:none;color:#172033;padding:12px;border-radius:14px;margin:4px 0}.lm-store-row:hover,.lm-store-row.on{background:#effaf3;box-shadow:inset 4px 0 #16894a}.lm-store-row-logo{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--brand);color:#fff;overflow:hidden}.lm-store-row-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.lm-store-row strong,.lm-store-row small{display:block}.lm-store-row small{margin-top:4px;color:#7b8494}.lm-store-row em{font-style:normal;font-size:24px;color:#98a2b3}.lm-store-editor{padding:0 22px 22px}.lm-store-editor-bar{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 4px;border-bottom:1px solid #edf0f3}.lm-store-editor-bar span{color:#16894a;font-size:12px;font-weight:900}.lm-store-editor-bar h2{margin:3px 0 0}.lm-store-editor-bar>div:last-child{display:flex;gap:10px}.lm-store-editor-bar a,.lm-store-editor-bar button{border:0;border-radius:11px;padding:11px 15px;font-weight:900;text-decoration:none}.lm-store-editor-bar a{background:#f1f5f9;color:#263244}.lm-store-editor-bar button{background:#16894a;color:#fff}.lm-store-card{margin-top:18px;border:1px solid #e6eaf0;border-radius:17px;padding:20px}.lm-store-card h3{margin:0 0 17px}.lm-store-brand-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1fr);gap:24px}.lm-store-logo-preview{height:150px;border:2px dashed #cbd5e1;border-radius:16px;display:grid;place-items:center;margin:7px 0 10px;background:#f8fafc;overflow:hidden}.lm-store-logo-preview img{max-width:90%;max-height:90%;object-fit:contain}.lm-store-logo-preview b{font-size:24px;color:#94a3b8}.lm-store-color-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:start}.lm-store-color-fields input[type=color]{height:58px;padding:5px}.lm-store-color-fields p{grid-column:1/-1;margin:0;color:#667085}.lm-store-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.lm-store-form-grid label,.lm-store-logo-field,.lm-store-color-fields label{display:grid;gap:7px;font-weight:800;color:#344054}.lm-store-form-grid .wide{grid-column:1/-1}.lm-store-form-grid input,.lm-store-form-grid select,.lm-store-logo-field input{width:100%;box-sizing:border-box}.lm-store-status{display:flex!important;align-items:center;gap:8px!important}.lm-store-status input{width:auto!important}.lm-store-delete{text-align:right;margin-top:14px}.lm-store-delete button{border:1px solid #fecaca;background:#fff;color:#b42318;border-radius:10px;padding:9px 13px;font-weight:800}.lm-category-compact{margin-top:18px;border-top:1px solid #e5e7eb;padding-top:14px}.lm-category-compact summary{cursor:pointer;font-weight:900}.lm-category-compact form{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.lm-category-compact input,.lm-category-compact select{width:auto!important;flex:1 1 160px}.lm-category-compact button{background:#1f2937;color:#fff;border:0;border-radius:10px;padding:10px 14px}
@media(max-width:900px){.lm-store-setup{padding:14px}.lm-store-setup-layout{grid-template-columns:1fr}.lm-store-list-panel{position:static}.lm-store-list{max-height:360px}.lm-store-brand-grid,.lm-store-form-grid{grid-template-columns:1fr}.lm-store-editor-bar{align-items:flex-start}.lm-store-editor-bar>div:last-child{flex-wrap:wrap;justify-content:flex-end}}
.lm-product-page .lm-add-cart,.lm-product-page .lm-cart-checkout,.lm-product-page .lm-cart-toggle,.lm-product-page button[type=submit]{background:linear-gradient(90deg,var(--lm-brand-primary,#16894a),var(--lm-brand-secondary,#e7a900))!important}.lm-product-page a:hover,.lm-product-page .lm-price,.lm-product-page .lm-sale-price{accent-color:var(--lm-brand-primary,#16894a)}
/* accounts v4.3.1 */
.accounts-v431{background:#f5f7fa;color:#182235}.accounts-topbar{background:#fff;border-bottom:1px solid #e5eaf0;position:sticky;top:0;z-index:50}.accounts-topbar-inner{max-width:1440px;margin:auto;min-height:72px;padding:12px 24px;display:flex;align-items:center;gap:18px}.accounts-back{font-weight:800;color:#176b45;text-decoration:none;white-space:nowrap}.accounts-heading{flex:1}.accounts-heading h1{font-size:22px;margin:0}.accounts-heading p{margin:3px 0 0;color:#748095;font-size:13px}.accounts-current-user{font-size:13px;background:#eef7f2;color:#176b45;border-radius:999px;padding:8px 12px;font-weight:700}.accounts-shell{max-width:1440px;margin:auto;padding:22px 24px 48px}.accounts-alert{padding:12px 15px;border-radius:12px;margin-bottom:14px;font-weight:700}.accounts-alert.success{background:#eaf8f0;color:#137347}.accounts-alert.error{background:#fff0f0;color:#b42318}.accounts-tabs{display:flex;gap:6px;background:#e9edf2;padding:5px;border-radius:14px;width:max-content;margin-bottom:16px}.accounts-tabs a{padding:9px 15px;border-radius:10px;text-decoration:none;color:#536074;font-weight:800;font-size:14px}.accounts-tabs a.active{background:#fff;color:#167647;box-shadow:0 2px 8px #00000010}.accounts-tabs span{font-size:11px;background:#edf2f7;padding:2px 6px;border-radius:999px;margin-left:5px}.accounts-toolbar-card,.accounts-list-card,.accounts-editor-card,.roles-intro{background:#fff;border:1px solid #e3e8ef;border-radius:16px;box-shadow:0 8px 24px #1720330a}.accounts-toolbar-card{padding:12px;display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:14px}.accounts-filters{display:flex;gap:8px;align-items:center;flex:1}.accounts-filters select,.accounts-filters input,.accounts-editor-form input,.accounts-editor-form select,.role-form input{height:40px;border:1px solid #d7dee8;border-radius:10px;padding:0 12px;background:#fff;font-size:14px}.search-field{position:relative;min-width:320px;max-width:520px;flex:1}.search-field span{position:absolute;left:12px;top:8px;color:#8b97a8}.search-field input{width:100%;padding-left:34px}.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;cursor:pointer;font-weight:800;border-radius:10px}.btn.compact{height:40px;padding:0 14px;font-size:14px}.btn.tiny{height:30px;padding:0 9px;font-size:12px}.btn.primary{background:#15864f;color:#fff}.btn.ghost{background:#f0f3f7;color:#3f4b5f}.btn.outline{border:1px solid #ccd5e1;background:#fff;color:#374255}.accounts-editor-card{display:none;margin-bottom:14px;overflow:hidden}.accounts-editor-card.open{display:block}.accounts-editor-head{padding:16px 18px;border-bottom:1px solid #e8edf3;display:flex;align-items:start;justify-content:space-between}.accounts-editor-head h2,.list-head h2,.roles-intro h2{margin:0;font-size:18px}.accounts-editor-head p,.list-head p,.roles-intro p{margin:4px 0 0;font-size:13px;color:#758195}.icon-btn{border:0;background:#f1f4f7;width:32px;height:32px;border-radius:9px;font-size:19px;cursor:pointer}.accounts-editor-form{padding:18px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.form-grid label,.role-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#667287;font-weight:800}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #edf0f4}.form-actions>div{display:flex;gap:8px}.switch-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.switch-row input{width:17px;height:17px}.accounts-list-card{overflow:hidden}.list-head{padding:16px 18px;border-bottom:1px solid #e8edf3}.accounts-table-wrap{overflow:auto}.accounts-table{width:100%;border-collapse:collapse;min-width:1050px}.accounts-table th{background:#f8fafc;color:#6f7b8e;text-align:left;font-size:12px;padding:11px 14px;border-bottom:1px solid #e5eaf0}.accounts-table td{padding:12px 14px;border-bottom:1px solid #edf1f5;font-size:13px;vertical-align:middle}.accounts-table tr:hover td{background:#fbfdfc}.user-main{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:10px;background:#e8f5ee;color:#17804d;display:grid;place-items:center;font-weight:900}.user-main b{display:block}.user-main small,.contact-stack small{display:block;color:#8994a4;margin-top:2px}.soft-badge{background:#edf3f8;color:#445267;padding:5px 8px;border-radius:8px;font-size:12px}.status-badge{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.status-badge.active{background:#e7f7ee;color:#137546}.status-badge.inactive{background:#f1f3f5;color:#7b8492}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px}.status-dot.on{background:#16a05d}.status-dot.off{background:#b7bec9}.line-details summary{cursor:pointer;list-style:none;font-weight:700}.line-panel{padding:9px;margin-top:7px;background:#f7f9fb;border-radius:10px;display:grid;gap:6px}.line-panel img{width:84px;height:84px}.empty-state{text-align:center;color:#8792a2;padding:34px}.pagination{display:flex;justify-content:center;gap:6px;padding:15px}.pagination a{width:34px;height:34px;border-radius:9px;border:1px solid #dde3eb;display:grid;place-items:center;text-decoration:none;color:#566277;font-weight:700}.pagination a.active{background:#15864f;color:#fff;border-color:#15864f}.roles-intro{padding:18px;margin-bottom:12px}.roles-accordion{display:grid;gap:10px}.role-accordion{background:#fff;border:1px solid #e3e8ef;border-radius:14px;overflow:hidden}.role-accordion summary{padding:15px 18px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;list-style:none}.role-accordion summary b{display:block}.role-accordion summary small{display:block;color:#8792a2;margin-top:3px}.role-accordion summary>span{font-size:12px;color:#607086}.role-form{padding:16px 18px;border-top:1px solid #e8edf3}.role-name-field{max-width:360px}.perm-grid.refined{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:15px}.perm-grid.refined label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px;border:1px solid #e2e7ee;border-radius:10px;background:#fafbfd}.perm-grid.refined input{width:16px;height:16px}.role-actions{text-align:right;margin-top:14px}.actions-col{width:80px}@media(max-width:900px){.accounts-topbar-inner,.accounts-shell{padding-left:14px;padding-right:14px}.accounts-heading p{display:none}.accounts-toolbar-card{align-items:stretch;flex-direction:column}.accounts-filters{display:grid;grid-template-columns:1fr 1fr}.search-field{min-width:0;max-width:none;grid-column:1/-1}.form-grid{grid-template-columns:1fr 1fr}.perm-grid.refined{grid-template-columns:1fr 1fr}}@media(max-width:560px){.accounts-current-user{display:none}.accounts-tabs{width:100%}.accounts-tabs a{flex:1;text-align:center}.accounts-filters{grid-template-columns:1fr}.search-field{grid-column:auto}.form-grid,.perm-grid.refined{grid-template-columns:1fr}.form-actions{align-items:flex-start;gap:12px;flex-direction:column}.form-actions>div{width:100%}.form-actions .btn{flex:1}}

/* V4.3.2 refined re-login and guest session UX */
.checkout-auth-logo{display:flex;align-items:center;gap:10px;color:#0f7a4d;font-weight:950;margin:0 48px 8px 0}.checkout-auth-logo:before{content:'宅';display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#e9fff3,#d8f8e7);color:#087443;border:1px solid #bcebd1}.checkout-auth-logo span{font-size:18px}.checkout-auth-logo small{display:block;color:#718096;font-size:12px;font-weight:800}.checkout-line-login{display:flex!important;align-items:center;justify-content:center;gap:11px;background:#06c755!important;box-shadow:0 8px 20px rgba(6,199,85,.18)}.line-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;color:#06c755;font-size:10px;font-weight:1000;letter-spacing:-.04em}.checkout-guest-btn{width:100%;margin-top:10px;border:1px solid #d7e0e7!important;background:#fff!important;color:#334155!important;border-radius:11px!important;padding:12px!important;font-weight:900!important}.checkout-guest-btn:hover{background:#f8fafc!important}.checkout-cart-safe{display:block;text-align:center;margin-top:10px;color:#718096;line-height:1.55}.lm-session-login-modal .checkout-auth-card{border-top-color:#06c755}.checkout-auth-modal[data-session-required="1"] .checkout-auth-close{opacity:1;pointer-events:auto;cursor:pointer}.checkout-auth-modal[data-session-required="1"] .checkout-auth-backdrop{cursor:pointer}
.member-login-actions{display:grid;gap:10px;margin-top:16px}.member-login-actions .line-login-btn{display:flex;gap:10px;background:#06c755;color:#fff;box-shadow:0 10px 25px rgba(6,199,85,.2)}.member-login-actions .line-login-btn:before{content:'LINE';display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;color:#06c755;font-size:10px;font-weight:1000}

/* v4.3.4 登入逾時視窗關閉按鈕可操作 */
.checkout-auth-close{z-index:5;display:grid;place-items:center;line-height:1;color:#64748b;transition:.18s ease}.checkout-auth-close:hover{background:#e2e8f0;color:#0f172a;transform:scale(1.04)}

/* v4.3.7 checkout detail close hardening */
#checkoutDetailModal .checkout-auth-close{pointer-events:auto!important;z-index:1000002!important;cursor:pointer!important;touch-action:manipulation!important;}
#checkoutDetailModal .checkout-auth-backdrop{pointer-events:auto!important;z-index:1000000!important;}
#checkoutDetailModal .checkout-auth-card{position:relative!important;z-index:1000001!important;}

/* v4.3.9 definitive cart proportion fix — product list larger, checkout controls compact */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  width:min(560px,calc(100vw - 32px))!important;
  height:min(900px,calc(100dvh - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  display:grid!important;
  grid-template-rows:72px minmax(360px,1fr) auto!important;
  overflow:hidden!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b{
  min-height:72px!important;
  padding:0 22px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
  min-height:360px!important;
  max-height:none!important;
  height:auto!important;
  padding:10px 22px!important;
  overflow-y:auto!important;
  background:#fff!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items .lm-cart-line{
  padding:16px 0!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  min-height:0!important;
  max-height:255px!important;
  overflow-y:auto!important;
  padding:10px 18px 14px!important;
  border-top:1px solid #e5e9ef!important;
  background:#f8fafc!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-mobile-cart-summary{
  padding:0 0 6px!important;
  margin:0!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-total-panel{
  padding:7px 0!important;
  margin:0!important;
  min-height:0!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box{
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-select-box label{
  margin:0!important;
  font-size:13px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-select-box select{
  height:40px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry .lm-coupon-entry-head{
  display:block!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry .lm-coupon-entry-head label{
  font-size:13px!important;
  white-space:nowrap!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry select,
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry input{
  height:40px!important;
  min-width:0!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry #lm-coupon-apply{
  width:auto!important;
  min-width:72px!important;
  height:40px!important;
  margin:0!important;
  padding:0 12px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry small{
  grid-column:2 / -1!important;
  margin:0!important;
  min-height:0!important;
  font-size:11px!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-checkout{
  width:100%!important;
  min-height:50px!important;
  height:50px!important;
  margin:2px 0 0!important;
}
@media(max-width:640px){
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
    inset:auto 6px 6px 6px!important;
    width:auto!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    grid-template-rows:64px minmax(45dvh,1fr) auto!important;
    border-radius:22px!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
    min-height:45dvh!important;
    padding:8px 14px!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
    max-height:235px!important;
    padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
  }
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box,
  body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{
    grid-template-columns:78px minmax(0,1fr) auto!important;
  }
}


/* v4.4.0 multi-store order split and notifications */
.lm-store-order-breakdown{display:grid;gap:14px}.lm-store-order-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.lm-store-notify-all{display:flex;justify-content:flex-end}.lm-store-notify-all button,.lm-store-order-card-v440 footer button{border:0;border-radius:10px;background:#12864b;color:#fff;font-weight:900;padding:10px 15px;cursor:pointer}.lm-store-order-card-v440{border:1px solid #dce8e1;background:#fff;border-radius:16px;padding:15px;display:grid;gap:12px;box-shadow:0 8px 24px rgba(25,68,45,.06)}.lm-store-order-card-v440 header{display:flex;justify-content:space-between;align-items:center;gap:12px}.lm-store-order-card-v440 header>div:first-child{display:grid;gap:3px}.lm-store-order-card-v440 header small{color:#64748b}.lm-store-notice-state{font-size:12px;font-weight:900;padding:7px 10px;border-radius:999px}.lm-store-notice-state.sent{background:#e8f8ef;color:#087443}.lm-store-notice-state.pending{background:#fff5d8;color:#966300}.lm-store-money-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lm-store-money-grid>div{background:#f7faf8;border-radius:12px;padding:10px;display:grid;gap:3px}.lm-store-money-grid span{font-size:12px;color:#64748b}.lm-store-money-grid strong{color:#087443;font-size:18px}.lm-store-item-list-v440{display:grid;gap:7px}.lm-store-item-list-v440>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e5ece8;border-radius:11px;background:#fbfdfc}.lm-store-item-list-v440 span{font-weight:900;color:#087443}.lm-store-item-list-v440 small{font-weight:900;color:#475569}.lm-store-order-card-v440 footer{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#64748b;font-size:13px}.lm-store-order-card-v440 footer form{margin:0}@media(max-width:720px){.lm-store-money-grid{grid-template-columns:1fr}.lm-store-order-card-v440 footer{align-items:stretch;flex-direction:column}.lm-store-order-card-v440 footer button{width:100%}.lm-store-item-list-v440>div{grid-template-columns:1fr auto}.lm-store-item-list-v440 small{grid-column:1/-1}}
/* v4.4.6 store logo uploader + cropper */
.lm-store-logo-field{display:flex;flex-direction:column;gap:10px}.lm-store-logo-preview{appearance:none;width:100%;min-height:190px;border:2px dashed #cbd5e1;border-radius:18px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;color:#64748b;font:inherit}.lm-store-logo-preview:hover{border-color:#16894a;background:#f0fdf4}.lm-store-logo-preview img{width:100%;height:190px;object-fit:contain;background:#fff}.lm-store-logo-preview small{margin-top:7px;font-weight:700}.lm-logo-prefix,.lm-logo-url{display:flex;flex-direction:column;gap:6px;font-weight:800}.lm-logo-prefix input,.lm-logo-url input{width:100%}.lm-logo-help{margin:0;color:#64748b;font-size:13px;line-height:1.5}.lm-logo-crop-modal[hidden]{display:none!important}.lm-logo-crop-modal{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.72);display:grid;place-items:center;padding:20px}.lm-logo-crop-dialog{width:min(720px,96vw);max-height:94dvh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.35);padding:20px}.lm-logo-crop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.lm-logo-crop-head b{font-size:22px}.lm-logo-crop-head span{display:block;color:#64748b;margin-top:4px}.lm-logo-crop-head button{width:42px;height:42px;border:0;border-radius:50%;background:#eef2f7;font-size:26px;cursor:pointer}.lm-logo-crop-stage{width:min(560px,82vw);aspect-ratio:1;margin:auto;border-radius:20px;overflow:hidden;background:#e2e8f0;touch-action:none}.lm-logo-crop-stage canvas{display:block;width:100%;height:100%;cursor:grab}.lm-logo-crop-stage canvas:active{cursor:grabbing}.lm-logo-zoom{display:flex;align-items:center;gap:14px;margin:18px auto;width:min(560px,82vw);font-weight:800}.lm-logo-zoom input{flex:1}.lm-logo-crop-actions{display:flex;justify-content:flex-end;gap:10px}.lm-logo-crop-actions button{border:1px solid #d8e0ea;border-radius:12px;padding:11px 20px;font-weight:800;background:#fff;cursor:pointer}.lm-logo-crop-actions #lmLogoApply{background:#16894a;color:#fff;border-color:#16894a}.lm-modal-open{overflow:hidden}
/* v4.4.7 flexible logo crop */
.lm-logo-size-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:4px auto 14px;width:min(700px,90vw)}
.lm-logo-size-row label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:#334155}
.lm-logo-size-row input{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px}
.lm-logo-size-row button{min-height:42px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-weight:800;padding:0 16px;cursor:pointer}
.lm-logo-crop-stage{width:min(700px,90vw);aspect-ratio:3/2;max-height:58dvh}
.lm-logo-crop-stage canvas{width:100%;height:100%}
.lm-logo-crop-tip{width:min(700px,90vw);margin:0 auto 14px;color:#64748b;font-size:13px;line-height:1.55}
@media(max-width:640px){.lm-logo-size-row{grid-template-columns:1fr 1fr}.lm-logo-size-row button{grid-column:1/-1}.lm-logo-crop-dialog{padding:14px}.lm-logo-crop-head b{font-size:19px}}

/* v4.4.8 product publish: group-buy settings only validate when enabled */
.group-toggle-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 16px;border:1px solid #cfe7da;border-radius:16px;background:#f7fcf9}
.group-toggle-card>div{display:grid;gap:4px}.group-toggle-card b{font-size:18px}.group-toggle-card small{color:#64748b;line-height:1.5}
.group-switch{display:inline-flex!important;align-items:center;gap:9px;cursor:pointer;white-space:nowrap;margin:0!important}
.group-switch input{position:absolute;opacity:0;pointer-events:none}.group-switch span{position:relative;width:48px;height:28px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);transition:.2s}
.group-switch span:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.22);transition:.2s}
.group-switch input:checked+span{background:var(--merchant-primary,#16894a)}.group-switch input:checked+span:after{transform:translateX(20px)}
.group-switch em{font-style:normal;font-weight:800;color:#475569;min-width:48px}.group-switch input:checked~em{color:var(--merchant-primary,#16894a)}
.group-settings{max-height:520px;opacity:1;overflow:hidden;transition:max-height .28s ease,opacity .2s ease,margin .2s ease}
.group-settings.is-disabled{max-height:0;opacity:0;margin:0;pointer-events:none}
#groupPriceLabel.is-disabled{opacity:.55}#groupPriceLabel.is-disabled input{background:#f1f5f9;cursor:not-allowed}.group-only-note{display:block;font-weight:500;color:#94a3b8;margin-top:2px}
.region-section-title{display:flex;align-items:baseline;gap:10px;margin:16px 0 10px;padding-top:14px;border-top:1px solid #e2e8f0}.region-section-title b{font-size:16px}.region-section-title small{color:#64748b}
.group-zone .region-grid input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:18px!important;height:18px!important;opacity:1!important;position:static!important}
@media(max-width:720px){.group-toggle-card{align-items:flex-start}.group-switch{margin-top:3px!important}.region-section-title{display:grid;gap:3px}}

/* v1.8 definitive cart layout restore: compact original layout + coupon selector */
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(90px,1fr) auto auto auto!important;
  align-content:stretch!important;
  width:min(460px,calc(100vw - 24px))!important;
  height:min(680px,calc(100dvh - 24px))!important;
  min-height:520px!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
  padding:0!important;
  background:rgba(255,255,255,.97)!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b{grid-row:1!important;margin:0!important;padding:20px 24px!important;min-height:72px!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
  grid-row:2!important;display:block!important;min-height:0!important;height:auto!important;max-height:none!important;
  overflow-y:auto!important;margin:0!important;padding:12px 24px 4px!important;background:transparent!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager{grid-row:3!important;margin:0 24px!important;padding:4px 0!important;min-height:0!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{
  grid-row:4!important;position:static!important;margin:0 24px!important;padding:14px 0 10px!important;min-height:0!important;background:transparent!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  grid-row:5!important;display:grid!important;grid-template-columns:1fr!important;gap:12px!important;
  position:static!important;width:auto!important;max-height:none!important;overflow:visible!important;
  margin:0!important;padding:12px 24px 22px!important;background:transparent!important;border-top:0!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box,
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{
  display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry .lm-coupon-entry-head{display:flex!important;justify-content:space-between!important;align-items:center!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry .lm-coupon-entry-head span{display:block!important;font-size:11px!important;color:#64748b!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry select{width:100%!important;height:44px!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry #lm-coupon-apply{width:100%!important;height:42px!important;margin:0!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry small{display:block!important;grid-column:auto!important;margin:0!important}
body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-checkout{width:100%!important;height:58px!important;min-height:58px!important;margin:0!important}
@media(max-width:640px){
 body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{inset:6px!important;width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;min-height:0!important;max-height:none!important;border-radius:22px!important}
 body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{padding:10px 16px 2px!important}
 body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager,
 body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{margin-left:16px!important;margin-right:16px!important}
 body.lm-product-page.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))!important;gap:9px!important}
}


/* v1.9 imported description line-break preservation */
.rich-visual-editor p,.preview-content p,.lm-html-content p{margin:0 0 1em!important;white-space:pre-wrap}
.rich-visual-editor h1,.rich-visual-editor h2,.rich-visual-editor h3,.rich-visual-editor h4,
.preview-content h1,.preview-content h2,.preview-content h3,.preview-content h4,
.lm-html-content h1,.lm-html-content h2,.lm-html-content h3,.lm-html-content h4{margin:1.2em 0 .6em!important;line-height:1.45}
.rich-visual-editor ul,.rich-visual-editor ol,.preview-content ul,.preview-content ol,.lm-html-content ul,.lm-html-content ol{margin:.6em 0 1em 1.5em!important;padding-left:1em!important}
.rich-visual-editor li,.preview-content li,.lm-html-content li{margin:.3em 0!important}

/* v2.0 imported source content: preserve structure without oversized gaps */
.import-source-section{margin:0 0 14px;line-height:1.7}
.import-source-section:last-child{margin-bottom:0}
.import-source-section p{margin:0 0 8px}
.import-source-section h1,.import-source-section h2,.import-source-section h3,.import-source-section h4,.import-source-section h5{margin:16px 0 8px;line-height:1.45}
.import-source-section img,.preview-content img,.rich-visual-editor img{display:block;max-width:100%;height:auto;margin:8px auto}
.import-source-section ul,.import-source-section ol{margin:8px 0;padding-left:1.5em}
.import-source-section table{width:100%;border-collapse:collapse;margin:10px 0}
.import-source-section iframe{max-width:100%}

/* v2.1: 購物車數量可直接鍵盤輸入 */
.lm-cart-stepper .lm-cart-qty-input{
  width:46px!important;height:36px!important;min-width:46px!important;
  border:0!important;border-left:1px solid #e5e7eb!important;border-right:1px solid #e5e7eb!important;
  border-radius:0!important;background:#fff!important;text-align:center!important;
  font:800 15px/1 Arial,"Noto Sans TC",sans-serif!important;color:#172033!important;
  padding:0 3px!important;outline:none!important;appearance:textfield!important;-moz-appearance:textfield!important;
}
.lm-cart-stepper .lm-cart-qty-input::-webkit-inner-spin-button,
.lm-cart-stepper .lm-cart-qty-input::-webkit-outer-spin-button{opacity:1;margin:0}
.lm-cart-stepper .lm-cart-qty-input:focus{box-shadow:inset 0 0 0 2px rgba(19,139,75,.22)!important}
.lm-cart-stepper{grid-template-columns:36px 46px 36px!important}

/* v2.3 店家自己的資料管理頁 */
.lm-store-setup-layout.lm-store-own-layout{display:block;max-width:1100px;margin:0 auto}.lm-store-own-layout .lm-store-editor{width:100%}

/* v3.0 Supplier Center UI */
.lm-store-own-layout{max-width:1380px!important}
.lm-store-own-layout .lm-store-editor{background:transparent;border:0;box-shadow:none;padding:0}
.lm-supplier-center .lm-store-editor-form{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:22px;align-items:start}
.lm-supplier-center .lm-store-editor-bar{grid-column:1/-1;position:sticky;top:0;border:1px solid #e8edf2;border-radius:20px;padding:18px 22px;box-shadow:0 14px 36px rgba(15,23,42,.07)}
.lm-supplier-center .lm-store-editor-bar h2{font-size:24px}
.lm-supplier-center .lm-store-card{margin:0;background:#fff;border:1px solid #e7ebf0;border-radius:22px;padding:24px;box-shadow:0 16px 40px rgba(15,23,42,.06)}
.lm-supplier-center .lm-store-brand-card{grid-column:1/-1}
.lm-supplier-center .lm-store-company-card{grid-column:1/-1}
.lm-store-setup:has(.lm-supplier-center){max-width:1480px;padding:18px 28px 32px}
.lm-store-setup:has(.lm-supplier-center) .lm-store-setup-head{background:#fff;border:1px solid #e8edf2;border-radius:26px;padding:22px 30px;margin-bottom:22px;box-shadow:0 16px 46px rgba(15,23,42,.06)}
.lm-store-setup:has(.lm-supplier-center) .lm-store-setup-head h1{font-size:32px;margin:2px 0 4px}
.lm-store-setup:has(.lm-supplier-center) .lm-store-setup-head p{font-size:15px}
.lm-store-section-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.lm-store-section-title span{font-size:11px;font-weight:900;letter-spacing:.14em;color:#16894a}
.lm-store-section-title h3{font-size:24px;margin:4px 0 5px}
.lm-store-section-title p{margin:0;color:#667085;font-size:14px}
.lm-supplier-center .lm-store-brand-grid{grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr);gap:28px}
.lm-supplier-center .lm-store-logo-preview{height:230px;border-radius:20px;background:linear-gradient(145deg,#fbfcfd,#f3f6f8);border:1.5px dashed #c7d0da;width:100%}
.lm-supplier-center .lm-store-logo-preview:hover{border-color:#16894a;box-shadow:0 0 0 4px rgba(22,137,74,.08)}
.lm-supplier-center .lm-store-logo-preview img{max-width:88%;max-height:82%}
.lm-store-logo-fields{display:grid;grid-template-columns:.7fr 1.3fr;gap:12px;margin-top:14px}
.lm-store-logo-fields label{display:grid;gap:7px}
.lm-store-logo-fields input,.lm-supplier-center .lm-store-form-grid input{min-height:46px;border:1px solid #dbe2e9;border-radius:12px;padding:0 13px;background:#fff}
.lm-store-brand-side{display:grid;grid-template-columns:1fr 1.3fr;gap:18px;align-items:start}
.lm-supplier-center .lm-store-color-fields{grid-template-columns:1fr;gap:13px}
.lm-color-control{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:10px;border:1px solid #dbe2e9;border-radius:14px;padding:7px;background:#fafbfc}
.lm-color-control input[type=color]{width:58px;height:48px;border:0;padding:0;background:transparent}
.lm-color-control code{font-size:14px;font-weight:900;color:#344054}
.lm-store-live-preview{border:1px solid #e2e7ec;border-radius:20px;padding:16px;background:linear-gradient(160deg,#fff,#f8fafb);box-shadow:0 14px 34px rgba(15,23,42,.08)}
.lm-preview-top{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f3;padding-bottom:13px}
.lm-preview-logo{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid #e6eaf0;color:var(--p);font-weight:900}
.lm-preview-logo img{width:100%;height:100%;object-fit:contain}
.lm-preview-top strong,.lm-preview-top small{display:block}.lm-preview-top small{color:#7b8494;margin-top:3px}
.lm-preview-product{margin-top:14px;border:1px solid #edf0f3;border-radius:16px;padding:12px;display:grid;grid-template-columns:84px 1fr;gap:7px 12px;background:#fff}
.lm-preview-photo{grid-row:1/4;width:84px;height:84px;border-radius:12px;background:linear-gradient(135deg,var(--p),var(--s));opacity:.2}
.lm-preview-product span{font-weight:900;color:var(--p)}
.lm-preview-product button{border:0;border-radius:10px;color:#fff;background:linear-gradient(100deg,var(--p),var(--s));padding:9px;font-weight:900}
.lm-preview-coupon{margin-top:12px;border:1px dashed var(--s);border-radius:12px;padding:11px;color:#475467}.lm-preview-coupon b{float:right;color:var(--p)}
.lm-supplier-center .lm-store-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lm-supplier-center .lm-store-form-grid .wide{grid-column:span 2}
.lm-supplier-center .lm-store-editor-bar a,.lm-supplier-center .lm-store-editor-bar button{min-height:44px;padding:0 18px;display:inline-flex;align-items:center}
@media(max-width:1100px){.lm-supplier-center .lm-store-brand-grid{grid-template-columns:1fr}.lm-store-brand-side{grid-template-columns:1fr 1fr}.lm-supplier-center .lm-store-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.lm-store-setup:has(.lm-supplier-center){padding:10px}.lm-store-setup:has(.lm-supplier-center) .lm-store-setup-head{padding:18px;border-radius:20px}.lm-store-setup:has(.lm-supplier-center) .lm-store-setup-head h1{font-size:26px}.lm-supplier-center .lm-store-editor-form{grid-template-columns:1fr}.lm-supplier-center .lm-store-editor-bar{position:static;align-items:flex-start}.lm-supplier-center .lm-store-editor-bar>div:last-child{width:100%;justify-content:stretch}.lm-supplier-center .lm-store-editor-bar a,.lm-supplier-center .lm-store-editor-bar button{flex:1;justify-content:center}.lm-store-brand-side,.lm-store-logo-fields,.lm-supplier-center .lm-store-form-grid{grid-template-columns:1fr}.lm-supplier-center .lm-store-form-grid .wide{grid-column:auto}.lm-supplier-center .lm-store-logo-preview{height:190px}}

/* v3.2 brand HEX / RGB editor */
.lm-supplier-center .lm-store-brand-grid{grid-template-columns:minmax(420px,1.2fr) minmax(360px,.8fr);align-items:start}
.lm-supplier-center .lm-store-brand-side{min-width:0}
.lm-supplier-center .lm-store-color-fields{display:grid;grid-template-columns:1fr;gap:14px}
.lm-brand-color-card{border:1px solid #e1e7ee;border-radius:18px;padding:16px;background:linear-gradient(180deg,#fff,#fafcfd)}
.lm-brand-color-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:12px}
.lm-brand-color-title span{font-size:16px;font-weight:900;color:#1f2937}
.lm-brand-color-title small{font-size:12px;color:#778195}
.lm-supplier-center .lm-color-control{display:grid;grid-template-columns:72px minmax(120px,.8fr) minmax(220px,1.5fr);gap:12px;align-items:end;border:0;padding:0;background:transparent}
.lm-supplier-center .lm-color-control>input[type=color]{width:72px;height:58px;padding:4px;border:1px solid #d8e0e8;border-radius:13px;background:#fff}
.lm-supplier-center .lm-color-control>label{display:grid;gap:6px;font-size:11px;font-weight:900;letter-spacing:.08em;color:#667085}
.lm-supplier-center .lm-color-control input[type=text],.lm-supplier-center .lm-color-control input[type=number]{width:100%;height:42px;border:1px solid #d8e0e8;border-radius:10px;padding:0 10px;font-size:14px;font-weight:800;box-sizing:border-box;background:#fff}
.lm-rgb-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lm-rgb-fields label{display:grid;gap:6px;font-size:11px;font-weight:900;color:#667085}
.lm-supplier-center .lm-color-control code{grid-column:2/-1;font-size:12px;color:#475467;background:#f2f4f7;border-radius:8px;padding:7px 10px}
.lm-color-note{margin:0!important;color:#667085!important;font-size:13px;line-height:1.6}
@media(max-width:1050px){.lm-supplier-center .lm-store-brand-grid{grid-template-columns:1fr}.lm-supplier-center .lm-color-control{grid-template-columns:72px 1fr 1.7fr}}
@media(max-width:680px){.lm-supplier-center .lm-color-control{grid-template-columns:64px 1fr}.lm-rgb-fields{grid-column:1/-1}.lm-supplier-center .lm-color-control code{grid-column:1/-1}.lm-brand-color-title{display:block}.lm-brand-color-title small{display:block;margin-top:4px}}

/* V3.3 Store profile layout reset: one centered form, logo identity first */
.lm-supplier-center .lm-store-editor-form{display:block!important;max-width:980px;margin:0 auto}
.lm-supplier-center .lm-store-editor-bar{position:sticky;top:0;z-index:20;margin-bottom:18px}
.lm-brand-profile-card{padding:0!important;overflow:hidden;background:#fff}
.lm-brand-profile-hero{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;align-items:center;padding:28px;background:linear-gradient(135deg,#f8fbf9,#f7f8fc);border-bottom:1px solid #e6eaf0}
.lm-brand-profile-logo{width:180px!important;height:132px!important;min-height:132px!important;margin:0!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.lm-brand-profile-logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:10px;box-sizing:border-box}
.lm-brand-profile-identity{min-width:0}
.lm-brand-profile-identity>span{font-size:12px;font-weight:900;letter-spacing:.13em;color:#16894a}
.lm-brand-profile-identity h3{margin:7px 0 5px!important;font-size:30px;line-height:1.2;color:#172033;overflow-wrap:anywhere}
.lm-brand-profile-identity p{margin:0 0 12px;color:#667085}
.lm-brand-profile-identity em{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-style:normal;font-size:13px;font-weight:800;background:#eaf8ef;color:#13763e}
.lm-brand-profile-identity em.is-off{background:#fff1f0;color:#b42318}
.lm-brand-profile-block{padding:24px 28px;border-bottom:1px solid #edf0f3}
.lm-brand-profile-block:last-child{border-bottom:0}
.lm-brand-profile-block .lm-store-section-title{margin-bottom:16px}
.lm-brand-profile-block .lm-store-section-title h3{margin:4px 0 5px!important;font-size:21px}
.lm-brand-profile-block .lm-store-section-title p{margin:0;color:#667085}
.lm-brand-profile-block .lm-store-logo-fields{grid-template-columns:minmax(180px,.55fr) minmax(300px,1.45fr)!important;max-width:none;margin:0}
.lm-brand-color-table{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;width:100%;min-width:0}
.lm-brand-color-table .lm-brand-color-card{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(0,1.35fr);gap:22px;align-items:center;padding:18px 20px;min-width:0}
.lm-brand-color-table .lm-color-control{display:grid!important;grid-template-columns:72px minmax(120px,.65fr) minmax(230px,1.35fr)!important;gap:12px!important;align-items:end;min-width:0}
.lm-brand-color-table .lm-color-control>input[type=color]{width:72px!important;height:56px!important;margin:0!important}
.lm-brand-color-table .lm-rgb-fields{display:grid!important;grid-template-columns:repeat(3,minmax(58px,1fr));gap:8px;min-width:0}
.lm-brand-color-table label{min-width:0}
.lm-brand-color-table input[type=text],.lm-brand-color-table input[type=number]{width:100%!important;min-width:0!important;box-sizing:border-box}
.lm-brand-color-table code{grid-column:2/-1;justify-self:start;margin-top:2px;white-space:normal;overflow-wrap:anywhere}
.lm-store-company-card{max-width:980px;margin-left:auto!important;margin-right:auto!important}
@media(max-width:760px){
 .lm-brand-profile-hero{grid-template-columns:1fr;text-align:center;padding:22px}
 .lm-brand-profile-logo{width:min(220px,100%)!important;margin:0 auto!important}
 .lm-brand-profile-identity h3{font-size:25px}
 .lm-brand-profile-block{padding:20px 16px}
 .lm-brand-profile-block .lm-store-logo-fields{grid-template-columns:1fr!important}
 .lm-brand-color-table .lm-brand-color-card{grid-template-columns:1fr;gap:12px}
 .lm-brand-color-table .lm-color-control{grid-template-columns:72px 1fr!important}
 .lm-brand-color-table .lm-rgb-fields{grid-column:1/-1}
 .lm-brand-color-table code{grid-column:1/-1}
}

/* V3.4 Store setup 100% viewport RWD — prevents overflow at normal browser zoom */
html,body{max-width:100%;overflow-x:hidden}
.lm-store-setup,.lm-store-setup *{min-width:0}
.lm-store-setup{width:100%;max-width:100%!important;padding:18px clamp(10px,1.6vw,24px) 36px!important;overflow-x:clip}
.lm-store-setup-head{width:100%;padding:18px 22px!important;margin-bottom:16px!important}
.lm-store-setup-head h1{font-size:clamp(24px,2.2vw,31px)!important}
.lm-store-setup-layout{width:100%;grid-template-columns:minmax(210px,270px) minmax(0,1fr)!important;gap:16px!important}
.lm-store-list-panel,.lm-store-editor{width:100%;min-width:0;max-width:100%}
.lm-store-list-title{padding:16px 16px 10px}
.lm-store-search{width:calc(100% - 24px)!important;margin:0 12px 9px!important}
.lm-store-list{padding:4px 8px 12px}
.lm-store-row{grid-template-columns:44px minmax(0,1fr) 14px;gap:9px;padding:9px 8px}
.lm-store-row-logo{width:44px;height:44px;border-radius:12px}
.lm-store-row strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lm-store-row small{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lm-store-editor{padding:0 14px 18px!important;overflow:hidden}
.lm-supplier-center .lm-store-editor-form{width:100%;max-width:none!important;margin:0!important}
.lm-supplier-center .lm-store-editor-bar{width:100%;padding:14px 16px!important;margin-bottom:14px!important}
.lm-brand-profile-card,.lm-store-company-card{width:100%;max-width:none!important}
.lm-brand-profile-hero{grid-template-columns:clamp(118px,16vw,160px) minmax(0,1fr);gap:20px;padding:22px}
.lm-brand-profile-logo{width:clamp(118px,16vw,160px)!important;height:118px!important;min-height:118px!important}
.lm-brand-profile-identity h3{font-size:clamp(23px,2.5vw,30px)}
.lm-brand-profile-block{padding:20px 22px}
.lm-brand-profile-block .lm-store-logo-fields{grid-template-columns:minmax(140px,.52fr) minmax(0,1.48fr)!important;gap:12px}
.lm-brand-color-table .lm-brand-color-card{grid-template-columns:minmax(120px,.5fr) minmax(0,1.5fr);gap:14px;padding:15px 16px}
.lm-brand-color-table .lm-color-control{grid-template-columns:58px minmax(98px,.7fr) minmax(0,1.5fr)!important;gap:9px!important}
.lm-brand-color-table .lm-color-control>input[type=color]{width:58px!important;height:50px!important}
.lm-brand-color-table .lm-rgb-fields{grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px}
.lm-brand-color-table input[type=text],.lm-brand-color-table input[type=number]{height:38px!important;padding:0 7px!important;font-size:13px!important}
.lm-brand-color-title span{font-size:15px}
.lm-supplier-center .lm-store-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.lm-supplier-center .lm-store-form-grid .wide{grid-column:1/-1!important}

/* Admin app has its own left navigation; compact setup before the content actually overflows. */
@media(max-width:1280px){
  .lm-store-setup-layout{grid-template-columns:220px minmax(0,1fr)!important;gap:13px!important}
  .lm-store-setup-head p{font-size:13px!important}
  .lm-brand-profile-block{padding:18px}
  .lm-brand-color-table .lm-brand-color-card{grid-template-columns:1fr;gap:10px}
  .lm-brand-color-title{margin-bottom:0}
  .lm-brand-color-table .lm-color-control{grid-template-columns:54px minmax(92px,.65fr) minmax(0,1.35fr)!important}
  .lm-brand-color-table .lm-color-control>input[type=color]{width:54px!important;height:48px!important}
}
@media(max-width:1050px){
  .lm-store-setup-layout{grid-template-columns:1fr!important}
  .lm-store-list-panel{position:static!important}
  .lm-store-list{max-height:240px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .lm-store-row{margin:0}
  .lm-store-editor{padding:0 10px 16px!important}
  .lm-brand-profile-hero{grid-template-columns:130px minmax(0,1fr)}
}
@media(max-width:720px){
  .lm-store-setup{padding:8px!important}
  .lm-store-setup-head{align-items:flex-start!important;gap:10px!important;padding:15px!important;border-radius:18px!important}
  .lm-store-add{padding:10px 12px;font-size:13px;white-space:nowrap}
  .lm-store-list{grid-template-columns:1fr;max-height:220px!important}
  .lm-supplier-center .lm-store-editor-bar{position:static!important;display:grid!important;grid-template-columns:1fr;padding:13px!important}
  .lm-supplier-center .lm-store-editor-bar>div:last-child{width:100%;display:grid!important;grid-template-columns:1fr 1fr}
  .lm-brand-profile-hero{grid-template-columns:1fr;text-align:center;padding:18px 14px}
  .lm-brand-profile-logo{width:min(200px,100%)!important;margin:auto!important}
  .lm-brand-profile-block{padding:17px 13px}
  .lm-brand-profile-block .lm-store-logo-fields{grid-template-columns:1fr!important}
  .lm-brand-color-table .lm-color-control{grid-template-columns:52px minmax(0,1fr)!important}
  .lm-brand-color-table .lm-rgb-fields{grid-column:1/-1}
  .lm-brand-color-table code{grid-column:1/-1}
  .lm-supplier-center .lm-store-form-grid{grid-template-columns:1fr!important}
}

/* === V3.5 PRODUCT PUBLISH 100% VIEWPORT RWD === */
html,body.publish-body{max-width:100%;overflow-x:hidden!important}
body.publish-body *{box-sizing:border-box}
.publish-head.worker-product-head,
.worker-product-toolbar,
.worker-product-layout{width:100%;min-width:0}
.publish-head.worker-product-head{padding-left:clamp(12px,2vw,28px)!important;padding-right:clamp(12px,2vw,28px)!important}
.worker-product-toolbar{padding-left:clamp(12px,2vw,24px)!important;padding-right:clamp(12px,2vw,24px)!important}
.worker-product-layout,
.worker-product-layout.preview-is-collapsed{
  grid-template-columns:minmax(220px,260px) minmax(0,1fr) minmax(320px,400px)!important;
  gap:clamp(12px,1.4vw,20px)!important;
  max-width:1780px!important;
  padding:0 clamp(12px,1.6vw,24px) 42px!important;
}
.worker-product-list,.worker-product-editor,.worker-product-preview,
.publish-editor,.publish-zone,.publish-inline-card,.unified-product-grid,
.price-grid,.group-fields,.preview-sticky,.preview-stage,.preview-viewport{min-width:0!important;max-width:100%!important}
.worker-product-editor{overflow:visible!important}
.publish-zone{padding:clamp(16px,1.5vw,22px)!important}
.publish-image-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
.publish-coupon-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
.preview-toolbar{min-width:0!important}
.preview-heading{min-width:0!important}
.preview-heading small{white-space:normal!important}
.preview-device-switch{min-width:0!important;flex-wrap:wrap!important}
.worker-product-preview .preview-stage.device-mobile{width:min(390px,100%)!important}
.preview-card{min-width:0!important}
.preview-card>div{min-width:0!important}
.preview-card h1,.preview-card p,.preview-content{overflow-wrap:anywhere!important;word-break:break-word!important}

/* Standard notebook / 100% browser: keep editor readable and put preview below it. */
@media (max-width:1499px){
  .worker-product-layout,
  .worker-product-layout.preview-is-collapsed{
    grid-template-columns:minmax(210px,245px) minmax(0,1fr)!important;
    max-width:1320px!important;
  }
  .worker-product-list{grid-column:1;grid-row:1 / span 2}
  .worker-product-editor{grid-column:2;grid-row:1}
  .worker-product-preview{grid-column:2!important;grid-row:2!important;width:auto!important}
  .worker-product-preview .preview-sticky{position:relative!important;top:auto!important;max-height:none!important}
  .preview-viewport{max-height:720px!important}
  .worker-product-preview.is-collapsed{width:auto!important}
  .worker-product-preview.is-collapsed .preview-collapse-btn{writing-mode:horizontal-tb!important;height:auto!important;width:auto!important}
  .worker-product-preview.is-collapsed .preview-toolbar{display:flex!important;justify-content:flex-end!important}
}

/* Tablet: list becomes a compact top panel and editor/preview use full width. */
@media (max-width:1050px){
  .publish-head.worker-product-head{position:relative!important;top:auto!important;min-height:auto!important;flex-wrap:wrap!important;gap:10px!important}
  body.publish-body{padding-top:0!important}
  .publish-head-actions{width:100%;justify-content:flex-end!important;flex-wrap:wrap!important}
  .worker-product-toolbar{padding-top:12px!important}
  .worker-product-layout,
  .worker-product-layout.preview-is-collapsed{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:0 14px 34px!important}
  .worker-product-list,.worker-product-editor,.worker-product-preview{grid-column:1!important;grid-row:auto!important}
  .worker-product-list{position:relative!important;top:auto!important;max-height:330px!important}
  .worker-product-items{max-height:220px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .worker-product-item{margin:0!important}
  .worker-selected-title{grid-template-columns:50px minmax(0,1fr)!important}
  .worker-selected-badges{grid-column:1/-1!important;justify-content:flex-start!important}
}

/* Phone: one clean column, no horizontal clipping. */
@media (max-width:680px){
  .worker-product-toolbar{align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
  .worker-product-toolbar h1{font-size:22px!important}
  .worker-product-items{grid-template-columns:1fr!important}
  .publish-head.worker-product-head{padding:10px 12px!important}
  .publish-brand-head small{display:none!important}
  .publish-head-actions>*{flex:1 1 auto!important;text-align:center!important}
  .publish-zone{padding:14px!important}
  .publish-zone>h2{font-size:17px!important}
  .unified-product-grid,.price-grid,.group-fields,.pv-tier-prices{grid-template-columns:1fr!important}
  .preview-toolbar{display:grid!important;grid-template-columns:1fr auto!important}
  .preview-device-switch{grid-column:1/-1!important;justify-content:flex-start!important}
  .preview-card{grid-template-columns:1fr!important;padding:12px!important}
  .preview-content{padding:14px!important}
}

/* === V3.6 PRODUCT PUBLISH THREE-COLUMN COLLAPSIBLE WORKSPACE === */
body.worker-product-body{--publish-list-width:clamp(210px,17vw,260px);--publish-preview-width:clamp(300px,25vw,390px);--publish-rail-width:52px}
body.worker-product-body .worker-product-layout,
body.worker-product-body .worker-product-layout.preview-is-collapsed,
body.worker-product-body .worker-product-layout.list-is-collapsed,
body.worker-product-body .worker-product-layout.list-is-collapsed.preview-is-collapsed{
  display:grid!important;
  grid-template-columns:var(--publish-list-width) minmax(0,1fr) var(--publish-preview-width)!important;
  align-items:start!important;
  max-width:none!important;
  width:100%!important;
  padding:0 clamp(10px,1.2vw,20px) 42px!important;
  gap:clamp(8px,1vw,16px)!important;
}
body.worker-product-body .worker-product-list{grid-column:1!important;grid-row:1!important;min-width:0!important;overflow:hidden!important;transition:width .22s ease,opacity .18s ease,padding .22s ease}
body.worker-product-body .worker-product-editor{grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:visible!important}
body.worker-product-body .worker-product-preview{grid-column:3!important;grid-row:1!important;min-width:0!important;width:auto!important;transition:width .22s ease,opacity .18s ease}
body.worker-product-body .worker-product-preview .preview-sticky{position:sticky!important;top:86px!important;max-height:calc(100vh - 104px)!important}
body.worker-product-body .worker-product-preview .preview-viewport{max-height:calc(100vh - 210px)!important}
body.worker-product-body .worker-product-layout.list-is-collapsed{grid-template-columns:var(--publish-rail-width) minmax(0,1fr) var(--publish-preview-width)!important}
body.worker-product-body .worker-product-layout.preview-is-collapsed{grid-template-columns:var(--publish-list-width) minmax(0,1fr) var(--publish-rail-width)!important}
body.worker-product-body .worker-product-layout.list-is-collapsed.preview-is-collapsed{grid-template-columns:var(--publish-rail-width) minmax(0,1fr) var(--publish-rail-width)!important}
body.worker-product-body .worker-list-actions{display:flex;align-items:center;gap:6px}
body.worker-product-body .list-collapse-btn,
body.worker-product-body .preview-collapse-btn{display:inline-grid!important;place-items:center!important;min-width:36px!important;height:36px!important;padding:0 9px!important;border:1px solid #d7e0e8!important;border-radius:10px!important;background:#fff!important;color:#243247!important;font-weight:900!important;cursor:pointer!important;white-space:nowrap!important}
body.worker-product-body .list-collapse-btn:hover,
body.worker-product-body .preview-collapse-btn:hover{border-color:var(--merchant-primary)!important;color:var(--merchant-primary)!important}
body.worker-product-body .worker-product-list.is-collapsed{padding:8px!important;width:var(--publish-rail-width)!important;min-height:180px!important}
body.worker-product-body .worker-product-list.is-collapsed .worker-list-head{display:flex!important;justify-content:center!important;padding:0!important;border:0!important}
body.worker-product-body .worker-product-list.is-collapsed .worker-list-head>div,
body.worker-product-body .worker-product-list.is-collapsed .worker-list-actions>a,
body.worker-product-body .worker-product-list.is-collapsed .worker-product-search,
body.worker-product-body .worker-product-list.is-collapsed .worker-product-items{display:none!important}
body.worker-product-body .worker-product-list.is-collapsed .worker-list-actions{display:block!important}
body.worker-product-body .worker-product-list.is-collapsed .list-collapse-btn{width:36px!important;padding:0!important}
body.worker-product-body .worker-product-preview.is-collapsed{width:var(--publish-rail-width)!important;min-height:180px!important}
body.worker-product-body .worker-product-preview.is-collapsed .preview-sticky{padding:8px!important;min-height:180px!important}
body.worker-product-body .worker-product-preview.is-collapsed .preview-heading,
body.worker-product-body .worker-product-preview.is-collapsed .preview-device-switch,
body.worker-product-body .worker-product-preview.is-collapsed .preview-stage{display:none!important}
body.worker-product-body .worker-product-preview.is-collapsed .preview-toolbar{display:flex!important;justify-content:center!important;padding:0!important}
body.worker-product-body .worker-product-preview.is-collapsed .preview-collapse-btn{writing-mode:horizontal-tb!important;width:36px!important;height:36px!important;padding:0!important}
body.worker-product-body .preview-toolbar{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
body.worker-product-body .preview-device-switch{grid-column:1/-1!important;justify-content:center!important}
body.worker-product-body .worker-product-preview .preview-stage.device-mobile{width:min(340px,100%)!important}
body.worker-product-body .publish-zone,
body.worker-product-body .publish-inline-card,
body.worker-product-body input,
body.worker-product-body select,
body.worker-product-body textarea{max-width:100%!important;min-width:0!important}

/* Notebook/desktop landscape remains three columns at 100% zoom. */
@media (min-width:1024px) and (max-width:1499px){
  body.worker-product-body{--publish-list-width:clamp(190px,16vw,225px);--publish-preview-width:clamp(285px,24vw,340px)}
  body.worker-product-body .worker-product-layout,
  body.worker-product-body .worker-product-layout.preview-is-collapsed,
  body.worker-product-body .worker-product-layout.list-is-collapsed,
  body.worker-product-body .worker-product-layout.list-is-collapsed.preview-is-collapsed{
    display:grid!important;
    max-width:none!important;
  }
  body.worker-product-body .worker-product-list{grid-column:1!important;grid-row:1!important;position:sticky!important;top:86px!important;max-height:calc(100vh - 104px)!important}
  body.worker-product-body .worker-product-editor{grid-column:2!important;grid-row:1!important}
  body.worker-product-body .worker-product-preview{grid-column:3!important;grid-row:1!important}
  body.worker-product-body .preview-device-switch button span{display:none!important}
}

/* Tablet/phone may use one column; desktop and notebooks never push preview below. */
@media (max-width:1023px){
  body.worker-product-body .worker-product-layout,
  body.worker-product-body .worker-product-layout.preview-is-collapsed,
  body.worker-product-body .worker-product-layout.list-is-collapsed,
  body.worker-product-body .worker-product-layout.list-is-collapsed.preview-is-collapsed{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.worker-product-body .worker-product-list,
  body.worker-product-body .worker-product-editor,
  body.worker-product-body .worker-product-preview{grid-column:1!important;grid-row:auto!important;width:auto!important;position:relative!important;top:auto!important}
  body.worker-product-body .worker-product-list.is-collapsed,
  body.worker-product-body .worker-product-preview.is-collapsed{min-height:auto!important;width:auto!important}
  body.worker-product-body .worker-product-list.is-collapsed .worker-list-head>div{display:block!important}
  body.worker-product-body .worker-product-list.is-collapsed .worker-product-search,
  body.worker-product-body .worker-product-list.is-collapsed .worker-product-items{display:block!important}
  body.worker-product-body .worker-product-list.is-collapsed .worker-list-actions>a{display:inline-flex!important}
  body.worker-product-body .worker-product-preview.is-collapsed .preview-heading,
  body.worker-product-body .worker-product-preview.is-collapsed .preview-device-switch{display:block!important}
  body.worker-product-body .worker-product-preview.is-collapsed .preview-stage{display:none!important}
}


/* V4 brand mall and compact product cards */
.v16-title,.lm-product .lm-product-title,.lm-brand-product-title{font-size:15px!important;line-height:1.45!important;font-weight:800;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:43px;word-break:break-word}
.lm-home-discovery{max-width:1500px;margin:18px auto 0;padding:0 20px}.lm-home-discovery-tabs{display:flex;gap:8px;padding:6px;background:#f2f4f7;border-radius:16px;width:max-content}.lm-home-discovery-tabs button{border:0;background:transparent;padding:11px 18px;border-radius:12px;font-weight:900;color:#667085;cursor:pointer}.lm-home-discovery-tabs button.on{background:#fff;color:#101828;box-shadow:0 3px 12px rgba(15,23,42,.08)}.lm-home-panel{display:none}.lm-home-panel.on{display:block}.lm-home-section-head{display:flex;justify-content:space-between;align-items:end;margin:18px 0 12px}.lm-home-section-head b{display:block;font-size:22px}.lm-home-section-head span{color:#667085;font-size:13px}.lm-home-brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.lm-home-brand-card{min-width:0;display:grid;gap:8px;justify-items:center;text-align:center;padding:18px 14px;border:1px solid #e6e9ee;border-top:4px solid var(--brand);border-radius:18px;background:#fff;color:#172033;text-decoration:none;box-shadow:0 8px 24px rgba(15,23,42,.05);transition:.18s}.lm-home-brand-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(15,23,42,.1)}.lm-home-brand-card>span{width:82px;height:62px;display:grid;place-items:center;border-radius:14px;background:#fff;border:1px solid #edf0f3;overflow:hidden}.lm-home-brand-card img{max-width:100%;max-height:100%;object-fit:contain;padding:5px}.lm-home-brand-card strong{font-size:15px}.lm-home-brand-card small{color:#667085}
.lm-brand-store-page{margin:0;background:#f7f8fa;color:#172033}.lm-brand-store-head{position:sticky;top:0;z-index:250;background:#fff;border-bottom:4px solid var(--store-primary);box-shadow:0 5px 22px rgba(15,23,42,.08)}.lm-brand-store-bar{max-width:1500px;margin:auto;display:grid;grid-template-columns:auto minmax(170px,280px) minmax(280px,680px);align-items:center;gap:16px;padding:12px 20px}.lm-brand-home-mini{width:38px;height:38px;border-radius:11px;background:#fff;border:1px solid #e5e7eb;display:grid;place-items:center;overflow:hidden}.lm-brand-home-mini img{width:28px;height:28px;object-fit:contain}.lm-brand-identity{min-width:0;display:flex;align-items:center;gap:10px;color:#172033;text-decoration:none}.lm-brand-logo{width:56px;height:44px;flex:0 0 56px;border-radius:10px;background:#fff;border:1px solid #e6e9ee;display:grid;place-items:center;overflow:hidden}.lm-brand-logo img{max-width:100%;max-height:100%;object-fit:contain;padding:3px}.lm-brand-identity strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-brand-search{display:flex;min-width:0;border:2px solid var(--store-primary);border-radius:999px;background:#fff;overflow:hidden}.lm-brand-search input{min-width:0;flex:1;border:0;outline:0;padding:12px 16px;font-size:15px}.lm-brand-search button{border:0;background:var(--store-primary);color:#fff;padding:0 22px;font-weight:900}.lm-brand-store-main{max-width:1500px;margin:auto;padding:22px 20px 70px}.lm-brand-hero{display:flex;align-items:center;gap:20px;padding:24px;border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--store-primary) 12%,#fff),color-mix(in srgb,var(--store-secondary) 10%,#fff));border:1px solid color-mix(in srgb,var(--store-primary) 24%,#e5e7eb)}.lm-brand-hero-logo{width:126px;height:90px;flex:0 0 126px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.08)}.lm-brand-hero-logo img{max-width:100%;max-height:100%;object-fit:contain;padding:8px}.lm-brand-hero h1{margin:3px 0;font-size:30px}.lm-brand-hero p{margin:0;color:#667085}.lm-brand-category-tabs{display:flex;gap:8px;overflow:auto;padding:18px 0 10px}.lm-brand-category-tabs a{white-space:nowrap;text-decoration:none;color:#475467;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:9px 15px;font-weight:800}.lm-brand-category-tabs a.on{background:var(--store-primary);border-color:var(--store-primary);color:#fff}.lm-brand-result-head{display:flex;justify-content:space-between;align-items:end;margin:16px 0 12px}.lm-brand-result-head b{font-size:22px}.lm-brand-result-head span{margin-left:10px;color:#667085}.lm-brand-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.lm-brand-product-card{min-width:0;background:#fff;border:1px solid #e7e9ee;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.055)}.lm-brand-product-image{display:block;aspect-ratio:1/1;background:#f8f8f8;overflow:hidden}.lm-brand-product-image img{width:100%;height:100%;object-fit:cover;transition:.2s}.lm-brand-product-card:hover img{transform:scale(1.025)}.lm-brand-product-card>div{display:grid;gap:10px;padding:14px}.lm-brand-product-title{color:#172033;text-decoration:none}.lm-brand-product-card strong{font-size:19px;color:var(--store-primary)}.lm-brand-product-card .lm-add{width:100%;border:0;border-radius:11px;background:var(--store-primary);color:#fff;padding:11px;font-weight:900}
@media(max-width:760px){.lm-brand-store-bar{grid-template-columns:auto minmax(0,1fr);padding:9px 12px}.lm-brand-search{grid-column:1/-1}.lm-brand-identity strong{font-size:15px}.lm-brand-store-main{padding:14px 12px 60px}.lm-brand-hero{padding:16px;gap:12px}.lm-brand-hero-logo{width:84px;height:66px;flex-basis:84px}.lm-brand-hero h1{font-size:22px}.lm-brand-hero p{font-size:12px}.lm-brand-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lm-brand-product-card>div{padding:10px}.lm-brand-product-title{font-size:13px!important;min-height:38px}.lm-home-discovery{padding:0 12px}.lm-home-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V4.1 product typography + simplified catalog sidebar */
:root{
  --lm-product-title-size:20px;
  --lm-product-body-size:14px;
}

/* Product title matches the store name beside the logo. */
.lm-product-page .lm-product-store-copy strong,
.lm-product-page .lm-shopee-detail .lm-detail-info h1{
  font-size:var(--lm-product-title-size)!important;
  line-height:1.38!important;
  letter-spacing:-.015em!important;
}
.lm-product-page .lm-shopee-detail .lm-detail-info h1{
  margin:9px 0 10px!important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Imported content can never visually overpower the product title. */
.lm-product-page .lm-detail-copy,
.lm-product-page .lm-detail-copy .lm-html-content{
  font-size:var(--lm-product-body-size)!important;
  line-height:1.78!important;
}
.lm-product-page .lm-detail-copy .lm-html-content :is(p,div,span,li,td,th,a,strong,b,em,small){
  font-size:var(--lm-product-body-size)!important;
  line-height:1.78!important;
}
.lm-product-page .lm-detail-copy h1,
.lm-product-page .lm-detail-copy h2,
.lm-product-page .lm-detail-copy h3,
.lm-product-page .lm-detail-copy h4,
.lm-product-page .lm-detail-copy h5,
.lm-product-page .lm-detail-copy h6,
.lm-product-page .lm-detail-copy .lm-html-content :is(h1,h2,h3,h4,h5,h6){
  font-size:var(--lm-product-title-size)!important;
  line-height:1.45!important;
  margin:18px 0 8px!important;
  overflow-wrap:anywhere;
}
.lm-product-page .lm-detail-copy>h2{
  font-size:var(--lm-product-title-size)!important;
  line-height:1.4!important;
}
.lm-product-page .lm-detail-copy img{
  max-width:100%!important;
  height:auto!important;
}

@media(max-width:640px){
  :root{
    --lm-product-title-size:17px;
    --lm-product-body-size:13px;
  }
  .lm-product-page .lm-product-store-copy strong,
  .lm-product-page .lm-shopee-detail .lm-detail-info h1{
    font-size:var(--lm-product-title-size)!important;
  }
}

/* V4.4 product page restored to native 100% scale.
   Advertising and product media remain pixel-sharp; only the cart keeps its compact size. */
@media (min-width:1024px){
  body.lm-product-page{overflow-x:hidden!important;}
  body.lm-product-page>.lm-shell{
    zoom:1!important;
    width:auto!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:18px 24px 118px!important;
  }
  body.lm-product-page .lm-product-ad-rail{
    transform:none!important;
    image-rendering:auto;
  }
  body.lm-product-page .lm-product-ad-rail img,
  body.lm-product-page .lm-related-banner img,
  body.lm-product-page [class*=banner] img{
    width:100%;
    height:auto;
    image-rendering:auto;
    filter:none!important;
  }
}

/* The cart starts slightly inward and can be dragged by its title bar. */
body.lm-product-page .lm-cart{
  right:clamp(24px,4vw,72px)!important;
  bottom:24px!important;
  max-width:calc(100vw - 32px)!important;
  max-height:calc(100vh - 32px)!important;
  touch-action:none;
}
body.lm-product-page .lm-cart> b{
  cursor:grab;
  user-select:none;
  touch-action:none;
}
body.lm-product-page .lm-cart.lm-cart-dragging,
body.lm-product-page .lm-cart.lm-cart-dragging> b{
  cursor:grabbing!important;
}
body.lm-product-page .lm-cart.lm-cart-user-positioned{
  right:auto!important;
  bottom:auto!important;
}
@media(max-width:760px){
  body.lm-product-page>.lm-shell{
    zoom:1!important;
    width:auto!important;
    max-width:none!important;
  }
  body.lm-product-page .lm-cart{
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
    top:auto!important;
    transform:none!important;
  }
  body.lm-product-page .lm-cart> b{cursor:default}
}


/* V4.4 add-to-cart sparkle feedback */
.lm-add-cart-sparkle{
  position:fixed;
  z-index:99999;
  width:10px;
  height:10px;
  pointer-events:none;
  border-radius:50%;
  background:radial-gradient(circle,#fff 0 25%,#ffe45e 28% 50%,#f59e0b 55% 100%);
  box-shadow:0 0 10px #fff,0 0 18px #ffd54a,0 0 28px rgba(245,158,11,.9);
  animation:lmSparkFly var(--lm-spark-duration,.72s) cubic-bezier(.18,.7,.25,1) forwards;
}
.lm-add-cart-sparkle::before,
.lm-add-cart-sparkle::after{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:2px;
  height:24px;
  background:linear-gradient(transparent,#fff,transparent);
  transform:translate(-50%,-50%);
  border-radius:999px;
}
.lm-add-cart-sparkle::after{transform:translate(-50%,-50%) rotate(90deg)}
@keyframes lmSparkFly{
  0%{opacity:0;transform:translate3d(0,0,0) scale(.35) rotate(0deg)}
  16%{opacity:1;transform:translate3d(calc(var(--lm-dx)*.08),calc(var(--lm-dy)*.02 - 18px),0) scale(1.15) rotate(80deg)}
  72%{opacity:1;transform:translate3d(calc(var(--lm-dx)*.78),calc(var(--lm-dy)*.64 - 24px),0) scale(.8) rotate(250deg)}
  100%{opacity:0;transform:translate3d(var(--lm-dx),var(--lm-dy),0) scale(.15) rotate(420deg)}
}
.lm-add-cart-toast{
  position:fixed;
  z-index:100000;
  left:50%;
  top:18%;
  transform:translate(-50%,-10px);
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 16px;
  border-radius:999px;
  background:rgba(18,113,61,.96);
  color:#fff;
  font-weight:900;
  box-shadow:0 14px 38px rgba(18,113,61,.28);
  opacity:0;
  pointer-events:none;
  animation:lmCartToast 1.35s ease forwards;
}
.lm-add-cart-toast::before{content:"✨";font-size:18px}
@keyframes lmCartToast{
  0%{opacity:0;transform:translate(-50%,-12px) scale(.92)}
  18%,70%{opacity:1;transform:translate(-50%,0) scale(1)}
  100%{opacity:0;transform:translate(-50%,-8px) scale(.96)}
}
body.lm-product-page .lm-cart.lm-cart-celebrate{
  animation:lmCartCelebrate .72s cubic-bezier(.2,.75,.25,1);
}
body.lm-product-page .lm-cart.lm-cart-celebrate::after{
  content:"";
  position:absolute;
  inset:-5px;
  z-index:-1;
  border-radius:inherit;
  border:2px solid rgba(255,210,42,.9);
  box-shadow:0 0 0 6px rgba(255,210,42,.16),0 0 30px rgba(255,190,0,.45);
  animation:lmCartHalo .72s ease forwards;
  pointer-events:none;
}
@keyframes lmCartCelebrate{
  0%,100%{transform:translateZ(0) scale(1)}
  35%{transform:translateZ(0) scale(1.035)}
  62%{transform:translateZ(0) scale(.995)}
}
@keyframes lmCartHalo{0%{opacity:0;transform:scale(.92)}35%{opacity:1}100%{opacity:0;transform:scale(1.08)}}
#lm-cart-count.lm-cart-count-pop{animation:lmCartCountPop .58s cubic-bezier(.2,.8,.25,1)}
@keyframes lmCartCountPop{0%,100%{transform:scale(1)}35%{transform:scale(1.42) rotate(-5deg);filter:brightness(1.15)}65%{transform:scale(.92) rotate(3deg)}}
.lm-add.lm-add-success{animation:lmAddButtonSuccess .6s ease}
@keyframes lmAddButtonSuccess{0%,100%{filter:none;transform:none}30%{filter:brightness(1.18);transform:translateY(-2px) scale(1.02);box-shadow:0 0 0 5px rgba(255,215,50,.22)}}
@media(prefers-reduced-motion:reduce){
  .lm-add-cart-sparkle,.lm-add-cart-toast,.lm-cart-celebrate,#lm-cart-count.lm-cart-count-pop,.lm-add.lm-add-success{animation:none!important}
}


/* V4.5 店家分單結帳、OMG-only、商品清單收合修正 */
.lm-omg-payment-badge{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #cfe8d7;border-radius:12px;background:#f3fff7}.lm-omg-payment-badge b{color:#08783a}.lm-omg-payment-badge span{font-size:12px;color:#667085}
.lm-cart-store-checkouts{display:grid;gap:8px;padding:8px 0}.lm-store-checkout-title{display:flex;justify-content:space-between;align-items:center;font-size:12px}.lm-cart-store-checkouts>button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;border:1px solid #d8e8dc;background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer}.lm-cart-store-checkouts>button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lm-cart-store-checkouts>button b{color:#0b873f;white-space:nowrap}
.lm-store-checkout-page{background:#f4f7f5;color:#1d2939}.lm-store-checkout-shell{width:min(1040px,calc(100% - 28px));margin:28px auto}.lm-store-checkout-shell>header{display:flex;gap:24px;align-items:flex-start;margin-bottom:20px}.lm-store-checkout-shell>header a{text-decoration:none;color:#08783a;font-weight:800}.lm-store-checkout-shell h1{margin:4px 0}.lm-store-checkout-shell p{margin:0;color:#667085}.lm-store-checkout-card{background:#fff;border:1px solid #e2e8e4;border-radius:20px;padding:22px;margin:16px 0;box-shadow:0 10px 30px rgba(15,70,40,.06)}.lm-store-checkout-card .head{display:flex;justify-content:space-between;gap:18px;align-items:center}.lm-store-checkout-card .head span{font-size:12px;color:#0b873f;font-weight:900}.lm-store-checkout-card h2{margin:4px 0}.lm-store-checkout-card .head>strong{font-size:22px}.lm-store-checkout-card .items{border-top:1px solid #edf1ee;border-bottom:1px solid #edf1ee;margin:14px 0;padding:10px 0}.lm-store-checkout-card .items>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0}.lm-store-checkout-card form .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lm-store-checkout-card label{display:grid;gap:6px;font-weight:700}.lm-store-checkout-card label.wide{grid-column:1/-1}.lm-store-checkout-card input,.lm-store-checkout-card textarea,.lm-store-checkout-card select{width:100%;box-sizing:border-box;border:1px solid #cad5ce;border-radius:10px;padding:11px;background:#fff}.lm-store-checkout-card textarea{min-height:80px}.lm-store-checkout-card .profile-row{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:12px}.lm-store-checkout-card .omg{padding:11px 14px;background:#effbf3;border-radius:10px;color:#08783a;font-weight:900}.lm-store-checkout-card form>button{width:100%;margin-top:14px;border:0;border-radius:12px;padding:14px;background:linear-gradient(135deg,#0c8b44,#d8b816);color:#fff;font-weight:900;font-size:16px}.lm-store-checkout-card .msg{display:block;margin-top:8px;color:#c0392b}
body.worker-product-body .worker-product-list.is-collapsed{background:#fff!important;border:1px solid #e7e0d8!important;opacity:1!important;visibility:visible!important}.worker-product-list.is-collapsed .list-collapse-btn{display:grid!important;place-items:center!important;color:#fff!important;background:var(--merchant-primary,#16894a)!important;font-size:20px!important;border-radius:12px!important}.worker-product-list.is-collapsed:after{content:'商品';display:block;writing-mode:vertical-rl;margin:12px auto 0;font-weight:900;color:#344054;letter-spacing:3px}
@media(max-width:700px){.lm-store-checkout-card form .grid{grid-template-columns:1fr}.lm-store-checkout-card label.wide{grid-column:auto}.lm-store-checkout-card .profile-row,.lm-store-checkout-card .head{align-items:stretch;flex-direction:column}.lm-store-checkout-card .head>strong{text-align:left}}

/* V50 cart emergency restore: keep every control visible and prevent the product list from covering checkout */
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(120px,1fr) auto auto!important;
  width:min(480px,calc(100vw - 24px))!important;
  height:min(760px,calc(100dvh - 32px))!important;
  min-height:0!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:hidden!important;
  padding:0!important;
  top:16px!important;
  bottom:auto!important;
  right:16px!important;
  left:auto!important;
  background:#fff!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b{
  grid-row:1!important;
  position:relative!important;
  z-index:5!important;
  margin:0!important;
  padding:16px 20px!important;
  min-height:68px!important;
  background:#fff!important;
  border-bottom:1px solid #e7ebef!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
  grid-row:2!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding:12px 18px!important;
  margin:0!important;
  background:#f8faf9!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager{
  grid-row:3!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:8px 18px!important;
  background:#fff!important;
  border-top:1px solid #edf0f2!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{
  grid-row:4!important;
  position:relative!important;
  z-index:6!important;
  margin:0!important;
  padding:12px 18px!important;
  background:#fff!important;
  border-top:1px solid #e7ebef!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  grid-row:5!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  min-height:0!important;
  max-height:min(320px,42dvh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  margin:0!important;
  padding:12px 18px 18px!important;
  background:#fff!important;
  border-top:1px solid #e7ebef!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{
  display:block!important;
  position:sticky!important;
  bottom:0!important;
  z-index:20!important;
  width:100%!important;
  min-height:56px!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  box-shadow:0 -10px 16px rgba(255,255,255,.96),0 10px 22px rgba(21,148,71,.22)!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-store-checkouts,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{
  flex:0 0 auto!important;
  min-width:0!important;
}

/* === V51 Shopee-style multi-store cart === */
#lm-cart{border-radius:18px!important;border:1px solid #e5e7eb!important}
#lm-cart .lm-cart-select{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;cursor:pointer!important}
#lm-cart .lm-cart-select input,#lm-cart-bottom-select input{position:absolute!important;opacity:0!important;pointer-events:none!important}
#lm-cart .lm-cart-select span,.lm-cart-bottom-select label>span{width:20px!important;height:20px!important;border:2px solid #c6cbd2!important;border-radius:4px!important;background:#fff!important;display:inline-block!important;position:relative!important}
#lm-cart .lm-cart-select input:checked+span,.lm-cart-bottom-select input:checked+span{background:#ee4d2d!important;border-color:#ee4d2d!important}
#lm-cart .lm-cart-select input:checked+span:after,.lm-cart-bottom-select input:checked+span:after{content:""!important;position:absolute!important;left:5px!important;top:1px!important;width:5px!important;height:10px!important;border:solid #fff!important;border-width:0 2px 2px 0!important;transform:rotate(45deg)!important}
#lm-cart .lm-cart-store{display:block!important;background:#fff!important;border:1px solid #e8eaed!important;border-radius:12px!important;margin:0 0 12px!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(15,23,42,.035)!important}
#lm-cart .lm-cart-store-head{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 14px!important;border-bottom:1px solid #eef0f2!important;background:#fff!important}
#lm-cart .lm-cart-store-head b{display:block!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:1!important}
#lm-cart .lm-cart-store-head small{color:#8a9099!important;white-space:nowrap!important}
#lm-cart .lm-cart-shop-icon{width:28px!important;height:28px!important;border-radius:8px!important;background:#fff3ef!important;color:#ee4d2d!important;font-weight:900!important;font-size:12px!important;display:flex!important;align-items:center!important;justify-content:center!important}
#lm-cart .lm-cart-store-items{display:block!important;width:100%!important;min-width:0!important}
#lm-cart .lm-cart-line{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;padding:14px!important;border-bottom:1px solid #f0f1f3!important}
#lm-cart .lm-cart-line:last-child{border-bottom:0!important}
#lm-cart .lm-cart-row-main{min-width:0!important;display:grid!important;gap:5px!important}
#lm-cart .lm-cart-name{font-size:14px!important;font-weight:700!important;white-space:normal!important;overflow-wrap:anywhere!important}
#lm-cart .lm-cart-price{font-size:15px!important;color:#ee4d2d!important;font-weight:900!important}
#lm-cart .lm-cart-controls{display:flex!important;align-items:center!important;gap:8px!important}
#lm-cart .lm-cart-stepper{display:grid!important;grid-template-columns:30px 42px 30px!important;height:32px!important;border:1px solid #dfe3e8!important;border-radius:4px!important;overflow:hidden!important;background:#fff!important}
#lm-cart .lm-cart-stepper button{width:30px!important;height:30px!important;border:0!important;border-radius:0!important;background:#fff!important;padding:0!important}
#lm-cart .lm-cart-qty-input{width:42px!important;height:30px!important;border:0!important;border-left:1px solid #e2e5e9!important;border-right:1px solid #e2e5e9!important;text-align:center!important;font-weight:800!important;padding:0!important;appearance:textfield!important}
#lm-cart .lm-cart-remove{width:auto!important;height:32px!important;border:0!important;color:#6b7280!important;background:transparent!important;padding:0 4px!important}
.lm-cart-bottom-select{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:9px!important}
.lm-cart-bottom-select label{display:flex!important;align-items:center!important;gap:8px!important;font-size:14px!important;font-weight:800!important;cursor:pointer!important}
#lm-cart .lm-cart-bottom-select .lm-cart-clear{border:0!important;background:transparent!important;color:#6b7280!important;padding:5px!important;font-weight:700!important}
#lm-cart #lm-checkout{background:#ee4d2d!important;border-radius:7px!important;box-shadow:none!important;min-height:50px!important}
#lm-cart #lm-checkout:disabled{background:#d8dadd!important;color:#fff!important;cursor:not-allowed!important}

body.lm-cart-open:not(.lm-cart-collapsed):before{content:""!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.42)!important;z-index:9997!important;backdrop-filter:blur(2px)!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{z-index:9998!important;width:min(760px,calc(100vw - 32px))!important;height:min(820px,calc(100dvh - 32px))!important;right:16px!important;left:auto!important;top:16px!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;background:#f5f5f5!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{padding:14px!important;background:#f5f5f5!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{background:#fff!important;padding:12px 18px!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{display:none!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>#lm-checkout,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>.lm-cart-checkout-stack{background:#fff!important;padding:0 18px 18px!important;margin:0!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>.lm-cart-checkout-stack{display:block!important;overflow:visible!important;max-height:none!important}

@media(max-width:640px){
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important;border:0!important}
  #lm-cart .lm-cart-line{grid-template-columns:22px minmax(0,1fr)!important}
  #lm-cart .lm-cart-controls{grid-column:2!important;justify-content:space-between!important}
  #lm-cart .lm-cart-store-head{padding:11px 12px!important}
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{padding:10px!important}
}
@media(max-width:640px){
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
    inset:6px!important;
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:none!important;
    border-radius:20px!important;
  }
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
    max-height:44dvh!important;
    padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* === V53 visible controls + strictly separate store checkout === */
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  grid-template-rows:auto minmax(140px,1fr) auto auto auto!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  grid-row:5!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  max-height:250px!important;
  overflow-y:auto!important;
  padding:10px 18px 18px!important;
  background:#fff!important;
  border-top:1px solid #e7ebef!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry{
  display:grid!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 10px!important;
  max-height:none!important;
  overflow:visible!important;
  border:1px solid #e5e7eb!important;
  border-radius:9px!important;
  background:#fff!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-payment-box{
  display:none!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry input,
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-coupon-entry select{
  min-width:0!important;
  width:100%!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{
  display:block!important;
  position:relative!important;
  bottom:auto!important;
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
  visibility:visible!important;
  opacity:1!important;
}
#lm-cart .lm-cart-store-head{flex-wrap:wrap!important}
#lm-cart .lm-store-checkout-button{
  flex:0 0 auto!important;
  border:1px solid #ee4d2d!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#ee4d2d!important;
  min-height:34px!important;
  padding:6px 11px!important;
  font-weight:900!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
#lm-cart .lm-store-checkout-button:hover{background:#fff3ef!important}
@media(max-width:640px){
  #lm-cart .lm-cart-store-head b{flex:1 1 calc(100% - 112px)!important}
  #lm-cart .lm-cart-store-head small{margin-left:32px!important}
  #lm-cart .lm-store-checkout-button{margin-left:auto!important}
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
    max-height:230px!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* V54 final cascade guard */
html body.lm-cart-open:not(.lm-cart-collapsed):before{display:none!important}
html body #lm-cart{position:fixed!important;top:82px!important;right:28px!important;left:auto!important;bottom:auto!important;width:430px!important;max-width:calc(100vw - 24px)!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:hidden!important;border:1px solid #e5e7eb!important;border-radius:4px!important;background:#fff!important;box-shadow:0 8px 28px rgba(0,0,0,.16)!important;transform:none!important;z-index:9999!important}
html body #lm-cart>b{display:flex!important;align-items:center!important;min-height:52px!important;margin:0!important;padding:0 14px!important;border-bottom:1px solid #eee!important;background:#fff!important;font-size:17px!important}
html body.lm-cart-collapsed #lm-cart,html body:not(.lm-cart-open) #lm-cart{width:210px!important;height:58px!important;min-height:58px!important;border-radius:12px!important}
html body.lm-cart-collapsed #lm-cart #lm-cart-items,html body.lm-cart-collapsed #lm-cart #lm-cart-pager,html body.lm-cart-collapsed #lm-cart #lm-cart-total-panel,html body.lm-cart-collapsed #lm-cart .lm-cart-checkout-stack,html body:not(.lm-cart-open) #lm-cart #lm-cart-items,html body:not(.lm-cart-open) #lm-cart #lm-cart-pager,html body:not(.lm-cart-open) #lm-cart #lm-cart-total-panel,html body:not(.lm-cart-open) #lm-cart .lm-cart-checkout-stack{display:none!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{top:82px!important;right:28px!important;left:auto!important;bottom:auto!important;width:430px!important;height:auto!important;max-height:none!important;display:block!important;background:#fff!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{display:block!important;max-height:none!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0 14px!important;border:0!important;background:#fff!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;margin:0!important;padding:6px 14px!important;border-top:1px solid #f0f0f0!important;background:#fafafa!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{display:none!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{display:block!important;max-height:none!important;margin:0!important;padding:12px 14px 14px!important;border-top:1px solid #eee!important;background:#fff!important;overflow:visible!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{display:block!important;position:relative!important;bottom:auto!important;width:100%!important;min-height:46px!important;margin:0!important;padding:10px 16px!important;border-radius:3px!important;background:#ee4d2d!important;box-shadow:none!important}
@media(max-width:640px){html body #lm-cart,html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{top:66px!important;right:8px!important;left:auto!important;bottom:auto!important;width:calc(100vw - 16px)!important;border-radius:6px!important}html body.lm-cart-collapsed #lm-cart,html body:not(.lm-cart-open) #lm-cart{top:auto!important;right:10px!important;bottom:14px!important;width:210px!important}}

/* === V55 compact one-line mini cart === */
html body #lm-cart,html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{top:18px!important;right:28px!important;width:520px!important;max-width:calc(100vw - 24px)!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{padding:0 12px!important}
#lm-cart .lm-mini-cart-line{
  display:grid!important;
  grid-template-columns:minmax(132px,1fr) 76px 94px 28px!important;
  grid-template-rows:54px!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:54px!important;
  height:54px!important;
  margin:0!important;
  padding:0!important;
  border-bottom:1px solid #f1f1f1!important;
  overflow:hidden!important;
}
#lm-cart .lm-mini-cart-product{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  color:#20242b!important;
  text-decoration:none!important;
}
#lm-cart .lm-mini-cart-product img{width:38px!important;height:38px!important;object-fit:cover!important;border:1px solid #eee!important}
#lm-cart .lm-mini-cart-product span{display:block!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important}
#lm-cart .lm-mini-cart-line>b{display:block!important;margin:0!important;color:#ee4d2d!important;font-size:13px!important;text-align:right!important;white-space:nowrap!important}
#lm-cart .lm-mini-cart-qty{display:grid!important;grid-template-columns:28px 36px 28px!important;width:92px!important;height:30px!important}
#lm-cart .lm-mini-cart-qty button,#lm-cart .lm-mini-cart-qty input{width:100%!important;height:30px!important;margin:0!important;padding:0!important;border:1px solid #ddd!important;border-radius:0!important;background:#fff!important;text-align:center!important;font-size:14px!important}
#lm-cart .lm-mini-cart-qty input{border-left:0!important;border-right:0!important}
#lm-cart .lm-mini-cart-qty button:disabled{color:#bbb!important;background:#f7f7f7!important}
#lm-cart .lm-mini-cart-remove{display:flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:#8a9099!important;font-size:21px!important;cursor:pointer!important}
#lm-cart .lm-mini-cart-line>em{position:absolute!important;left:-9999px!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{padding:10px 12px 12px!important}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{min-height:42px!important;height:42px!important;padding:8px 14px!important}
@media(max-width:640px){
  html body #lm-cart,html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{top:6px!important;right:6px!important;width:calc(100vw - 12px)!important;max-width:none!important}
  #lm-cart .lm-mini-cart-line{grid-template-columns:minmax(102px,1fr) 62px 88px 25px!important;gap:5px!important}
  #lm-cart .lm-mini-cart-product{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important}
  #lm-cart .lm-mini-cart-product img{width:34px!important;height:34px!important}
  #lm-cart .lm-mini-cart-line>b{font-size:12px!important}
  #lm-cart .lm-mini-cart-qty{grid-template-columns:26px 34px 26px!important;width:86px!important}
}

/* === V56 admin order list: complete amount + compact readable columns === */
.lm-orders-v42 .lm-order-card-v42{
  grid-template-columns:30px minmax(0,1fr) 82px!important;
  gap:8px!important;
  padding:11px 12px!important;
  border-radius:19px!important;
}
.lm-orders-v42 .lm-v42-main{
  grid-template-columns:minmax(138px,1.25fr) minmax(82px,.68fr) minmax(118px,.9fr) minmax(126px,1fr) minmax(108px,.76fr) minmax(88px,.62fr)!important;
  gap:8px!important;
  min-width:0!important;
}
.lm-orders-v42 .lm-v42-order-no,.lm-orders-v42 .lm-v42-member,.lm-orders-v42 .lm-v42-items,.lm-orders-v42 .lm-v42-payment,.lm-orders-v42 .lm-v42-total,.lm-orders-v42 .lm-v42-status{min-width:0!important}
.lm-orders-v42 .lm-v42-order-no b{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
}
.lm-orders-v42 .lm-v42-order-no small{font-size:11px!important;white-space:nowrap!important}
.lm-orders-v42 .lm-v42-member b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important}
.lm-orders-v42 .lm-v42-items summary{max-width:100%!important;padding:7px 9px!important;font-size:12px!important;gap:4px!important}
.lm-orders-v42 .lm-v42-items summary span{font-size:11px!important}
.lm-orders-v42 .lm-v42-payment span{
  margin-bottom:4px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
.lm-orders-v42 .lm-v42-badge{max-width:100%!important;padding:6px 8px!important;font-size:11px!important}
.lm-orders-v42 .lm-v42-total{text-align:right!important;padding-right:2px!important}
.lm-orders-v42 .lm-v42-total b{
  display:block!important;
  width:100%!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:clamp(14px,1.35vw,18px)!important;
  letter-spacing:-.35px!important;
  font-variant-numeric:tabular-nums!important;
}
.lm-orders-v42 .lm-v42-total small{font-size:10px!important;white-space:nowrap!important}
.lm-orders-v42 .lm-v42-open{width:82px!important;height:42px!important;padding:0 10px!important;font-size:12px!important;border-radius:12px!important}
@media(max-width:1180px) and (min-width:721px){
  .lm-orders-v42 .lm-v42-main{grid-template-columns:minmax(130px,1.1fr) minmax(78px,.62fr) minmax(108px,.85fr) minmax(118px,.92fr) minmax(104px,.72fr)!important}
  .lm-orders-v42 .lm-v42-status{display:none!important}
}

/* === V57 Apple-style mobile product typography === */
@media(max-width:760px){
  body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
  .mall-card-v16{height:590px!important;grid-template-rows:145px minmax(0,1fr) 158px!important}
  .v16-title{height:48px!important;font-size:15px!important;line-height:1.45!important;font-weight:700!important;letter-spacing:-.01em!important}
  .v16-kind,.v16-source,.v16-reward{font-size:12px!important;line-height:1.35!important}
  .v16-kind{padding:5px 7px!important}
  .v16-benefits{height:94px!important;padding:10px!important;gap:7px!important}
  .v16-benefits span{font-size:11px!important;padding:4px 6px!important}
  .v16-benefits b{font-size:12px!important}
  .v16-benefits p{font-size:12px!important;line-height:1.35!important}
  .v16-group{height:148px!important;padding:9px!important;grid-template-rows:23px auto 25px 19px 19px 23px!important}
  .v16-group-head b{font-size:12px!important}
  .v16-group-head span{font-size:10px!important}
  .v16-completed,.v16-remaining,.v16-capacity,.v16-progress{font-size:11px!important;line-height:1.35!important}
  .v16-progress strong{font-size:14px!important}
  .v16-countdown{font-size:15px!important}
  .v16-footer{height:158px!important;grid-template-rows:94px 46px!important;padding:9px 10px 10px!important;gap:8px!important}
  .v16-price-top span,.v16-price-top del{font-size:11px!important}
  .v16-price-main small{font-size:13px!important}
  .v16-price-main strong{font-size:24px!important}
  .v16-price-main em{font-size:12px!important}
  .v16-price-bottom{font-size:11px!important;line-height:1.3!important}
  .v16-action{height:46px!important;min-height:46px!important;font-size:15px!important;font-weight:800!important}
  .compact-list h1,.compact-list h2,.compact-list h3,.compact-list h4,.compact-list .lm-product-title,.compact-list .product-title,.compact-list .mall-product-title,.compact-list .card-title{font-size:18px!important;line-height:1.4!important;font-weight:700!important}
  .compact-list .lm-product-price,.compact-list .product-price,.compact-list .mall-price,.compact-list .price,.compact-list [class*="price"]{font-size:23px!important}
  .compact-list .lm-tags span,.compact-list .tags span,.compact-list .badge-row span,.compact-list .lm-card-tags span,.compact-list [class*="tag"] span,.compact-list [class*="badge"] span{font-size:13px!important;line-height:1.25!important}
  .compact-list .lm-product-meta,.compact-list .meta,.compact-list .sold,.compact-list .reward,.compact-list .points,.compact-list [class*="reward"],.compact-list [class*="point"],.compact-list [class*="sold"]{font-size:14px!important;line-height:1.4!important}
  .compact-list button,.compact-list .btn,.compact-list a.btn{min-height:40px!important;height:40px!important;font-size:15px!important}
}
@media(max-width:380px){
  .mall-card-v16{height:580px!important}
  .v16-title{font-size:14px!important}
  .v16-price-main strong{font-size:22px!important}
  .v16-action{font-size:14px!important}
}

/* === V58 mobile compact Shopee-style cards + cart badge separation === */
@media(max-width:760px){
  .lm-products.v100-products{gap:10px!important;align-items:start!important}
  .mall-card-v16,.mall-card-v16.no-groupbuy,.mall-card-v16.has-groupbuy{
    height:410px!important;
    min-height:410px!important;
    max-height:410px!important;
    grid-template-rows:155px 112px 143px!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    outline:0!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
  }
  .v16-image{height:155px!important;background:#fff!important}
  .v16-image img{object-fit:cover!important}
  .v16-ribbon{font-size:10px!important}
  .v16-body{height:112px!important;min-height:112px!important;padding:9px 10px!important;gap:7px!important;display:flex!important;overflow:hidden!important}
  .v16-meta{min-height:24px!important}
  .v16-title{height:48px!important;font-size:15px!important;line-height:1.4!important}
  .v16-reward{font-size:12px!important}
  .v16-benefits,.v16-group{display:none!important}
  .v16-footer{height:143px!important;min-height:143px!important;padding:8px 10px 10px!important;grid-template-rows:83px 42px!important;gap:8px!important}
  .v16-price{grid-template-rows:19px 40px 19px!important}
  .v16-price-main strong{font-size:23px!important}
  .v16-action{height:42px!important;min-height:42px!important;font-size:14px!important;border-radius:8px!important}
  body.lm-mobile-one-col .mall-card-v16,body.lm-mobile-one-col .mall-card-v16.no-groupbuy,body.lm-mobile-one-col .mall-card-v16.has-groupbuy{
    height:510px!important;
    min-height:510px!important;
    max-height:510px!important;
    grid-template-rows:250px 116px 144px!important;
  }
  body.lm-mobile-one-col .v16-image{height:250px!important}
  body.lm-cart-collapsed #lm-cart,body:not(.lm-cart-open) #lm-cart{
    width:250px!important;
    min-width:250px!important;
    height:58px!important;
    min-height:58px!important;
  }
  body.lm-cart-collapsed #lm-cart>b,body:not(.lm-cart-open) #lm-cart>b{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    padding:0 8px 0 12px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
  body.lm-cart-collapsed #lm-cart-count,body:not(.lm-cart-open) #lm-cart-count{
    position:static!important;
    flex:0 0 28px!important;
    width:28px!important;
    min-width:28px!important;
    height:28px!important;
    margin:0!important;
    font-size:13px!important;
    transform:none!important;
  }
  body.lm-cart-collapsed #lm-cart-toggle,body:not(.lm-cart-open) #lm-cart-toggle{
    position:static!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:68px!important;
    height:36px!important;
    margin-left:auto!important;
    padding:0 10px!important;
    font-size:12px!important;
    transform:none!important;
  }
}
/* V59 automatic store dispatch and platform-only license center */
.lm-add.lm-inquiry-disabled,.lm-add.lm-inquiry-disabled:disabled{background:#eef0f3!important;color:#8a9099!important;border:1px solid #d9dde3!important;box-shadow:none!important;cursor:not-allowed!important;opacity:1!important}
@media(max-width:900px){
  .lm-panel article[style*="grid-template-columns:minmax(160px"]{grid-template-columns:1fr 1fr!important}
  .lm-panel article[style*="grid-template-columns:minmax(160px"] .lm-export-btn{grid-column:1/-1;text-align:center}
}
@media(max-width:560px){
  .lm-panel article[style*="grid-template-columns:minmax(160px"]{grid-template-columns:1fr!important}
  .lm-store-notify-all{display:grid!important;gap:3px}
  .lm-store-notify-all small{line-height:1.45}
}

/* === V61 Shopee-style compact mobile header === */
.lm-mobile-header-cart,.lm-mobile-profile-head{display:none}
@media(max-width:760px){
  .lm-shell{padding-top:0!important}
  .lm-apple-store-header{
    position:sticky!important;top:0!important;z-index:10040!important;
    margin:0 -10px 8px!important;padding:0!important;border-radius:0!important;
    background:#ee4d2d!important;border:0!important;box-shadow:0 2px 8px rgba(0,0,0,.12)!important;
  }
  .lm-apple-toolbar{
    width:100%!important;max-width:none!important;height:56px!important;min-height:56px!important;
    padding:8px 10px!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) 40px 40px!important;grid-template-rows:40px!important;
    gap:7px!important;align-items:center!important;position:relative!important;
  }
  .lm-apple-logo{display:none!important}
  .lm-apple-search{
    display:block!important;grid-column:1!important;grid-row:1!important;
    width:100%!important;max-width:none!important;height:40px!important;position:relative!important;
    border:0!important;border-radius:4px!important;background:#fff!important;overflow:hidden!important;
  }
  .lm-apple-search:before{
    content:"⌕";position:absolute;left:10px;top:8px;color:#a0a6ae;font-size:19px;line-height:1;z-index:2;pointer-events:none
  }
  .lm-apple-search input{
    width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;
    border:0!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;
    padding:0 10px 0 34px!important;font-size:14px!important;font-weight:500!important;color:#333!important;
  }
  .lm-apple-search input::placeholder{color:#ee4d2d!important;opacity:.78}
  .lm-apple-search button{display:none!important}
  .lm-mobile-header-cart{
    grid-column:2;grid-row:1;display:flex!important;align-items:center;justify-content:center;
    width:40px;height:40px;position:relative;text-decoration:none;color:#fff;font-size:24px;
  }
  .lm-mobile-header-cart>span{filter:grayscale(1) brightness(0) invert(1);font-size:24px;line-height:1}
  .lm-header-cart-count{
    position:absolute;right:-1px;top:0;display:none;align-items:center;justify-content:center;
    min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#fff;color:#ee4d2d;
    border:1px solid #ee4d2d;font-size:10px;line-height:1;font-weight:900
  }
  .lm-header-cart-count.has-items{display:flex}
  .lm-mobile-menu-btn{
    grid-column:3!important;grid-row:1!important;display:flex!important;width:38px!important;height:38px!important;
    padding:0!important;border:2px solid rgba(255,255,255,.92)!important;border-radius:50%!important;
    background:#fff!important;color:#ee4d2d!important;overflow:hidden!important;box-shadow:none!important;
    font-size:16px!important;font-weight:900!important;z-index:10060!important;
  }
  .lm-mobile-menu-btn img{width:100%;height:100%;object-fit:cover;display:block}
  .lm-mobile-menu-btn>span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:#fff4ef;color:#ee4d2d}
  .lm-apple-actions{
    display:none!important;position:absolute!important;right:8px!important;top:52px!important;
    width:min(286px,calc(100vw - 16px))!important;min-width:0!important;max-height:calc(100vh - 70px)!important;
    overflow:auto!important;z-index:10080!important;flex-direction:column!important;align-items:stretch!important;
    gap:2px!important;padding:10px!important;background:#fff!important;border:1px solid #eceff3!important;
    border-radius:14px!important;box-shadow:0 18px 45px rgba(16,24,40,.24)!important;
  }
  .lm-apple-actions.show{display:flex!important}
  .lm-mobile-profile-head{
    display:flex!important;align-items:center;gap:11px;padding:7px 7px 12px;margin-bottom:4px;border-bottom:1px solid #edf0f3
  }
  .lm-mobile-profile-head>img,.lm-mobile-profile-head>span{
    width:42px;height:42px;flex:0 0 42px;border-radius:50%;object-fit:cover;
  }
  .lm-mobile-profile-head>span{display:flex;align-items:center;justify-content:center;background:#fff1ec;color:#ee4d2d;font-weight:900}
  .lm-mobile-profile-head b{display:block;color:#182230;font-size:15px}
  .lm-mobile-profile-head small{display:block;color:#8a94a3;font-size:12px;margin-top:2px}
  .lm-apple-actions a{
    display:flex!important;align-items:center!important;min-height:42px!important;padding:10px 12px!important;
    border:0!important;border-radius:8px!important;background:#fff!important;color:#303846!important;
    box-shadow:none!important;font-size:14px!important;font-weight:750!important;text-decoration:none!important;
  }
  .lm-apple-actions a:active{background:#fff4ef!important;color:#ee4d2d!important}
  .lm-apple-actions .lm-menu-logout{margin-top:4px;border-top:1px solid #edf0f3!important;color:#c2412d!important}
  .lm-apple-cats{
    height:42px!important;max-width:none!important;margin:0!important;padding:0 8px 6px!important;
    gap:6px!important;border:0!important;background:#fff!important;
  }
  .lm-apple-cats a{
    flex:0 0 auto!important;min-width:auto!important;padding:8px 11px!important;border:0!important;
    border-radius:5px!important;background:#fff!important;color:#596273!important;font-size:13px!important;
  }
  .lm-apple-cats a.on{background:#fff1ec!important;color:#ee4d2d!important;box-shadow:none!important}
  .lm-apple-cats .lm-cat-icon{display:none!important}
}

/* === V62 store cards + icon-only collapsed cart === */
.lm-brand-product-card{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
.lm-brand-product-card>div{display:grid!important;grid-template-rows:minmax(43px,auto) auto 44px!important;align-content:stretch!important;height:100%!important}
.lm-brand-product-card .lm-add{
  display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;
  justify-content:center!important;width:100%!important;min-height:44px!important;height:44px!important;
  margin-top:auto!important;cursor:pointer!important
}
.lm-brand-product-card .lm-inquiry-disabled{cursor:not-allowed!important}
.lm-cart-fly-image{
  position:fixed!important;z-index:2147483000!important;object-fit:cover!important;pointer-events:none!important;
  border-radius:12px!important;box-shadow:0 12px 35px rgba(0,0,0,.24)!important;
  animation:lmCartFly .78s cubic-bezier(.2,.75,.25,1) forwards!important
}
@keyframes lmCartFly{
  0%{transform:translate(0,0) scale(1);opacity:.92}
  70%{opacity:.9}
  100%{transform:translate(var(--lm-fly-x),var(--lm-fly-y)) scale(.08);opacity:0}
}
html body.lm-cart-collapsed #lm-cart,html body:not(.lm-cart-open) #lm-cart{
  width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;
  min-height:56px!important;max-height:56px!important;border-radius:50%!important;overflow:visible!important;background:#fff!important
}
html body.lm-cart-collapsed #lm-cart>b,html body:not(.lm-cart-open) #lm-cart>b{
  width:56px!important;height:56px!important;min-height:56px!important;padding:0!important;border:0!important;
  border-radius:50%!important;justify-content:center!important;font-size:0!important;background:#fff!important;overflow:visible!important
}
html body.lm-cart-collapsed #lm-cart-toggle,html body:not(.lm-cart-open) #lm-cart-toggle{
  display:flex!important;align-items:center!important;justify-content:center!important;position:static!important;
  width:56px!important;min-width:56px!important;height:56px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:50%!important;background:var(--store-primary,#ee4d2d)!important;color:#fff!important;
  font-size:25px!important;box-shadow:0 8px 24px rgba(15,23,42,.2)!important;cursor:pointer!important
}
html body.lm-cart-collapsed #lm-cart-count,html body:not(.lm-cart-open) #lm-cart-count{
  position:absolute!important;right:-4px!important;top:-5px!important;z-index:2!important;display:flex!important;
  align-items:center!important;justify-content:center!important;min-width:22px!important;width:auto!important;
  height:22px!important;padding:0 5px!important;margin:0!important;border:2px solid #fff!important;
  border-radius:999px!important;background:#ef4444!important;color:#fff!important;font-size:11px!important;font-weight:900!important
}
html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart-toggle{
  margin-left:auto!important;width:36px!important;height:36px!important;min-width:36px!important;border:0!important;
  border-radius:50%!important;background:#f2f4f7!important;color:#344054!important;font-size:24px!important;line-height:1!important
}
@media(max-width:760px){
  body.lm-has-header-cart-trigger.lm-cart-collapsed #lm-cart,
  body.lm-has-header-cart-trigger:not(.lm-cart-open) #lm-cart{display:none!important}
  .lm-brand-product-card>div{grid-template-rows:minmax(38px,auto) auto 42px!important}
  .lm-brand-product-card .lm-add{height:42px!important;min-height:42px!important;font-size:14px!important}
}

/* === V64 final storefront catalog and mobile toolbar === */
.lm-products.v100-products .mall-card-v16,
.lm-products.v100-products .mall-card-v16:hover{
  border-color:#e5e7eb!important;
  outline:0!important;
}
@media(min-width:761px){
  .lm-products.v100-products{
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;
    gap:14px!important;
    align-items:start!important;
  }
  .lm-products.v100-products .mall-card-v16,
  .lm-products.v100-products .mall-card-v16.no-groupbuy,
  .lm-products.v100-products .mall-card-v16.has-groupbuy{
    display:grid!important;
    grid-template-rows:190px 108px 126px!important;
    height:424px!important;
    min-height:424px!important;
    max-height:424px!important;
    border:1px solid #e5e7eb!important;
    outline:0!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
    overflow:hidden!important;
  }
  .lm-products.v100-products .mall-card-v16:hover{
    border-color:#d8dde5!important;
    outline:0!important;
    box-shadow:0 7px 18px rgba(15,23,42,.11)!important;
    transform:translateY(-2px)!important;
  }
  .lm-products.v100-products .v16-image{height:190px!important;min-height:190px!important}
  .lm-products.v100-products .v16-body{
    height:108px!important;min-height:108px!important;padding:9px 11px!important;overflow:hidden!important
  }
  .lm-products.v100-products .v16-benefits,
  .lm-products.v100-products .v16-group{display:none!important}
  .lm-products.v100-products .v16-footer{
    display:grid!important;
    grid-template-rows:68px 42px!important;
    gap:7px!important;
    height:126px!important;
    min-height:126px!important;
    padding:5px 11px 9px!important;
    overflow:visible!important;
  }
  .lm-products.v100-products .v16-price{
    min-height:0!important;height:68px!important;overflow:hidden!important
  }
  .lm-products.v100-products .v16-action{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative!important;
    inset:auto!important;
    z-index:3!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:7px!important;
    background:#ee4d2d!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  .lm-products.v100-products .v16-action:hover{background:#d94224!important}
  .lm-products.v100-products .v16-action:disabled,
  .lm-products.v100-products .lm-inquiry-disabled{
    background:#eef0f3!important;color:#8a929e!important;cursor:not-allowed!important
  }
}

/* === V115 reward placement + unclipped mobile titles === */
.v16-reward-desktop{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:max-content!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#f2f4f7!important;
  color:#667085!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.v16-reward-mobile{display:none!important}
@media(min-width:761px){
  .lm-products.v100-products .v16-meta{
    grid-template-columns:auto minmax(0,1fr) auto auto!important;
  }
}
@media(max-width:760px){
  .v16-reward-desktop{display:none!important}
  .v16-reward-mobile{
    display:block!important;
    font-size:12px!important;
    line-height:1.4!important;
    color:#667085!important;
  }
  .lm-products.v100-products .mall-card-v16,
  .lm-products.v100-products .mall-card-v16.no-groupbuy,
  .lm-products.v100-products .mall-card-v16.has-groupbuy{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    grid-template-rows:auto auto auto!important;
  }
  .lm-products.v100-products .v16-body{
    height:auto!important;
    min-height:116px!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .lm-products.v100-products .v16-title{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  .lm-products.v100-products .v16-footer{
    height:auto!important;
    min-height:143px!important;
    max-height:none!important;
  }
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16,
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16.no-groupbuy,
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16.has-groupbuy{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    grid-template-rows:auto auto auto!important;
  }
  body.lm-mobile-one-col .lm-products.v100-products .v16-body{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
}

/* === V66 cart header icon, footer and mobile action spacing === */
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b::before{
  content:""!important;
  display:inline-block!important;
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  margin:0 8px 0 0!important;
  background:url("categories/cart.svg") center/contain no-repeat!important;
  font-size:0!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto auto auto!important;
  overflow:hidden!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b{
  grid-row:1!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-items{
  grid-row:2!important;
  min-height:0!important;
  overflow-y:auto!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-pager{
  grid-row:3!important;
  display:flex!important;
  min-height:50px!important;
  margin:0!important;
  padding:8px 14px!important;
  border-top:1px solid #edf0f3!important;
  background:#f8fafc!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{
  grid-row:4!important;
  display:block!important;
  position:static!important;
  width:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:12px 16px!important;
  border:0!important;
  border-top:1px solid #edf0f3!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
  grid-row:5!important;
  display:block!important;
  position:static!important;
  width:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0 16px 16px!important;
  border:0!important;
  background:#fff!important;
  overflow:visible!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack #lm-checkout{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:8px!important;
  background:#ee4d2d!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:15px!important;
  font-weight:900!important;
}
@media(min-width:761px){
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
    height:min(720px,calc(100dvh - 32px))!important;
    max-height:calc(100dvh - 32px)!important;
  }
}
@media(max-width:760px){
  body.lm-product-page.lm-cart-collapsed #lm-cart,
  body.lm-product-page:not(.lm-cart-open) #lm-cart{
    bottom:calc(18px + env(safe-area-inset-bottom))!important;
  }
  body.lm-product-page .lm-floating-edit{
    right:74px!important;
    bottom:calc(18px + env(safe-area-inset-bottom))!important;
    max-width:calc(100vw - 146px)!important;
    min-height:48px!important;
    padding:0 14px!important;
    white-space:nowrap!important;
  }
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{
    inset:6px!important;
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    border-radius:16px!important;
  }
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart #lm-cart-total-panel{
    padding:10px 14px!important;
  }
  body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-checkout-stack{
    padding:0 14px calc(14px + env(safe-area-inset-bottom))!important;
  }
}

/* V65 product page: collapsed cart is a real floating icon, never a green bar. */
@media(max-width:760px){
  body.lm-product-page.lm-cart-collapsed #lm-cart,
  body.lm-product-page:not(.lm-cart-open) #lm-cart{
    display:block!important;
    position:fixed!important;
    top:auto!important;
    left:auto!important;
    right:14px!important;
    bottom:calc(76px + env(safe-area-inset-bottom))!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    z-index:9996!important;
  }
  body.lm-product-page.lm-cart-collapsed #lm-cart>b,
  body.lm-product-page:not(.lm-cart-open) #lm-cart>b{
    display:block!important;
    position:relative!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:0!important;
  }
  body.lm-product-page.lm-cart-collapsed #lm-cart-toggle,
  body.lm-product-page:not(.lm-cart-open) #lm-cart-toggle{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#ee4d2d!important;
    -webkit-mask:url("categories/cart.svg") center/34px 34px no-repeat!important;
    mask:url("categories/cart.svg") center/34px 34px no-repeat!important;
    box-shadow:none!important;
    color:transparent!important;
  }
  body.lm-product-page.lm-cart-collapsed #lm-cart-count,
  body.lm-product-page:not(.lm-cart-open) #lm-cart-count{
    position:absolute!important;
    right:-3px!important;
    top:-4px!important;
    z-index:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:17px!important;
    height:17px!important;
    margin:0!important;
    padding:0 3px!important;
    border:1px solid #fff!important;
    border-radius:999px!important;
    background:#ee4d2d!important;
    color:#fff!important;
    font-size:10px!important;
    line-height:1!important;
  }
  body.lm-product-page.lm-cart-collapsed #lm-cart-items,
  body.lm-product-page:not(.lm-cart-open) #lm-cart-items,
  body.lm-product-page.lm-cart-collapsed #lm-cart-pager,
  body.lm-product-page:not(.lm-cart-open) #lm-cart-pager,
  body.lm-product-page.lm-cart-collapsed #lm-cart-total-panel,
  body.lm-product-page:not(.lm-cart-open) #lm-cart-total-panel,
  body.lm-product-page.lm-cart-collapsed #lm-cart .lm-cart-checkout-stack,
  body.lm-product-page:not(.lm-cart-open) #lm-cart .lm-cart-checkout-stack{
    display:none!important;
  }
}
.lm-brand-product-card,
.lm-brand-product-card:hover{
  border-color:#e5e7eb!important;
  outline:0!important;
}
@media(max-width:760px){
  .lm-apple-toolbar{
    grid-template-columns:34px minmax(0,1fr) 34px 38px!important;
    grid-template-rows:40px!important;
    gap:6px!important;
    padding:8px!important;
  }
  .lm-apple-logo{
    display:flex!important;
    grid-column:1!important;
    grid-row:1!important;
    width:34px!important;
    min-width:34px!important;
    height:40px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
  }
  .lm-apple-logo img{
    display:block!important;width:32px!important;height:32px!important;
    max-width:32px!important;object-fit:contain!important;border-radius:7px!important
  }
  .lm-apple-logo span{display:none!important}
  .lm-apple-search{display:block!important;grid-column:2!important;grid-row:1!important}
  .lm-mobile-header-cart{
    display:flex!important;
    grid-column:3!important;
    grid-row:1!important;
    width:34px!important;
    height:40px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .lm-mobile-header-cart>span.lm-css-cart-icon{
    display:block!important;
    width:27px!important;
    height:27px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent url("categories/cart.svg") center/contain no-repeat!important;
    box-shadow:none!important;
    filter:brightness(0) invert(1)!important;
  }
  .lm-header-cart-count{
    right:-2px!important;top:0!important;
    min-width:16px!important;height:16px!important;padding:0 3px!important;
    border:1px solid #fff!important;background:#ee4d2d!important;color:#fff!important;
    font-size:10px!important
  }
  .lm-mobile-menu-btn{grid-column:4!important;grid-row:1!important}
  body.lm-has-header-cart-trigger #lm-cart:not(.lm-cart-open){display:none!important}
}
html body.lm-cart-collapsed #lm-cart,
html body:not(.lm-cart-open) #lm-cart{
  width:48px!important;min-width:48px!important;max-width:48px!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow:visible!important
}
html body.lm-cart-collapsed #lm-cart>b,
html body:not(.lm-cart-open) #lm-cart>b{
  width:48px!important;height:48px!important;min-height:48px!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important
}
html body.lm-cart-collapsed #lm-cart-toggle,
html body:not(.lm-cart-open) #lm-cart-toggle{
  position:absolute!important;inset:0!important;
  width:48px!important;min-width:48px!important;height:48px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent url("categories/cart.svg") center/32px 32px no-repeat!important;
  color:transparent!important;box-shadow:none!important
}

/* === V65 visible mobile cart + reserved desktop search spacing === */
@media(max-width:760px){
  .lm-mobile-header-cart>span.lm-css-cart-icon{
    background:#ee4d2d!important;
    -webkit-mask:url("categories/cart.svg") center/contain no-repeat!important;
    mask:url("categories/cart.svg") center/contain no-repeat!important;
    filter:none!important;
    opacity:1!important;
  }
}
@media(min-width:761px){
  .lm-brand-store-bar{
    grid-template-columns:auto minmax(170px,280px) minmax(320px,720px) 72px!important;
    justify-content:start!important;
  }
  .lm-brand-store-bar:after{
    content:"";
    display:block;
    grid-column:4;
    width:72px;
    height:1px;
    pointer-events:none;
  }
  .lm-brand-search{
    grid-column:3!important;
    width:100%!important;
    max-width:720px!important;
  }
}

/* V66 final mobile layer: keep edit and floating cart separated. */
@media(max-width:760px){
  body.lm-product-page.lm-cart-collapsed #lm-cart,
  body.lm-product-page:not(.lm-cart-open) #lm-cart{
    top:auto!important;
    left:auto!important;
    right:14px!important;
    bottom:calc(18px + env(safe-area-inset-bottom))!important;
  }
  body.lm-product-page .lm-floating-edit{
    right:74px!important;
    bottom:calc(18px + env(safe-area-inset-bottom))!important;
    max-width:calc(100vw - 146px)!important;
    min-height:48px!important;
    padding:0 14px!important;
    white-space:nowrap!important;
  }
}

/* === V67 purchasable store products + brand-colored actions === */
.lm-products.v100-products .v16-action:not(.lm-inquiry-disabled),
.lm-products.v100-products .v16-action:not(.lm-inquiry-disabled):hover{
  background:var(--card-primary,#16894a)!important;
  color:#fff!important;
}
.lm-products.v100-products .v16-action:not(.lm-inquiry-disabled):hover{
  filter:brightness(.92)!important;
}
body.lm-brand-store-page .lm-brand-product-card .lm-add:not(.lm-inquiry-disabled){
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  margin-top:auto!important;
  border:0!important;
  border-radius:9px!important;
  background:var(--store-primary,#16894a)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.lm-brand-store-page .lm-brand-product-card .lm-add:not(.lm-inquiry-disabled):hover{
  filter:brightness(.92)!important;
}

/* === V68 keep the floating cart on every mobile storefront page === */
@media(max-width:760px){
  body.lm-has-header-cart-trigger.lm-cart-collapsed #lm-cart,
  body.lm-has-header-cart-trigger:not(.lm-cart-open) #lm-cart,
  body.lm-cart-collapsed #lm-cart,
  body:not(.lm-cart-open) #lm-cart{
    display:block!important;
    position:fixed!important;
    top:auto!important;
    left:auto!important;
    right:14px!important;
    bottom:calc(18px + env(safe-area-inset-bottom))!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    z-index:9996!important;
  }
  body.lm-has-header-cart-trigger.lm-cart-collapsed #lm-cart>b,
  body.lm-has-header-cart-trigger:not(.lm-cart-open) #lm-cart>b,
  body.lm-cart-collapsed #lm-cart>b,
  body:not(.lm-cart-open) #lm-cart>b{
    display:block!important;
    position:relative!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:0!important;
  }
  body.lm-has-header-cart-trigger.lm-cart-collapsed #lm-cart-toggle,
  body.lm-has-header-cart-trigger:not(.lm-cart-open) #lm-cart-toggle,
  body.lm-cart-collapsed #lm-cart-toggle,
  body:not(.lm-cart-open) #lm-cart-toggle{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:var(--store-primary,#16894a)!important;
    -webkit-mask:url("categories/cart.svg") center/34px 34px no-repeat!important;
    mask:url("categories/cart.svg") center/34px 34px no-repeat!important;
    box-shadow:none!important;
    color:transparent!important;
  }
  body.lm-cart-collapsed #lm-cart-count,
  body:not(.lm-cart-open) #lm-cart-count{
    position:absolute!important;
    right:-3px!important;
    top:-4px!important;
    z-index:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:17px!important;
    height:17px!important;
    margin:0!important;
    padding:0 3px!important;
    border:1px solid #fff!important;
    border-radius:999px!important;
    background:#ee4d2d!important;
    color:#fff!important;
    font-size:10px!important;
    line-height:1!important;
  }
}

/* === V69 one cart icon in the expanded cart header === */
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart>b::before{
  content:none!important;
  display:none!important;
}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-title-icon{
  display:inline-block!important;
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  margin:0 8px 0 0!important;
  background:url("categories/cart.svg") center/contain no-repeat!important;
}

/* === V70 product variants, add-ons and editable first video === */
.first-media-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}
.variant-editor-card{display:grid;gap:18px}
.variant-editor-head h3,.variant-editor-head p{margin:0}.variant-editor-head p,.variant-help{color:#64748b;font-size:13px}
.variant-editor-section{display:grid;gap:10px;padding:15px;border:1px solid #e5e7eb;border-radius:12px;background:#fafbfc}
.variant-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.variant-section-title button,.variant-edit-row>button{border:1px solid #cfd8e3;border-radius:8px;background:#fff;color:#334155;padding:8px 11px;font-weight:800;cursor:pointer}
.variant-edit-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(240px,1.3fr) auto;gap:9px;align-items:center}
.variant-edit-row.combo-row{grid-template-columns:minmax(220px,1.4fr) 100px 100px minmax(130px,.7fr) auto}
.variant-edit-row.addon-row{grid-template-columns:minmax(220px,1fr) 130px 100px auto}
.variant-edit-row.addon-row>label{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0}
.lm-product-variants{display:grid;gap:15px;margin:16px 0;padding:18px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.lm-variant-group{display:grid;gap:9px}.lm-variant-group>b,.lm-addon-group>b{font-size:14px;color:#334155}
.lm-variant-group>div{display:flex;flex-wrap:wrap;gap:8px}
.lm-variant-group button{min-width:58px;border:2px solid #cbd5e1;border-radius:9px;background:#fff;color:#263242;padding:9px 13px;font:inherit;font-weight:800;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s}
.lm-variant-group button:hover:not(:disabled){border-color:#16894a;background:#ecfdf3;color:#087443;transform:translateY(-1px)}
.lm-variant-group button.on{border-color:#0b713b!important;background:#16894a!important;color:#fff!important;box-shadow:0 0 0 3px rgba(22,137,74,.18)!important}
.lm-variant-group button:disabled,.lm-variant-group button.unavailable{border-color:#e2e8f0!important;background:#e9edf2!important;color:#94a3b8!important;text-decoration:line-through;cursor:not-allowed;box-shadow:none!important;transform:none!important}
.lm-product-price-pair{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
.lm-product-price-pair .lm-sale-price{display:inline-flex;align-items:center;gap:8px;background:#c8102e!important;color:#fff!important;border-radius:999px;padding:10px 20px;font-size:25px!important;line-height:1.15}
.lm-product-price-pair .lm-sale-price span{font-size:.72em;letter-spacing:.04em}
.lm-product-price-pair .lm-original-price{font-size:20px;font-weight:800;color:#475569}
.lm-product-price-pair .lm-original-price del{color:#475569;text-decoration-thickness:2px}
.lm-product-quantity{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0;padding:13px 15px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}
.lm-product-quantity>b{color:#334155;font-size:14px}
.lm-product-quantity-control{display:grid;grid-template-columns:42px 66px 42px;align-items:center;border:1px solid #b9c5d3;border-radius:10px;overflow:hidden;background:#fff}
.lm-product-quantity-control button{height:42px;border:0;background:#e8f5ed;color:#087443;font-size:23px;font-weight:900;cursor:pointer}
.lm-product-quantity-control button:hover{background:#16894a;color:#fff}
.lm-product-quantity-control input{width:100%;height:42px;border:0;border-left:1px solid #dbe3ec;border-right:1px solid #dbe3ec;text-align:center;font-size:17px;font-weight:900;color:#1e293b;appearance:textfield;-moz-appearance:textfield}
.lm-product-quantity-control input::-webkit-inner-spin-button,.lm-product-quantity-control input::-webkit-outer-spin-button{appearance:none;margin:0}
.lm-product-quantity small{color:#64748b;font-weight:700}
.lm-addon-group{display:grid;gap:9px}.lm-addon-group label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:9px}.lm-addon-group em{margin-left:auto;color:var(--lm-brand-primary,#16894a);font-style:normal;font-size:12px;font-weight:900}
.lm-variant-selection-status{padding:10px 12px;border-radius:9px;background:#f1f5f9;color:#475569;font-size:13px;font-weight:800}
.lm-variant-selection-status.ready{background:#ecfdf3;color:#087443}
.lm-mini-cart-product small,.lm-order-variant{display:block;margin-top:3px;color:#64748b;font-size:11px;font-style:normal}
.lm-choose-variant{text-align:center;text-decoration:none}
@media(max-width:760px){
  .first-media-editor{grid-template-columns:1fr}
  .variant-edit-row,.variant-edit-row.combo-row,.variant-edit-row.addon-row{grid-template-columns:1fr}
  .variant-edit-row>button{justify-self:start}
  .lm-product-variants{margin:12px 0;padding:14px;border-radius:12px}
  .lm-variant-group button{min-height:40px;font-size:15px}
  .lm-addon-group label{font-size:15px}
  .lm-product-quantity{justify-content:space-between}.lm-product-quantity small{width:100%}.lm-product-quantity-control{grid-template-columns:46px 68px 46px}.lm-product-quantity-control button,.lm-product-quantity-control input{height:46px}
}

/* === V71 branded, compact admin navigation === */
body.lm-admin-branded .zjb-admin-topbar{
  background:var(--admin-brand)!important;
  color:var(--admin-menu-text)!important;
  border-right:0!important;
  box-shadow:6px 0 24px rgba(15,23,42,.14)!important;
}
body.lm-admin-branded .zjb-admin-brand{
  display:flex!important;align-items:center!important;gap:11px!important;
  min-width:0!important;padding:5px 9px 16px!important;margin-bottom:9px!important;
  background:transparent!important;border-bottom:1px solid color-mix(in srgb,var(--admin-menu-text) 24%,transparent)!important;
  color:inherit!important;text-decoration:none!important;cursor:pointer;
}
.zjb-admin-brand-logo{width:42px;height:42px;flex:0 0 42px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}
body.lm-admin-branded .zjb-admin-brand>div{min-width:0}
body.lm-admin-branded .zjb-admin-brand b{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--admin-menu-text)!important;font-size:17px!important;line-height:1.25!important;
}
body.lm-admin-branded .zjb-admin-brand small{
  margin-top:3px!important;color:color-mix(in srgb,var(--admin-menu-text) 76%,transparent)!important;
  font-size:12px!important;white-space:nowrap!important;
}
body.lm-admin-branded .zjb-sidebar-toggle{
  color:var(--admin-menu-text)!important;background:color-mix(in srgb,var(--admin-menu-text) 12%,transparent)!important;
  border-color:color-mix(in srgb,var(--admin-menu-text) 28%,transparent)!important;
}
body.lm-admin-branded .zjb-admin-menu{gap:5px!important;min-height:0!important}
body.lm-admin-branded .zjb-menu-group{
  position:static!important;display:flex!important;flex-direction:column!important;
  width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;
}
body.lm-admin-branded .zjb-menu-group>button{
  position:static!important;order:1!important;flex:0 0 42px!important;
  color:var(--admin-menu-text)!important;background:transparent!important;
  height:42px!important;border-radius:9px!important;padding:0 13px!important;
}
body.lm-admin-branded .zjb-menu-group.on>button,
body.lm-admin-branded .zjb-menu-group>button:hover{
  color:var(--admin-brand)!important;background:var(--admin-menu-text)!important;
  border-left:0!important;padding-left:13px!important;
}
body.lm-admin-branded .zjb-menu-group:not(.on)>.zjb-menu-drop{display:none!important}
body.lm-admin-branded .zjb-menu-group.on>.zjb-menu-drop{
  order:2!important;
  position:static!important;inset:auto!important;display:block!important;
  width:auto!important;min-width:0!important;height:auto!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
  float:none!important;overflow:visible!important;
}

/* === V73 downward menu + dedicated partner product list === */
.lm-products-workspace.is-single-partner>.lm-products-toolbar,
.lm-products-workspace.is-single-partner .lm-product-create-panel,
.lm-products-workspace.is-single-partner .lm-splitter{display:none!important}
.lm-products-workspace.is-single-partner .lm-resizable-products{
  display:block!important;grid-template-columns:1fr!important;margin:0!important;
}
.lm-single-partner-product-head{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  margin:22px 24px 16px;padding:22px 24px;border-radius:18px;background:#fff;
  border:1px solid #e2e8f0;box-shadow:0 10px 30px rgba(15,23,42,.06)
}
.lm-single-partner-identity{display:flex;align-items:center;gap:16px;min-width:0}
.lm-single-partner-identity img{width:68px;height:68px;object-fit:contain;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:5px}
.lm-single-partner-identity small{color:var(--admin-brand);font-weight:900}
.lm-single-partner-identity h1{margin:3px 0;font-size:27px;line-height:1.2}
.lm-single-partner-identity p{margin:0;color:#64748b}
.lm-single-partner-product-head>div:last-child{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.lm-single-partner-product-head>div:last-child a{
  display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:0 16px;
  border-radius:9px;background:var(--admin-brand);color:var(--admin-menu-text);font-weight:900;text-decoration:none
}
.lm-single-partner-product-head>div:last-child a.secondary{background:#fff;color:#334155;border:1px solid #cbd5e1}
.lm-products-workspace.is-single-partner .lm-product-list-panel{margin:0 24px!important;width:auto!important}
.lm-products-workspace.is-single-partner .lm-partner-filter{display:none!important}
.lm-products-workspace.is-single-partner .lm-product-list-head h2{font-size:25px!important}
.lm-products-workspace.is-single-partner .lm-product-list-head p{font-size:14px!important}
.lm-products-workspace.is-single-partner .lm-product-list-panel .lm-table-scroll{max-height:none!important}
.lm-products-workspace.is-single-partner .lm-product-admin-table{min-width:1050px!important;width:100%!important}
.lm-products-workspace.is-single-partner .lm-product-admin-table th{height:54px!important;font-size:14px!important}
.lm-products-workspace.is-single-partner .lm-product-admin-table td{padding:18px 14px!important;font-size:15px!important}
.lm-products-workspace.is-single-partner .lm-admin-product-thumb{width:86px!important;height:86px!important}
.lm-products-workspace.is-single-partner .lm-product-title-cell{width:22em!important;min-width:22em!important}
.lm-products-workspace.is-single-partner .lm-product-title-cell .lm-product-title-link{
  width:auto!important;max-width:21em!important;font-size:17px!important;line-height:1.5!important;word-break:normal!important
}
.lm-products-workspace.is-single-partner .lm-product-title-cell small{width:auto!important;font-size:13px!important}
.lm-products-workspace.is-single-partner .lm-source-pill,
.lm-products-workspace.is-single-partner .lm-kind-pill,
.lm-products-workspace.is-single-partner .lm-status-pill{font-size:13px!important}
@media(max-width:900px){
  .lm-single-partner-product-head{margin:12px;align-items:flex-start;flex-direction:column;padding:17px}
  .lm-single-partner-product-head>div:last-child{width:100%;justify-content:stretch}
  .lm-single-partner-product-head>div:last-child a{flex:1}
  .lm-products-workspace.is-single-partner .lm-product-list-panel{margin:0 12px!important}
}
body.lm-admin-branded .zjb-menu-drop{padding:4px 4px 7px 9px!important}
body.lm-admin-branded .zjb-menu-drop a{
  color:color-mix(in srgb,var(--admin-menu-text) 86%,transparent)!important;
  padding:8px 11px!important;border-radius:7px!important;font-size:13px!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.lm-admin-branded .zjb-menu-drop a:hover{
  color:var(--admin-menu-text)!important;
  background:color-mix(in srgb,var(--admin-menu-text) 14%,transparent)!important;
}
body.lm-admin-branded .zjb-admin-account{
  border-top-color:color-mix(in srgb,var(--admin-menu-text) 22%,transparent)!important;
}
body.lm-admin-branded .zjb-admin-user b{color:var(--admin-menu-text)!important}
body.lm-admin-branded .zjb-admin-user small{color:color-mix(in srgb,var(--admin-menu-text) 68%,transparent)!important}
body.lm-admin-branded .zjb-admin-user-icon{background:color-mix(in srgb,var(--admin-menu-text) 15%,transparent)!important}
body.lm-admin-branded .zjb-admin-logout{
  border-color:color-mix(in srgb,var(--admin-menu-text) 30%,transparent)!important;
  background:color-mix(in srgb,var(--admin-menu-text) 10%,transparent)!important;
  color:var(--admin-menu-text)!important;
}
@media(max-width:900px){
  body.lm-admin-branded .lm-admin{padding-left:0!important}
  body.lm-admin-branded .zjb-admin-topbar{
    position:relative!important;inset:auto!important;width:100%!important;height:auto!important;
    min-height:100vh!important;margin:0 0 18px!important;padding:14px!important;
    display:flex!important;flex-direction:column!important;overflow:visible!important;
    border-radius:0 0 24px 24px!important;background:var(--admin-brand)!important;
  }
  body.lm-admin-branded .zjb-admin-brand{
    order:1!important;display:flex!important;width:100%!important;padding:2px 4px 14px!important;
  }
  body.lm-admin-branded .zjb-admin-brand-logo{width:54px!important;height:54px!important;flex-basis:54px!important}
  body.lm-admin-branded .zjb-sidebar-toggle{
    order:2!important;display:grid!important;place-items:center!important;
    width:46px!important;height:46px!important;margin:0 0 10px 4px!important;
  }
  body.lm-admin-branded .zjb-admin-menu{
    order:3!important;display:flex!important;position:static!important;width:100%!important;
    flex-direction:column!important;grid-template-columns:none!important;
  }
  body.lm-admin-branded .zjb-menu-group{display:block!important;position:static!important;width:100%!important;height:auto!important}
  body.lm-admin-branded .zjb-menu-group>button{display:block!important;width:100%!important;position:static!important;margin:0!important}
  body.lm-admin-branded .zjb-menu-group.on>.zjb-menu-drop{
    position:static!important;display:block!important;margin:0!important;padding:5px 4px 9px 14px!important;
  }
  body.lm-admin-branded .zjb-menu-drop a{
    display:block!important;position:static!important;min-height:42px!important;height:auto!important;
    padding:10px 12px!important;margin:0!important;line-height:1.35!important;
  }
  body.lm-admin-branded .zjb-admin-account{order:4!important;display:block!important;margin-top:22px!important}
  body.lm-admin-branded .zjb-mobile-menu{display:none!important}
  body.lm-admin-branded .zjb-mobile-menu select{border:0!important;color:var(--admin-menu-text)!important;background:var(--admin-brand)!important}
}

/* === V74 real-flow admin accordion: no overlay, no transparent stacking === */
body.lm-admin-branded .lm-admin-nav-v74{
  display:flex!important;flex-direction:column!important;gap:8px!important;
  position:static!important;width:100%!important;height:auto!important;
  min-height:0!important;overflow:visible!important;isolation:isolate!important;
  flex:0 0 auto!important;
}
body.lm-admin-branded .lm-admin-nav-v74 details{
  display:block!important;position:static!important;inset:auto!important;
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--admin-menu-text) 34%,var(--admin-brand))!important;
  border-radius:11px!important;background:var(--admin-brand)!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
  flex:0 0 auto!important;
}
body.lm-admin-branded .lm-admin-nav-v74 summary{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  position:static!important;width:100%!important;min-height:48px!important;
  margin:0!important;padding:0 15px!important;box-sizing:border-box!important;
  list-style:none!important;cursor:pointer!important;user-select:none!important;
  color:var(--admin-menu-text)!important;background:var(--admin-brand)!important;
  font-size:16px!important;font-weight:900!important;line-height:1.3!important;
  flex:0 0 auto!important;overflow:visible!important;white-space:normal!important;
}

/* === V75 full menu labels + two-row partner products === */
body.lm-admin-branded .lm-admin-nav-v74 details:not([open]){min-height:50px!important;height:50px!important}
body.lm-admin-branded .lm-admin-nav-v74 details:not([open])>summary{height:50px!important;min-height:50px!important}
.lm-products-workspace.is-single-partner .lm-table-scroll{overflow:auto!important}
.lm-partner-product-table-v75{
  width:100%!important;min-width:1120px!important;border-collapse:separate!important;border-spacing:0!important;
  table-layout:fixed!important;background:#fff;font-size:15px
}
.lm-partner-product-table-v75 th,.lm-partner-product-table-v75 td{
  padding:12px 11px!important;border-right:1px solid #cfd8d3!important;border-bottom:1px solid #cfd8d3!important;
  vertical-align:middle!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important
}
.lm-partner-product-table-v75 th:first-child,.lm-partner-product-table-v75 td:first-child{border-left:1px solid #cfd8d3!important}
.lm-partner-product-table-v75 thead th{border-top:1px solid #cfd8d3!important;background:#f7faf8!important;color:#24352d;font-size:14px;font-weight:900;text-align:left}
.lm-partner-product-table-v75 thead th:nth-child(1){width:112px;text-align:center}
.lm-partner-product-table-v75 thead th:nth-child(2){width:72px}
.lm-partner-product-table-v75 thead th:nth-child(3){width:110px}
.lm-partner-product-table-v75 thead th:nth-child(4){width:100px}
.lm-partner-product-table-v75 thead th:nth-child(5){width:130px}
.lm-partner-product-table-v75 thead th:nth-child(6){width:90px}
.lm-partner-product-table-v75 thead th:nth-child(7){width:100px}
.lm-partner-product-table-v75 thead th:nth-child(8){width:320px}
.lm-partner-product-table-v75 thead a{color:#0756c8!important;font-weight:900;text-decoration:underline}
.lm-partner-product-table-v75 tbody tr:nth-child(4n+1) td,
.lm-partner-product-table-v75 tbody tr:nth-child(4n+2) td{background:#eaf5e6!important}
.lm-partner-product-table-v75 tbody tr:nth-child(4n+3) td,
.lm-partner-product-table-v75 tbody tr:nth-child(4n+4) td{background:#fff!important}
.lm-partner-product-thumb-cell{text-align:center!important}
.lm-partner-product-thumb-cell img{display:block;width:88px;height:88px;margin:auto;object-fit:cover;border-radius:10px;border:1px solid #dbe3df;background:#fff}
.lm-partner-product-id{vertical-align:top!important;font-size:16px}
.lm-partner-product-title-row>td:last-child{padding-top:14px!important;padding-bottom:14px!important}
.lm-partner-product-title{display:block;color:#0756c8!important;font-size:18px;font-weight:950;line-height:1.5;text-decoration:underline;word-break:normal;overflow-wrap:anywhere}
.lm-partner-product-title-row small{display:block;margin-top:4px;color:#667085;font-size:13px}
.lm-partner-product-meta-row td{min-height:58px;font-size:15px}
.lm-partner-product-meta-row strong{font-size:16px}
.lm-partner-product-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}
.lm-partner-product-actions>a{color:#0756c8!important;font-weight:900;text-decoration:underline}
.lm-partner-product-actions form{display:inline-flex!important;align-items:center!important;margin:0!important}
.lm-partner-product-actions label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;color:#172033;font-size:14px}
.lm-partner-product-actions button{min-height:34px!important;padding:5px 8px!important;border:1px solid #b9c5bf!important;border-radius:6px!important;background:#fff!important;font-weight:800!important}
@media(max-width:900px){
  body.lm-admin-branded .lm-admin-nav-v74{flex-shrink:0!important}
  body.lm-admin-branded .lm-admin-nav-v74 details{flex-shrink:0!important}
  .lm-partner-product-table-v75{min-width:1000px!important}
}
body.lm-admin-branded .lm-admin-nav-v74 summary::-webkit-details-marker{display:none!important}
body.lm-admin-branded .lm-admin-nav-v74 summary::after{content:"⌄";font-size:14px;line-height:1}
body.lm-admin-branded .lm-admin-nav-v74 details[open]>summary{
  color:var(--admin-brand)!important;background:var(--admin-menu-text)!important;
}
body.lm-admin-branded .lm-admin-nav-v74 details[open]>summary::after{content:"⌃"}
body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links{
  display:grid!important;position:static!important;inset:auto!important;
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:9px!important;gap:6px!important;
  box-sizing:border-box!important;overflow:visible!important;
  background:color-mix(in srgb,var(--admin-brand) 82%,#ffffff)!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
}
body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a{
  display:flex!important;align-items:center!important;position:static!important;
  width:100%!important;min-height:44px!important;height:auto!important;
  margin:0!important;padding:10px 13px!important;box-sizing:border-box!important;
  border:1px solid color-mix(in srgb,var(--admin-menu-text) 18%,var(--admin-brand))!important;
  border-radius:8px!important;
  color:var(--admin-menu-text)!important;
  background:color-mix(in srgb,var(--admin-brand) 88%,var(--admin-menu-text))!important;
  font-size:14px!important;font-weight:800!important;line-height:1.35!important;
  text-decoration:none!important;white-space:normal!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
}
body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a:hover{
  color:var(--admin-brand)!important;background:var(--admin-menu-text)!important;
}
body.lm-admin-branded .lm-admin-nav-v74 summary>span,body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a>span{display:inline-grid;place-items:center;width:24px;flex:0 0 24px;font-size:16px;line-height:1}
body.lm-admin-branded .lm-admin-nav-v74 summary{display:flex!important;align-items:center!important;gap:8px!important}
body.lm-admin-branded .lm-admin-nav-v74 summary::after{margin-left:auto}
body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a{display:flex!important;align-items:center!important;gap:8px!important}
body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-settings-single{order:-10;border-color:color-mix(in srgb,var(--admin-menu-text) 62%,var(--admin-brand))!important}
@media(max-width:900px){
  body.lm-admin-branded .lm-admin-nav-v74{
    order:3!important;display:flex!important;position:static!important;width:100%!important;
  }
  body.lm-admin-branded .lm-admin-nav-v74 details,
  body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links,
  body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a{
    position:static!important;float:none!important;clear:both!important;
  }
  body.lm-admin-branded .lm-admin-nav-v74 summary{min-height:52px!important;font-size:17px!important}
  body.lm-admin-branded .lm-admin-nav-v74 .lm-admin-nav-links a{min-height:48px!important;font-size:15px!important}
}
body.lm-admin-branded .lm-admin-nav-v74 details:not([open]){height:auto!important;min-height:54px!important}
body.lm-admin-branded .lm-admin-nav-v74 details:not([open])>summary{height:auto!important;min-height:54px!important;padding-top:10px!important;padding-bottom:10px!important}

/* === V76 visible partner product action labels === */
body.lm-admin-branded .lm-partner-product-actions button.lm-localize-btn{
  color:#24352d!important;background:#ffffff!important;border-color:#91a39a!important;
  -webkit-text-fill-color:#24352d!important;opacity:1!important;
}
body.lm-admin-branded .lm-partner-product-actions button.lm-danger-btn{
  color:#c62828!important;background:#fff5f5!important;border-color:#e25555!important;
  -webkit-text-fill-color:#c62828!important;opacity:1!important;
}

/* === V77 store product navigator: status/search/sort/10 per page === */
body.worker-product-body{--publish-list-width:clamp(320px,23vw,390px)!important}
body.worker-product-body .worker-product-list{max-height:calc(100vh - 104px)!important}
body.worker-product-body .worker-list-head{align-items:flex-start!important}
body.worker-product-body .worker-list-head>div{min-width:0}
body.worker-product-body .worker-list-head b{
  display:block!important;max-width:220px!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important
}
body.worker-product-body .worker-list-filter-v77{display:grid!important;gap:8px!important;padding:12px!important}
body.worker-product-body .worker-list-filter-v77>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
body.worker-product-body .worker-list-filter-v77 input,
body.worker-product-body .worker-list-filter-v77 select{
  width:100%!important;min-width:0!important;height:40px!important;border:1px solid #ccd5df!important;
  border-radius:9px!important;background:#fff!important;color:#26344a!important;padding:0 10px!important;font-size:13px!important
}
body.worker-product-body .worker-list-filter-v77 button{
  width:100%!important;min-height:40px!important;border:0!important;border-radius:9px!important;
  background:var(--merchant-primary)!important;color:#fff!important;font-weight:900!important;cursor:pointer!important
}
body.worker-product-body .worker-product-items{max-height:calc(100vh - 360px)!important}
body.worker-product-body .worker-product-item{
  grid-template-columns:58px minmax(0,1fr) auto!important;min-height:84px!important;
  border-width:1px 1px 1px 5px!important
}
body.worker-product-body .worker-product-item.is-published{
  border-color:#198754!important;background:#f1fbf5!important;color:#163b27!important
}
body.worker-product-body .worker-product-item.is-published .worker-product-copy b{color:#087443!important}
body.worker-product-body .worker-product-item.is-unpublished{
  border-color:#626b76!important;background:#f0f2f4!important;color:#202832!important
}
body.worker-product-body .worker-product-item.is-unpublished .worker-product-copy b{color:#202832!important}
body.worker-product-body .worker-product-item.is-unpublished .worker-product-copy small,
body.worker-product-body .worker-product-item.is-unpublished .worker-product-copy span,
body.worker-product-body .worker-product-item.is-unpublished .worker-product-copy em{color:#59636f!important}
body.worker-product-body .worker-product-item.is-unpublished .worker-product-state.off{
  background:#d9dde2!important;color:#252b32!important
}
body.worker-product-body .worker-product-item.on{box-shadow:0 0 0 3px color-mix(in srgb,var(--merchant-primary) 20%,transparent)!important}
.worker-list-pagination{
  display:grid;grid-template-columns:42px 1fr 42px;gap:8px;align-items:center;
  padding:10px 12px 13px;border-top:1px solid #e6e9ee;background:#fff
}
.worker-list-pagination a,.worker-list-pagination span{
  display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:9px;
  border:1px solid #d8dee7;background:#fff;color:#243247;text-decoration:none;font-weight:900
}
.worker-list-pagination a:not(.disabled):hover{border-color:var(--merchant-primary);color:var(--merchant-primary)}
.worker-list-pagination a.disabled{pointer-events:none;opacity:.35}
.worker-list-pagination span{border:0;background:#f3f5f7}
@media(min-width:1024px) and (max-width:1499px){
  body.worker-product-body{--publish-list-width:clamp(290px,22vw,340px)!important}
}
@media(max-width:1023px){
  body.worker-product-body .worker-product-items{max-height:420px!important}
}

/* === V78 whole collapsed product rail is the expand button === */
body.worker-product-body .worker-product-list.is-collapsed{
  position:sticky!important;cursor:pointer!important;min-height:300px!important;
  outline:0!important;background:#fff!important;border:1px solid #d8e0e8!important;
  box-shadow:0 10px 26px rgba(15,23,42,.08)!important
}
body.worker-product-body .worker-product-list.is-collapsed:hover,
body.worker-product-body .worker-product-list.is-collapsed:focus{
  border-color:var(--merchant-primary)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--merchant-primary) 16%,transparent)!important
}
body.worker-product-body .worker-product-list.is-collapsed::after{
  content:"☰  展開商品"!important;display:flex!important;align-items:center!important;justify-content:center!important;
  writing-mode:vertical-rl!important;width:100%!important;min-height:230px!important;margin:8px 0 0!important;
  color:var(--merchant-primary)!important;background:#fff!important;font-size:17px!important;font-weight:950!important;
  letter-spacing:3px!important;pointer-events:none!important
}
body.worker-product-body .worker-product-list.is-collapsed .list-collapse-btn{
  display:grid!important;position:relative!important;z-index:2!important;
  width:38px!important;height:38px!important;margin:0 auto!important;padding:0!important;
  color:#fff!important;background:var(--merchant-primary)!important;border-color:var(--merchant-primary)!important
}
.lm-url-permission-note{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border-radius:14px;border:1px solid #d6dce5;background:#f7f9fc;color:#344054}.lm-url-permission-note b{font-size:15px}.lm-url-permission-note span{font-size:13px}.lm-url-permission-note.is-enabled{border-color:#a7dfbd;background:#effbf4;color:#08783b}.lm-url-permission-note.is-locked{border-color:#f0d5a5;background:#fffaf0;color:#8a4b08}.lm-store-form-grid label small{display:block;margin-top:6px;color:#667085;font-size:12px;line-height:1.5}.lm-inquiry-action{text-decoration:none;text-align:center}
.lm-line-qr-bind{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:9px}.lm-line-qr-generate{min-height:38px!important;padding:8px 13px!important;border:0!important;border-radius:10px!important;background:#06c755!important;color:#fff!important;font:inherit!important;font-size:13px!important;font-weight:900!important;cursor:pointer}.lm-line-qr-generate:disabled{opacity:.6;cursor:wait}.lm-line-qr-hint{font-size:12px;color:#667085;font-weight:700}.lm-line-qr-bind.is-bound .lm-line-qr-hint{color:#087443}.lm-line-qr-panel{width:100%;margin-top:4px;padding:15px;border:1px solid #b7e8c7;border-radius:16px;background:#f2fcf5;text-align:center}.lm-line-qr-panel[hidden]{display:none!important}.lm-line-qr-panel img{display:block;width:180px;height:180px;margin:0 auto 10px;padding:7px;border:1px solid #d8e2dc;border-radius:12px;background:#fff}.lm-line-qr-panel b,.lm-line-qr-panel small{display:block;line-height:1.55}.lm-line-qr-panel b{color:#173c29;font-size:14px}.lm-line-qr-panel small{color:#667085;font-size:12px}.lm-line-qr-panel a{display:inline-flex;margin-top:10px;padding:8px 12px;border-radius:9px;background:#fff;color:#087443;border:1px solid #99d7ae;text-decoration:none;font-size:12px;font-weight:900}@media(max-width:640px){.lm-line-qr-bind{display:grid}.lm-line-qr-generate{width:100%}.lm-line-qr-panel img{width:200px;height:200px}}

/* V83：購物車名稱依裝置呈現。桌機／平板最多兩行，價格與數量永不被擠壓。 */
#lm-cart .lm-mini-cart-product .lm-mini-cart-title-mobile{display:none!important}
@media(min-width:641px){
  html body #lm-cart,html body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart{width:min(680px,calc(100vw - 32px))!important}
  #lm-cart .lm-mini-cart-line{
    grid-template-columns:minmax(0,1fr) 88px 96px 28px!important;
    grid-template-rows:minmax(64px,auto)!important;
    min-height:64px!important;
    height:auto!important;
    gap:10px!important;
  }
  #lm-cart .lm-mini-cart-product{grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;min-width:0!important}
  #lm-cart .lm-mini-cart-product img{width:44px!important;height:44px!important}
  #lm-cart .lm-mini-cart-title-wrap{display:block!important;min-width:0!important;overflow:hidden!important}
  #lm-cart .lm-mini-cart-product .lm-mini-cart-title-desktop{
    display:-webkit-box!important;
    min-width:0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    white-space:normal!important;
    text-overflow:ellipsis!important;
    overflow-wrap:anywhere!important;
    font-size:12.5px!important;
    font-weight:700!important;
    line-height:1.38!important;
  }
  #lm-cart .lm-mini-cart-line>b{
    min-width:88px!important;
    font-size:13px!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  #lm-cart .lm-mini-cart-qty{width:96px!important;grid-template-columns:30px 36px 30px!important}
  #lm-cart .lm-mini-cart-remove{width:28px!important;min-width:28px!important}
}

/* V92：商品編輯頁左側店名與新增按鈕固定單行完整呈現。 */
body.worker-product-body .worker-list-head{
  gap:10px!important;
}
body.worker-product-body .worker-list-head>div:first-child{
  flex:1 1 auto!important;
  min-width:0!important;
}
body.worker-product-body .worker-list-head b{
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:clamp(13px,1.15vw,18px)!important;
  letter-spacing:-.035em!important;
  line-height:1.3!important;
}
body.worker-product-body .worker-list-head .worker-list-store-back{
  display:block!important;
  max-width:100%!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#172033!important;
  text-decoration:none!important;
}
body.worker-product-body .worker-list-head .worker-list-store-back:hover b{
  color:var(--merchant-primary)!important;
  text-decoration:underline!important;
  text-underline-offset:4px;
}
body.worker-product-body .worker-list-actions{
  flex:0 0 auto!important;
  flex-wrap:nowrap!important;
}
body.worker-product-body .worker-list-actions>a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:max-content!important;
  padding:8px 11px!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  line-height:1!important;
}

/* V94：首頁 51 項分頁、商品類型複選與排序工具。 */
.lm-home-product-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.lm-home-product-tools-top{margin:14px 0 4px!important}
.lm-home-product-filter{display:flex;align-items:end;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.lm-home-product-filter fieldset{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:7px 12px;border:1px solid #d7dee7;border-radius:11px;background:#fff}
.lm-home-product-filter legend{padding:0 5px;color:#667085;font-size:11px;font-weight:800}
.lm-home-product-filter fieldset label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:14px;font-weight:800;color:#344054}
.lm-home-product-filter input[type=checkbox]{width:17px;height:17px;accent-color:#16894a}
.lm-home-sort{display:grid!important;gap:4px!important;color:#667085!important;font-size:11px!important;font-weight:800!important}
.lm-home-sort select{min-width:138px;height:42px;padding:0 34px 0 11px;border:1px solid #d7dee7;border-radius:10px;background:#fff;color:#172033;font-size:14px}
@media(max-width:760px){
  .lm-home-product-tools{display:grid!important;align-items:stretch!important}
  .lm-home-product-filter{display:grid;grid-template-columns:1fr auto;justify-content:stretch}
  .lm-home-product-filter fieldset{grid-column:1/-1;justify-content:flex-start}
  .lm-home-product-filter .lm-home-sort{grid-column:1/-1}
  .lm-home-sort select{width:100%;min-width:0}
}

/* V95：每家店可設定店家頁頂部廣告 Banner。 */
.lm-brand-hero{display:grid!important;grid-template-columns:auto minmax(180px,320px) minmax(260px,1fr)!important}
.lm-brand-hero.no-banner{grid-template-columns:auto minmax(0,1fr)!important}
.lm-brand-hero-identity{min-width:0}
.lm-brand-hero-banner{justify-self:end;display:flex;align-items:center;justify-content:center;min-width:0;width:min(100%,var(--banner-max-width,900px));max-width:var(--banner-max-width,900px);max-height:var(--banner-max-height,160px);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.lm-brand-hero-banner>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}
.lm-store-editor-form{padding-bottom:96px}
.lm-store-save-dock{position:fixed;left:max(16px,calc(var(--admin-sidebar-width,0px) + 16px));right:18px;bottom:14px;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 16px;border:1px solid rgba(255,255,255,.7);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 14px 40px rgba(15,23,42,.2);backdrop-filter:blur(14px)}
.lm-store-save-dock>div{display:flex;flex-direction:column;gap:2px;color:#243247}.lm-store-save-dock>div span{font-size:12px;color:#667085}.lm-store-save-dock button{min-width:190px;min-height:48px;border:0;border-radius:12px;background:linear-gradient(100deg,#2f2d85,#e3261d);color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(47,45,133,.22)}
@media(max-width:760px){.lm-store-save-dock{left:10px;right:10px;bottom:10px;padding:10px}.lm-store-save-dock>div{display:none}.lm-store-save-dock button{width:100%;min-width:0}}
.lm-brand-hero-banner.fit-original img{display:block;width:auto;height:auto;max-width:100%;max-height:var(--banner-max-height,160px);object-fit:contain}
.lm-brand-hero-banner.fit-cover{height:var(--banner-max-height,160px)}
.lm-brand-hero-banner.fit-cover img{display:block;width:100%;height:100%;object-fit:cover}
.lm-store-banner-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:16px;align-items:end}
.lm-store-banner-setting>label:first-child{grid-column:1/-1}
.lm-store-banner-setting label{display:grid;gap:7px;font-weight:850;color:#344054}
.lm-store-banner-setting input{width:100%;min-height:44px;border:1px solid #cfd7e3;border-radius:10px;padding:10px 12px;background:#fff}
.lm-store-banner-options{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;align-items:start}
.lm-store-banner-options select{width:100%;min-height:44px;border:1px solid #cfd7e3;border-radius:10px;padding:8px 10px;background:#fff}
.lm-store-banner-options small{color:#667085;font-size:11px}
.lm-store-banner-preview{height:92px;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#f8fafc}
.lm-store-banner-preview img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:760px){
  .lm-brand-hero{grid-template-columns:auto minmax(0,1fr)!important}
  .lm-brand-hero-banner{grid-column:1/-1;justify-self:stretch;width:min(100%,var(--banner-max-width,900px));height:auto}
  .lm-brand-hero-banner.fit-cover{height:min(var(--banner-max-height,160px),42vw)}
  .lm-store-banner-setting{grid-template-columns:1fr}
  .lm-store-banner-options{grid-template-columns:1fr}
}
@media(max-width:640px){
  #lm-cart .lm-mini-cart-product .lm-mini-cart-title-desktop{display:none!important}
  #lm-cart .lm-mini-cart-product .lm-mini-cart-title-mobile{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #lm-cart .lm-mini-cart-title-wrap{display:block!important;min-width:0!important;overflow:hidden!important}
}
.lm-line-maintenance{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%}.lm-line-maintenance input{min-width:0;height:38px!important;border:1px solid #cfd6df!important;border-radius:10px!important;padding:0 11px!important;font-size:13px!important}.lm-line-maintenance button{min-height:38px!important;border:1px solid #99d7ae!important;border-radius:10px!important;background:#fff!important;color:#087443!important;padding:0 12px!important;font-size:12px!important;font-weight:900!important;cursor:pointer}.lm-line-qr-bind.is-unlocked .lm-line-qr-hint{color:#a15c00!important}@media(max-width:640px){.lm-line-maintenance{grid-template-columns:1fr}.lm-line-maintenance button{width:100%}}
.lm-cart-primary-actions{display:grid!important;grid-template-columns:minmax(130px,.72fr) minmax(170px,1.28fr)!important;gap:12px!important;width:100%!important;padding:0!important;margin:0!important;background:#fff!important}
#lm-cart .lm-cart-primary-actions button{display:block!important;position:static!important;width:100%!important;min-height:50px!important;margin:0!important;border-radius:8px!important;font-size:16px!important;font-weight:900!important;cursor:pointer!important;box-shadow:none!important}
#lm-cart .lm-cart-primary-actions .lm-cart-clear-action{border:1px solid #d7dde5!important;background:#fff!important;color:#344054!important}
#lm-cart .lm-cart-primary-actions #lm-checkout{border:0!important;background:#ee4d2d!important;color:#fff!important}
#lm-cart .lm-cart-primary-actions #lm-checkout:disabled{background:#d8dadd!important;cursor:not-allowed!important}
body.lm-cart-open:not(.lm-cart-collapsed) #lm-cart .lm-cart-primary-actions{display:grid!important}
body:not(.lm-cart-open) #lm-cart .lm-cart-primary-actions,body.lm-cart-collapsed #lm-cart .lm-cart-primary-actions{display:none!important}
@media(max-width:560px){.lm-cart-primary-actions{grid-template-columns:1fr 1.15fr!important;gap:8px!important}#lm-cart .lm-cart-primary-actions button{min-height:46px!important;font-size:15px!important}}

/* V107：商品頁右側廣告展開時，回頂端按鈕自動避開廣告軌。 */
@media(min-width:821px){
  body.lm-product-page .lm-scroll-top{transition:right .28s ease,opacity .2s ease,transform .2s ease!important}
  body.lm-product-page.lm-product-ad-rail-open .lm-scroll-top{right:218px!important}
}
@media(min-width:821px) and (max-width:1100px){
  body.lm-product-page.lm-product-ad-rail-open .lm-scroll-top{right:195px!important}
}

/* V108：每組第 1 則平台廣告採深彩底，所有文字使用高對比白色。 */
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child{
  color:#fff!important;
  background:linear-gradient(135deg,#4935d4 0%,#2865bb 52%,#119b9a 100%)!important;
  border-color:rgba(255,255,255,.28)!important;
  box-shadow:0 12px 26px rgba(35,58,150,.22)!important;
}
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child span,
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child b,
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child em{
  color:#fff!important;
  text-shadow:0 1px 3px rgba(0,0,0,.42)!important;
}

/* V111：每家品牌商城的識別與 Banner 永遠維持單行。 */
@media(max-width:760px){
  .lm-brand-store-page .lm-brand-hero.has-banner{
    display:grid!important;
    grid-template-columns:58px minmax(76px,.9fr) minmax(105px,1.5fr)!important;
    align-items:center!important;
    gap:7px!important;
    padding:10px!important;
    border-radius:14px!important;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-logo{
    grid-column:1!important;
    width:58px!important;
    height:48px!important;
    min-width:0!important;
    flex-basis:auto!important;
    border-radius:11px!important;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-logo img{padding:4px!important}
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-identity{
    grid-column:2!important;
    min-width:0!important;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-identity span{
    display:block;
    font-size:10px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-identity h1{
    margin:2px 0 0!important;
    font-size:15px!important;
    line-height:1.2!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-banner{
    grid-column:3!important;
    justify-self:stretch!important;
    width:100%!important;
    height:52px!important;
    max-width:none!important;
    max-height:52px!important;
    border-radius:9px!important;
  }
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-banner>a{height:100%!important}
  .lm-brand-store-page .lm-brand-hero.has-banner .lm-brand-hero-banner img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:52px!important;
    object-fit:contain!important;
  }
}

/* v106：商城品牌／篩選工具列精簡。桌機同列、手機單列橫向滑動。 */
@media (min-width:901px){
  .lm-home-discovery{display:grid!important;grid-template-columns:auto auto minmax(260px,1fr) auto;align-items:center;gap:10px 14px;padding:10px 18px!important}
  .lm-home-discovery-tabs{grid-column:2;grid-row:1;margin:0!important;white-space:nowrap}
  .lm-home-product-tools-top{display:contents!important}
  .lm-home-product-tools-top>div{grid-column:3;grid-row:1;display:flex;align-items:center;gap:10px;min-width:0;margin:0!important}
  .lm-home-product-filter{grid-column:4;grid-row:1;display:flex!important;align-items:center;gap:12px;white-space:nowrap;margin:0!important}
  .lm-home-product-filter fieldset{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:6px 10px!important}
  .lm-home-sort{display:flex!important;align-items:center;gap:8px;margin:0!important}
  .lm-home-panel[data-home-content="stores"]{grid-column:1;grid-row:1}
  .lm-home-panel[data-home-content="stores"] .lm-home-section-head{margin:0!important}
  .lm-home-panel:not(.on){display:none!important}
  .lm-home-panel[data-home-content="stores"].on{display:contents!important}
  .lm-home-panel[data-home-content="categories"].on{grid-column:1/-1;grid-row:2}
  .lm-home-brand-grid{grid-column:1/-1}
}
@media (max-width:900px){
  .lm-home-discovery{padding:8px 10px!important;overflow:hidden}
  .lm-home-discovery-tabs{display:flex!important;gap:4px;margin:0 0 7px!important}
  .lm-home-discovery-tabs button{padding:8px 11px!important;font-size:13px!important;white-space:nowrap}
  .lm-home-product-tools-top{display:flex!important;align-items:center!important;gap:8px!important;overflow-x:auto;padding:8px 2px!important;margin:0!important;scrollbar-width:none}
  .lm-home-product-tools-top::-webkit-scrollbar{display:none}
  .lm-home-product-tools-top>div{display:flex!important;align-items:center;gap:6px;min-width:max-content;margin:0!important}
  .lm-home-product-tools-top>div b{font-size:15px!important}.lm-home-product-tools-top>div span{font-size:12px!important;white-space:nowrap}
  .lm-home-product-filter{display:flex!important;align-items:center!important;gap:7px!important;min-width:max-content;margin:0!important}
  .lm-home-product-filter fieldset{display:flex!important;align-items:center;gap:7px;margin:0!important;padding:5px 7px!important}
  .lm-home-product-filter fieldset legend{display:none}.lm-home-product-filter label{font-size:12px!important;white-space:nowrap}
  .lm-home-sort{display:flex!important;align-items:center;gap:5px;margin:0!important}
  .lm-home-sort select{width:108px!important;min-width:108px!important;padding:7px!important}
  .lm-home-section-head{margin-top:8px!important}
}

/* V109：商品發布採獨立預覽、更新／立即上架雙狀態。 */
.publish-independent-preview{border:1px solid #475569!important;border-radius:9px!important;background:#fff!important;color:#172033!important;padding:11px 17px!important;font-weight:900!important;cursor:pointer!important}
.publish-independent-preview:before{content:'◉';margin-right:7px;color:var(--merchant-primary,#16894a)}
.publish-confirm-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:16px 18px;border:1px solid color-mix(in srgb,var(--merchant-primary,#16894a) 30%,#d8dee7);border-radius:14px;background:color-mix(in srgb,var(--merchant-primary,#16894a) 7%,#fff)}
.publish-confirm-actions>div{display:grid;gap:4px}.publish-confirm-actions b{color:#172033;font-size:16px}.publish-confirm-actions small{color:#64748b;line-height:1.5}.publish-confirm-actions .publish-save{min-width:160px;margin:0!important;background:var(--merchant-primary,#16894a)!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:13px 20px!important;font-weight:950!important;cursor:pointer!important}
@media(max-width:720px){.publish-confirm-actions{align-items:stretch;flex-direction:column}.publish-confirm-actions .publish-save{width:100%}.publish-head-actions{flex-wrap:wrap}.publish-independent-preview{order:1}.publish-primary-save{order:2}}
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child span{opacity:.92!important}
body.lm-product-page .lm-ad-slider .lm-ad-page>.lm-ad-card:first-child em{
  width:max-content;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.24)!important;
  box-shadow:none!important;
}

/* V112：商城後台統一深綠側欄與單色線條圖標。 */
body.lm-admin-branded .zjb-admin-topbar{background:#0b6b45!important;color:#fff!important}
body.lm-admin-branded .zjb-admin-brand{border-bottom-color:rgba(255,255,255,.2)!important}
.lm-admin-nav-v74 summary,.lm-admin-nav-v74 a{display:flex!important;align-items:center!important;gap:10px!important}
.zjb-nav-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.lm-admin-branded .lm-admin-nav-v74 summary{color:rgba(255,255,255,.94)!important;font-weight:750!important}
body.lm-admin-branded .lm-admin-nav-v74 details[open]>summary{background:#fff!important;color:#075d3c!important}
body.lm-admin-branded .lm-admin-nav-links a{color:rgba(255,255,255,.82)!important}
body.lm-admin-branded .lm-admin-nav-links a:hover{color:#fff!important;background:rgba(255,255,255,.14)!important}
body.lm-admin-branded .zjb-admin-user-icon{color:#fff!important}
body.lm-admin-branded .zjb-admin-logout{color:#fff!important}

/* V117：品牌專屬商城桌機版店家 LOGO 統一為 285 × 90，所有長寬比完整置中、不裁切。 */
@media(min-width:761px){
  .lm-brand-store-page .lm-brand-hero-logo{
    width:285px!important;
    height:90px!important;
    flex:0 0 285px!important;
    min-width:285px!important;
  }
  .lm-brand-store-page .lm-brand-hero-logo img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    padding:0!important;
    margin:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
  }
}
.lm-brand-store-page .lm-brand-hero-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.lm-brand-store-page .lm-brand-hero-logo>img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:0!important;
  margin:auto!important;
  object-fit:contain!important;
  transform:none!important;
  box-sizing:border-box!important;
}
.ops-sidebar{background:#0b6b45!important;color:#fff!important;border-right-color:#095a3a!important}
.ops-sidebar-brand{border-bottom-color:rgba(255,255,255,.2)!important}
.ops-sidebar-brand small{color:rgba(255,255,255,.72)!important}
.ops-side-group>span{color:rgba(255,255,255,.62)!important}
.ops-sidebar a{color:rgba(255,255,255,.92)!important}
.ops-sidebar a:hover{background:rgba(255,255,255,.13)!important;color:#fff!important}
.ops-sidebar a.on{background:#fff!important;color:#075d3c!important}
.ops-sidebar a.on .ops-side-icon{stroke:#075d3c!important}

/* V113: service / cleaning / inspection / advertising storefronts (isolated from product cards). */
.lm-service-profile-editor textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cbd8d1;border-radius:11px;padding:11px 12px;font:inherit;line-height:1.55;background:#fff}
.lm-service-profile-editor textarea:focus{outline:0;border-color:#16894a;box-shadow:0 0 0 3px rgba(22,137,74,.12)}
.lm-service-directory,.lm-service-site-main{max-width:1440px;margin:auto;padding:24px 20px 70px}
.lm-service-directory-hero{padding:38px;border-radius:28px;color:#fff;background:linear-gradient(125deg,#075e3d,#12915b 60%,#dba519)}
.lm-service-directory-hero>span,.lm-service-section-title>span,.lm-service-contact>div>span{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;opacity:.82}
.lm-service-directory-hero h1{font-size:38px;margin:8px 0}.lm-service-directory-hero p{margin:0;line-height:1.7;font-size:17px}
.lm-service-type-tabs{display:flex;gap:9px;overflow:auto;padding:20px 0 14px;scrollbar-width:none}.lm-service-type-tabs a{flex:0 0 auto;padding:10px 17px;border:1px solid #dce5df;border-radius:999px;background:#fff;color:#31443a;text-decoration:none;font-weight:850}.lm-service-type-tabs a.on{background:#087a49;border-color:#087a49;color:#fff}
.lm-service-directory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}.lm-service-directory-grid>a{display:grid;gap:9px;padding:22px;border:1px solid #e0e7e2;border-top:5px solid var(--brand);border-radius:22px;background:#fff;color:#18251e;text-decoration:none;box-shadow:0 10px 28px rgba(12,68,42,.07);transition:.2s}.lm-service-directory-grid>a:hover{transform:translateY(-4px);box-shadow:0 16px 35px rgba(12,68,42,.12)}
.lm-service-directory-logo{width:100px;height:66px;display:grid;place-items:center;border:1px solid #edf0ee;border-radius:14px;overflow:hidden}.lm-service-directory-logo img{max-width:100%;max-height:100%;object-fit:contain}.lm-service-directory-grid small{color:#087a49;font-weight:900}.lm-service-directory-grid h2{margin:0;font-size:21px}.lm-service-directory-grid p{margin:0;min-height:3em;color:#5d6c64;line-height:1.55}.lm-service-directory-grid em{font-size:12px;color:#66756d;font-style:normal}.lm-service-directory-grid strong{color:#087a49}.lm-service-directory-empty{padding:50px;text-align:center;border:1px dashed #bdcbc2;border-radius:22px;background:#fff}
.lm-service-breadcrumb{display:flex;gap:8px;align-items:center;overflow:auto;margin-bottom:16px;color:#68766e;font-size:13px}.lm-service-breadcrumb a{color:#087a49;text-decoration:none;white-space:nowrap}.lm-service-breadcrumb b{white-space:nowrap}
.lm-service-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);min-height:430px;overflow:hidden;border-radius:30px;background:linear-gradient(135deg,color-mix(in srgb,var(--service-primary) 11%,#fff),color-mix(in srgb,var(--service-secondary) 13%,#fff));border:1px solid color-mix(in srgb,var(--service-primary) 28%,#dfe7e2)}
.lm-service-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:48px}.lm-service-type-pill{padding:7px 13px;border-radius:999px;background:var(--service-primary);color:#fff;font-size:13px;font-weight:900}.lm-service-company{display:flex;align-items:center;gap:10px;margin-top:19px}.lm-service-company>span{width:72px;height:48px;display:grid;place-items:center;background:#fff;border-radius:12px;overflow:hidden}.lm-service-company img{max-width:100%;max-height:100%;object-fit:contain}.lm-service-company small{font-weight:850;color:#56655d}.lm-service-hero h1{max-width:720px;margin:16px 0 10px;font-size:clamp(32px,4.2vw,58px);line-height:1.08;letter-spacing:-.035em}.lm-service-hero p{max-width:680px;margin:0;color:#506058;font-size:17px;line-height:1.75}.lm-service-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.lm-service-hero-actions>a,.lm-service-primary-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 21px;border-radius:13px;border:1px solid var(--service-primary);color:var(--service-primary);background:#fff;text-decoration:none;font-weight:900}.lm-service-primary-action{background:var(--service-primary)!important;color:#fff!important}
.lm-service-hero-visual{min-width:0;background:#eef3ef}.lm-service-hero-visual img{width:100%;height:100%;display:block;object-fit:cover}.lm-service-hero-placeholder{display:grid;place-items:center;align-content:center;gap:14px;color:var(--service-primary)}.lm-service-hero-placeholder span{font-size:86px}.lm-service-hero-placeholder b{font-size:22px}
.lm-service-section{margin-top:26px;padding:32px;border:1px solid #e1e8e3;border-radius:24px;background:#fff}.lm-service-section-title h2{margin:5px 0 0;font-size:28px}.lm-service-section-title>span{color:var(--service-primary)}.lm-service-about>p{font-size:17px;line-height:1.85;color:#44554c}
.lm-service-item-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px;margin-top:20px}.lm-service-item-grid article{display:flex;align-items:center;gap:12px;padding:17px;border-radius:16px;background:#f5f8f6}.lm-service-item-grid article>span{color:var(--service-primary);font-weight:950}.lm-service-item-grid h3{margin:0;font-size:16px}
.lm-service-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:20px}.lm-service-feature-grid>div{display:flex;gap:10px;align-items:center;padding:15px;border:1px solid #e1e9e4;border-radius:14px}.lm-service-feature-grid i{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--service-primary);color:#fff;font-style:normal;font-weight:900}
.lm-service-process{display:flex;gap:10px;overflow:auto;margin:20px 0 0;padding:0;list-style:none}.lm-service-process li{flex:1 0 170px;display:flex;gap:11px;align-items:center;padding:16px;border-radius:15px;background:color-mix(in srgb,var(--service-primary) 8%,#fff)}.lm-service-process li>b{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--service-primary);color:#fff}
.lm-service-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:20px}.lm-service-gallery button{aspect-ratio:4/3;padding:0;overflow:hidden;border:0;border-radius:16px;background:#edf2ee;cursor:zoom-in}.lm-service-gallery img{width:100%;height:100%;object-fit:cover;transition:.2s}.lm-service-gallery button:hover img{transform:scale(1.035)}
.lm-service-contact{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr) auto;gap:24px;align-items:center;margin-top:26px;padding:34px;border-radius:24px;background:#14241c;color:#fff}.lm-service-contact h2{margin:5px 0}.lm-service-contact p{margin:6px 0 0;color:#b9c9c0}.lm-service-contact dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.lm-service-contact dl>div{min-width:0}.lm-service-contact dt{font-size:12px;color:#a8b9af}.lm-service-contact dd{margin:3px 0 0;overflow-wrap:anywhere}.lm-service-contact dd a{color:#fff}.lm-service-no-cart-note{text-align:center;margin:18px;color:#718078;font-size:12px}
.lm-service-lightbox{width:min(920px,90vw);padding:42px 16px 16px;border:0;border-radius:20px;background:#111}.lm-service-lightbox::backdrop{background:rgba(0,0,0,.78)}.lm-service-lightbox img{display:block;max-width:100%;max-height:80vh;margin:auto}.lm-service-lightbox button{position:absolute;right:9px;top:7px;width:32px;height:32px;border:0;border-radius:50%;background:#fff;font-size:22px}
@media(max-width:820px){.lm-service-directory,.lm-service-site-main{padding:14px 12px 55px}.lm-service-directory-hero{padding:25px}.lm-service-directory-hero h1{font-size:29px}.lm-service-hero{grid-template-columns:1fr;min-height:0}.lm-service-hero-copy{padding:28px 22px}.lm-service-hero-visual{min-height:240px;grid-row:1}.lm-service-section{padding:22px 18px}.lm-service-contact{grid-template-columns:1fr;padding:25px 20px}.lm-service-contact dl{grid-template-columns:1fr}.lm-service-primary-action{width:100%;box-sizing:border-box}}

/* V118 final precedence: desktop reward on top row; mobile titles never clipped. */
.v16-reward-desktop{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:max-content!important;padding:4px 7px!important;border-radius:999px!important;background:#f2f4f7!important;color:#667085!important;font-size:11px!important;line-height:1.2!important;font-weight:800!important;white-space:nowrap!important}
.v16-reward-mobile{display:none!important}
@media(min-width:761px){
  .lm-products.v100-products .v16-meta{grid-template-columns:auto minmax(0,1fr) auto auto!important}
}
@media(max-width:760px){
  .v16-reward-desktop{display:none!important}
  .v16-reward-mobile{display:block!important;color:#667085!important;font-size:12px!important;line-height:1.4!important;font-weight:750!important}
  .lm-products.v100-products .mall-card-v16,
  .lm-products.v100-products .mall-card-v16.no-groupbuy,
  .lm-products.v100-products .mall-card-v16.has-groupbuy,
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16,
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16.no-groupbuy,
  body.lm-mobile-one-col .lm-products.v100-products .mall-card-v16.has-groupbuy{
    height:auto!important;min-height:0!important;max-height:none!important;grid-template-rows:auto auto auto!important
  }
  .lm-products.v100-products .v16-body,
  body.lm-mobile-one-col .lm-products.v100-products .v16-body{
    height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important
  }
  .lm-products.v100-products .v16-title,
  body.lm-mobile-one-col .lm-products.v100-products .v16-title{
    display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow-wrap:anywhere!important
  }
  .lm-products.v100-products .v16-footer,
  body.lm-mobile-one-col .lm-products.v100-products .v16-footer{
    height:auto!important;min-height:143px!important;max-height:none!important
  }
}
