/* CUDDLEH — 奶茶暖底 / 可可墨 / 乾燥櫻花粉；招牌：枕頭卡片 + 按壓擠壓感 */
:root {
  --bg: #FFF6F1;
  --ink: #4A342E;
  --ink-soft: #8A7068;
  --accent: #E8A0A6;
  --accent-deep: #C96F77;
  --card: #FFFFFF;
  --line: #EAD9D2;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
main { max-width: 720px; margin: 0 auto; padding: 0 20px 120px; }

/* wordmark */
header.site {
  max-width: 720px; margin: 0 auto; padding: 28px 20px 8px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.wordmark {
  font-size: 26px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: lowercase; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--accent-deep); }
header.site .tag { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.1em; }

h1 { font-size: 20px; font-weight: 700; margin: 20px 0 12px; }
a { color: var(--accent-deep); }

/* 枕頭卡片 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  box-shadow: 0 2px 10px rgba(74, 52, 46, 0.05);
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius) - 8px); background: var(--bg);
}
.product .name { font-weight: 700; margin: 12px 0 2px; }
.product .desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.price { font-weight: 700; font-size: 18px; }
.price::before { content: "NT$ "; font-size: 13px; font-weight: 400; color: var(--ink-soft); }

/* 擠壓感：全站唯一的大膽押注 */
.squish { transition: transform 0.12s ease; }
.squish:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) { .squish { transition: none; } .squish:active { transform: none; } }

button, .btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border: none; border-radius: 999px; padding: 10px 22px;
  background: var(--accent); color: #fff;
  display: inline-block; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { background: var(--accent-deep); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); font-weight: 400; }
button:focus-visible, .btn:focus-visible, input:focus-visible, .qty button:focus-visible {
  outline: 3px solid var(--accent-deep); outline-offset: 2px;
}

/* 數量調整 */
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-weight: 700;
}
.qty .n { min-width: 2ch; text-align: center; font-weight: 700; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 懸浮購物車藥丸 */
#cart-pill {
  position: fixed; right: 18px; bottom: 18px; z-index: 10;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 12px 20px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(74, 52, 46, 0.3);
  display: none; align-items: center; gap: 10px;
}
#cart-pill.show { display: inline-flex; }
#cart-pill .count {
  background: var(--accent); border-radius: 999px;
  min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px;
}

/* 表單 */
form.sheet { display: grid; gap: 14px; }
label.field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
label.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
input[type="text"], input[type="tel"], input[type="email"] {
  font: inherit; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
}
.choice label:has(input:checked) { border-color: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep); }

/* 訂單狀態 */
.status-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge {
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 700; padding: 4px 14px;
}
.muted { color: var(--ink-soft); font-size: 14px; }
table.items { width: 100%; border-collapse: collapse; font-size: 14px; }
table.items td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
table.items td:last-child { text-align: right; }
.empty { text-align: center; color: var(--ink-soft); padding: 48px 0; }
