/* tea-cellar.css — 🏺 我的茶倉 v1（innovation ④，2026-07-18）
   overlay 家族（z 10060）：深綠夜色 veil＋宣紙面板；倉單卡米白金框、年份印章紅落款。
   高度 vh fallback＋dvh；勿再往內加 backdrop-filter（手機穩定性規範）。 */
.hh-cl-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(24, 32, 26, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.hh-cl-overlay.is-open { background: rgba(24, 32, 26, 0.55); pointer-events: auto; }
.hh-cl-panel {
  width: 100%; max-width: 560px;
  max-height: 88vh; max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, #faf6ec, #f2ead6);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  position: relative;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.24s ease;
}
.hh-cl-overlay.is-open .hh-cl-panel { transform: translateY(0); opacity: 1; }
.hh-cl-close {
  appearance: none; -webkit-appearance: none;
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 17px; color: #8a8069; cursor: pointer;
}
.hh-cl-head { display: flex; align-items: center; gap: 12px; margin: 4px 4px 16px; }
.hh-cl-ico { font-size: 30px; }
.hh-cl-head h3 { font: 700 20px/1.3 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 0; letter-spacing: 0.1em; }
.hh-cl-sub { font: 500 12px/1.6 var(--font-ui, sans-serif); color: #8a7a5c; margin: 2px 0 0; }
.hh-cl-loading { text-align: center; padding: 40px 0; color: #8a7a5c; }
/* 統計列 */
.hh-cl-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 2px 16px;
}
.hh-cl-stat {
  flex: 1; min-width: 72px;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 114, 62, 0.28);
  border-radius: 12px;
  padding: 10px 6px;
}
.hh-cl-stat b { display: block; font: 700 19px/1.2 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; white-space: nowrap; }
.hh-cl-stat span { font: 600 10px/1.4 var(--font-ui, sans-serif); color: #8a7a5c; letter-spacing: 0.06em; }
/* 倉單列表（年份時間軸：老→新） */
.hh-cl-list { display: grid; gap: 10px; }
.hh-cl-item {
  appearance: none; -webkit-appearance: none;
  cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 114, 62, 0.3);
  border-radius: 14px;
  padding: 10px 12px 10px 10px;
}
.hh-cl-item:active { transform: scale(0.985); }
.hh-cl-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
.hh-cl-item-bd { flex: 1; min-width: 0; }
.hh-cl-item-bd b {
  display: block;
  font: 700 14px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif;
  color: #2c3a2e;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hh-cl-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.hh-cl-vt {
  font: 700 10.5px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif;
  font-style: normal;
  color: #9d3f2e;
  border: 1px solid rgba(157, 63, 46, 0.45);
  border-radius: 4px;
  padding: 3px 6px;
  letter-spacing: 0.06em;
}
.hh-cl-meta > span { font: 600 11.5px/1 var(--font-ui, sans-serif); color: #7a6845; }
.hh-cl-buy { display: block; margin-top: 4px; font: 500 10.5px/1.5 var(--font-ui, sans-serif); color: #9a8f76; }
.hh-cl-go { flex: none; font-size: 18px; color: #94723e; }
.hh-cl-foot { text-align: center; font: 500 11px/1.7 var(--font-ui, sans-serif); color: #9a8f76; margin: 16px 8px 0; }
/* 空狀態 */
.hh-cl-empty { text-align: center; padding: 26px 12px 12px; }
.hh-cl-empty p { font: 500 13.5px/1.9 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #5a5240; margin: 0 0 16px; }
.hh-cl-empty-cta {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  border: none; background: #2c3a2e; color: #f5efe0;
  font: 700 13.5px/1 var(--font-ui, sans-serif);
  letter-spacing: 0.1em;
  padding: 13px 30px; border-radius: 999px; min-height: 46px;
}
@media (prefers-reduced-motion: reduce) {
  .hh-cl-overlay, .hh-cl-panel { transition: none; }
}
@media (min-width: 1024px) {
  .hh-cl-overlay { align-items: center; }
  .hh-cl-panel { border-radius: 22px; max-height: 86vh; max-height: 86dvh; }
}
