/* 毛孩店（/shop/）樣式。版位與操作參考蝦皮；電腦版 ≥ 768px，手機版 < 768px。 */
:root {
  --green: #245C43; --green-dark: #1B4A35; --green-soft: #EEF5F0; --green-line: #BFD8C9;
  --ink: #1E2A23; --muted: #5C6B62; --line: #E6E8E3; --bg: #F2F3EF; --img: #E9EDE7;
  --price: #C2410C; --price-soft: #FDE8E1; --special: #1D4ED8; --pre: #5B21B6; --pre-soft: #EDE9FE;
  --frozen: #1E4E79; --ambient: #5C6B62; --chilled: #2F6F8F;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 14px; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.pre-line { white-space: pre-line; }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* 頁首 */
.site-header { background: var(--green); color: #fff; }
.top-bar { display: flex; justify-content: space-between; align-items: center; min-height: 34px; font-size: 13px; gap: 12px; }
.top-bar a { color: #E3EEE7; }
.site-links, .account { display: flex; align-items: center; gap: 14px; }
.account .strong { color: #fff; font-weight: 700; }
.member-only { position: relative; }
.account-btn { display: flex; align-items: center; gap: 6px; height: 34px; border: 0; background: none; color: #fff; cursor: pointer; }
.account-menu { position: absolute; right: 0; top: 36px; z-index: 20; width: 190px; background: #fff; border-radius: 4px; box-shadow: 0 6px 20px rgba(30,42,35,.18); padding: 6px 0; display: flex; flex-direction: column; }
.account-menu a, .account-menu button { padding: 10px 16px; color: var(--ink); text-align: left; border: 0; background: none; font-size: 14px; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--bg); }
.main-bar { display: flex; align-items: center; gap: 32px; padding-top: 12px; padding-bottom: 16px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; color: #fff; }
.logo:hover { color: #fff; }
.logo img { display: block; height: 64px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
.logo small { font-size: 12px; color: #CFE3D8; }
.focus-title { flex: 1; display: flex; align-items: baseline; gap: 20px; }
.focus-title strong { font-size: 22px; font-weight: 500; }
.focus-title a { color: #E3EEE7; }
.search-area { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.search { display: flex; background: #fff; border-radius: 4px; padding: 3px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; height: 38px; font-size: 14px; color: var(--ink); background: #fff; }
.search input::placeholder { color: var(--muted); }
.search button { width: 64px; height: 38px; border: 0; border-radius: 3px; background: var(--green-dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.hot a { color: #E3EEE7; }
.cart { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.mobile-only { display: none !important; }
.cart:hover { color: #fff; }
.badge { position: absolute; top: 4px; right: 2px; background: #fff; color: var(--green); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 0 6px; line-height: 18px; }

/* 版面區塊 */
.page { padding-top: 20px; padding-bottom: 40px; }
.panel { background: #fff; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 56px; border-bottom: 1px solid #EEF0EB; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.panel-head h2.muted { font-size: 16px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 16px 0; }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid #EEF0EB; }
.stats div:last-child { border-right: 0; }
.stats strong { font-size: 22px; color: var(--green); }
.stats small { font-size: 13px; margin-left: 3px; }
.stats span { font-size: 13px; color: var(--muted); }
.pet-switch { display: flex; border: 1px solid #C9CFC6; border-radius: 4px; overflow: hidden; }
.pet-switch a { padding: 0 18px; height: 34px; display: flex; align-items: center; color: var(--ink); }
.pet-switch a[aria-current] { background: var(--green); color: #fff; }
.pet-switch.small { margin-bottom: 10px; }
.pet-switch.small a { flex: 1; justify-content: center; padding: 0; height: 32px; font-size: 13px; }
.cat-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-right: 1px solid var(--bg); border-bottom: 1px solid var(--bg); color: var(--ink); font-size: 13px; text-align: center; }
.cat-grid a:hover { box-shadow: 0 0 0 1px var(--green-line) inset; }
.cat-icon { width: 60px; height: 60px; border-radius: 30px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.row-scroll { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 10px; padding: 14px 20px 18px; }
.latest-title { margin: 0 0 10px; background: #fff; text-align: center; font-size: 17px; color: var(--green); padding: 16px; border-bottom: 4px solid var(--green); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 商品卡片 */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .1s, box-shadow .1s; }
.card:hover { color: var(--ink); border-color: var(--green); box-shadow: 0 2px 10px rgba(30,42,35,.1); transform: translateY(-1px); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--img); display: block; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 0; right: 0; font-size: 12px; padding: 2px 6px; }
.tag-special { background: var(--price-soft); color: #9A3412; }
.tag-pre { background: var(--pre-soft); color: var(--pre); }
.tag-first { background: #FFF1E6; color: #9A3412; }
.temp { position: absolute; left: 0; bottom: 0; font-size: 11px; padding: 1px 6px; color: #fff; background: var(--ambient); }
.temp-冷凍 { background: var(--frozen); }
.temp-冷藏 { background: var(--chilled); }
.soldout { position: absolute; inset: 0; background: rgba(30,42,35,.45); display: flex; align-items: center; justify-content: center; }
.soldout span { width: 76px; height: 76px; border-radius: 38px; background: rgba(30,42,35,.75); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.card-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.card-name { font-size: 14px; line-height: 1.4; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price s { font-size: 12px; color: var(--muted); }
.card-price .sold { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.price { color: var(--price); font-weight: 700; font-size: 16px; }
.price.price-special { color: var(--special); }   /* 限時特價的特價金額（和倒數的顏色區分） */
.card-sub { font-size: 12px; color: var(--muted); }
/* 手機按「選擇規格」：規格區閃一下 */
@keyframes specFlash { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 0 0 3px var(--green-line); } }
.variants.flash { animation: specFlash 1.2s ease 1; border-radius: 4px; }
/* 卡片右下角按鈕（加入購物車／到貨通知）：卡片外框是 div，連結和按鈕並列（按鈕不能放在連結裡） */
.card { position: relative; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-link:hover { color: inherit; }
.card-act { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1 / 1; pointer-events: none; }
.card-btn { pointer-events: auto; position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(30,42,35,.25); cursor: pointer; }
.card-btn:hover { color: #fff; filter: brightness(1.1); }
.card-btn-notify, .card-btn-notify:hover { background: #fff; color: var(--green); border: 1px solid var(--green); }
.card-btn-notify.is-done { background: var(--green-soft); }
.card-btn:disabled { opacity: .7; cursor: default; }
.card-sub[data-countdown] { font-size: 13px; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }

/* 分類頁 */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.list-layout { display: flex; gap: 24px; align-items: flex-start; }
.side { flex: 0 0 200px; }
.side h2 { margin: 0 0 10px; font-size: 16px; padding-bottom: 10px; border-bottom: 1px solid #DCE0D8; }
.side-cats { display: flex; flex-direction: column; }
.side-cats a { padding: 7px 0 7px 12px; color: var(--ink); }
.side-cats a[aria-current] { color: var(--green); font-weight: 700; }
.list-main { flex: 1; min-width: 0; }
.sortbar { background: #E6E8E3; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.sortbar a { height: 34px; padding: 0 16px; display: flex; align-items: center; background: #fff; color: var(--ink); border-radius: 2px; }
.sortbar a[aria-current] { background: var(--green); color: #fff; }
.pager-mini { margin-left: auto; color: var(--muted); }
.cat-chips { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a { min-width: 40px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pager a[aria-current] { background: var(--green); color: #fff; }

/* 商品頁 */
.item-top { padding: 20px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.gallery { flex: 0 1 450px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; background: var(--img); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(30,42,35,.6); color: #fff; font-size: 12px; padding: 1px 9px; border-radius: 10px; }
.no-image { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: var(--img); cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs button[aria-current] { border-color: var(--green); }
.info { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.info h1 { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 500; }
.label { font-size: 12px; vertical-align: 3px; padding: 1px 6px; margin-right: 6px; background: var(--green); color: #fff; border-radius: 2px; }
.meta { margin: 0; color: var(--muted); display: flex; gap: 12px; }
.flash { background: var(--price); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; }
.flash strong { font-size: 18px; }
.flash [data-countdown] { font-size: 18px; font-weight: 700; padding: 2px 10px; background: #fff; color: var(--price); border-radius: 4px; font-variant-numeric: tabular-nums; }   /* 限時特價倒數 */
.price-box { background: #F7F8F5; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.price-line s { color: var(--muted); font-size: 16px; }
.price-box .sold { font-size: 14px; }
.price.big { font-size: 30px; }
.off { font-size: 12px; font-weight: 700; padding: 2px 6px; background: var(--price); color: #fff; }
.rows { margin: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); row-gap: 20px; column-gap: 12px; align-items: start; }
.rows dt { color: var(--muted); padding-top: 4px; }
.rows dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rows .pre { color: var(--pre); }
.chip { align-self: flex-start; padding: 2px 8px; font-size: 13px; }
.chip-orange { background: #FFF1E6; color: #9A3412; border: 1px solid #F5C9A9; }
.variants { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; display: flex; }
.variant { min-height: 38px; padding: 0 14px; display: flex; align-items: center; border: 1px solid #C9CFC6; color: var(--ink); background: #fff; }
.variant[aria-current] { border-color: var(--green); color: var(--green); }
.qty-row { flex-direction: row !important; align-items: center; gap: 14px !important; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid #C9CFC6; }
.qty button { width: 36px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 16px; }
.qty input { width: 52px; height: 34px; border: 0; border-left: 1px solid #C9CFC6; border-right: 1px solid #C9CFC6; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.warn { margin: 0; color: #9A3412; }
.buy-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { height: 48px; padding: 0 24px; border: 1px solid var(--green); font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-outline { background: var(--green-soft); color: var(--green); }
.btn-solid { background: var(--green); color: #fff; min-width: 180px; }
.btn-disabled { background: #DCE0D8; color: var(--muted); border-color: #DCE0D8; cursor: not-allowed; }
.btn.wide { width: 100%; }
.item-lower { display: flex; gap: 16px; }
.detail { flex: 1; min-width: 0; padding: 20px; }
.bar-title { margin: 0 0 16px; padding: 12px 14px; background: #F7F8F5; font-size: 17px; font-weight: 500; }
.spec { margin: 0 0 28px; padding: 0 14px; display: grid; grid-template-columns: 140px minmax(0, 1fr); row-gap: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.description { padding: 0 14px; font-size: 15px; line-height: 1.8; }
.description h3 { font-size: 15px; margin: 18px 0 4px; color: var(--green); }
.description p { margin: 0; }
.description img { margin: 14px auto 0; max-width: 750px; width: 100%; }
.empty-page { padding: 48px 20px; text-align: center; }

/* 手機專用元件（電腦版隱藏） */
.tabbar, .buybar, .sheet { display: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(30,42,35,.9); color: #fff; padding: 12px 20px; border-radius: 6px; z-index: 50; max-width: 90vw; text-align: center; }

.site-footer { background: #fff; border-top: 4px solid var(--green); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: #3F4F45; }
.footer-links { display: flex; gap: 20px; }

/* ---------- 手機版 ---------- */
@media (max-width: 767px) {
  .wrap { padding: 0 12px; }
  body { padding-bottom: 56px; }
  .desktop-only, .top-bar, .logo, .hot, .side, .pager-mini, .stats div:nth-child(n+3) { display: none !important; }
  .site-header { position: sticky; top: 0; z-index: 30; }
  .main-bar { gap: 6px; padding-top: 10px; padding-bottom: 10px; padding-right: 4px; }
  .search { padding: 0; }
  .search input { height: 36px; font-size: 15px; }
  .search button { width: 44px; height: 36px; background: #fff; color: var(--muted); }
  .cart { width: 44px; height: 44px; }
  .mobile-only { display: flex !important; }
  .focus-title { color: #fff; align-items: center; }
  .focus-title strong { font-size: 17px; }
  .focus-title a { display: none; }
  .hbtn { flex: none; width: 34px; height: 44px; align-items: center; justify-content: center; color: #fff; margin-left: -6px; }
  .hbtn + .hbtn { margin-left: -4px; }
  .continue-link { padding: 0 12px; font-size: 14px; }
  .page { padding-top: 0; padding-left: 0; padding-right: 0; padding-bottom: 72px; }
  .panel { margin-bottom: 8px; }
  .panel-head { padding: 0 12px; min-height: 46px; }
  .panel-head h2 { font-size: 17px; }
  .stats { padding: 10px 0; }
  .stats strong { font-size: 16px; }
  .categories .panel-head { flex-direction: column; align-items: stretch; padding: 10px 12px; }
  .categories .pet-switch a { flex: 1; justify-content: center; }
  .cat-grid { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 74px; overflow-x: auto; padding: 8px 6px 12px; row-gap: 10px; }
  .cat-grid a { border: 0; padding: 0; font-size: 12px; gap: 5px; }
  .cat-icon { width: 48px; height: 48px; font-size: 18px; }
  .row-scroll { display: flex; overflow-x: auto; padding: 0 12px 12px; gap: 8px; }
  .row-scroll .card { flex: none; width: 128px; }
  .latest-title { position: sticky; top: 56px; z-index: 5; padding: 11px; font-size: 15px; border-bottom-width: 3px; margin-bottom: 6px; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 6px; }
  .card { border: 0; }
  .card-name { font-size: 13px; height: 36px; }
  .price { font-size: 15px; }
  .crumbs { display: none; }
  .list-layout { display: block; }
  .sortbar { position: sticky; top: 56px; z-index: 5; padding: 0; gap: 0; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 0; border-bottom: 1px solid var(--line); }
  .sortbar a { justify-content: center; height: 44px; background: #fff; border-radius: 0; }
  .sortbar a[aria-current] { background: #fff; color: var(--green); font-weight: 700; }
  .cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 10px; background: #fff; margin-bottom: 6px; }
  .cat-chips a { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--bg); color: var(--ink); display: flex; align-items: center; font-size: 13px; white-space: nowrap; }
  .cat-chips a[aria-current] { background: var(--green); color: #fff; }

  .item-top { padding: 0 0 12px; gap: 0; display: block; }
  .gallery { gap: 0; }
  .thumbs { display: none; }
  .info { padding: 12px; gap: 12px; }
  .info h1 { font-size: 16px; }
  .price.big { font-size: 24px; }
  .price-box { padding: 0; background: none; }
  .rows { grid-template-columns: 70px minmax(0, 1fr); row-gap: 14px; }
  .item-lower { display: block; }
  .detail { padding: 12px; }
  .spec { grid-template-columns: 84px minmax(0, 1fr); padding: 0; }
  .description { padding: 0; }
  .description img { margin-left: -12px; margin-right: -12px; width: calc(100% + 24px); max-width: none; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 56px; background: #fff; border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .tabbar a[aria-current] { color: var(--green); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 56px; background: #fff; border-top: 1px solid var(--line); }
  .buybar-line { width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; border-right: 1px solid var(--line); }
  .buybar-add { flex: 1; border: 0; background: var(--green-soft); color: var(--green); font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
  .buybar-qty { align-self: center; margin: 0 8px; }
  .buybar-qty button { width: 32px; height: 36px; }
  .buybar-qty input { width: 40px; height: 36px; }
  .card-btn { width: 30px; height: 30px; right: 4px; bottom: 4px; }
  .buybar-main { flex: 1.4; border: 0; background: var(--green); color: #fff; font-size: 16px; cursor: pointer; }
  .sheet[open] { display: block; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; border: 0; padding: 0; background: #fff; box-shadow: 0 -8px 24px rgba(30,42,35,.25); }
  .sheet::backdrop { background: rgba(30,42,35,.45); }
  .sheet-inner { padding: 12px; display: flex; flex-direction: column; gap: 14px; }
  .sheet-head { display: flex; gap: 12px; align-items: flex-end; }
  .sheet-head img { width: 96px; height: 96px; object-fit: cover; margin-top: -40px; border: 2px solid #fff; background: var(--img); }
  .sheet-head > span { flex: 1; display: flex; flex-direction: column; }
  .sheet-close { align-self: flex-start; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
  .sheet-label { margin: 0; }
  .sheet-qty { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bg); padding-top: 14px; }
  .toast { bottom: 76px; }
}

/* ---------- 購物車頁 ---------- */
.cart-pending { background: #fff; border: 1px solid #F3E2A9; border-left: 4px solid #D97706; padding: 12px 16px; margin-bottom: 12px; }
.cp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: #92400E; }
.cart-pending p { margin: 6px 0; font-size: 13px; }
.cp-items { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; }
.cp-items li { display: flex; gap: 8px; }
.cp-items li span:last-child { margin-left: auto; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-actions .btn { min-width: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #F97316; margin-left: 4px; vertical-align: top; }
.dot[hidden], .menu-n[hidden] { display: none; }
.menu-n { margin-left: 8px; font-size: 12px; color: #fff; background: #F97316; border-radius: 9px; padding: 1px 7px; }
.tabbar a { position: relative; }
.tabbar .dot { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; }
.order-tabs { display: flex; gap: 0; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow-x: auto; }
.order-tabs button { flex: 1; min-width: 84px; height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font-size: 14px; color: var(--ink); white-space: nowrap; }
.order-tabs button[aria-current] { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }
.tab-n { color: #F97316; }
.order-card { display: flex; flex-direction: column; gap: 6px; background: #fff; padding: 12px 16px; margin-bottom: 8px; color: var(--ink); border-left: 4px solid var(--line); }
.order-card.st-unpaid { border-left-color: #F97316; }
.order-card.st-paid { border-left-color: var(--green); }
.oc-head, .oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-head strong { font-weight: 500; color: var(--green); }
.st-unpaid .oc-head strong { color: #C2410C; }
.st-closed .oc-head strong { color: var(--muted); }
.oc-body { display: flex; flex-direction: column; }
.oc-pay { color: #C2410C; font-size: 13px; margin-left: auto; }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-head .btn { min-width: 0; }
.addr-card { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.addr-ops { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.addr-ops button { border: 0; background: none; color: var(--green); cursor: pointer; font-size: 13px; padding: 2px 0; white-space: nowrap; }
.ac-form { margin-top: 12px; }
.co-save { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; font-size: 14px; }
.co-merge { background: #FFFBEB; border: 1px solid #F3E2A9; padding: 10px 12px; margin: 10px 0; }
.co-merge-q { margin: 0 0 8px; color: #92400E; }
.cl-stock { display: block; width: 100%; text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.cl-qty { flex-wrap: wrap; }
.order-wrap { position: relative; margin-bottom: 8px; }
.order-wrap .order-card { margin-bottom: 0; padding-bottom: 44px; }
.oc-again { position: absolute; right: 16px; bottom: 10px; height: 30px; padding: 0 14px; border: 1px solid var(--green); background: #fff; color: var(--green); cursor: pointer; font-size: 13px; }
.pay-pick { margin: 10px 0; justify-content: center; }
.pay-periods { margin-left: auto; margin-right: auto; }
.pay-periods { max-width: 240px; margin-bottom: 10px; }
.pending-box { background: #F3F4F1; border: 2px dashed #C9A35A; padding: 14px 16px; margin-bottom: 18px; }
.pending-box h2 { margin: 0 0 4px; font-size: 16px; color: #92400E; }
.pending-box > p { margin: 0 0 10px; font-size: 13px; }
.pending-order { background: #fff; border-left: 4px solid #D97706; padding: 10px 14px; margin-top: 8px; }
.po-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.po-status { color: #C2410C; font-size: 13px; }
.po-items { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.cart-titlebar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.continue-link { color: var(--green); font-size: 15px; white-space: nowrap; }
.cart-title { margin: 0 0 8px; font-size: 22px; font-weight: 500; color: var(--green); }
.cart-note { margin: 0 0 12px; background: #FFFBEB; border: 1px solid #F3E2A9; padding: 10px 16px; color: #6B4E0A; line-height: 1.6; }
.cart-head, .cart-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px 140px 120px 80px; align-items: center; column-gap: 8px; }
.cart-head { background: #fff; height: 52px; padding: 0 16px; color: var(--muted); margin-bottom: 12px; }
.cart-head span:nth-child(n+3) { text-align: center; }
.cart-group { background: #fff; margin-bottom: 12px; }
.cg-head { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-bottom: 1px solid #EEF0EB; }
.cg-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.temp-inline { font-size: 12px; padding: 1px 6px; color: #fff; background: var(--ambient); }
.temp-inline.temp-冷凍 { background: var(--frozen); }
.temp-inline.temp-冷藏 { background: var(--chilled); }
.cart-line { padding: 16px; border-bottom: 1px solid var(--bg); }
.cart-line.is-off { opacity: .6; }
.cart-line input[type=checkbox], .cg-head input, .cartbar-all input { width: 18px; height: 18px; accent-color: var(--green); }
.cl-prod { display: flex; gap: 12px; color: var(--ink); min-width: 0; }
.cl-prod:hover { color: var(--green); }
.cl-prod img, .cl-noimg { width: 80px; height: 80px; flex: none; object-fit: cover; background: var(--img); }
.cl-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cl-name { line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-spec { font-size: 13px; color: var(--muted); white-space: pre-line; }
.spec-text { white-space: pre-line; }   /* 規格每列一行（API 以換行分隔） */
.cl-tag { align-self: flex-start; font-size: 12px; padding: 0 6px; border: 1px solid; }
.cl-tag-special { color: var(--price); }
.cl-tag-pre { color: var(--pre); }
.cl-tag-disc { color: #9A3412; background: #FFF1E6; border-color: #F5C9A9; }
.cl-hint { align-self: flex-start; font-size: 12px; color: #C2410C; }
.cl-hint-link { text-decoration: underline; }
.cl-tag-addon { color: #fff; background: #C2410C; border-color: #C2410C; }
.cl-tag-gift { color: #fff; background: #BE185D; border-color: #BE185D; }
.cg-gift { background: #FDF2F8; }
.cg-gift h3 { color: #BE185D; }
.ao-more { border: 0; background: none; color: var(--green); cursor: pointer; padding: 6px 0; font-size: 13px; }
.gift-remind { background: #FDF2F8; border: 1px solid #F9A8D4; color: #9D174D; padding: 10px 16px; margin: 0 0 12px; }
.gift-remind a { color: #9D174D; font-weight: 700; }
.cart-points { display: block; color: #B45309; font-size: 12px; }
.cg-addon { border-top: 1px dashed var(--line); padding: 10px 20px 14px 70px; background: #FFFBF5; }
.cg-addon h3 { margin: 0 0 6px; font-size: 14px; color: #C2410C; }
.addon-offer { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 6px 0; }
.addon-offer img, .addon-offer .cl-noimg { width: 56px; height: 56px; object-fit: cover; background: var(--img); }
.addon-offer.is-locked { opacity: .7; }
.ao-name { color: var(--ink); }
.ao-price { display: flex; flex-direction: column; text-align: right; }
.ao-gap { color: #C2410C; font-size: 13px; }
.ao-act .btn { min-width: 0; padding: 0 14px; height: 34px; }
@media (max-width: 767px) {
  .cg-addon { padding: 10px 12px; }
  .addon-offer { grid-template-columns: 48px 1fr; }
  .addon-offer img, .addon-offer .cl-noimg { width: 48px; height: 48px; grid-row: span 2; }
  .ao-price { text-align: left; }
  .ao-act { grid-column: 2; }
}
.pair-offer { display: inline-block; margin: 2px 6px 2px 0; }
.co-disc { color: #C2410C; }
.cl-tag-off { color: var(--muted); }
.cl-price { display: flex; flex-direction: column; align-items: center; }
.cl-price s { font-size: 13px; color: var(--muted); }
.cl-qty { display: flex; justify-content: center; }
.cl-qty button:disabled { color: #C9CFC6; cursor: default; }
.cl-sub { text-align: center; }
.cl-op { text-align: center; }
.cl-op button { border: 0; background: none; cursor: pointer; padding: 8px; }
.cl-op button:hover { color: var(--price); }
.cg-free { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px 16px 64px; }
.cg-bar { width: 200px; height: 6px; border-radius: 3px; background: #E2E5DE; overflow: hidden; display: block; }
.cg-bar span { display: block; height: 6px; background: #3E8A66; }
.cart-empty { background: #fff; padding: 48px 20px; text-align: center; }
.cart-page.is-busy { opacity: .7; pointer-events: none; }
.cartbar { position: sticky; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -4px 14px rgba(30,42,35,.08); }
.cartbar-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.cartbar-all { display: flex; align-items: center; gap: 8px; }
.cartbar-sum { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cartbar-sum .price { font-size: 22px; }
.cartbar-go { height: 44px; min-width: 200px; border: 0; background: var(--green); color: #fff; font-size: 16px; cursor: pointer; }

@media (max-width: 767px) {
  .cart-page { padding: 8px 0 0; }
  .cart-title { padding: 0 12px; font-size: 18px; }
  .cart-note { margin: 0 0 8px; border-width: 1px 0; padding: 8px 12px; font-size: 13px; }
  .cart-group { margin-bottom: 8px; }
  .cg-head { padding: 0 12px; height: 46px; }
  .cart-line { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "sel prod prod" "sel price qty" "sel sub op"; row-gap: 8px; padding: 12px; }
  .cart-line > input { grid-area: sel; }
  .cl-prod { grid-area: prod; }
  .cl-price { grid-area: price; flex-direction: row; gap: 6px; align-items: baseline; justify-self: start; }
  .cl-qty { grid-area: qty; justify-self: end; }
  .cl-sub { grid-area: sub; justify-self: start; }
  .cl-op { grid-area: op; justify-self: end; }
  .cl-prod img, .cl-noimg { width: 72px; height: 72px; }
  .cg-free { padding: 10px 12px 12px; font-size: 13px; gap: 8px; }
  .cg-bar { width: 100%; }
  .cartbar { position: fixed; left: 0; right: 0; bottom: 0; }
  .cartbar-inner { padding: 0 0 0 12px; gap: 10px; min-height: 60px; }
  .cartbar-sum .price { font-size: 17px; }
  .cartbar-sum small { font-size: 11px; }
  .cartbar-go { height: 60px; min-width: 110px; }
}

/* ---------- 訂單頁 ---------- */
.order-status { padding: 28px 24px; text-align: center; }
.order-no { margin: 0 0 8px; color: var(--muted); }
.st { margin: 8px 0 12px; font-size: 24px; }
.st-ok { color: var(--green); }
.st-wait { color: #1E4E79; }
.st-bad { color: var(--price); }
.st-off { color: var(--muted); }
.pay-info { display: inline-grid; grid-template-columns: auto auto; gap: 8px 20px; text-align: left; margin: 8px auto 12px; padding: 16px 24px; border: 2px solid #1E4E79; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; font-weight: 700; }
.pay-info .pay-no { font-size: 22px; color: var(--price); letter-spacing: 1px; word-break: break-all; }
.order-detail { padding: 20px; }
.order-items { list-style: none; margin: 0 0 16px; padding: 0 14px; }
.order-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.order-items li a { flex: 1 1 260px; color: var(--ink); }
.order-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; max-width: 360px; margin: 0 14px 24px auto; }
.order-sum .price { font-size: 20px; }
@media (max-width: 767px) {
  .order-status { padding: 20px 12px; }
  .order-detail { padding: 12px; }
  .order-items { padding: 0; }
  .order-sum { margin-right: 0; }
}

/* ---------- 結帳頁 ---------- */
.co-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.co-main { flex: 999 1 560px; min-width: 0; }
.co-side { flex: 1 1 300px; position: sticky; top: 16px; padding: 18px 20px; }
.co-sec { padding: 18px 20px; }
.co-h { margin: 0 0 14px; font-size: 17px; font-weight: 500; color: var(--green); }
.co-items { list-style: none; margin: 0; padding: 0; }
.co-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.co-items img, .co-items .cl-noimg { width: 56px; height: 56px; object-fit: cover; background: var(--img); }
.co-item-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-back { margin: 12px 0 0; }
.co-back .btn { font-size: 15px; padding: 0 16px; height: 40px; min-width: 0; }
.ac-member .btn { height: 36px; min-width: 0; padding: 0 16px; font-size: 14px; }
.ac-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 8px; }
.ac-stats > div { min-width: 0; }
.ac-stats dt { font-size: 13px; color: var(--muted, #6b7280); margin: 0 0 4px; }
.ac-stats dd { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ac-stats { grid-template-columns: 1fr; gap: 8px; } .ac-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .ac-stats dd { font-size: 16px; text-align: right; } }
.ac-member { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 15px; }
.toast-link { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 2px; }
.co-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.co-opt { position: relative; }
.co-opt input { position: absolute; opacity: 0; }
.co-opt span { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #C9CFC6; background: #fff; cursor: pointer; }
.co-opt input:checked + span { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.co-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.co-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-field input, .co-field select { width: 100%; min-width: 0; }
.co-field span { font-size: 13px; color: var(--muted); }
.co-field input, .co-field select, .co-field textarea { height: 44px; border: 1px solid #C9CFC6; padding: 0 12px; background: #fff; font-size: 15px; }
.co-field textarea { height: auto; padding: 10px 12px; width: 100%; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.co-wide { grid-column: 1 / -1; }
.co-coupon { margin: 0 0 14px; }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-coupon-row input[readonly] { background: #F5F5F4; }
.co-coupon-msg { margin: 6px 0 0; font-size: 13px; }
.co-coupon-msg.ok { color: #15803D; }
.co-coupon-msg.err { color: #B91C1C; }
.co-redeem-info { margin: 0 0 6px; font-size: 13px; }
.co-redeem-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.co-redeem-input input { flex: 1; min-width: 0; }
.pay-switch { margin-top: 16px; padding: 12px 14px; border: 1px solid #E7E5E4; background: #FAFAF9; font-size: 14px; }
.pay-switch p { margin: 0 0 8px; }
.co-sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.co-sum dd { margin: 0; text-align: right; }
.co-sum small { display: block; font-size: 12px; }
.co-span { grid-column: 1 / -1; font-size: 13px; }
.co-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.co-total.price { font-size: 24px; }
.co-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.co-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.co-hold { font-size: 13px; margin: 10px 0 0; }
@media (max-width: 767px) {
  .checkout { padding-top: 8px; }
  .co-sec, .co-side { padding: 14px 12px; }
  .co-side { position: static; }
  .co-items li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .co-items li > .muted, .co-items li > span:nth-child(4) { display: none; }
  .co-items img, .co-items .cl-noimg { width: 48px; height: 48px; }
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-grid .co-wide, .co-grid .co-field:only-child { grid-column: 1 / -1; }
  body { padding-bottom: 0; }
}

/* 地址不完整提醒（addr.js） */
.addr-dlg { width: min(420px, calc(100% - 32px)); border: 0; border-radius: 12px; padding: 0; box-shadow: 0 12px 32px rgba(30,42,35,.25); }
.addr-dlg::backdrop { background: rgba(30,42,35,.45); }
.addr-dlg-inner { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.addr-dlg h2 { margin: 0; font-size: 18px; color: #B45309; }
.addr-dlg-addr { margin: 0; padding: 8px 10px; background: #FEF3C7; border-radius: 8px; word-break: break-all; }
.addr-dlg-list { margin: 0; padding-left: 20px; color: #B91C1C; }
.addr-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.addr-dlg-actions .btn { min-width: 0; }
select.is-bad { border-color: #B91C1C; color: #B91C1C; }

/* 搜尋結果 */
.search-count { font-size: 13px; }
.empty .search-empty { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 0; background: none; overflow: visible; }
.empty .search-empty a { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--bg); color: var(--ink); display: flex; align-items: center; font-size: 13px; }
.cg-note { margin-left: 8px; font-size: 12px; font-weight: normal; color: var(--muted); }

.co-bonus { display: block; font-size: 12px; color: #C2410C; }
.variant .v-name { display: block; }
.variant .v-spec { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.variant .v-spec span, .spec-lines span { display: block; }   /* 規格每列一行（組合商品每個內容一列） */
.variant { flex-direction: column; align-items: flex-start; justify-content: center; padding: 6px 14px; text-align: left; }

/* ---------- 搜尋建議、標籤（v0.13） ---------- */
.search { position: relative; }
.search-scope { flex: none; max-width: 40%; border: 0; border-right: 1px solid var(--line); background: var(--green-soft); color: var(--green-dark); padding: 0 8px; font-size: 13px; border-radius: 3px 0 0 3px; }
.hot a[aria-current] { color: #fff; font-weight: 700; text-decoration: underline; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 6px 0; max-height: 70vh; overflow-y: auto; color: var(--ink); }
.suggest h3 { margin: 6px 14px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.suggest .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 8px; }
.suggest .chips a { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--bg); color: var(--ink); display: flex; align-items: center; font-size: 13px; }
.suggest .row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: var(--ink); }
.suggest .row img, .suggest .row .noimg { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 4px; background: var(--img); }
.suggest .row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.suggest .row .pr { flex: none; color: var(--price); font-size: 13px; }
.suggest .row .kind { flex: none; font-size: 12px; color: var(--muted); }
.suggest .row.active, .suggest .row:hover, .suggest .chips a.active, .suggest .chips a:hover { background: var(--green-soft); }
.suggest mark { background: none; color: var(--green); font-weight: 700; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tag-filter a { height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; font-size: 13px; }
.tag-filter a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 767px) {
  .tag-bar { gap: 8px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
  .tag-bar::-webkit-scrollbar { display: none; }
  .tag-bar a { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; font-size: 13px; white-space: nowrap; }
  .tag-bar a[aria-current] { background: #fff; color: var(--green); }
  .tag-filter { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px 0; margin: 0; background: #fff; }
  .tag-filter a { flex: none; white-space: nowrap; background: var(--bg); border: 0; }
  .suggest { position: fixed; top: 56px; left: 0; right: 0; border-radius: 0; max-height: calc(100vh - 56px); }
  .search-scope { max-width: 35%; font-size: 12px; }
}

/* ---------- 香港順豐（v0.13） ---------- */
.co-opt.is-off { opacity: .65; cursor: not-allowed; }
.co-opt.is-off small { display: block; margin-top: 2px; font-size: 12px; color: var(--price); }

/* ---------- 超商取貨（v0.14） ---------- */
.co-cvs { margin-top: 10px; display: grid; gap: 8px; }
.co-cvs-store { margin: 0 0 6px; font-weight: 500; }
/* 註冊 */
.reg-page { max-width: 760px; margin: 0 auto; }
.reg-check { margin: 10px 0; font-size: 14px; }
.reg-check input { margin-right: 6px; vertical-align: -2px; }
.reg-msg { color: #B91C1C; margin: 12px 0; }
.reg-page .cf-turnstile { margin: 12px 0; }

/* 已選的規格：粗框、淺綠底、粗體、右上角勾 */
.variant[aria-current] { position: relative; border: 2px solid var(--green); padding: 5px 13px; background: var(--green-soft); color: var(--green); }
.variant[aria-current] .v-name { font-weight: 700; }
.variant[aria-current]::after { content: "✓"; position: absolute; top: 0; right: 0; background: var(--green); color: #fff; font-size: 11px; line-height: 1; padding: 3px 5px; border-bottom-left-radius: 4px; }

/* 員工代客操作（規則 2.14） */
.actbar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
  background: #b42318; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; text-align: center; }
.actbar span { display: inline-flex; gap: 8px; align-items: center; }
.actbar a, .actbar button { color: #fff; font: inherit; font-weight: 500; background: none; border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px; padding: 2px 10px; cursor: pointer; text-decoration: none; }

/* 共用會員選單（acct-menu.js） */
[data-acct-links] { display: contents; }
[data-acct-links] a[hidden] { display: none !important; }
