:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #3b2f24;
  --muted: #6b5c4b;
  --green: #3f5d3a;
  --green-dark: #2e4729;
  --accent: #a8501f;
  --line: #e4d9c5;
  --radius: 14px;
  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.4; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 1.6rem; letter-spacing: .15em; margin-bottom: 32px; }
.section-title::after {
  content: ""; display: block; width: 48px; height: 2px;
  background: var(--green); margin: 14px auto 0;
}
.center { text-align: center; }
.muted { color: var(--muted); }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid var(--green); border-radius: 999px;
  background: var(--green); color: #fff;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-line { background: #06c755; border-color: #06c755; }
.btn-line:hover { background: #05a647; border-color: #05a647; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #d9a441; outline-offset: 2px;
}

/* 頁首 */
.draft-bar { background: #7a3e1a; color: #fff; text-align: center; font-size: .85rem; padding: 4px 12px; }
.notice { background: var(--green); color: #fff; text-align: center; font-size: .9rem; padding: 6px 12px; letter-spacing: .05em; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .1em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.cart-count {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: var(--accent); color: #fff; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 首頁主視覺 */
.hero { padding: 48px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.4rem; letter-spacing: .12em; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 26em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art {
  aspect-ratio: 4 / 3; border-radius: 24px;
  background: linear-gradient(135deg, #d9c9a3, #a9b48a 55%, #6f8a5c);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px;
  color: rgba(255, 255, 255, .85); font-size: .85rem;
}

/* 三個承諾 */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.promise svg { width: 44px; height: 44px; margin: 0 auto 10px; display: block; }
.promise h3 { font-size: 1.15rem; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 分類方塊 */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  display: block; text-decoration: none; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 12px;
}
.cat-tile:hover { border-color: var(--green); }
.cat-tile strong { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .1em; }
.cat-tile span { color: var(--muted); font-size: .9rem; }

/* 商品卡 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; text-decoration: none; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.1rem; margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.tags { color: var(--green); font-size: .82rem; margin: 0 0 4px; }
.spec { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { color: var(--accent); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }

/* 沒有照片時的色塊 */
.ph {
  aspect-ratio: 1 / 1; width: 100%;
  background: var(--ph, #c9b48f);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .12));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.ph-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .15em; padding: 0 12px; text-align: center; }
.ph-note { font-size: .78rem; opacity: .9; }
/* 商品卡：統一直式 4:5 外框；照片整張顯示、不裁切（照片上有文字），空白處用底色補 */
.card-media img, .card-media .ph { aspect-ratio: 4 / 5; width: 100%; }
.card-media img { object-fit: contain; background: var(--surface); }
/* 商品頁：照片依原比例整張顯示 */
.product-media img { width: 100%; height: auto; }

/* 篩選 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; display: inline-flex; align-items: center;
}
.chip[aria-current="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* 商品頁 */
.crumbs { font-size: .9rem; color: var(--muted); padding: 20px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0 40px; }
.product-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); align-self: start; }
.product-media .ph-name { font-size: 2.2rem; }
.product h1 { font-size: 1.8rem; }
.product .price { font-size: 1.8rem; display: block; margin: 8px 0 16px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 48px; height: 48px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: var(--bg); }
.qty output { min-width: 36px; text-align: center; font-weight: 500; }
.info { border-top: 1px solid var(--line); margin-top: 24px; }
.info dl { margin: 0; }
.info dt { font-family: var(--serif); font-weight: 700; padding-top: 16px; }
.info dd { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }

/* 一般內容頁 */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: 2rem; letter-spacing: .12em; text-align: center; margin-bottom: 32px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--green); }
.prose li { margin-bottom: .4em; }
.sample { background: #fbf3dc; border: 1px dashed #d9a441; border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #6b4a12; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--serif); font-weight: 700; margin-bottom: 10px;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: .95rem; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; }
.faq details p { color: var(--muted); }

.story { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story .wrap { max-width: 760px; text-align: center; }

/* 購物車 */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-bottom: 56px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.25rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ph, .cart-item img { border-radius: 10px; }
.cart-item .ph, .cart-item img { width: 72px; height: 72px; aspect-ratio: auto; }
.cart-item img { object-fit: contain; background: var(--surface); }
.cart-item .ph-name { font-size: .8rem; letter-spacing: 0; }
.cart-item .ph-note { display: none; }
.cart-item h3 { font-size: 1rem; margin: 0; font-family: var(--sans); font-weight: 500; }
.cart-item .line-total { font-weight: 500; text-align: right; }
.cart-item .controls { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; min-height: 44px; }
.totals { margin: 16px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 700; }
.totals .grand dd { color: var(--accent); }
.totals dd { margin: 0; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.map-btn { margin-top: 10px; }
.steps { padding-left: 1.4em; line-height: 1.7; margin-top: 10px; }
@media (max-width: 760px) { .map-btn { width: 100%; } }

.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit;
  border: 1px solid #cdbfa6; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.radio, .check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; cursor: pointer; font-weight: 400; }
.radio input, .check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.check { border: 0; background: none; padding: 0; }
.req { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbe9e4; border: 1px solid #e3a594; color: #8a2e17; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.load-error { background: #fbe9e4; color: #8a2e17; text-align: center; padding: 14px 16px; margin: 0; }
.order-id { font-size: 1.2rem; }
.order-id strong { color: var(--accent); letter-spacing: .05em; }
.btn:disabled { opacity: .6; cursor: wait; }

/* 從試算表讀資料時，先顯示「載入中」 */
.is-loading main > * { visibility: hidden; }
/* 骨架：灰色卡片輕輕閃動；螢幕報讀器仍唸「載入中」 */
.is-loading main::before {
  content: ""; content: "" / "載入中，請稍候"; display: block;
  width: calc(100% - 40px); max-width: 1080px; height: 340px; margin: 40px auto;
  background: repeating-linear-gradient(90deg, #ebe3d1 0, #ebe3d1 calc(25% - 15px), transparent calc(25% - 15px), transparent 25%);
  border-radius: var(--radius); animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (max-width: 760px) {
  .is-loading main::before {
    background: repeating-linear-gradient(90deg, #ebe3d1 0, #ebe3d1 calc(50% - 6px), transparent calc(50% - 6px), transparent 50%);
  }
}

.order-text { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-family: var(--sans); font-size: .95rem; line-height: 1.7; margin: 0 0 16px; }
.order-actions { display: grid; gap: 12px; }
.empty { text-align: center; padding: 72px 0; }

/* 頁尾 */
.site-footer { background: #3b2f24; color: #e9dfcc; margin-top: 40px; padding: 40px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 1.05rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px; text-align: center; color: #b9ac96; font-size: .85rem; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 手機 */
@media (max-width: 760px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.35rem; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand { font-size: 1.1rem; letter-spacing: .02em; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .cart-link { margin-left: auto; padding: 0 12px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0; justify-content: space-between; }
  .nav a { padding: 10px 2px; font-size: .95rem; }
  .hero { padding: 28px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-art { display: none; }
  .promises, .steps { grid-template-columns: 1fr; gap: 12px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-foot .btn { width: 100%; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product h1 { font-size: 1.5rem; }
  .buy-row .btn { flex: 1 1 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* 多件優惠 */
.tier-note { margin: 8px 0 0; font-size: .95rem; font-weight: 500; color: var(--accent); }
.tier-box { background: #fbf3dc; border: 2px solid #d9a441; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; }
.tier-box h2 { font-size: 1.15rem; margin: 0 0 6px; }
.tier-box ul { list-style: none; margin: 0; padding: 0; }
.tier-box li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 1.05rem; }
.tier-box li strong { color: var(--accent); }
.qty-total { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin: 10px 0 0; min-height: 1.8em; }
.tier-hint { color: var(--accent); font-size: .9rem; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 84px; height: 84px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; overflow: hidden; }
.gallery-thumb:hover, .gallery-thumb:focus-visible { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail { margin-top: 28px; }
.detail h2 { font-size: 1.3rem; padding-left: 12px; border-left: 4px solid var(--green); }

/* 認識油甘果 */
.fact-list { list-style: none; margin: 0 0 1em; padding: 0; }
.fact-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.fact-list strong { font-family: var(--serif); }
.yougan-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.yougan-photos img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* ── 動畫：輕、短，並在「減少動態」時全部關掉 ── */
@view-transition { navigation: auto; }
#site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(site-header) { animation: none; }

/* 照片載入後淡入（有 .js 才隱藏，JS 壞掉時照片照常顯示） */
.card-media, .product-media { background: #efe8d8; }
.js .card-media img, .js .product-media img { opacity: 0; transition: opacity .25s ease; }
.js .card-media img.is-loaded, .js .product-media img.is-loaded { opacity: 1; }

/* 按下與滑過的回饋 */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s; }
.cart-link, .cat-tile, .qty button { transition: transform .12s, border-color .15s, background-color .15s; }
.btn:active, .cart-link:active, .qty button:active, .cat-tile:active { transform: scale(.98); }
.card { transition: box-shadow .2s, transform .2s; }
.card:active { transform: scale(.99); }
@media (hover: hover) {
  .card:hover { box-shadow: 0 8px 20px rgba(59, 47, 36, .12); transform: translateY(-2px); }
}
.cart-count.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.toast { transition: opacity .25s ease, transform .25s ease; }
.qty output { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .card-media img, .js .product-media img { opacity: 1; }
  @view-transition { navigation: none; }
}

/* 選單和店名不要斷成兩行；平板寬度把間距縮小 */
.brand, .nav a, .cart-link { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .brand { font-size: 1.15rem; letter-spacing: .04em; }
  .nav { gap: 16px; }
}
@media (max-width: 760px) { .nav-long { display: none; } }

/* 庫存顯示 */
.card-media { position: relative; }
.sold-badge { position: absolute; top: 12px; left: 12px; background: #8a2e17; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 6px 16px; border-radius: 999px; }
.js .card.is-sold .card-media img.is-loaded, .card.is-sold .card-media .ph { opacity: .55; }
.stock-left { margin: 6px 0 0; font-size: 1rem; font-weight: 700; color: #b8381f; }
.product .stock-left { margin: -8px 0 12px; font-size: 1.1rem; }
.sold-hint { margin: 0 0 16px; font-size: 1.05rem; }
.line-alert { color: #b8381f; }
.btn:disabled:not(#submit-order) { cursor: not-allowed; background: #8b8478; border-color: #8b8478; opacity: 1; }

/* 我的訂單（頁首）、查訂單頁 */
.orders-link[aria-current="page"] { border-color: var(--green); color: var(--green); }
.nav-orders { display: none; }
@media (max-width: 760px) {
  .orders-link { display: none; }
  .nav-orders { display: inline; }
  .nav-many a { font-size: .86rem; padding: 10px 0; }   /* 多了「訂單」，字縮小一點才排得下 */
}
.order-page { max-width: 720px; padding-bottom: 56px; }
.order-page .panel { margin-bottom: 20px; }
.order-loading { text-align: center; padding: 72px 0; font-size: 1.1rem; color: var(--muted); }
.order-status { font-size: 1.6rem; font-weight: 700; color: var(--green); margin: 12px 0 8px; }
.order-now { font-size: 1.1rem; margin: 16px 0 0; }
.order-cancelled { background: #fbe9e4; border: 1px solid #e3a594; color: #8a2e17; border-radius: 10px; padding: 14px 16px; font-size: 1.1rem; }
.progress { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress li { position: relative; text-align: center; font-size: .95rem; color: var(--muted); padding-top: 52px; }
.progress .dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid #cdbfa6; color: var(--muted); font-weight: 700;
}
/* 兩個圓點之間的連接線 */
.progress li + li::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: #ddd2bd; }
.progress li.done::before, .progress li.current::before { background: var(--green); }
.progress li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress li.current .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(168, 80, 31, .18); }
.progress li.done, .progress li.current { color: var(--ink); }
.progress li.current { font-weight: 700; }
.tracking { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.tracking p { margin: 0 0 12px; font-size: 1.1rem; }
.tracking strong { letter-spacing: .05em; user-select: all; }
.tracking .hint { font-size: .88rem; margin-top: 10px; }
.order-items { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.order-help { margin: 0 0 16px; }
.my-orders { list-style: none; margin: 0; padding: 0; }
.my-orders a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 56px;
}
.my-orders li:last-child a { border-bottom: 0; }
.my-orders span { color: var(--muted); font-size: .92rem; grid-column: 1; }
.my-orders .go { grid-column: 2; grid-row: 1 / 3; color: var(--green); font-weight: 500; }
@media (max-width: 760px) {
  .progress li { font-size: .82rem; padding-top: 46px; }
  .progress .dot { width: 34px; height: 34px; }
  .progress li + li::before { top: 16px; }
  .order-status { font-size: 1.4rem; }
}

/* 卡片：提示文字在規格下面，價格＋按鈕貼齊卡片底部；按鈕獨立一行，價格長短不會把版面擠歪 */
.card .tier-note, .card .stock-left { margin: 0 0 4px; font-size: .95rem; }
.card-foot .btn { white-space: nowrap; }
.card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.card-foot .btn { width: 100%; padding: 0 8px; }
