/* ============================================================
   Member Center — Favorites & Order History
   ============================================================ */

/* === Quick Actions (Entry Buttons) === */
.member-quick-actions {
  display: flex;
  gap: 10px;
  margin: -4px var(--gutter) var(--space-4);
}

.mqa-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--mist-border);
  border-radius: var(--radius-md);
  background: var(--mist-glass);
  box-shadow: 0 1px 6px var(--mist-shadow);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quart);
  -webkit-tap-highlight-color: transparent;
}
.mqa-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px var(--mist-shadow);
}

.mqa-btn .mqa-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mqa-btn .mqa-icon svg {
  width: 20px; height: 20px;
}

.mqa-btn--fav .mqa-icon {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: #c62828;
}
.mqa-btn--orders .mqa-icon {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--tea-dark);
}

.mqa-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mqa-title {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--tea-dark);
  letter-spacing: var(--ls-base);
}
.mqa-sub {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
}

.mqa-arrow {
  margin-left: auto;
  color: #bbb;
  flex-shrink: 0;
}
.mqa-arrow svg { width: 16px; height: 16px; }

/* Hide when not logged in */
body:not([data-is-member="true"]) .member-quick-actions,
body:not([data-is-member="true"]) .product-fav-btn {
  display: none;
}

/* === Toast Notification === */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 45, 35, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: var(--text-sm);
  font-family: var(--font-ui);
  font-weight: 500;
  z-index: var(--z-member-float, 9999);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
/* 購物車/結帳 sheet 開啟時 toast 上移避讓「應付總額」列與結帳鈕（審視②，2026-07-03） */
body.cart-sheet-open .toast,
body.modal-open .toast {
  bottom: 170px;
}
/* toast 帶 action 鈕（第二批 UX⑨）：可點、留在畫面久一點 */
.toast.toast--action {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 12px;
}
.toast-action {
  background: none;
  border: none;
  color: #d9b98a;
  font: 700 var(--text-sm) var(--font-ui);
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* === Shared Sheet Styles === */
.mc-sheet-backdrop {
  position: fixed; inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 30, 25, 0.45);
  z-index: var(--z-sheet-backdrop, 2000);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-quart);
}
.mc-sheet-backdrop.show {
  display: flex;
  opacity: 1;
}
/* 霧玻璃見 variables.css 檔尾「🫧 單一真相」塊（同 .sheet-backdrop，原本漏 -webkit- 前綴＋被 Safari 開關關掉） */

.mc-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  min-height: 62vh;
  min-height: 62dvh;
  background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(90, 123, 104, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: var(--z-sheet, 2200);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
}
.mc-sheet.show {
  transform: translateY(0);
}

/* --- Sticky Header --- */
.mc-sheet-header {
  position: sticky;
  top: -12px;
  z-index: 20;
  background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
  border-radius: 28px 28px 0 0;
  padding: 12px 24px 12px;
  margin: 0;
}

.mc-sheet-handle {
  width: 40px; height: 4px;
  background: #d0dcd5;
  border-radius: 999px;
  margin: 0 auto 16px;
}

.mc-sheet-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.mc-sheet-title-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mc-sheet-title-icon svg {
  width: 18px; height: 18px;
}

.mc-sheet-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--tea-dark);
  letter-spacing: 1px;
  flex: 1;
}
.mc-sheet-count {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 400;
}

.mc-close-btn {
  position: absolute;
  top: 18px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  cursor: pointer;
  z-index: 50;
  transition: background 0.15s var(--ease-out-quart), transform 0.15s var(--ease-out-quart);
}
.mc-close-btn:active { background: rgba(0,0,0,0.12); transform: scale(0.9); }
.mc-close-btn svg { width: 20px; height: 20px; }

/* === Empty State === */
.mc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px 32px;
  text-align: center;
}
.mc-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f5f5, #ececec);
}
.mc-empty-icon svg { width: 32px; height: 32px; color: #bbb; }
.mc-empty-text {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.mc-empty-sub {
  font-size: var(--text-xs);
  color: #aaa;
}

/* === Loading State === */
.mc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.mc-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--mist-border);
  border-top-color: var(--tea-main);
  border-radius: 50%;
  animation: mc-spin 0.6s linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Favorites
   ============================================================ */
/* 標題愛心徽章：改茶綠×金（與品牌一致，取代原粉紅） */
.mc-sheet--fav .mc-sheet-title-icon {
  background: linear-gradient(135deg, #e9f0e2, #d6e3c8);
  color: #4a6b3a;
}

.fav-body { padding: 0 16px 8px; }

/* ── 工具列：件數 + 分享 + 全部加入 ── */
.fav-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 4px 4px 12px;
}
.fav-toolbar-count { font-size: 13px; color: var(--text-secondary, #6a6a6a); font-weight: 600; }
.fav-toolbar-actions { display: flex; gap: 8px; }
.fav-tool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(120, 95, 40, 0.32);
  background: rgba(255,255,255,0.7); color: #6a5520;
  transition: background .18s, transform .1s, color .18s;
}
.fav-tool-btn svg { width: 15px; height: 15px; }
.fav-tool-btn:active { transform: scale(0.96); }
.fav-tool-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #3a5236, #28401f);
  color: #f3ead0;
}
.fav-tool-btn--primary:active { background: linear-gradient(135deg, #314a2d, #20351a); }
.fav-tool-btn[disabled] { opacity: .45; pointer-events: none; }

.fav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ── 精品收藏卡：米白底 + 金細邊 + 質感陰影 ── */
.fav-card {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, #faf6ec);
  border-radius: 16px;
  border: 1px solid rgba(176, 142, 64, 0.28);
  box-shadow: 0 4px 14px rgba(40, 50, 30, 0.07);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out-quart, ease), box-shadow 0.18s;
}
.fav-card:active { transform: scale(0.985); }
@media (hover:hover) {
  .fav-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 50, 30, 0.12); border-color: rgba(176, 142, 64, 0.5); }
}

.fav-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f0ede8 0%, #e6e1d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fav-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fav-card-img .fav-placeholder { font-size: 28px; color: var(--tea-accent); opacity: 0.5; }

/* 售罄：印章覆蓋 + 卡片去飽和 */
.fav-soldout {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 28, 20, 0.42);
}
.fav-soldout-stamp {
  font-family: var(--font-primary); font-weight: 800; font-size: 15px;
  color: #fff; letter-spacing: .12em;
  padding: 5px 14px; border: 2px solid rgba(255,255,255,0.92); border-radius: 6px;
  transform: rotate(-8deg);
}
.fav-card--soldout .fav-card-img img { filter: grayscale(0.5) brightness(0.92); }

/* 取消收藏：低調米金圈（取代刺眼紅） */
.fav-remove {
  position: absolute;
  top: 8px; right: 8px; z-index: 3;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(252, 249, 240, 0.92);
  border: 1px solid rgba(176, 142, 64, 0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.fav-remove:active { transform: scale(0.85); }
.fav-remove svg { width: 13px; height: 13px; color: #8a7333; }

.fav-card-body { padding: 11px 12px 12px; }
.fav-card-name {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tea-dark);
  line-height: var(--lh-snug);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card-price {
  font-size: var(--text-xs);
  color: var(--tea-gold);
  font-weight: 700;
  margin-bottom: 9px;
}
.fav-card-price span { font-size: var(--text-2xs); color: var(--text-secondary); font-weight: 400; margin-left: 2px; }
/* 特價：紅金特價 + 劃線原價 */
.fav-price-inquiry { color: #9a7327; font-weight: 700; }
.fav-price-sale { color: #b3402f; font-weight: 800; }
.fav-price-orig { color: #a9a195; font-weight: 400; text-decoration: line-through; margin-left: 5px; font-size: var(--text-2xs); }

.fav-add-cart {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #3a5236, #28401f);
  color: #f3ead0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: filter 0.15s, transform 0.1s;
}
.fav-add-cart:active { filter: brightness(0.92); transform: scale(0.97); }
.fav-add-cart svg { width: 14px; height: 14px; }
/* 選規格鈕：描邊金款（與直接加入區別） */
.fav-add-cart--variant {
  background: transparent;
  color: #6a5520;
  border: 1px solid rgba(120, 95, 40, 0.5);
}
.fav-add-cart--variant:active { filter: none; background: rgba(176,142,64,0.1); }
/* 售罄鈕：禁用灰 */
.fav-add-cart[disabled] {
  background: #e7e3da; color: #a09a8d; cursor: default; pointer-events: none;
}

/* 空狀態 CTA */
.fav-empty-cta {
  margin-top: 6px;
  padding: 10px 22px; border-radius: 22px;
  border: 1px solid rgba(120, 95, 40, 0.4);
  background: linear-gradient(135deg, #3a5236, #28401f);
  color: #f3ead0; font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: transform .1s, filter .15s;
}
.fav-empty-cta:active { transform: scale(0.96); filter: brightness(0.93); }

/* ============================================================
   Orders
   ============================================================ */
.mc-sheet--orders .mc-sheet-title-icon {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--tea-dark);
}

/* ── 訂單查詢 tabs（進行中 / 全部） ── */
.orders-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin: 6px 20px 14px;
  background: #f0ede4;
  border-radius: 12px;
}
.orders-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6a6a60;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.orders-tab:hover { color: #2a3a2e; }
.orders-tab.is-active {
  background: #fff;
  color: #2a3a2e;
  box-shadow: 0 2px 6px rgba(36,54,41,0.08);
}
.orders-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(38,63,49,0.08);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}
.orders-tab.is-active .orders-tab-badge { background: #eaf2e1; color: #3d6142; }

.orders-body { padding: 0 20px; }

/* ── 進行中訂單卡：頂部高亮 ── */
.order-card.order-card--active {
  border-color: rgba(61, 97, 66, 0.18);
  box-shadow: 0 4px 16px rgba(61, 97, 66, 0.1);
}
.order-card.order-card--active .order-card-header {
  background: linear-gradient(180deg, #f5faf0 0%, #fff 100%);
}

/* ── 進度時間軸 ── */
.op-timeline {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px 12px;
  background: #fbfaf4;
  border-top: 1px solid rgba(61,97,66,0.08);
}
.op-timeline--cancelled {
  justify-content: center;
  color: #8c4a3d;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px;
}
.op-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}
.op-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #e0dcd2;
  color: #8a8a7a;
  border: 2px solid #e0dcd2;
  z-index: 2;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.op-step-label {
  margin-top: 6px;
  font-size: 11px;
  color: #8a8a7a;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.op-step-line {
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: #e0dcd2;
  z-index: 1;
  transition: background 0.25s;
}
.op-step--done .op-step-dot {
  background: #3d6142;
  border-color: #3d6142;
  color: #fff;
}
.op-step--done .op-step-label { color: #3d6142; }
.op-step--done .op-step-line { background: #3d6142; }
.op-step--active .op-step-dot {
  background: #fff;
  border-color: #3d6142;
  color: #3d6142;
  box-shadow: 0 0 0 4px rgba(61,97,66,0.18);
  animation: opStepPulse 1.6s ease-in-out infinite;
}
.op-step--active .op-step-label {
  color: #3d6142;
  font-weight: 800;
}
@keyframes opStepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,97,66,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(61,97,66,0.08); }
}

/* ── 物流追蹤區塊 ── */
.op-tracking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  background: #fbfaf4;
}
.op-tracking-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.op-tracking-label {
  font-size: 11px;
  color: #8a8a7a;
  font-weight: 600;
}
.op-tracking-no {
  font-size: 14px;
  font-weight: 800;
  color: #2a3a2e;
  font-variant-numeric: tabular-nums;
}
.op-tracking-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #3d6142;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.op-tracking-link svg {
  width: 14px;
  height: 14px;
}
.op-tracking-link:hover {
  background: #2d4c32;
  transform: translateY(-1px);
}

.order-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.order-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.order-date-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.order-date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tea-dark);
}
.order-id {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-total {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--tea-dark);
  white-space: nowrap;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.order-status svg { width: 12px; height: 12px; }

.order-status--completed  { background: #e8f5e9; color: #2e7d32; }
.order-status--paid       { background: #e3f2fd; color: #1565c0; }
.order-status--shipping   { background: #fff8e1; color: #f57f17; }
.order-status--cancelled  { background: #fafafa; color: #999; }
.order-status--pending    { background: #fff3e0; color: #e65100; }

.order-chevron {
  color: #ccc;
  transition: transform 0.25s var(--ease-out-quart);
  flex-shrink: 0;
}
.order-chevron svg { width: 18px; height: 18px; }
.order-card.expanded .order-chevron {
  transform: rotate(180deg);
}

/* --- Expandable Detail --- */
.order-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out-quart);
}
.order-card.expanded .order-detail {
  max-height: 600px;
}

.order-detail-inner {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.order-item + .order-item {
  border-top: 1px dashed rgba(0,0,0,0.05);
}

.order-item-info {
  flex: 1;
  min-width: 0;
}
.order-item-name {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item-meta {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  margin-top: 1px;
}
/* 預購標記（訂單歷史品項）：茶綠小膠囊 */
.order-item-preorder {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-weight: 600;
  color: #5a7d6c;
  background: rgba(125, 176, 156, 0.16);
  border: 1px solid rgba(125, 176, 156, 0.4);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}

.order-item-rebuy {
  padding: 6px 12px;
  border: 1px solid var(--tea-main);
  border-radius: 8px;
  background: transparent;
  color: var(--tea-main);
  font-size: var(--text-2xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.order-item-rebuy:active {
  background: var(--tea-main);
  color: #fff;
}

/* 裝箱照片（客戶端可見；縮圖沿用 .tea-review-thumb 樣式＋全域 lightbox） */
.order-packing-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}
.order-packing-header {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.order-rebuy-all {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: var(--tea-dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
}
.order-rebuy-all:active {
  background: var(--tea-dark-h);
  transform: scale(0.98);
}
.order-rebuy-all svg { width: 16px; height: 16px; }

/* --- Rebuy success animations --- */
.order-item-rebuy.rebuy-success {
  background: var(--tea-main);
  color: #fff;
  border-color: var(--tea-main);
  pointer-events: none;
  animation: rebuy-pop 0.35s var(--ease-out-quart);
}
.order-item-rebuy.rebuy-success svg {
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
}

.order-rebuy-all.rebuy-all-success {
  background: #2e7d32;
  pointer-events: none;
  animation: rebuy-pop 0.35s var(--ease-out-quart);
}
.order-rebuy-all.rebuy-all-success svg {
  width: 18px; height: 18px;
}

.order-cancel-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(200, 60, 60, 0.3);
  border-radius: 8px;
  background: none;
  color: #c03c3c;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.order-cancel-btn:hover { background: rgba(200, 60, 60, 0.06); }
.order-cancel-btn:active { background: rgba(200, 60, 60, 0.12); }

@keyframes rebuy-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Cart FAB bounce after rebuy-all */
.cart-fab-bounce {
  animation: fab-bounce 0.6s var(--ease-out-quart);
}
@keyframes fab-bounce {
  0%   { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-12px) scale(1.1); }
  50%  { transform: translateY(0) scale(1); }
  75%  { transform: translateY(-5px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* === Fav Heart on Product Cards === */
.product-fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s var(--ease-out-quart);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.product-fav-btn:active { transform: scale(0.85); }
.product-fav-btn svg {
  width: 18px; height: 18px;
  color: #ccc;
  transition: color 0.2s, fill 0.2s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.product-fav-btn.active svg {
  color: #e53935;
  fill: #e53935;
}

/* Fav button pop animation */
@keyframes fav-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.product-fav-btn.pop {
  animation: fav-pop 0.3s var(--ease-out-quart);
}

/* ============================================================
   收件地址 Sheet
   ============================================================ */
.mc-sheet--address {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 82vh;
  min-height: 82dvh;
}

.mc-sheet--address .mc-sheet-header {
  position: relative;
  top: 0;
  flex-shrink: 0;
}

.mc-sheet--address .address-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(env(safe-area-inset-bottom) + 90px);
}

.mc-sheet--address .mc-sheet-title-icon {
  color: #4a7c5c;
}

.addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 20px 32px;
}

.addr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 12px 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.addr-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a7c5c;
}
.addr-item-icon svg { width: 18px; height: 18px; }

.addr-item-body {
  flex: 1;
  min-width: 0;
}

.addr-item-text {
  font-size: 14px;
  color: #1a2e22;
  line-height: 1.4;
  font-weight: 500;
}

.addr-item-date {
  font-size: 11px;
  color: #8fa99a;
  margin-top: 2px;
}

.addr-delete-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #c0c8c4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.addr-delete-btn:hover {
  background: #fde8e8;
  color: #d94f4f;
}
.addr-delete-btn svg { width: 16px; height: 16px; }

/* ── 收件地址 tab 切換 ── */
.addr-tab-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.addr-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: #f5f7f5;
  color: #5a7060;
  font: 700 13px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.addr-tab.active {
  background: #4a7c5c;
  border-color: #4a7c5c;
  color: #fff;
}

.addr-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  font-size: 11px;
  font-weight: 800;
}

.addr-tab.active .addr-tab-count {
  background: rgba(255,255,255,0.3);
}

.addr-panel {
  padding-top: 8px;
}

.mc-empty-small {
  text-align: center;
  padding: 32px 20px;
  color: #8fa99a;
  font-size: 14px;
}


/* ── 會員頁頂部導覽列 ───────────────────────────────────── */
.mc-embed-bar {
  display: none;
}
body.member-page .mc-embed-bar {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(255, 254, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(112, 79, 59, 0.08);
}
.mc-embed-back {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: #4a7c59;
  font: 600 15px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  padding: 8px 4px;
  min-width: 44px;
  min-height: 44px;
}
.mc-embed-back i {
  font-size: 20px;
}
.mc-embed-title {
  flex: 1;
  text-align: center;
  font: 700 16px/1 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif);
  color: #2a3a2e;
  margin-right: 44px; /* balance the back button width */
}

/* === Points Sheet === */
.mc-sheet--points {
  max-height: 88vh;
}
.mc-sheet-title-icon--points {
  background: linear-gradient(135deg, #fff3cd, #fde68a);
  color: #b45309;
}
.points-body {
  overflow-y: auto;
  padding-bottom: max(env(safe-area-inset-bottom), 24px);
  overscroll-behavior: contain;
}

/* Balance card */
.pts-balance-card {
  margin: 4px 16px 20px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #4a3728 0%, #2a1f15 100%);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pts-balance-card::before {
  content: '';
  position: absolute;
  top: -32px; right: -32px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.pts-balance-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.pts-balance-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-ui, sans-serif);
}
.pts-balance-val {
  font-size: 48px;
  font-weight: 700;
  color: #FFD700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif);
  margin-bottom: 10px;
}
.pts-balance-unit {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 215, 0, 0.75);
  margin-left: 4px;
  vertical-align: baseline;
}
.pts-balance-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
  font-family: var(--font-ui, sans-serif);
}

/* History header */
.pts-history-header {
  display: flex;
  align-items: center;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 2px;
}
.pts-history-title {
  font-size: 13px;
  font-weight: 700;
  color: #3d2b1f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-ui, sans-serif);
}
.pts-history-count {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

/* Transaction items */
.pts-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.pts-item-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pts-item-icon svg { width: 18px; height: 18px; }
.pts-item--earn .pts-item-icon {
  background: rgba(42, 125, 81, 0.12);
  color: #2a7d51;
}
.pts-item--use .pts-item-icon {
  background: rgba(180, 83, 9, 0.10);
  color: #b45309;
}
.pts-item-body {
  flex: 1;
  min-width: 0;
}
.pts-item-reason {
  font-size: 14px;
  font-weight: 500;
  color: #2d2419;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-ui, sans-serif);
}
.pts-item-date {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.pts-item-right {
  text-align: right;
  flex-shrink: 0;
}
.pts-item-delta {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-ui, sans-serif);
}
.pts-item--earn .pts-item-delta { color: #2a7d51; }
.pts-item--use  .pts-item-delta { color: #b45309; }
.pts-item-balance {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Empty state */
.pts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}
.pts-empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: #b45309;
}
.pts-empty-icon svg { width: 26px; height: 26px; }
.pts-empty-text {
  font-size: 15px;
  font-weight: 600;
  color: #3d2b1f;
  font-family: var(--font-ui, sans-serif);
}
.pts-empty-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-top: -4px;
}

/* === Error State === */
.mc-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
}
.mc-error-text {
  font-size: 15px;
  color: #6b7280;
}
.mc-retry-btn {
  padding: 10px 28px;
  border: 1.5px solid #4a7c59;
  border-radius: 20px;
  background: transparent;
  color: #4a7c59;
  font: 600 14px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}
.mc-retry-btn:hover {
  background: #4a7c59;
  color: #fff;
}

/* ═══ 地址簿（2026-06-12）：卡片 / 表單 / 動畫 ═══ */
.addr-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 16px;
  border: 1.5px dashed rgba(95, 138, 82, 0.45);
  border-radius: 12px;
  background: rgba(95, 138, 82, 0.05);
  color: #3d5c35;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.addr-add-btn:hover { background: rgba(95, 138, 82, 0.12); border-color: #5f8a52; }

.addr-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(60, 70, 60, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 252, 0.9);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.18s ease;
}
.addr-card.is-default {
  border-color: rgba(95, 138, 82, 0.55);
  background: rgba(95, 138, 82, 0.05);
}
.addr-card--removing { opacity: 0; transform: translateX(24px); }
.addr-card-main { flex: 1; min-width: 0; }
.addr-card-badges { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.addr-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(60, 70, 60, 0.08);
  color: rgba(60, 70, 60, 0.75);
  font-size: 11px;
  font-weight: 800;
}
.addr-badge--default { background: rgba(95, 138, 82, 0.15); color: #3d5c35; }
.addr-card-text { font-size: 14px; font-weight: 600; color: #2c342d; line-height: 1.45; word-break: break-all; }
.addr-card-sub { margin-top: 2px; font-size: 12px; color: rgba(60, 70, 60, 0.6); }
.addr-card-date { margin-top: 2px; font-size: 11px; color: rgba(60, 70, 60, 0.4); }
.addr-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.addr-act-btn {
  padding: 4px 10px;
  border: 1px solid rgba(60, 70, 60, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(60, 70, 60, 0.7);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.addr-act-btn:hover { color: #3d5c35; border-color: rgba(95, 138, 82, 0.5); background: rgba(95, 138, 82, 0.07); }

/* 表單 */
.addr-form { display: flex; flex-direction: column; gap: 12px; }
.addr-form-title { font-size: 15px; font-weight: 800; color: #2c342d; margin-bottom: 2px; }
.addr-form-row { display: flex; gap: 10px; }
.addr-form-row .addr-form-field { flex: 1; }
.addr-form-field { display: flex; flex-direction: column; gap: 5px; }
.addr-form-label { font-size: 12px; font-weight: 800; color: rgba(60, 70, 60, 0.6); }
.addr-form-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(60, 70, 60, 0.16);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #2c342d;
}
.addr-form-input:focus { outline: none; border-color: #5f8a52; }
.addr-label-chips { display: flex; gap: 8px; align-items: center; }
.addr-label-chip {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(60, 70, 60, 0.16);
  border-radius: 999px;
  background: #fff;
  color: rgba(60, 70, 60, 0.75);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.addr-label-chip.active { border-color: #5f8a52; background: #5f8a52; color: #fffef9; }
.addr-form-input--label { width: 90px; flex: 0 0 auto; min-height: 36px; }
.addr-form-default { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2c342d; cursor: pointer; }
.addr-form-default input { width: 18px; height: 18px; accent-color: #5f8a52; }
.addr-form-actions { display: flex; gap: 10px; margin-top: 4px; }
.addr-form-cancel {
  flex: 1;
  min-height: 44px;
  border: 1px solid rgba(60, 70, 60, 0.18);
  border-radius: 12px;
  background: transparent;
  color: rgba(60, 70, 60, 0.7);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.addr-form-save {
  flex: 2;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: #5f8a52;
  color: #fffef9;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.addr-form-save:disabled { opacity: 0.6; }

/* ═══ 地址簿 UX 修正（2026-06-12）═══ */
/* sheet 開啟時鎖住背景捲動（穿透修正） */
body.mc-open {
  overflow: hidden;
  touch-action: none;
}
body.mc-open .mc-sheet,
body.mc-open .mc-sheet .address-body {
  touch-action: auto; /* sheet 內部仍可捲動 */
}
/* 關閉 X：放大點擊範圍、確保最上層 */
.mc-close-btn {
  width: 40px; height: 40px;
  z-index: 120;
}
/* 圓形按鈕的 hit-test 跟著 border-radius 走，四角點不到；
   用無圓角的 ::after 撐出 56×56 方形熱區（視覺仍是圓形） */
.mc-close-btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 0;
}
/* 卡片重排：刪除鈕獨立右上、主操作移卡片底部（拉開誤觸距離） */
.addr-card { position: relative; flex-direction: column; align-items: stretch; }
.addr-card .addr-delete-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(60, 70, 60, 0.35);
  cursor: pointer;
}
.addr-card .addr-delete-btn:hover { color: #b3502d; background: rgba(179, 80, 45, 0.08); }
.addr-card .addr-delete-btn svg { width: 16px; height: 16px; }
.addr-card-main { padding-right: 36px; }
.addr-card-footer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(60, 70, 60, 0.12);
}
.addr-card-footer:empty { display: none; }
.addr-card-footer .addr-act-btn { min-height: 32px; padding: 4px 14px; font-size: 12px; }
/* 新增門市雙鈕列 */
.addr-add-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.addr-add-row .addr-add-btn { margin-bottom: 0; flex: 1; justify-content: center; }

/* ═══ 地址簿表單版面 v2（2026-06-12 截圖回饋：貼邊、無留白）═══ */
.addr-form {
  padding: 4px 20px 28px;
  gap: 14px;
}
.addr-form-title {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.addr-form-label { font-size: 13px; color: rgba(50, 60, 52, 0.75); }
.addr-form-input { min-height: 44px; border-radius: 12px; }
.addr-form-input--label { min-height: 40px; }
select.addr-form-input { appearance: auto; background: #fff; }
.addr-form-default {
  padding: 12px 14px;
  border: 1px solid rgba(95, 138, 82, 0.25);
  border-radius: 12px;
  background: rgba(95, 138, 82, 0.05);
}
.addr-form-actions { margin-top: 8px; }
/* 新增地址鈕與面板留白（與 .addr-list 對齊） */
.addr-panel > .addr-add-btn, .addr-panel > .addr-add-row { margin-left: 20px; margin-right: 20px; margin-top: 12px; }
.mc-empty-small { padding: 24px 20px; color: rgba(60, 70, 60, 0.5); font-size: 13px; }

/* 地址表單 v3（2026-06-12）：收件人/電話欄距、郵遞區號徽章 */
.addr-form-row { column-gap: 12px; }
.addr-form-row .addr-form-field { min-width: 0; }
@media (max-width: 360px) {
  .addr-form-row { flex-direction: column; gap: 14px; }
}
.addr-form-zip {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(95, 138, 82, 0.12);
  color: #3d5c35;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
}
.addr-form-zip:empty { display: none; }

/* Sheet / modal 開啟時鎖背景捲動，防止滑動穿透到底層頁面（會員訂單 sheet、訂單查詢 modal） */
body.mc-open,
body.order-check-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
/* 但 sheet 內容本身要能捲動 */
body.mc-open .mc-sheet,
body.order-check-open .policy-sheet {
  touch-action: auto;
  overscroll-behavior: contain;
}

/* === 🎁 點數商城 Sheet（roadmap #5 Phase 2）=== */
.mc-sheet--mall { max-height: 90vh; }
.mall-body {
  overflow-y: auto;
  padding: 0 16px max(env(safe-area-inset-bottom), 24px);
  overscroll-behavior: contain;
}
.mall-balance {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 0 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #3a4a3a 0%, #232f23 100%);
  border-radius: 16px;
}
.mall-balance-label { font-size: 13px; color: rgba(244, 239, 226, 0.7); letter-spacing: 0.05em; font-family: var(--font-ui, sans-serif); }
.mall-balance-val { font: 700 30px/1 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif); color: #e9c87d; }
.mall-balance-val small { font-size: 14px; margin-left: 3px; font-weight: 500; }
.mall-hint {
  font-size: 12.5px; color: #6b7a66; line-height: 1.5;
  margin: 0 2px 16px;
}
.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mall-card {
  display: flex; flex-direction: column;
  background: #fffdf7; border: 1px solid rgba(120, 140, 110, 0.18);
  border-radius: 14px; overflow: hidden; padding-bottom: 12px;
}
.mall-card-img { position: relative; aspect-ratio: 4 / 3; background: #f1ede1; overflow: hidden; }
.mall-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-card-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #b8c2ac; font-size: 34px; }
.mall-card-type {
  position: absolute; top: 8px; left: 8px;
  background: rgba(58, 74, 58, 0.82); color: #f0e9d6;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
}
.mall-card-name {
  font: 600 14px/1.35 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif);
  color: #2a3a2e; margin: 10px 12px 4px; min-height: 38px;
}
.mall-card-cost {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700; color: #9c7839; margin: 0 12px 2px;
}
.mall-card-cost .ph { font-size: 15px; }
.mall-card-stock { font-size: 11px; color: #6b7a66; margin: 0 12px 6px; }
.mall-card-stock--low { color: #c0392b; font-weight: 600; }
.mall-redeem-btn {
  margin: 8px 12px 0; padding: 9px 0;
  background: linear-gradient(135deg, #5a6f4e, #3f5238); color: #fff;
  border: none; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: filter 0.15s, opacity 0.15s;
}
.mall-redeem-btn:hover { filter: brightness(1.08); }
.mall-redeem-btn:disabled { background: #cfd4c8; color: #fff; cursor: not-allowed; opacity: 0.85; }
.mall-card--soldout .mall-card-img { opacity: 0.55; }
.mall-section-title {
  margin: 24px 2px 12px; font: 700 15px/1 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif); color: #2a3a2e;
}
.mall-red-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #f7f4ea; border-radius: 12px; margin-bottom: 8px;
}
.mall-red-name { font-size: 14px; font-weight: 600; color: #2a3a2e; }
.mall-red-meta { font-size: 12px; color: #6b7a66; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mall-red-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.mall-red-status--pending { background: #fef3c7; color: #b45309; }
.mall-red-status--attached { background: #dbeafe; color: #1e5fa8; }
.mall-red-status--fulfilled { background: #dcf3e3; color: #2e7d4f; }
.mall-red-status--cancelled { background: #eee; color: #888; }

/* 購物車「本單免運加贈」提示（roadmap #5 Phase 3）— 玻璃質感 */
.hh-cart-gift-notice {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 4px; padding: 12px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(168, 187, 150, 0.22) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow:
    0 6px 20px rgba(63, 82, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 13px; line-height: 1.5; color: #3f5238;
}
.hh-cgn-icon { font-size: 19px; flex-shrink: 0; color: #5a6f4e; }
.hh-cgn-text { font-weight: 600; letter-spacing: 0.01em; }
.hh-cgn-text b { color: #5a6f4e; }

/* === 🍵 我的訂閱 Sheet（定期配茶 roadmap #7 Phase 2）=== */
.mc-sheet--sub { max-height: 90vh; }
.sub-body {
  overflow-y: auto;
  padding: 4px 16px max(env(safe-area-inset-bottom), 24px);
  overscroll-behavior: contain;
}
.sub-card {
  background: #fffdf7;
  border: 1px solid rgba(120, 140, 110, 0.18);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(63, 82, 56, 0.06);
}
.sub-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.sub-plan {
  font: 700 16px/1.2 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif);
  color: #2a3a2e;
}
.sub-status {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.02em;
}
.sub-status--active { background: #dcf3e3; color: #2e7d4f; }
.sub-status--paused { background: #fef3c7; color: #b45309; }
.sub-status--cancelled { background: #eee; color: #888; }
.sub-status--payment_failed { background: #fde2e1; color: #c0392b; }
.sub-status--pending { background: #e8eef0; color: #5a6f7a; }
.sub-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12.5px; color: #6b7a66; line-height: 1.5;
  margin-bottom: 12px;
}
.sub-meta .sub-price { font-weight: 700; color: #9c7839; }
.sub-meta .sub-next { display: inline-flex; align-items: center; gap: 4px; }
.sub-meta .sub-next .ph { font-size: 14px; }
.sub-box {
  background: #f7f4ea; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.sub-box-title {
  font-size: 12.5px; font-weight: 700; color: #3f5238;
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.sub-box-list {
  margin: 0; padding-left: 18px; font-size: 13px; color: #2a3a2e; line-height: 1.7;
}
.sub-box-pending {
  font-size: 12.5px; color: #8a9683; font-style: italic; line-height: 1.5;
}
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-btn {
  flex: 1 1 auto; min-width: 88px; padding: 9px 14px;
  background: #f0ede3; color: #3f5238;
  border: 1px solid rgba(120, 140, 110, 0.22); border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter 0.15s, opacity 0.15s, background 0.15s;
}
.sub-btn:hover { filter: brightness(0.98); }
.sub-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sub-btn--primary {
  background: linear-gradient(135deg, #5a6f4e, #3f5238); color: #fff; border-color: transparent;
}
.sub-btn--danger { color: #c0392b; border-color: rgba(192, 57, 43, 0.28); background: #fff6f5; }

/* 開始訂閱 介紹卡（無作用中訂閱且功能開放時） */
.sub-intro {
  background: linear-gradient(150deg, #3a4a3a 0%, #232f23 100%);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
  color: #f4efe2;
  text-align: center;
  box-shadow: 0 8px 24px rgba(35, 47, 35, 0.18);
}
.sub-intro-badge {
  width: 46px; height: 46px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: rgba(233, 200, 125, 0.16); border: 1px solid rgba(233, 200, 125, 0.4);
  border-radius: 50%; color: #e9c87d; font-size: 24px;
}
.sub-intro-title { font: 700 19px/1.3 var(--font-serif, 'Noto Serif TC', 'Noto Serif TC Fallback', serif); color: #e9c87d; margin-bottom: 8px; }
.sub-intro-desc { font-size: 13px; line-height: 1.65; color: rgba(244, 239, 226, 0.82); margin-bottom: 14px; }
.sub-intro-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 16px; font-size: 13px;
}
.sub-intro-plan { color: rgba(244, 239, 226, 0.7); }
.sub-intro-price { font-weight: 700; color: #e9c87d; }
.sub-intro-cta {
  width: 100%; padding: 13px 0;
  background: linear-gradient(135deg, #e9c87d, #d4af5f); color: #2a2013;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: filter 0.15s;
}
.sub-intro-cta:hover { filter: brightness(1.05); }
.sub-intro-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.sub-dur-label {
  font-size: 12px; color: rgba(244, 239, 226, 0.7);
  margin-bottom: 8px; letter-spacing: 0.04em;
}
.sub-dur-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.sub-dur-chip {
  flex: 1 1 0; min-width: 70px; padding: 9px 6px;
  background: rgba(244, 239, 226, 0.08); color: #f4efe2;
  border: 1px solid rgba(233, 200, 125, 0.32); border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sub-dur-chip.is-active {
  background: rgba(233, 200, 125, 0.18); border-color: #e9c87d; color: #e9c87d;
}
.sub-intro-total {
  font-size: 14px; font-weight: 700; color: #e9c87d;
  margin-bottom: 14px;
}

/* 滿額抽試飲包提醒（每滿 NT$1500）— 未達金色細線、達標深綠×金慶賀 */
.hh-cart-draw-nudge {
  display: flex; align-items: center; gap: 9px;
  margin: 10px 0 4px; padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px; line-height: 1.45;
  background: linear-gradient(135deg, rgba(217, 189, 120, 0.16), rgba(180, 150, 80, 0.07));
  border: 1px solid rgba(180, 150, 80, 0.32);
  color: #7a5f2a;
}
.hh-cart-draw-nudge.is-eligible {
  /* 色塊減重（2026-07-03）：深綠燙金帶改米金淺帶，資訊帶不與交易 CTA 搶重量 */
  background: linear-gradient(135deg, rgba(217, 189, 120, 0.22), rgba(180, 150, 80, 0.1));
  border-color: rgba(180, 150, 80, 0.55);
  color: #6b5327;
  box-shadow: none;
}
.hh-cdn-icon { font-size: 18px; flex-shrink: 0; color: #b8923c; }
.hh-cart-draw-nudge.is-eligible .hh-cdn-icon { color: #b8923c; }
.hh-cart-draw-nudge span { font-weight: 600; }

/* ═══════════ 🔔 通知設定（roadmap #6，member-center.js renderNotifySheet）═══════════ */
.np-body { padding: 4px 18px 28px; }
.np-hint {
  font: 500 13px/1.6 var(--font-ui, sans-serif);
  color: #76816f;
  padding: 8px 2px 14px;
}
.np-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: #fffdf8;
  border: 1px solid rgba(148, 114, 62, 0.28);
  border-radius: 14px;
  margin-bottom: 12px;
}
.np-row-txt { flex: 1; min-width: 0; }
.np-row-label {
  font: 700 15px/1.3 var(--font-ui, sans-serif);
  color: #1e3a2f;
}
.np-row-desc {
  font: 500 12px/1.55 var(--font-ui, sans-serif);
  color: #76816f;
  margin-top: 4px;
}
.np-switch {
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 114, 62, 0.4);
  background: #ece7db;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
  padding: 0;
}
.np-switch .np-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 40, 30, 0.25);
  transition: transform 0.22s ease;
}
.np-switch.is-on {
  background: #3d6b47; /* 茶綠＝開 */
  border-color: #3d6b47;
}
.np-switch.is-on .np-knob { transform: translateX(20px); }
.np-switch:disabled { opacity: 0.6; cursor: default; }
.np-note {
  font: 500 12px/1.6 var(--font-ui, sans-serif);
  color: #9aa392;
  padding: 6px 2px 0;
  text-align: center;
}

/* ═══ 觸控目標批次修（2026-07-04 健檢 backlog：≥44px 或透明熱區擴充）═══ */
.mall-redeem-btn { min-height: 44px; }
.sub-btn { min-height: 44px; }
.sub-dur-chip { min-height: 44px; }
.np-switch { position: relative; }
.np-switch::before { content: ""; position: absolute; inset: -10px; border-radius: 999px; }
/* mall 卡名 EN 長字撐版：兩行截斷 */
.mall-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* disabled 兌換鈕對比（原白字疊淺灰 1.6:1） */
.mall-redeem-btn:disabled { background: #ece9e0; color: #6b7a66; }

/* 觸控熱區第二批（2026-07-04 會員健檢）：視覺不變、熱區擴到 ≥44px */
.fav-remove, .addr-act-btn, .order-item-rebuy, .fav-tool-btn { position: relative; }
.fav-remove::after, .addr-act-btn::after, .order-item-rebuy::after, .fav-tool-btn::after {
  content: ""; position: absolute; inset: -8px;
}

/* === 進行中訂單卡（2026-07-04；玻璃化＝白霧玻璃浮於茶綠底，去膠囊）=== */
#memberActiveOrder { margin: 12px 20px 2px; }
.hh-active-order {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.62), rgba(255, 253, 248, 0.42));
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 36px rgba(31, 46, 33, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hh-active-order:active { transform: scale(0.99); }
.hh-ao-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hh-ao-title { font: 700 12px/1.2 var(--font-ui, sans-serif); letter-spacing: 0.08em; color: rgba(31, 46, 33, 0.62); display: inline-flex; align-items: center; gap: 6px; }
.hh-ao-title .ph { color: #94723e; font-size: 15px; }
.hh-ao-status { font: 700 13px/1 var(--font-ui, sans-serif); color: #2f4b3c; display: inline-flex; align-items: center; gap: 7px; }
.hh-ao-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9a430; animation: hhAoPulse 2.2s ease-out infinite; }
@keyframes hhAoPulse { 0% { box-shadow: 0 0 0 0 rgba(217, 164, 48, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(217, 164, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 164, 48, 0); } }
@media (prefers-reduced-motion: reduce) { .hh-ao-status::before { animation: none; } }
.hh-ao-mid { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; }
.hh-ao-id { font: 600 12px/1.2 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.5); letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-ao-total { font: 700 18px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #1e3a2f; flex-shrink: 0; }
.hh-ao-dots { display: flex; gap: 5px; margin-top: 12px; }
.hh-ao-dot { flex: 1; height: 3px; border-radius: 2px; background: rgba(31, 46, 33, 0.14); }
.hh-ao-dot.is-on { background: linear-gradient(90deg, #94723e, #3d6b47); }
.hh-ao-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font: 600 11px/1.2 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.45); }
.hh-ao-view { color: #2f4b3c; font-weight: 700; border-bottom: 1px solid rgba(148, 114, 62, 0.55); padding-bottom: 1px; }

/* === 訂單卡：改付款方式／聯繫客服修改配送（2026-07-04；quiet action row，去膠囊）=== */
.order-repay-toggle, .order-edit-ship {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 46px; margin-top: 8px; padding: 0 14px;
  border: 1px solid rgba(148, 114, 62, 0.28);
  border-radius: 12px;
  background: rgba(148, 114, 62, 0.04);
  color: #2f4b3c;
  font: 600 13px/1.3 var(--font-ui, sans-serif);
  cursor: pointer; text-decoration: none; text-align: left;
}
.order-repay-toggle::after, .order-edit-ship::after { content: "\203A"; color: #94723e; font-size: 17px; font-weight: 700; margin-left: 10px; }
/* 🎁 禮物單「分享茶禮連結」鈕（茶綠，與再購鈕同語彙） */
.order-gift-share {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 46px; margin-top: 8px; padding: 0 14px;
  border: 1px solid rgba(61, 107, 71, 0.32); border-radius: 12px;
  background: rgba(61, 107, 71, 0.06); color: #2f4b3c;
  font: 700 13px/1.3 var(--font-ui, sans-serif); cursor: pointer;
}
.order-gift-share:active { background: rgba(61, 107, 71, 0.12); }
.order-repay-opts { display: flex; gap: 8px; margin-top: 8px; }
.order-repay-opt {
  flex: 1; min-height: 46px;
  border: 1px solid rgba(61, 107, 71, 0.35); border-radius: 12px;
  background: rgba(61, 107, 71, 0.05); color: #2f4b3c;
  font: 700 13px/1 var(--font-ui, sans-serif); cursor: pointer;
}
.order-repay-opt:disabled { opacity: 0.6; }

/* === 再購快捷列（2026-07-04；玻璃磚語彙，去膠囊）=== */
#memberRebuy { margin: 12px 20px 2px; }
.hh-rb-title { margin: 0 2px 8px; font: 700 11px/1.2 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.55); letter-spacing: 0.12em; }
.hh-rb-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hh-rb-track::-webkit-scrollbar { display: none; }
.hh-rb-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  max-width: 220px; min-height: 46px; padding: 0 14px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.5), rgba(255, 253, 248, 0.32));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  color: #1e3a2f;
  font: 600 13px/1.2 var(--font-ui, sans-serif); cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 46, 33, 0.1);
}
.hh-rb-chip:active { transform: scale(0.97); }
.hh-rb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-rb-plus { color: #94723e; font-weight: 800; flex-shrink: 0; padding-left: 10px; border-left: 1px solid rgba(148, 114, 62, 0.3); }

/* 🍵 本命茶卡（2026-07-04 roadmap 優先 1）：同再購列玻璃磚語彙，茶照當主視覺、CTA ghost 金 */
.hh-sig-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.55), rgba(255, 253, 248, 0.35));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(31, 46, 33, 0.1);
}
.hh-sig-photo {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  background: rgba(31, 46, 33, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.hh-sig-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-sig-info { flex: 1; min-width: 0; }
.hh-sig-eyebrow { margin: 0 0 3px; font: 700 10.5px/1.2 var(--font-ui, sans-serif); letter-spacing: 0.14em; color: #94723e; }
.hh-sig-name {
  margin: 0 0 2px;
  font: 700 17px/1.3 var(--font-serif, "Noto Serif TC", "Noto Serif TC Fallback", serif);
  color: #1e3a2f;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hh-sig-meta { margin: 0 0 9px; font: 500 12px/1.4 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.6); }
.hh-sig-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(148, 114, 62, 0.45);
  background: rgba(148, 114, 62, 0.08);
  font: 700 13px/1 var(--font-ui, sans-serif); color: #7a5c2e;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.hh-sig-btn:active { transform: scale(0.96); background: rgba(148, 114, 62, 0.16); }
.hh-sig-card--empty .hh-sig-empty-title {
  margin: 0 0 10px;
  font: 700 15px/1.4 var(--font-serif, "Noto Serif TC", "Noto Serif TC Fallback", serif);
  color: #1e3a2f;
}
.hh-sig-actions { display: flex; align-items: center; gap: 12px; }
.hh-sig-taste {
  appearance: none; -webkit-appearance: none;
  background: none; border: none;
  min-height: 42px; padding: 0 2px;
  font: 600 12.5px/1 var(--font-ui, sans-serif); color: #94723e;
  cursor: pointer; white-space: nowrap;
}
.hh-rb-titlerow { display: flex; align-items: center; justify-content: space-between; }
/* 觸控目標 42px；負上 margin 抵銷高度、視覺仍貼齊標題列 */
.hh-rb-titlerow .hh-sig-taste { min-height: 42px; padding: 0 2px; margin: -10px 0 0; }

/* 🍵 口味檔案 sheet（2026-07-05）：推斷 bars ＋ 雙軸偏好 chips */
.mc-sheet-title-icon--taste { background: linear-gradient(135deg, #e4efe2, #cfe3cc); color: #2f6b4f; }
.hh-taste-body { padding: 4px 20px 28px; }
.hh-taste-ai-hint { margin: 6px 2px 14px; font: 600 12.5px/1.5 var(--font-ui, sans-serif); color: #94723e; }
.hh-taste-section { margin-bottom: 18px; }
.hh-taste-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.hh-taste-sec-head h4 { margin: 0; font: 700 13.5px/1.2 var(--font-ui, sans-serif); color: #1e3a2f; }
.hh-taste-sec-head span { font: 500 11px/1 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.45); }
.hh-taste-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hh-taste-bar-name { flex: 0 0 auto; width: 92px; font: 600 12.5px/1.3 var(--font-ui, sans-serif); color: #1e3a2f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-taste-bar-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(31, 46, 33, 0.08); overflow: hidden; }
.hh-taste-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8cba84, #94723e); }
.hh-taste-bar-pct { flex: 0 0 auto; min-width: 34px; text-align: right; font: 700 12px/1 var(--font-ui, sans-serif); color: #94723e; }
.hh-taste-empty { padding: 14px 2px; font: 500 13px/1.6 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.55); }
.hh-taste-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-taste-tag {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(148, 114, 62, 0.3);
  background: rgba(255, 253, 248, 0.7);
  font: 600 13px/1 var(--font-ui, sans-serif); color: #4a4a42;
  cursor: pointer; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hh-taste-tag.is-on { background: #2f4b3c; border-color: #2f4b3c; color: #f3ead0; }
.hh-taste-tag:active { transform: scale(0.96); }
.hh-taste-save-btn {
  width: 100%; min-height: 48px; margin-top: 6px;
  border: none; border-radius: 14px;
  background: #2f4b3c; color: #f3ead0;
  font: 700 15px/1 var(--font-ui, sans-serif);
  cursor: pointer;
}
.hh-taste-save-btn:disabled { opacity: 0.6; }
.hh-taste-save-btn:active { transform: scale(0.99); }

/* ❤️/🪙 tile 副標優惠態 */
.hh-feat-sub--sale { color: #9a7327 !important; font-weight: 700 !important; }

/* === 我的功能 icon：液態玻璃片（2026-07-04 業主自 6 案 mockup 拍板 D 案）===
   只有 icon 墊一枚超透玻璃片（文字在外）：上緣白光、下緣金折射、暖色微漸層；
   blur 為輔（面板底近素色，效果主要來自 inset 光）。蓋掉 magazine-beta 的
   浮雕玻璃方塊（含 ::before 金圈/::after 金點）；specificity 墊高
   （production build CSS 順序不可靠，見 CLAUDE.md 陷阱）。按壓轉金＋微縮。 */
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n) .hh-feat-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 55%, rgba(181, 155, 90, 0.07)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: none !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 1px rgba(181, 155, 90, 0.28),
    0 6px 16px rgba(31, 46, 33, 0.07) !important;
  font-size: 27px !important;
  color: #3d5c48 !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n):active .hh-feat-icon { transform: scale(0.94); }
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n) .hh-feat-icon::before,
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n) .hh-feat-icon::after,
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-perk-item:nth-child(n) .hh-perk-icon::before,
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-perk-item:nth-child(n) .hh-perk-icon::after { display: none !important; }

/* （權益列版位已於 2026-07-04 移除——與功能格/等級禮遇 sheet 內容重複，業主拍板。
     其 SVG 金線 icon＋玻璃片樣式一併撤除；權益內容單一來源＝openTierPerksSheet。） */
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n) .hh-feat-icon .ph { font-weight: 300; }
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n):active .hh-feat-icon { color: #94723e !important; }

/* 方向 C：茶語彙手刻 SVG 線稿 icon 尺寸（去容器規則沿用上方） */
:is(body.member-page, .hh-member-screen) .hh-feature-grid .hh-feature-item:nth-child(n) .hh-feat-icon svg {
  width: 28px; height: 28px; display: block;
}
