/* LPSHOP 前台：手機優先，深色底＋螢光綠強調色（設計稿 https://claude.ai/artifact/7Vrg5gWfwyvgCcYQm1s1CZ） */
:root {
  --ink: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #262626;
  --line: #2e2e2e;
  --text: #f4f2ec;
  --muted: #b5b1a9;
  --faint: #8e8a83;
  --accent: #d4ff3f;
  --accent-ink: #0f0f0f;
  --paper: #f4f2ec;
  --danger: #ff8a7a;
  --radius: 14px;
  --display: "Anton", "Noto Sans TC", system-ui, sans-serif;
  --body: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.display { font-family: var(--display); letter-spacing: 1px; }
.price { font-family: var(--display); color: var(--accent); letter-spacing: .5px; }
.strike { color: var(--faint); text-decoration: line-through; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 頂部 */
.announce { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(15, 15, 15, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-2); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px; }
.logo { font-family: var(--display); font-size: 28px; letter-spacing: 2px; line-height: 1; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; position: relative; }
.badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.nav-desktop { display: none; gap: 22px; font-size: 15px; white-space: nowrap; }
.menu { display: none; }
.menu-toggle:checked ~ .menu { display: block; }
.menu { border-top: 1px solid var(--surface-2); padding: 8px 16px 16px; }
.menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--surface-2); font-size: 16px; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-label { display: none; }
  .header .wrap { padding: 0 16px; }
}

/* ---------- 通用元件 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 16px; cursor: pointer; text-align: center; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #3a3a3a; font-weight: 500; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn[disabled] { background: #2a2a2a; color: var(--muted); cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); display: inline-block; }
.rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; margin: 0 -16px; }
.rail::-webkit-scrollbar { display: none; }
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head a { font-size: 14px; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.notice.error { background: #3a1a16; color: #ffd5cc; }
.notice.success { background: #1f2a0c; color: #e6ffa3; }
.flash { position: fixed; top: 64px; left: 0; right: 0; z-index: 40; pointer-events: none; animation: flash-out 5s forwards; }
.flash .notice { pointer-events: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); max-width: 560px; margin: 0 auto; }
@keyframes flash-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- 首頁 */
.hero img { width: 100%; height: 430px; object-fit: cover; object-position: 52% 30%; }
.hero .copy { padding-top: 24px; padding-bottom: 28px; }
.kicker { font-family: var(--display); font-size: 13px; letter-spacing: 3px; color: var(--accent); }
.hero h1 { font-size: 40px; font-weight: 900; margin-top: 8px; letter-spacing: 1px; }
.hero p { color: var(--muted); margin: 12px 0 20px; }
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.promos div { background: var(--surface); border-radius: 12px; padding: 12px 8px; text-align: center; }
.promos b { display: block; font-family: var(--display); font-size: 22px; color: var(--accent); font-weight: 400; }
.promos span { font-size: 12px; color: var(--muted); }
.series-card { flex: 0 0 148px; display: flex; flex-direction: column; gap: 6px; }
.series-card img { width: 148px; height: 188px; object-fit: cover; border-radius: var(--radius); background: #fff; }
.series-card b { font-size: 15px; }
.series-card span { font-size: 13px; color: var(--muted); margin-top: -4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; } }
.p-card { display: flex; flex-direction: column; gap: 6px; }
.p-card .thumb { position: relative; }
.p-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #fff; }
.p-card .tag { position: absolute; left: 8px; top: 8px; background: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.p-card .name { font-size: 14px; font-weight: 500; line-height: 1.4; }
.p-card .sizes { font-size: 12px; color: var(--muted); }
.why { background: var(--paper); color: var(--ink); padding: 32px 0; }
.why .kicker { color: #5b5852; }
.why h2 { font-size: 24px; font-weight: 900; margin: 6px 0 18px; }
.why-list { display: grid; gap: 12px; }
@media (min-width: 800px) { .why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 10px; }
.why-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.why-item b { font-size: 17px; }
.why-item p { margin: 4px 0 0; font-size: 14px; color: #4a4741; }
.review { flex: 0 0 260px; margin: 0; background: var(--surface); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review blockquote { margin: 0; font-size: 18px; font-weight: 700; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.review figcaption img { width: 36px; height: 36px; border-radius: 18px; background: #fff; }
.row-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 10px; }
.row-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #fff; flex: 0 0 84px; }

/* ---------- 系列頁 */
.series-banner { background: var(--ink); }
.banner { display: block; width: 100%; height: auto; margin: 0 auto; }
.series-intro { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
.series-intro .banner { border-radius: 12px; }
@media (min-width: 900px) {
  .series-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  /* 細長的圖（例：尺寸表）自己佔一整列 */
  .series-intro .banner.wide { grid-column: 1 / -1; }
}
.size-links { display: flex; flex-wrap: wrap; gap: 6px; }
.size-links a, .size-links span { min-width: 44px; height: 36px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--surface-2); border: 1px solid #3a3a3a; }
.size-links a.low { border-color: var(--accent); }
.size-links a:hover { border-color: var(--text); }
.size-links .out { background: transparent; color: #6f6b65; border-style: dashed; text-decoration: line-through; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 16px; margin: 0 -16px; border-bottom: 1px solid var(--surface-2); }
.series-hero img { width: 100%; max-height: 420px; object-fit: cover; background: #fff; }
.series-hero h1 { font-size: 32px; font-weight: 900; margin: 6px 0 8px; }
.quick { display: grid; gap: 14px; }
@media (min-width: 800px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick-item { display: flex; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px; }
.quick-item > a img { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; background: #fff; }
.quick-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.size-btn { height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; background: var(--surface-2); border: 1px solid #3a3a3a; cursor: pointer; padding: 0; }
.size-btn.low { border-color: var(--accent); }
.size-btn[disabled] { background: transparent; color: #6f6b65; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.content-html { color: #d9d6cf; overflow-wrap: anywhere; }
.content-html img { height: auto; border-radius: 10px; margin: 8px auto; }
.content-html h2, .content-html h3, .content-html h4 { margin: 20px 0 8px; }
.content-html a { color: var(--accent); }
.content-html table { width: 100%; border-collapse: collapse; }
.content-html td, .content-html th { border-bottom: 1px solid var(--surface-2); padding: 8px; }
.content-html .woosq-btn, .content-html .elementor-button, .content-html button { display: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { color: var(--muted); font-weight: 500; text-align: left; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--surface-2); }

/* ---------- 商品頁 */
.product { display: grid; gap: 20px; padding-bottom: 120px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 24px 16px 60px; } }
.gallery .main { background: #fff; margin: 0 -16px; }
@media (min-width: 900px) { .gallery .main { margin: 0; border-radius: var(--radius); overflow: hidden; } }
.gallery .main img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 10px; background: #fff; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: 24px; font-weight: 900; margin: 6px 0 10px; }
.sizes-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sizes-pick label { position: relative; }
.sizes-pick input { position: absolute; opacity: 0; inset: 0; }
.sizes-pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); cursor: pointer; text-align: center; }
.sizes-pick b { font-size: 16px; }
.sizes-pick small { font-size: 11px; opacity: .8; }
.sizes-pick .low span { border-color: #5a5a3a; }
.sizes-pick input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sizes-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sizes-pick input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; background: var(--surface); border-radius: 999px; }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 20px; cursor: pointer; }
.qty input { width: 44px; text-align: center; background: transparent; border: 0; font-size: 17px; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
details.fold { border-top: 1px solid var(--surface-2); padding: 16px 0; }
details.fold:last-of-type { border-bottom: 1px solid var(--surface-2); }
details.fold summary { list-style: none; display: flex; justify-content: space-between; font-weight: 700; cursor: pointer; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "＋"; }
details.fold[open] summary::after { content: "－"; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); border-top: 1px solid #333; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.buybar .btn { flex: 1; min-height: 52px; }
@media (min-width: 900px) { .buybar.product-bar { position: static; border: 0; padding: 0; margin-top: 20px; } }
.progress { height: 6px; border-radius: 3px; background: #2a2a2a; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 6px; background: var(--accent); }

/* ---------- 購物車／結帳 */
.page-narrow { max-width: 640px; margin: 0 auto; padding: 16px 16px 60px; }
.page-title { font-size: 22px; font-weight: 900; margin: 8px 0 16px; }
.ship-progress { padding: 16px; border-radius: 16px; background: var(--surface); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.slots i { height: 8px; border-radius: 4px; background: #333; }
.slots i.on { background: var(--accent); }
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
.line img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: #fff; flex: 0 0 92px; }
.line .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line .problem { color: var(--danger); font-size: 13px; }
.sum { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { border-top: 1px solid var(--surface-2); padding-top: 14px; align-items: baseline; }
.sum .total b { font-family: var(--display); font-size: 28px; font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-size: 18px; font-weight: 900; margin-bottom: 12px; }
legend .n { font-family: var(--display); color: var(--accent); margin-right: 8px; font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { height: 48px; border-radius: 12px; border: 1px solid #3a3a3a; background: var(--surface); color: var(--text); padding: 0 14px; font-size: 16px; width: 100%; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt .dot { width: 20px; height: 20px; border-radius: 10px; border: 2px solid #5a5a5a; flex: 0 0 20px; }
.opt:has(input:checked) { border-color: var(--accent); background: #1f2410; }
.opt:has(input:checked) .dot { border: 6px solid var(--accent); background: var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .t { flex: 1; }
.opt b { display: block; }
.opt small { display: block; font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }
.model { font-size: 12px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.store-box { border-radius: 14px; border: 1px dashed #4a4a4a; padding: 14px; }
/* 依取貨方式切換：選超商才顯示門市；選宅配才顯示地址；取貨付款只在超商出現 */
.checkout .home-only, .checkout .cvs-only { display: none; }
.checkout:has(input[name="ship"][data-kind="home"]:checked) .home-only { display: flex; }
.checkout:has(input[name="ship"][data-kind="cvs"]:checked) .cvs-only { display: flex; }
.checkout:has(input[name="ship"][data-kind="home"]:checked) .opt.cod { display: none; }
.err { color: var(--danger); font-size: 13px; }

/* ---------- 訂單／帳號 */
.order-card { display: block; padding: 14px; border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.status.processing, .status.pending_payment { background: #3a3414; color: #ffe58a; }
.status.shipped { background: #13304a; color: #a8d8ff; }
.status.completed { background: #1f2a0c; color: #e6ffa3; }
.status.cancelled, .status.returned { background: #3a1a16; color: #ffd5cc; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 頁尾 */
.footer { border-top: 1px solid var(--surface-2); padding: 28px 0 120px; margin-top: 24px; }
.footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.footer nav a { padding: 10px 0; }
.footer .info { font-size: 13px; color: var(--muted); margin: 18px 0; line-height: 1.8; }
.footer .big { font-family: var(--display); font-size: 56px; letter-spacing: 3px; color: var(--surface-2); line-height: 1; }
.messenger { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 25; width: 56px; height: 56px; border-radius: 28px; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.messenger:hover { color: var(--ink); }
body:not(:has(.buybar)) .messenger { bottom: calc(20px + env(safe-area-inset-bottom)); }
/* 手機上有固定購買列的頁面（商品頁）不放浮動按鈕，免得蓋到尺寸鈕 */
@media (max-width: 899px) { body:has(.buybar) .messenger, body:has(.checkout) .messenger { display: none; } }

/* ---------- 部落格 */
.post-list { display: grid; gap: 14px; }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 10px; }
.post-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; flex: 0 0 110px; background: #fff; }
.article { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.article h1 { font-size: 26px; font-weight: 900; margin: 8px 0; }
.article blockquote { border-left: 3px solid var(--accent); margin: 12px 0; padding: 4px 14px; color: var(--muted); }
.article .wp-block-columns { display: flex; flex-wrap: wrap; gap: 12px; }
.article .wp-block-column { flex: 1 1 220px; }
