/* ============ MAISON AA — 燕麥白 × 金 ============ */
:root {
  --bg: #efeae0;
  --card: #fbf8f1;
  --text: #3a342c;
  --text-muted: #8a8174;
  --line: #d9d0c1;
  --accent: #a07c4e;
  --accent-soft: #e6dbc8;
  --danger: #a4493d;
  --serif: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --display: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --serif-zh: 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans TC', -apple-system, 'PingFang TC', sans-serif;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 頂部按鈕 ---------- */
.top-actions {
  position: fixed; top: 16px; right: 16px; z-index: 40;
  display: flex; gap: 10px;
}
.icon-btn {
  position: relative;
  height: 42px; min-width: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 21px;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--display); font-size: 13px; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.vip-on { background: var(--accent); color: var(--card); border-color: var(--accent); }
.cart-btn { padding: 0; width: 42px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--card);
  font-family: var(--sans); font-size: 11px; line-height: 18px; letter-spacing: 0;
}

/* ---------- Header ---------- */
.site-header { text-align: center; padding: 64px 16px 20px; }
.brand {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 7vw, 52px); letter-spacing: 0.28em; padding-left: 0.28em;
}
.tagline { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-muted); }
.header-links { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }
.header-links a, .text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent;
}
.header-links a:hover, .text-link:hover { border-bottom-color: var(--accent); }
.header-links .dot { margin: 0 10px; }

/* ---------- 分類 ---------- */
.category-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px 28px; }
.tab {
  border: 1px solid var(--line); background: transparent; border-radius: 20px;
  padding: 6px 18px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--accent); }
.tab.active { background: var(--text); color: var(--card); border-color: var(--text); }

/* ---------- 商品格 ---------- */
.gallery {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } }

.card { background: var(--card); cursor: pointer; transition: transform .25s, box-shadow .25s; border: 0; padding: 0; text-align: left; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(58, 52, 44, 0.08); }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--accent-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); letter-spacing: 0.3em; color: var(--accent); font-size: 14px;
}
.status-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge {
  font-size: 11px; padding: 2px 9px; letter-spacing: 0.08em;
  background: rgba(251, 248, 241, 0.94); border: 1px solid var(--line);
}
.badge.in-stock { color: var(--text); }
.badge.pre-order { color: var(--accent); border-style: dashed; border-color: var(--accent); }
.badge.sold-out { color: var(--text-muted); text-decoration: line-through; }
.card-body { padding: 12px 12px 16px; }
.card-title { margin: 0; font-family: var(--serif-zh); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0.04em; }
.card-title-en { margin: 2px 0 0; font-family: var(--display); font-style: italic; font-size: 13px; color: var(--text-muted); }
.product-price, .modal-price, .money {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: lining-nums;
}
.product-price { margin: 8px 0 0; font-size: 16px; font-weight: 500; color: var(--accent); }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.85em; margin-right: 6px; }

.gallery-hint { text-align: center; color: var(--text-muted); font-size: 12px; margin: 40px 16px 14px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ---------- 選項 chip ---------- */
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-box {
  min-width: 42px; height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--text); background: transparent; border-radius: var(--radius);
  font-size: 13px; cursor: pointer; transition: all .18s;
}
button.option-box:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.option-box small { font-size: 11px; margin-left: 2px; text-decoration: none; }
.option-box.pre-order { border-style: dashed; border-color: var(--accent); color: var(--text-muted); }
.option-box.sold-out, .option-box:disabled {
  border-color: var(--line); color: var(--text-muted); text-decoration: line-through;
  opacity: 0.45; cursor: not-allowed;
}
.option-box.selected, .option-box.selected.pre-order {
  background: var(--accent); border-color: var(--accent); color: var(--card);
}
.legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 6px 16px 10px; font-size: 12px; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend .option-box { min-width: 30px; height: 26px; padding: 0 8px; cursor: default; font-size: 12px; }

.site-footer { text-align: center; padding: 34px 16px 48px; }
.site-footer p { margin: 0; font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 15px; letter-spacing: 0.08em; }

/* ---------- 共用彈窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.overlay.open { opacity: 1; visibility: visible; }
.backdrop { position: absolute; inset: 0; background: rgba(40, 35, 29, 0.45); }
.close-btn {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(251, 248, 241, 0.9); font-size: 22px; line-height: 1; cursor: pointer;
}
.close-btn.static { position: static; }
.panel {
  position: relative; background: var(--card); width: 100%; max-width: 440px;
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px 28px 30px;
}
.panel-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: 0.1em; text-align: center; }
.panel-desc { text-align: center; color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.panel-note { text-align: center; color: var(--text-muted); font-size: 12px; margin: 16px 0 0; }

.primary-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: 0.12em; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.primary-btn { background: var(--text); color: var(--card); border: 1px solid var(--text); }
.primary-btn:hover { background: var(--accent); border-color: var(--accent); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; background: var(--text); }
.ghost-btn { background: transparent; border: 1px solid var(--text); }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.full { width: 100%; margin-top: 18px; }

.field-label { display: block; font-size: 12px; color: var(--text-muted); margin: 14px 0 6px; }
.field {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--text);
}
textarea.field { height: 80px; padding: 10px 12px; resize: vertical; }
.field:focus { outline: none; border-color: var(--accent); }
.error-text { color: var(--danger); font-size: 13px; text-align: center; margin: 12px 0 0; }

/* ---------- 商品彈窗 ---------- */
.modal-content {
  position: relative; background: var(--card); width: 100%; max-width: 1040px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.modal-gallery { padding: 28px 0 28px 28px; align-self: start; }
@media (min-width: 761px) { .modal-gallery { position: sticky; top: 0; } }
.modal-media { position: relative; background: var(--accent-soft); aspect-ratio: 3 / 4; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.modal-media img { -webkit-user-drag: none; }
.modal-media img, .modal-media video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.image-counter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(251, 248, 241, 0.9); font-family: var(--display); font-size: 13px; letter-spacing: 0.12em;
  padding: 1px 12px; font-variant-numeric: lining-nums;
}
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(251, 248, 241, 0.85); font-size: 22px; cursor: pointer; color: var(--text);
}
.nav-arrow.prev { left: 10px; } .nav-arrow.next { right: 10px; }
.thumbs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs .thumb { flex: 0 0 64px; scroll-snap-align: start; }
.thumb { position: relative; padding: 0; border: 1px solid transparent; background: var(--accent-soft); aspect-ratio: 3 / 4; cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--text); }
.thumb.is-video::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; background: rgba(58, 52, 44, .25); }

.modal-info { padding: 44px 40px 36px; }
.eyebrow { margin: 0 0 14px; font-family: var(--display); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.modal-title { margin: 0; font-family: var(--serif-zh); font-weight: 500; font-size: 23px; line-height: 1.45; letter-spacing: 0.06em; padding-right: 28px; }
.title-en { margin: 4px 0 0; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--text-muted); letter-spacing: 0.02em; }
.modal-price { margin: 16px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 22px; color: var(--text); }

.lbl-en { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); }
.lbl-zh { font-size: 12px; color: var(--text-muted); letter-spacing: 0.12em; margin-left: 8px; }
.meta-block { margin-bottom: 20px; }
.meta-label { display: flex; align-items: baseline; margin: 0 0 10px; }
.meta-value { margin-left: 12px; font-family: var(--serif-zh); font-size: 13px; color: var(--accent); }
.size-guide-link { margin-left: auto; background: none; border: 0; padding: 0; font-size: 12px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.size-guide-link:hover { color: var(--accent); }
.loc-hint { margin: 10px 0 0; font-size: 12px; color: var(--accent); min-height: 1em; }
.modal-msg { font-size: 13px; color: var(--danger); margin: 0; min-height: 1em; }
.modal-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 8px 0 30px; }

.detail-sec { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.sec-head { display: flex; align-items: baseline; margin: 0 0 12px; }
.fabric-zh { margin: 0; font-family: var(--serif-zh); font-size: 15px; letter-spacing: 0.05em; }
.fabric-en { margin: 2px 0 0; font-family: var(--display); font-style: italic; font-size: 16px; color: var(--text-muted); }
.detail-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.detail-list li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.detail-list li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 5px; border-top: 1px solid var(--accent); }
.sec-text { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.sc-unit { margin: 0 0 6px; font-size: 11px; color: var(--text-muted); text-align: right; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.sc-table th { font-weight: 400; font-size: 12px; color: var(--text-muted); padding: 8px 4px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.sc-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 15px; font-variant-numeric: lining-nums; }
.sc-table td:first-child { font-weight: 600; }
.fit-height { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 13px; font-family: var(--display); font-size: 15px; font-variant-numeric: lining-nums; }
.fit-height span { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }
.tryon { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tryon-card { background: var(--bg); padding: 12px 14px; font-size: 12px; color: var(--text-muted); }
.tryon-card p { margin: 0; }
.tryon-card strong { font-family: var(--display); font-size: 15px; color: var(--text); font-weight: 600; }
.tryon-name { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--text) !important; margin-bottom: 2px !important; }

@media (max-width: 760px) {
  .product-overlay { padding: 0; align-items: stretch; }
  .product-overlay .modal-content { max-height: 100vh; height: 100%; grid-template-columns: 1fr; }
  .modal-gallery { padding: 0; }
  .thumbs { padding: 0 16px; scroll-padding: 0 16px; }
  .thumbs .thumb { flex-basis: 48px; }
  .modal-info { padding: 26px 20px 0; }
  .modal-title { font-size: 20px; }
  .modal-actions {
    position: sticky; bottom: 0; z-index: 2; margin: 8px -20px 24px; padding: 12px 20px;
    background: rgba(251, 248, 241, 0.97); border-top: 1px solid var(--line);
  }
}

/* ---------- 購物須知 ---------- */
.guide-image-wrap { margin: -36px -28px 20px; }
.guide-list { border-top: 1px solid var(--line); }
.guide-item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.guide-item-label { color: var(--accent); }

/* VIP 會員制度（購物須知內） */
.guide-vip { margin-top: 18px; padding: 16px 18px; background: var(--accent-soft); border-radius: var(--radius); font-size: 13px; }
.guide-vip-title { margin: 0 0 4px; font-family: var(--serif-zh); font-size: 15px; letter-spacing: 0.1em; color: var(--text); }
.guide-vip-desc { margin: 0; }
.vip-perks { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.vip-perks li { position: relative; padding: 3px 0 3px 22px; font-size: 13px; }
.vip-perks li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent); }
#vipDesc .vip-perks { display: inline-block; margin-top: 12px; }

/* ---------- VIP 生日提醒條 ---------- */
.bday-bar { position: relative; max-width: 560px; margin: -6px auto 18px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); text-align: center; padding: 10px 40px; font-size: 13px; letter-spacing: 0.04em; border-radius: 22px; }
@media (max-width: 600px) { .bday-bar { margin: -6px 16px 16px; } }
.bday-bar p { margin: 0; line-height: 1.6; }
.bday-close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--accent); font-size: 20px; width: 32px; height: 32px; cursor: pointer; }

/* ---------- 會員 ---------- */
.member-btn { width: auto; min-width: 52px; padding: 0 14px; font-size: 13px; letter-spacing: 0.08em; }
.member-btn.logged:not(.vip-on) { border-color: var(--accent); color: var(--accent); }
.member-panel { max-width: 440px; }
.member-msg { background: var(--accent-soft); color: var(--text); font-size: 13px; text-align: center; padding: 10px 12px; margin: 0 0 14px; border-radius: var(--radius); }
.field-label small { margin-left: 8px; color: var(--accent); font-size: 11px; }
.agree-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 12px; line-height: 1.6; color: var(--text-muted); cursor: pointer; }
.terms-link { font-size: inherit; padding: 0; text-decoration: underline; }
.terms-box { margin: 8px 0 4px 26px; padding: 12px 14px; border: 1px solid var(--line, #ddd); border-radius: 8px; background: var(--surface, #faf8f5); font-size: 12px; line-height: 1.7; color: var(--text-muted); max-height: 240px; overflow-y: auto; }
.terms-box h3 { margin: 0 0 6px; font-size: 13px; color: var(--text); }
.terms-box ol { margin: 0 0 6px; padding-left: 18px; }
.terms-box li b { display: block; color: var(--text); font-weight: 600; }
.agree-row input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.member-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
.member-switch .text-link { font-size: 13px; }
.member-join { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.member-join p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.panel-note a { color: var(--accent); }
.member-vip { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; margin: 4px 0 14px; border-radius: var(--radius); }
.member-vip.is-vip { background: var(--accent-soft); border-color: var(--accent-soft); }
.member-vip-title { margin: 0 0 4px; font-family: var(--serif-zh); font-size: 15px; letter-spacing: 0.12em; }
.member-vip.is-vip .member-vip-title { color: var(--accent); }
.member-vip-desc, .member-bday { margin: 0; font-size: 13px; }
.member-bday.on { color: var(--accent); font-weight: 500; }
.member-vip .vip-perks { margin-top: 8px; }
.member-info { border-top: 1px solid var(--line); margin: 0 0 16px; }
.member-info p { display: grid; grid-template-columns: 72px 1fr; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.member-info span { color: var(--text-muted); }
.member-sec { font-family: var(--serif-zh); letter-spacing: 0.12em; font-size: 15px; margin: 0 0 8px; }
.member-orders { margin-bottom: 18px; }
.member-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 14px 0; margin: 0; }
.mo { border: 1px solid var(--line); background: var(--card); padding: 12px 14px; margin-bottom: 8px; border-radius: var(--radius); }
.mo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mo-id { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.mo-status { font-size: 11px; padding: 2px 8px; border: 1px solid var(--line); color: var(--text-muted); white-space: nowrap; }
.mo-status.ok { border-color: var(--accent); color: var(--accent); }
.mo-time { margin: 4px 0 6px; font-size: 12px; color: var(--text-muted); }
.mo-items { margin: 0 0 6px; font-size: 12px; line-height: 1.6; }
.mo-total { margin: 0; font-size: 13px; text-align: right; }
.mo-total small { margin-left: 6px; color: var(--accent); font-size: 11px; }
.co-member { background: var(--accent-soft); padding: 14px 16px; margin: 0 0 18px; text-align: center; border-radius: var(--radius); }
.co-member p { margin: 0; font-size: 13px; }
.co-member-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.co-member-btns .ghost-btn { padding: 10px 8px; font-size: 13px; background: var(--card); }
.co-member .co-member-skip { font-size: 12px; color: var(--text-muted); }
.co-member.guest-join { margin: 18px 0 0; }
.co-member.guest-join .ghost-btn { margin-top: 10px; background: var(--card); }
.paid-box { border: 1px solid var(--accent); padding: 14px 16px; margin: 14px 0 0; border-radius: var(--radius); background: var(--card); }
.paid-title { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--accent); }
.paid-desc { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); }
.paid-box .agree-row { margin: 6px 0 0; color: var(--text); font-size: 13px; }
.wait-box { background: #f6efe3; border-left: 3px solid var(--accent); padding: 12px 14px; margin: 18px 0 0; font-size: 13px; }
.wait-title { margin: 0 0 6px; font-weight: 500; color: var(--accent); }
.wait-box ul { margin: 0; padding-left: 18px; }
.wait-box li { margin: 0 0 4px; line-height: 1.6; }
.wait-box li b { font-weight: 500; margin-right: 6px; color: var(--accent); }
.wait-desc { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.wait-box .agree-row { margin: 10px 0 0; color: var(--text); }
.vip-gate { margin: 18px 0 0; }
.wait-note { color: var(--accent); }
.contact-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.contact-tab { border: 1px solid var(--line); background: var(--card); color: var(--text-muted); font-size: 11px; letter-spacing: 0; padding: 8px 0; white-space: nowrap; overflow: hidden; cursor: pointer; border-radius: var(--radius); font-family: var(--sans); }
.contact-tab.selected { border-color: var(--text); color: var(--text); background: var(--bg); }
.login-hint { font-size: 12px; color: var(--accent); text-align: center; margin: 0 0 8px; }

/* ---------- 預約來店 ---------- */
.visit { max-width: 880px; margin: 24px auto 0; padding: 40px 16px 8px; text-align: center; border-top: 1px solid var(--line); }
.visit-kicker { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.visit-title { margin: 4px 0 6px; font-family: var(--serif-zh); font-weight: 500; font-size: 22px; letter-spacing: 0.2em; }
.visit-note { margin: 0 0 20px; font-size: 13px; color: var(--text-muted); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; text-align: left; }
.visit-card { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius); }
.visit-region { margin: 0 0 6px; font-family: var(--serif-zh); font-size: 16px; letter-spacing: 0.12em; }
.visit-region span { margin-left: 8px; font-family: var(--sans); font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.visit-addr { margin: 0 0 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.visit-map { font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.visit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 18px; padding: 0 36px; text-decoration: none; line-height: 1; }
html { scroll-behavior: smooth; }

/* ---------- 購物車 ---------- */
.drawer { justify-content: flex-end; padding: 0; }
.drawer-panel {
  position: relative; background: var(--card); width: 100%; max-width: 420px; height: 100%;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: 0.12em; font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 14px; }
.cart-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-group-title { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin: 0 0 4px; }
.cart-group-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 10px 0; align-items: start; }
.cart-thumb { width: 60px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--accent-soft); }
.cart-name { margin: 0; font-size: 13px; line-height: 1.4; }
.cart-variant { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.cart-tag { display: inline-block; font-size: 11px; border: 1px dashed var(--accent); color: var(--accent); padding: 0 6px; margin-top: 4px; }
.cart-price { text-align: right; font-size: 13px; white-space: nowrap; }
.remove-btn { background: none; border: 0; color: var(--text-muted); font-size: 12px; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.subtotal { text-align: right; font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
.ship-box { font-size: 12px; margin-bottom: 12px; }
.ship-row { margin: 0 0 4px; }
.ship-row.ok { color: var(--accent); }
.bar { height: 4px; background: var(--accent-soft); border-radius: 2px; overflow: hidden; margin: 0 0 8px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin: 6px 0 2px; }
.total-row .money { font-size: 17px; }
.total-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; }
.vip-tag { font-size: 12px; color: var(--accent); margin: 0 0 6px; }

/* ---------- 結帳 ---------- */
.checkout-panel { max-width: 480px; }
.region-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-choice .option-box { width: 100%; height: 42px; }
.order-preview {
  white-space: pre-wrap; font-size: 12px; background: var(--bg); padding: 12px; margin: 16px 0 0;
  max-height: 200px; overflow-y: auto; font-family: var(--sans);
}
.checkout-steps { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; padding-left: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 72px; transform: translate(-50%, -12px); z-index: 90;
  background: var(--text); color: var(--card); padding: 10px 20px; font-size: 13px; border-radius: 20px;
  opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 庫存與數量 ---------- */
.cart-notice { background: #f6ecdc; border-left: 3px solid var(--accent); padding: 10px 12px; font-size: 12px; margin: 12px 0 4px; }
.cart-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 16px; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; color: var(--text); }
.cart-low { color: var(--danger); }
.cart-group.is-soldout .cart-group-title { color: var(--danger); }
.cart-group.is-soldout .cart-item { opacity: .55; }

/* ---------- 結帳摘要與成功頁 ---------- */
.order-summary { background: var(--bg); padding: 12px 14px; margin-bottom: 6px; font-size: 13px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sum-row small { display: block; color: var(--text-muted); font-size: 11px; }
.sum-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; font-size: 15px; }
.sum-total small { display: inline; margin-left: 6px; color: var(--accent); }
.success { text-align: center; padding-top: 4px; }
.success-mark { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent); color: var(--card); font-size: 26px; line-height: 52px; }
.success-title { font-family: var(--serif); font-size: 24px; letter-spacing: 0.1em; margin: 0; }
.success-id { font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; color: var(--accent); margin: 4px 0 12px; }

/* ---------- 運送與付款 ---------- */
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.option-box.choice { height: auto; min-height: 46px; padding: 6px 10px; flex-direction: column; line-height: 1.3; }
.option-box.choice small { display: block; margin: 2px 0 0; font-size: 11px; opacity: .8; }
.pay-info { border: 1px solid var(--accent); background: #fff; padding: 12px 14px; margin: 10px 0 4px; font-size: 13px; }
.pay-title { margin: 0 0 6px; color: var(--accent); letter-spacing: 0.08em; }
.pay-line { margin: 0; user-select: all; }
.pay-amount { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; }
.pay-note { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.sum-row small.inline { display: inline; margin-left: 6px; color: var(--accent); }
button.option-box.selected:hover:not(:disabled) { color: var(--card); border-color: var(--accent); }

/* ---------- 影片 ---------- */
.modal-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--accent-soft); }
.video-badge {
  position: absolute; right: 10px; bottom: 10px; font-size: 11px; padding: 2px 8px;
  background: rgba(58, 52, 44, 0.72); color: var(--card); letter-spacing: 0.05em;
}
.hero { max-width: 1180px; margin: 0 auto 26px; padding: 0 16px; }
.hero video { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; background: var(--accent-soft); }
@media (max-width: 520px) { .hero video { aspect-ratio: 4 / 5; } }
.card-media img { position: relative; z-index: 1; }
.status-badges, .video-badge { z-index: 2; }
.card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; font: inherit; color: inherit; }
.card-body { flex: 1; }
@media (max-width: 520px) {
  .card-body { padding: 10px 10px 14px; }
  .card-title { font-size: 13px; }
  .card-title-en { font-size: 12px; }
  .product-price { font-size: 14px; }
}

/* ---------- 適穿身高尺標 ---------- */
.fit-range { background: var(--bg); padding: 14px 16px 12px; margin-bottom: 12px; }
.fit-range-head { display: flex; justify-content: space-between; align-items: baseline; }
.fit-range-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.12em; }
.fit-range-val { font-family: var(--display); font-size: 22px; font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: 0.04em; }
.fit-range-val small { font-size: 13px; color: var(--text-muted); }
.fit-bar { position: relative; height: 6px; margin: 30px 0 6px; background: var(--line); border-radius: 3px; }
.fit-band { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; opacity: .55; }
.fit-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); border: 2px solid var(--bg); }
.fit-dot em { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: italic; font-family: var(--display); font-size: 13px; color: var(--text); }
.fit-scale { display: flex; justify-content: space-between; font-family: var(--display); font-size: 12px; color: var(--text-muted); font-variant-numeric: lining-nums; }

/* ---------- 適穿資訊（取代身高尺標） ---------- */
.fit-bar, .fit-scale { display: none; }
.fit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.fit-row + .fit-row { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.fit-range-val { font-size: 19px; }
.fit-wg { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-family: var(--display); font-size: 16px; font-variant-numeric: lining-nums; }
.fit-wg b { font-weight: 600; margin-right: 3px; }
.fit-wg small { font-size: 12px; color: var(--text-muted); align-self: flex-end; }
.fit-note { font-size: 12px; color: var(--accent); text-align: right; }
.tryon-note { margin-top: 4px !important; color: var(--accent); }
.fit-tag { margin-left: 10px; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; letter-spacing: 0.05em; }

/* ---------- 幫我選尺寸 ---------- */
.size-finder { margin-top: 10px; }
.finder-toggle { background: none; border: 0; padding: 0; font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); cursor: pointer; }
.finder-toggle span { color: var(--accent); }
.finder-panel { background: var(--bg); padding: 12px 14px; }
.finder-inputs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finder-inputs label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.finder-inputs input { width: 64px; height: 36px; padding: 0 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--text); }
.finder-inputs input:focus { outline: none; border-color: var(--accent); }
.finder-go { height: 36px; padding: 0 16px; border: 1px solid var(--text); background: var(--text); color: var(--card); font-size: 13px; letter-spacing: 0.1em; cursor: pointer; margin-left: auto; }
.finder-go:hover { background: var(--accent); border-color: var(--accent); }
.finder-result { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.finder-rec { margin: 0; font-size: 13px; }
.finder-rec strong { font-family: var(--display); font-size: 22px; font-weight: 600; margin-left: 6px; color: var(--accent); }
.finder-sold { font-size: 12px; color: var(--danger); margin-left: 6px; }
.finder-note { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
.finder-pick { margin-top: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 12px; cursor: pointer; }
.finder-pick:hover { background: var(--accent); color: var(--card); }
.finder-foot { margin: 10px 0 0; font-size: 11px; color: var(--text-muted); }

/* ---------- 載入骨架 ---------- */
.card.skeleton { cursor: default; box-shadow: none; transform: none; }
.card.skeleton .card-media, .sk-line { background: linear-gradient(100deg, #e6dfd2 20%, #f1ebe0 40%, #e6dfd2 60%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.sk-line { display: block; height: 12px; margin: 4px 0 10px; border-radius: 2px; }
.sk-line.short { width: 55%; }
@keyframes sk { to { background-position: -200% 0; } }

/* 照片載好後淡入，不會一格一格跳出來 */
.card-media img { opacity: 0; transition: opacity .2s ease, transform .6s ease; }
.card-media img.in { opacity: 1; }

/* 匯款末五碼 */
.last5-box { margin: 18px 0 4px; }
.field.last5 { font-size: 20px; letter-spacing: .35em; text-align: center; }
.hk-proof { margin: 14px 0 0; }

/* 首頁 IG 圖示 */
#igLink { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; border-bottom: 0; }
#igLink .ig-icon { flex: none; }
#igLink .ig-handle { border-bottom: 1px solid transparent; }
#igLink:hover .ig-handle { border-bottom-color: var(--accent); }

.footer-mail{margin-top:6px;font-size:12px;letter-spacing:.04em}
.footer-mail a,.mail-note a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.mail-note{text-align:center}

.proof-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin-top:10px;min-height:96px;padding:14px;border:1px dashed var(--line,#cbbfae);background:#fff;cursor:pointer;font-size:13px;letter-spacing:.04em;color:inherit;text-align:center}
.proof-drop .proof-plus{font-size:22px;line-height:1}
.proof-drop.has{border-style:solid}
.proof-drop img{max-width:100%;max-height:180px;object-fit:contain}
.proof-msg{margin-top:6px;font-size:12px;color:#9b5b4a}
.or-line{display:flex;align-items:center;gap:10px;margin:12px 0 0;font-size:12px;color:#9a8c7a}
.or-line::before,.or-line::after{content:'';flex:1;border-top:1px solid #e3d9cb}
.member-bday-form{margin:14px 0 22px;padding:14px;border:1px solid #e3d9cb;background:#fffdf9}
.member-bday-title{font-size:13px;margin:0 0 10px;letter-spacing:.03em}
.bday-row{display:flex;gap:8px;align-items:stretch}
.bday-row .field{flex:1;margin:0}
.bday-row .ghost-btn{white-space:nowrap;padding:0 18px}
.contact-hint{margin:6px 0 0;font-size:12px;color:#9a8c7a;letter-spacing:.02em;line-height:1.5}
.guide-sec { margin: 22px 0 8px; font-family: var(--serif-zh); font-size: 14px; letter-spacing: 0.12em; color: var(--text); }
.guide-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.guide-step-no { width: 22px; height: 22px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.guide-step-title { margin: 0 0 2px; color: var(--text); letter-spacing: 0.04em; }
.guide-step-desc { margin: 0; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 520px) {
  .header-links #igLink { display: flex; width: fit-content; margin: 0 auto 8px; }
  .header-links #igLink + .dot { display: none; }
}
.reel-link { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: 0.06em; }
.reel-link[hidden] { display: none; }
.reel-link svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.reel-link .reel-arrow { margin-left: auto; color: var(--text-muted); }
.reel-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 地區切換、庫存提示、結帳步驟 ---------- */
.region-btn { width: auto; padding: 0 12px; font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.badge.low { color: #fff; background: var(--accent); border-color: var(--accent); }
.card.is-soldout .card-media img { opacity: .55; filter: grayscale(.4); }
.option-row.need { animation: needPulse 1.6s ease; border-radius: 6px; }
@keyframes needPulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 15%, 60% { box-shadow: 0 0 0 3px var(--accent); } 25%, 45% { transform: translateX(-3px); } 35% { transform: translateX(3px); } }
.toast.has-act { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; }
.toast.has-act span { white-space: nowrap; }
.toast-act { border: 0; background: var(--accent); color: #fff; border-radius: 16px; padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.copy-btn { margin-left: 8px; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 12px; padding: 1px 10px; font-size: 12px; cursor: pointer; vertical-align: 1px; }
.pay-wait { color: var(--accent); font-weight: 500; }
.co-step { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: 0.08em; color: var(--text); }
.co-step span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--card); font-size: 12px; letter-spacing: 0; }
.total-hint .text-link { font-size: inherit; padding: 0; text-decoration: underline; }
.co-region { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.co-region b { color: var(--text); font-weight: 500; }
.co-region .text-link { margin-left: 10px; font-size: 13px; padding: 0; text-decoration: underline; }
.co-join { text-align: left; }
.co-join .co-join-title { font-size: 14px; font-weight: 500; text-align: center; margin-bottom: 8px; }
.co-join-list { margin: 0 0 4px; padding-left: 18px; font-size: 13px; line-height: 1.75; }
.co-join-list b { font-weight: 600; color: var(--accent); }
.co-join .co-member-skip { text-align: center; }
.split-opts { display: grid; gap: 6px; margin: 6px 0 10px; }
.split-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
.split-opt input { margin-top: 2px; accent-color: var(--accent); }
.split-opt:has(input:checked) { border-color: var(--accent); }
/* 手機：彈窗往下捲時，右上角的 × 固定在畫面上，隨時可以關掉 */
@media (max-width: 760px) {
  .overlay.open .panel > .close-btn { position: fixed; top: 24px; right: 26px; box-shadow: 0 1px 6px rgba(40, 35, 29, .18); }
  .overlay.open .modal-content > .close-btn { position: fixed; top: 12px; right: 12px; box-shadow: 0 1px 6px rgba(40, 35, 29, .18); }
}

/* ---------- 購物車浮動條、搭配推薦、售完私訊 ---------- */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 0; border-radius: 28px; background: var(--text); color: var(--card); font-size: 14px; letter-spacing: .04em; box-shadow: 0 6px 20px rgba(40, 35, 29, .25); cursor: pointer; max-width: 560px; margin: 0 auto; }
.cart-bar[hidden] { display: none; }
.cart-bar .cb-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar .cb-l b { font-weight: 600; }
.cart-bar .cb-r { flex: none; background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 18px; font-size: 13px; }
body.has-cartbar .site-footer { padding-bottom: 100px; }
.related { margin: 6px 0 30px; }
.sug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sug-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sug-card { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--card); padding: 0 0 8px; cursor: pointer; font: inherit; color: var(--text); min-width: 0; }
.sug-img { display: block; aspect-ratio: 3 / 4; background: var(--accent-soft); overflow: hidden; }
.sug-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sug-name { font-size: 12px; line-height: 1.4; padding: 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sug-price { font-size: 12px; color: var(--accent); padding: 0 8px; }
.sug-price .price-old { display: none; }
.cart-sug { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-sug-title { margin: 0 0 10px; font-size: 13px; color: var(--text); }
.cart-sug-title b { color: var(--accent); }
#modalAddCart.sold-dm { background: transparent; color: var(--text); border: 1px solid var(--text); }
.modal-actions.one { grid-template-columns: 1fr; }
#modalDm[hidden] { display: none; }

/* ---------- 到貨通知 ---------- */
.wait-link { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 16px; background: none; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; }
.wait-link[hidden] { display: none; }
.wait-form { border: 1px solid var(--accent); background: var(--card); padding: 16px; margin: -14px 0 28px; }
.wait-form[hidden] { display: none; }
.wait-form label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.wait-form .field { margin-top: 4px; }
.wait-title { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.wait-desc { margin: 0 0 12px; font-size: 12px; color: var(--text-muted); }
.wait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.wait-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 6px; }
.option-box.sold-out { cursor: pointer; }
.option-box.sold-out:hover { border-color: var(--line) !important; color: var(--text-muted) !important; }
.wait-link.no-restock { border-color: var(--line); color: var(--text-muted); cursor: default; }
#modalAddCart:disabled.sold-dm { opacity: .6; }
.refund-note b { color: var(--accent); }

/* ---------- 購物金 ---------- */
.credit-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.credit-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.credit-row small { margin-left: 4px; }
.credit-row .money { color: var(--accent); }
.credit-hint { margin-left: 6px; font-size: 11px; color: var(--text-muted); }

/* 忘記密碼／修改密碼 */
.forgot-ok{background:var(--accent-soft,#efe5d6);border-radius:10px;padding:10px 14px;margin:10px 0;font-size:14px;line-height:1.7}
.forgot-ok p{margin:4px 0}
.member-pw{margin:16px 0 10px;border:1px solid var(--line,#e2d9ca);border-radius:10px;padding:10px 14px}
.member-pw summary{cursor:pointer;font-size:14px}
.member-pw[open] summary{margin-bottom:8px}

.sum-ship-note{margin:6px 0 2px;font-size:12px;color:var(--muted)}

/* 私訊詢問小視窗 */
.dm-sheet-bg{position:fixed;inset:0;z-index:300;background:rgba(40,34,28,.45);display:flex;align-items:flex-end;justify-content:center}
.dm-sheet{background:var(--bg,#faf6ef);width:100%;max-width:440px;border-radius:18px 18px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 24px rgba(0,0,0,.15)}
@media (min-width:600px){.dm-sheet-bg{align-items:center}.dm-sheet{border-radius:18px}}
.dm-title{margin:0 0 6px;font-size:18px;letter-spacing:.08em}
.dm-desc{margin:0 0 8px;font-size:14px;color:var(--muted)}
.dm-msg{white-space:pre-wrap;word-break:break-all;font:inherit;font-size:14px;line-height:1.6;background:var(--accent-soft,#efe5d6);border-radius:10px;padding:10px 12px;margin:0 0 10px;user-select:all;-webkit-user-select:all}
.dm-steps{margin:0 0 14px;padding-left:20px;font-size:14px;line-height:1.7}
.dm-sheet .ghost-btn{margin-top:8px}

.cart-split{margin:4px 0 0;font-size:12px;color:var(--wait,#a5582f);line-height:1.5}

.dm-sheet .dm-app{display:flex;align-items:center;justify-content:center;text-align:center;margin-top:8px;text-decoration:none;padding-top:0;padding-bottom:0;min-height:46px}
.co-member.vip-new { margin: 18px 0 0; border-color: var(--accent, #b08d57); }
.co-member.vip-new .vip-bday-t { margin: 12px 0 8px; font-size: 14px; }
.co-member.vip-new .bday-row { margin-bottom: 6px; }
