/* =====================================================
   鵠好 HOOHAO — 共用設計系統
   風格:奶油米白 × 暖黃 × 質感生活選物
   ===================================================== */

/* ---------- 設計變數 ---------- */
:root {
  /* 色彩 — 白 × 灰 乾淨搭配,暖黃為品牌主色 */
  --cream:        #FAFBFC;   /* 頁面底色(淺灰畫布) */
  --cream-2:      #F1F2F4;   /* 區塊/輔助面(較深淺灰) */
  --card:         #FFFFFF;   /* 卡片/頁首(白) */
  --yellow:       #F4B731;   /* 主色 — CTA / 強調 */
  --yellow-dark:  #E2A41E;
  --yellow-soft:  #FCEFC9;   /* 黃色淺底 */
  --ink:          #2C2D31;   /* 主要文字(近黑灰) */
  --ink-soft:     #5E606A;   /* 次要文字 */
  --muted:        #9A9CA6;   /* 淡灰文字 */
  --line:         #E7E8EC;   /* 分隔線 */
  --green:        #7BA05B;   /* 綠意點綴 */
  --rose:         #E8826E;   /* 收藏/愛心 */

  /* 圓角 */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* 陰影 */
  --shadow-sm: 0 2px 8px rgba(30,33,45,.06);
  --shadow:    0 8px 24px rgba(30,33,45,.08);
  --shadow-lg: 0 16px 44px rgba(30,33,45,.12);

  /* 版面 */
  --maxw: 1280px;   /* 參考 unipapa 內容寬度 1280 置中 */
  --gap: 24px;

  --sans: "Inter Tight", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  overflow-x: hidden;          /* 防止任何子元素造成全頁水平捲動 */
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 56px; padding-bottom: 56px; }

/* 可重複使用的標題 */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.sec-title { font-size: 24px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.sec-title .spark { color: var(--yellow); font-size: 18px; }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sec-more { color: var(--ink-soft); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.sec-more:hover { color: var(--yellow-dark); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; transition: all .22s; white-space: nowrap;
  border: none; outline: none; appearance: none; -webkit-appearance: none;
}
.btn-primary { background: var(--yellow); color: #fff; box-shadow: 0 6px 16px rgba(244,183,49,.35); }
.btn-primary:hover { background: var(--yellow-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,183,49,.42); border: none; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--cream-2); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 38px; font-size: 16px; }

/* =====================================================
   頁首 Header
   ===================================================== */
.site-top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar { display: flex; align-items: center; gap: 28px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo picture, .foot-brand .logo picture, .auth-logo picture { display: block; line-height: 0; }
.logo img { height: 100px; width: auto; display: block; margin-left: -4px; }
.foot-brand .logo img { height: 72px; }
/* 舊版文字 logo(備用) */
.logo .avo { width: 40px; height: 44px; }
.logo .word { line-height: 1; }
.logo .word b { font-size: 23px; font-weight: 900; letter-spacing: 2px; color: var(--ink); display: block; }
.logo .word small { font-size: 9px; letter-spacing: 3px; color: var(--yellow-dark); font-weight: 700; }

/* 搜尋 */
.site-top .search { flex: 1; position: relative; max-width: 480px; }
.site-top .search input {
  width: 100%; border: none; background: var(--cream-2); border-radius: var(--r-pill);
  padding: 13px 52px 13px 22px; color: var(--ink); outline: none; transition: box-shadow .2s;
}
.site-top .search input::placeholder { color: var(--muted); }
.site-top .search input:focus { box-shadow: 0 0 0 2px var(--yellow); background: #fff; }
.site-top .search .go {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: #fff;
  display: grid; place-items: center;
}
.site-top .search .go:hover { background: var(--yellow-dark); }

/* 頂部功能 */
.top-acts { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.top-act { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-soft); font-size: 11px; position: relative; }
.top-act:hover { color: var(--yellow-dark); }
.top-act svg { width: 24px; height: 24px; }
.top-act .badge {
  position: absolute; top: -5px; right: 6px; background: var(--yellow); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
}

/* 主選單 */
.mainnav { border-top: 1px solid var(--line); }
.mainnav ul { display: flex; flex-wrap: nowrap; gap: 34px; max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 640px){ .mainnav ul { padding: 12px 16px; } }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a { font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 2px 0; white-space: nowrap; flex-shrink: 0; }
.mainnav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2.5px;
  background: var(--yellow); border-radius: 2px; transition: width .25s;
}
.mainnav a:hover::after, .mainnav a.active::after { width: 100%; }
.mainnav a.active { color: var(--yellow-dark); }

/* =====================================================
   麵包屑
   ===================================================== */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 4px; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--yellow-dark); }
.crumbs .sep { opacity: .5; }
.crumbs b { color: var(--ink-soft); font-weight: 600; }

/* =====================================================
   產品卡
   ===================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.prod-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card-prod { background: var(--card); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); transition: all .25s; position: relative; }
.card-prod:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-prod .thumb {
  border-radius: var(--r); aspect-ratio: 1/1; overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.card-prod .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-prod:hover .thumb img { transform: scale(1.05); }
.card-prod .tag {
  position: absolute; top: 10px; left: 10px; background: var(--yellow); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); z-index: 2;
}
.card-prod .tag.green { background: var(--green); }
.card-prod .tag.rose  { background: var(--rose); }
.card-prod .name { font-size: 15px; font-weight: 600; margin: 14px 4px 6px; color: var(--ink); }
.card-prod .meta { display: flex; align-items: center; gap: 8px; padding: 0 4px 4px; }
.card-prod .meta .price { flex: 1; min-width: 0; }
.card-prod .meta-acts { display: flex; gap: 4px; flex-shrink: 0; }
.card-prod .price { color: var(--ink); font-weight: 800; font-size: 16px; }
.card-prod .price small { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 12px; margin-left: 5px; }
.card-prod .fav, .card-prod .card-cart {
  width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); color: var(--muted);
  display: grid; place-items: center; transition: all .2s; border: 0; cursor: pointer; text-decoration: none;
  flex-shrink: 0;
}
.card-prod .fav:hover { background: #FCE6E1; color: var(--rose); }
.card-prod .fav.on { background: #FCE6E1; color: var(--rose); }
.card-prod .card-cart:hover { background: #E8F5E9; color: #2E7D32; }
.card-prod .card-cart.adding { opacity: .55; cursor: wait; }
.card-prod .card-cart.added { background: #E8F5E9; color: #2E7D32; }

/* 佔位圖漸層(模擬商品攝影底色) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph svg { width: 46%; height: 46%; opacity: .85; }
.ph-1 { background: linear-gradient(150deg,#F3E7D3,#E7D2B5); }
.ph-2 { background: linear-gradient(150deg,#E4EAD9,#CADBB6); }
.ph-3 { background: linear-gradient(150deg,#F7E6D6,#F0CBB0); }
.ph-4 { background: linear-gradient(150deg,#EAE3DB,#D8CcBE); }
.ph-5 { background: linear-gradient(150deg,#F5EBD4,#EAD7AE); }
.ph-6 { background: linear-gradient(150deg,#E8E0EE,#D3C4E0); }
.ph-7 { background: linear-gradient(150deg,#DCEBE8,#B9D8D0); }
.ph-8 { background: linear-gradient(150deg,#F6DEDE,#EFC0C0); }

/* =====================================================
   頁尾 Footer
   ===================================================== */
.site-foot { background: var(--cream-2); margin-top: 60px; }
.foot-serv { border-bottom: 1px solid var(--line); }
.foot-serv .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.serv { display: flex; align-items: center; gap: 14px; }
.serv .ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--yellow-dark); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.serv b { display: block; font-size: 15px; }
.serv span { font-size: 12px; color: var(--muted); }

.foot-main { padding: 48px 0 28px; }
.foot-main .wrap { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 30px; }
.foot-brand .logo { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-soft); font-size: 13px; max-width: 230px; }
.foot-news h4 { font-size: 15px; margin-bottom: 6px; }
.foot-news p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 11px 18px; outline: none; }
.news-form input:focus { border-color: var(--yellow); }
.foot-col h4 { font-size: 15px; margin-bottom: 16px; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: var(--ink-soft); font-size: 14px; }
.foot-col a:hover { color: var(--yellow-dark); }
.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.foot-social a:hover { background: var(--yellow); color: #fff; }
.foot-copy { border-top: 1px solid var(--line); text-align: center; padding: 20px 0; color: var(--muted); font-size: 13px; }

/* =====================================================
   通用元件
   ===================================================== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--yellow-soft); color: var(--yellow-dark); }
.pill.green { background: #E8EFDD; color: var(--green); }
.divider { height: 1px; background: var(--line); border: none; margin: 28px 0; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 34px; height: 38px; font-size: 18px; color: var(--ink-soft); }
.qty button:hover { background: var(--cream-2); color: var(--ink); }
.qty input { width: 40px; text-align: center; border: none; outline: none; font-weight: 700; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  padding: 12px 16px; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--yellow); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.page-head { text-align: center; padding: 44px 0 12px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 8px; }

/* =====================================================
   我的帳號 — 共用版型(側欄)
   ===================================================== */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; margin-top: 26px; }
.acc-side { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 18px; position: sticky; top: 150px; }
.acc-user { text-align: center; padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acc-user .av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#FCEFC9,#F4B731); display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; }
.acc-user b { font-size: 17px; }
.acc-user .lv { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--yellow-dark); background: var(--yellow-soft); padding: 3px 12px; border-radius: var(--r-pill); }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.acc-nav a svg { width: 19px; height: 19px; }
.acc-nav a:hover { background: var(--cream-2); color: var(--ink); }
.acc-nav a.on { background: var(--yellow-soft); color: var(--yellow-dark); }
.acc-nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.acc-main h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.acc-main .desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.acc-main .head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.acc-main .head-row h2 { margin-bottom: 4px; }
@media (max-width: 920px){
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-nav { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; }
  .acc-nav .sep { display: none; }
}
@media (max-width: 640px){ .acc-nav { grid-template-columns: 1fr; } }

/* =====================================================
   內容 / 政策頁(購物流程・運送・退換貨・合作・FAQ)
   ===================================================== */
.doc-hero { background: linear-gradient(120deg,#FFFFFF,#F1F2F5 60%,#E9EBEF); border-radius: var(--r-xl); padding: 48px 44px; text-align: center; margin-top: 14px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.doc-hero .pill { margin-bottom: 14px; }
.doc-hero h1 { font-size: 32px; font-weight: 900; }
.doc-hero p { color: var(--ink-soft); max-width: 580px; margin: 12px auto 0; font-size: 15px; }
.doc-hero .deco { position: absolute; font-size: 80px; opacity: .1; bottom: 6px; right: 40px; }

.doc { max-width: 840px; margin: 38px auto 0; }
.doc-sec { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 30px 34px; margin-bottom: 20px; }
.doc-sec > h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 11px; }
.doc-sec h2 .n { width: 32px; height: 32px; border-radius: 9px; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.doc-sec h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.doc-sec p { color: var(--ink-soft); line-height: 1.9; margin-bottom: 12px; }
.doc-sec p:last-child { margin-bottom: 0; }
.doc-sec ul.dots { padding-left: 2px; margin-bottom: 12px; }
.doc-sec ul.dots li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--ink-soft); line-height: 1.8; }
.doc-sec ul.dots li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.doc-sec ul.dots li b { color: var(--ink); }
.doc-note { background: var(--yellow-soft); border-radius: var(--r); padding: 16px 20px; color: var(--ink); font-size: 14px; line-height: 1.8; display: flex; gap: 12px; }
.doc-note .ic { color: var(--yellow-dark); flex-shrink: 0; }

/* 流程步驟 */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: 20px; position: relative; padding-bottom: 26px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; flex-shrink: 0; z-index: 1; box-shadow: 0 4px 12px rgba(244,183,49,.35); }
.flow-step .ct { padding-top: 5px; }
.flow-step .ct b { font-size: 16px; display: block; margin-bottom: 5px; }
.flow-step .ct p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* 資訊表 */
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th, .doc-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.doc-table thead th { background: var(--cream-2); color: var(--ink); font-weight: 700; }
.doc-table td b { color: var(--ink); }
.doc-table tbody tr:last-child td { border-bottom: none; }

/* 卡片格(運送/付款選項) */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; transition: all .2s; }
.opt-card:hover { border-color: var(--yellow); }
.opt-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--cream-2); color: var(--yellow-dark); display: grid; place-items: center; margin-bottom: 14px; }
.opt-card b { font-size: 16px; }
.opt-card .fee { color: var(--yellow-dark); font-weight: 700; font-size: 14px; margin: 6px 0; }
.opt-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }

/* FAQ 手風琴(共用) */
.faq { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 12px; }
.faq .q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15px; }
.faq .q .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft); flex-shrink: 0; transition: all .25s; position: relative; font-size: 0; }
.faq .q .plus::before, .faq .q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; background: currentColor; border-radius: 1px; transform: translate(-50%,-50%); }
.faq .q .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq.open .q .plus { background: var(--yellow); color: #fff; transform: rotate(45deg); }
.faq .a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq.open .a { max-height: 320px; }
.faq .a p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin: 0; }
.faq-group-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 26px 0 12px; padding-left: 4px; }
.faq-group-title:first-child { margin-top: 0; }

@media (max-width: 640px){
  .doc-hero { padding: 36px 24px; } .doc-hero h1 { font-size: 25px; }
  .doc-sec { padding: 24px 22px; }
  .opt-cards { grid-template-columns: 1fr; }
  .doc-table { font-size: 13px; } .doc-table th, .doc-table td { padding: 11px 12px; }
}

/* =====================================================
   RWD
   ===================================================== */
@media (max-width: 920px) {
  .prod-grid, .prod-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .foot-main .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-serv .wrap { grid-template-columns: 1fr 1fr; }
  .top-acts .top-act span { display: none; }
  .top-acts { gap: 16px; }
}
@media (max-width: 640px) {
  .prod-grid, .prod-grid.cols-5, .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .mainnav ul { gap: 20px; padding: 12px 16px; }
  .topbar { gap: 12px; padding: 10px 16px; }
  .site-top .search { display: none; }
  .sec-title { font-size: 20px; }
  .wrap { padding: 0 16px; }
  .foot-serv .wrap, .foot-main .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .logo img { height: 76px; margin-left: -3px; }   /* 行動版 logo 縮小 */
  .page-head h1 { font-size: 24px; }
}
@media (max-width: 400px) {
  .foot-serv .wrap { grid-template-columns: 1fr; }
}


/* =====================================================
   頁面專屬樣式(整合自設計稿,WordPress 子主題)
   ===================================================== */

/* ===== 頁面專屬:index.html ===== */
/* ---- 首頁專屬 ---- */
.hero { position: relative; }
.hero-card {
  background: linear-gradient(115deg,#FFFFFF 0%, #F1F2F5 55%, #E7E9EE 100%);
  border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 330px;
  display: flex; align-items: center; box-shadow: var(--shadow);
}
.hero-copy { padding: 48px 54px; max-width: 460px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: 44px; font-weight: 900; line-height: 1.25; color: var(--ink); }
.hero-copy p { color: var(--ink-soft); margin: 16px 0 16px; font-size: 16px; }
.hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 56%;
  background: radial-gradient(circle at 70% 40%, #FBF1E2, transparent 70%); }
.hero-art { background: radial-gradient(circle at 70% 40%, #FAFBFC, transparent 70%); }
.hero-art .scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: .96; }
.dots { display: flex; gap: 8px; margin-top: 22px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .6; }
.dots i.on { width: 26px; border-radius: 5px; opacity: 1; background: var(--yellow); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink-soft); z-index: 3; }
.hero-arrow.l { left: 14px; } .hero-arrow.r { right: 14px; }

/* 分類圖示列 */
.cats { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 10px; margin-top: 28px; }
.cats ul { display: grid; grid-template-columns: repeat(6,1fr); }
.cats li a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px; }
.cats .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s; }
.cats li a:hover .ic { transform: translateY(-4px); }
.cats .lbl { font-size: 14px; font-weight: 600; }
.ic.c1{background:#FCEFC9;color:#D89A1E}.ic.c2{background:#F0E7D8;color:#B08A52}
.ic.c3{background:#E5EFD7;color:#7BA05B}.ic.c4{background:#FBE3D2;color:#D98152}
.ic.c5{background:#FCEFC9;color:#D89A1E}.ic.c6{background:#F6E0DD;color:#E8826E}

/* 三 banner */
.promos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.promo { border-radius: var(--r-lg); padding: 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.promo h3 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.promo p { font-size: 13px; color: var(--ink-soft); margin: 6px 0 16px; }
.promo .btn { align-self: flex-start; }
.promo.y { background: linear-gradient(120deg,#FCE7AE,#F8D67C); }
.promo.g { background: var(--cream-2); }
.promo.w { background: #fff; box-shadow: var(--shadow-sm); }
.promo .deco { position: absolute; right: -10px; bottom: -10px; font-size: 76px; opacity: .9; }

/* 品牌列 */
.brands { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: var(--r); height: 92px; display: grid; place-items: center; font-weight: 800; letter-spacing: 1px; color: var(--ink-soft); transition: all .2s; }
.brand:hover { border-color: var(--yellow); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink-soft); }
.slider-arrows button:hover { background: var(--yellow); color: #fff; }
@media (max-width: 920px){ .promos{grid-template-columns:1fr} .brands{grid-template-columns:repeat(3,1fr)} .cats ul{grid-template-columns:repeat(3,1fr); gap:14px} .hero-art{display:none} .hero-copy h1{font-size:34px} }
@media (max-width: 640px){
  .hero-card{min-height:auto}
  .hero-copy{padding:34px 24px; max-width:none}
  .hero-copy h1{font-size:28px}
  .hero-copy p{font-size:14px}
  .hero-copy .btn-lg{padding:13px 24px; font-size:15px}
  .hero-arrow{display:none}
  .cats{padding:18px 4px}
  .cats ul{grid-template-columns:repeat(3,1fr); gap:8px}
  .cats .lbl{font-size:12px}
  .cats .ic{width:52px;height:52px}
  .brands{grid-template-columns:repeat(2,1fr)}
}

/* ===== 頁面專屬:category.html ===== */
/* ---- 分類頁專屬 ---- */
.cat-hero { background: linear-gradient(115deg,#FFFFFF,#F1F2F5 60%,#E9EBEF); border-radius: var(--r-xl); padding: 38px 44px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.cat-hero h1 { font-size: 30px; font-weight: 800; }
.cat-hero p { color: var(--ink-soft); margin-top: 8px; max-width: 440px; }
.cat-hero .emoji { font-size: 64px; }

.cat-layout { display: grid; grid-template-columns: 244px 1fr; gap: 30px; align-items: start; margin-top: 32px; }

/* 側邊篩選 */
.filters { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 14px; }
.filter-box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.filter-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.filter-box h4 .d { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.filter-list li { margin-bottom: 10px; }
.filter-list label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.filter-list label:hover { color: var(--ink); }
.filter-list input { width: 16px; height: 16px; accent-color: var(--yellow); }
.filter-list .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; text-align: center; outline: none; }
.price-range input:focus { border-color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-size: 13px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--yellow); }
.chip.on { background: var(--yellow-soft); border-color: var(--yellow); color: var(--yellow-dark); font-weight: 600; }

/* 排序列 */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.toolbar .count { color: var(--ink-soft); font-size: 14px; }
.toolbar .count b { color: var(--ink); }
.toolbar .right { display: flex; align-items: center; gap: 12px; }
.sortsel { border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; background: #fff; font-size: 14px; outline: none; cursor: pointer; }
.sortsel:focus { border-color: var(--yellow); }

/* 啟用中的篩選標籤 */
.active-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-tags .t { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; color: var(--ink-soft); }
.active-tags .t b { color: var(--ink); font-weight: 600; }
.active-tags .x { cursor: pointer; color: var(--muted); }
.active-tags .clear { color: var(--yellow-dark); font-size: 13px; font-weight: 600; cursor: pointer; }

/* 分頁 */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
/* 同時涵蓋 WordPress paginate_links 的 a.page-numbers 與 span.current/span.dots,及靜態頁的 .pager a */
.pager a, .pager .page-numbers { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: all .18s; }
.pager a:hover, .pager .page-numbers:hover { background: var(--cream-2); color: var(--ink); }
/* 目前頁(active)*/
.pager a.on, .pager .page-numbers.current { background: var(--yellow); color: #fff; box-shadow: 0 4px 12px rgba(244,183,49,.38); }
.pager a.on:hover, .pager .page-numbers.current:hover { background: var(--yellow-dark); color: #fff; }
/* 鍵盤 focus 樣式 */
.pager a:focus-visible, .pager .page-numbers:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--yellow-soft), 0 0 0 4px var(--yellow); }
/* 上下頁箭頭 / 省略號 */
.pager a.nav, .pager .next, .pager .prev { color: var(--muted); }
.pager .dots { background: transparent; box-shadow: none; color: var(--muted); }

@media (max-width: 920px){
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; }
  .filter-box { flex: 1; min-width: 200px; }
}
@media (max-width: 640px){
  .cat-hero { padding: 24px; } .cat-hero .emoji { display: none; }
  .cat-hero h1 { font-size: 23px; }
  .filters { display: none; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== 頁面專屬:product.html ===== */
/* ---- 產品內頁專屬 ---- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 18px; align-items: start; }

/* 圖庫 */
.gallery .main { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); aspect-ratio: 1/1; overflow: hidden; position: relative; }
.gallery .main .tag { position: absolute; top: 16px; left: 16px; background: var(--yellow); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); z-index: 2; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.gallery .thumbs .t { background: #fff; border-radius: var(--r); aspect-ratio: 1/1; overflow: hidden; cursor: pointer; border: 2px solid transparent; box-shadow: var(--shadow-sm); }
.gallery .thumbs .t.on { border-color: var(--yellow); }

/* 商品資訊 */
.pd-info .brand-link { color: var(--yellow-dark); font-size: 13px; font-weight: 600; }
.pd-info h1 { font-size: 28px; font-weight: 800; margin: 8px 0 12px; line-height: 1.4; }
.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 15px; }
.rating .rv { color: var(--ink-soft); font-size: 13px; }
.rating .sold { color: var(--muted); font-size: 13px; border-left: 1px solid var(--line); padding-left: 10px; }
.price-row { display: flex; align-items: baseline; gap: 12px; background: var(--cream-2); border-radius: var(--r); padding: 18px 22px; margin-bottom: 24px; }
.price-row .now { font-size: 32px; font-weight: 900; color: var(--ink); }
.price-row .was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price-row .off { background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }

.opt { margin-bottom: 22px; }
.opt .lbl { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.opt .lbl span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { padding: 9px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-size: 14px; cursor: pointer; transition: all .2s; background: #fff; }
.swatch:hover { border-color: var(--yellow); }
.swatch.on { border-color: var(--yellow); background: var(--yellow-soft); color: var(--yellow-dark); font-weight: 600; }

.buy-row { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; }
.buy-row .qty { height: 52px; }
.buy-row .qty button { height: 50px; }
.buy-row .btn { flex: 1; height: 52px; }
.wish-btn { width: 52px; height: 52px; border-radius: var(--r-pill); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); flex-shrink: 0; }
.wish-btn:hover { border-color: var(--rose); color: var(--rose); }

/* 商品保障區塊(米色卡片 + icon chip,後台「網站設定」可改) */
.assure { display: grid; gap: 0; background: var(--cream-2); border-radius: var(--r-lg); padding: 4px 18px; margin-top: 24px; }
.assure .a { display: flex; align-items: center; gap: 13px; font-size: 14px; color: var(--ink); padding: 13px 0; }
.assure .a:not(:last-child) { border-bottom: 1px solid rgba(44,45,49,.07); }
.assure .a .ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--yellow-dark); flex-shrink: 0; }
.assure .a .ic svg { width: 19px; height: 19px; }
.assure .a .tx { line-height: 1.45; }

/* 分頁標籤 */
.tabs { margin-top: 56px; }
.tab-head { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab-head button { padding: 14px 24px; font-size: 15px; font-weight: 600; color: var(--muted); position: relative; }
.tab-head button.active { color: var(--ink); }
.tab-head button.active::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--yellow); border-radius: 2px; }
.tab-body { color: var(--ink-soft); line-height: 1.9; max-width: 820px; }
.tab-body h3 { color: var(--ink); font-size: 18px; margin: 22px 0 10px; }
.tab-body p { margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { background: var(--cream-2); color: var(--ink); font-weight: 600; width: 140px; border-radius: 0; }

/* 評價 */
.review { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review .av { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-weight: 700; color: var(--ink-soft); flex-shrink: 0; }
.review .who { font-weight: 600; font-size: 14px; }
.review .when { color: var(--muted); font-size: 12px; }
.review .stars { font-size: 13px; margin: 4px 0 8px; }
.review p { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 820px){
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .tab-head { overflow-x: auto; }
  .tab-head button { white-space: nowrap; flex-shrink: 0; }
}

/* ===== 頁面專屬:cart.html ===== */
/* ---- 購物車專屬 ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; margin-top: 26px; }

.cart-list { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 8px 26px; }
.cart-head { display: grid; grid-template-columns: 1fr 130px 130px 40px; gap: 16px; padding: 18px 0; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.cart-head span:nth-child(2), .cart-head span:nth-child(3) { text-align: center; }

.cart-item { display: grid; grid-template-columns: 1fr 130px 130px 40px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.ci-prod { display: flex; gap: 16px; align-items: center; }
.ci-prod .thumb { width: 84px; height: 84px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.ci-prod .name { font-weight: 600; font-size: 15px; }
.ci-prod .var { color: var(--muted); font-size: 13px; margin-top: 5px; }
.ci-price { text-align: center; font-weight: 600; }
.ci-qty { display: flex; justify-content: center; }
.ci-sub { text-align: right; font-weight: 800; color: var(--ink); }
.ci-del { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ci-del:hover { background: #FCE6E1; color: var(--rose); }

.cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.cart-foot a { color: var(--ink-soft); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cart-foot a:hover { color: var(--yellow-dark); }

/* 訂單摘要 */
.summary { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 150px; }
.summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.promo-in { display: flex; gap: 8px; margin-bottom: 20px; }
.promo-in input { flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 11px 16px; outline: none; }
.promo-in input:focus { border-color: var(--yellow); }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink-soft); font-size: 14px; }
.sum-row.disc { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
.sum-total b { font-size: 16px; }
.sum-total .amt { font-size: 26px; font-weight: 900; }
.sum-note { color: var(--muted); font-size: 12px; margin: 12px 0 18px; text-align: center; }
.pay-icons { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pay-icons span { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }

@media (max-width: 920px){ .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 640px){
  .cart-list { padding: 8px 16px; }
  .cart-head { display: none; }
  .cart-item { grid-template-columns: 1fr; gap: 12px; position: relative; }
  .ci-price, .ci-qty, .ci-sub { text-align: left; justify-content: flex-start; }
  .ci-sub::before { content: "小計 "; color: var(--muted); font-weight: 400; }
  .ci-del { position: absolute; top: 22px; right: 0; }
}

/* ===== 頁面專屬:checkout.html ===== */
/* ---- 結帳專屬 ---- */
.steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 8px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--cream-2); color: var(--muted); }
.step .t { font-size: 14px; color: var(--muted); font-weight: 600; }
.step.done .n { background: var(--green); color: #fff; }
.step.done .t, .step.active .t { color: var(--ink); }
.step.active .n { background: var(--yellow); color: #fff; }
.step-bar { width: 46px; height: 2px; background: var(--line); }

.co-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; margin-top: 26px; }

.co-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 22px; }
.co-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.co-card h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 選項卡(配送/付款) */
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; transition: all .2s; }
.choice:hover { border-color: var(--yellow); }
.choice.on { border-color: var(--yellow); background: var(--yellow-soft); }
.choice .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.choice.on .radio { border-color: var(--yellow); }
.choice.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--yellow); }
.choice .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; color: var(--ink-soft); flex-shrink: 0; }
.choice .info b { font-size: 14px; display: block; }
.choice .info span { font-size: 12px; color: var(--muted); }
.choice .fee { margin-left: auto; font-weight: 700; font-size: 14px; }

/* 訂單摘要 */
.co-summary { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 30px; }
.co-summary h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.co-items { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 16px; }
.co-it { display: flex; gap: 12px; align-items: center; }
.co-it .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative; }
.co-it .thumb .q { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.co-it .nm { font-size: 13px; font-weight: 600; line-height: 1.4; }
.co-it .vr { font-size: 12px; color: var(--muted); }
.co-it .pr { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-soft); font-size: 14px; }
.sum-row.disc { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sum-total .amt { font-size: 24px; font-weight: 900; }
.co-summary .btn { margin-top: 18px; }
.co-agree { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.7; }
.co-agree a { color: var(--yellow-dark); }

@media (max-width: 920px){ .co-layout { grid-template-columns: 1fr; } .co-summary { position: static; } }
@media (max-width: 640px){ .grid2 { grid-template-columns: 1fr; } .steps { gap: 6px; } .step .t { display: none; } .step-bar { width: 24px; } }

/* ===== 頁面專屬:thankyou.html ===== */
/* ---- 感謝頁專屬 ---- */
.ty-wrap { max-width: 620px; margin: 30px auto 0; }

.steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 24px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--cream-2); color: var(--muted); }
.step .t { font-size: 14px; color: var(--muted); font-weight: 600; }
.step.done .n { background: var(--green); color: #fff; }
.step.done .t { color: var(--ink); }
.step-bar { width: 46px; height: 2px; background: var(--green); }

.ty-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 44px 40px; text-align: center; }
.ty-check { width: 92px; height: 92px; border-radius: 50%; background: #E8EFDD; display: grid; place-items: center; margin: 0 auto 22px; position: relative; }
.ty-check svg { width: 46px; height: 46px; color: var(--green); }
.ty-check .ring { position: absolute; inset: -8px; border: 2px dashed #BBD49E; border-radius: 50%; opacity: .6; }
.ty-card h1 { font-size: 28px; font-weight: 900; }
.ty-card .lead { color: var(--ink-soft); margin: 10px 0 4px; }
.ty-card .lead b { color: var(--yellow-dark); }

.ty-info { background: var(--cream-2); border-radius: var(--r-lg); padding: 22px 24px; margin: 26px 0; text-align: left; }
.ty-info .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; }
.ty-info .row .k { color: var(--ink-soft); }
.ty-info .row .v { font-weight: 700; }
.ty-info .row .v.amt { color: var(--ink); font-size: 18px; font-weight: 900; }
.ty-info .div { height: 1px; background: var(--line); margin: 6px 0; }
.copy-no { display: inline-flex; align-items: center; gap: 7px; }
.copy-no .c { color: var(--yellow-dark); cursor: pointer; }

.ty-next { display: flex; flex-direction: column; gap: 14px; text-align: left; margin: 26px 0; }
.ty-step { display: flex; gap: 14px; align-items: center; }
.ty-step .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; flex-shrink: 0; }
.ty-step b { font-size: 14px; display: block; }
.ty-step span { font-size: 13px; color: var(--muted); }

.ty-btns { display: flex; gap: 14px; }
.ty-btns .btn { flex: 1; }
.ty-mail { color: var(--muted); font-size: 13px; margin-top: 22px; }
.ty-mail b { color: var(--ink-soft); }

@media (max-width: 640px){
  .ty-card { padding: 32px 22px; }
  .steps { gap: 6px; } .step .t { display: none; } .step-bar { width: 28px; }
  .ty-btns { flex-direction: column; }
}

/* ===== 頁面專屬:login.html ===== */
/* ---- 登入註冊專屬 ---- */
.auth-wrap { max-width: 460px; margin: 40px auto 0; }
.auth-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 40px 38px; }
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-logo a { display: inline-block; }
.auth-logo img { height: 76px; width: auto; display: inline-block; object-fit: contain; aspect-ratio: auto; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.auth-tabs { display: flex; background: var(--cream-2); border-radius: var(--r-pill); padding: 5px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; color: var(--ink-soft); transition: all .2s; appearance: none; -webkit-appearance: none; border: none; outline: none; background: transparent; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-tabs button:hover:not(.active) { color: var(--ink); background: transparent !important; border: none !important; }
.auth-tabs button.active:hover { background: #fff !important; border: none !important; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 20px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--yellow); }
.forgot { font-size: 13px; color: var(--yellow-dark); font-weight: 600; }

.divider-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 24px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.socials { display: flex; flex-direction: column; gap: 12px; }
.socials svg, .socials img { display: block; flex-shrink: 0; vertical-align: middle; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 12px; font-weight: 600; font-size: 14px; transition: all .2s; appearance: none; -webkit-appearance: none; outline: none; background: transparent; cursor: pointer; width: 100%; box-sizing: border-box; }
.social-btn:hover { background: var(--cream-2); }
.social-btn.line { border-color: #06C755; color: #06C755; }
.social-btn.line:hover { background: #06C75510; }
.social-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.social-btn--soon { opacity: .5; }

.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; line-height: 1.8; }
.auth-foot a { color: var(--yellow-dark); }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.7; }
.agree input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--yellow); flex-shrink: 0; }
.agree a { color: var(--yellow-dark); white-space: nowrap; }

/* ===== 忘記密碼頁 ===== */
.lp-title { font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; margin: 12px 0 10px; }
.lp-desc { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.75; margin-bottom: 26px; }
.lp-back { text-align: center; margin-top: 20px; }
.lp-back a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.lp-back a:hover { color: var(--yellow-dark); }
.lp-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 16px auto 20px; }
.lp-icon--ok { background: #e8f9ee; color: #22a84a; }
.lp-sent { text-align: center; padding: 8px 0 4px; }

/* ===== 頁面專屬:account.html ===== */
/* ---- 我的帳號專屬 ---- */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; margin-top: 26px; }

/* 側欄 */
.acc-side { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 18px; position: sticky; top: 150px; }
.acc-user { text-align: center; padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acc-user .av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#FCEFC9,#F4B731); display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; }
.acc-user b { font-size: 17px; }
.acc-user .lv { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--yellow-dark); background: var(--yellow-soft); padding: 3px 12px; border-radius: var(--r-pill); }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.acc-nav a svg { width: 19px; height: 19px; }
.acc-nav a:hover { background: var(--cream-2); color: var(--ink); }
.acc-nav a.on { background: var(--yellow-soft); color: var(--yellow-dark); }
.acc-nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }

/* 主內容 */
.acc-main h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.acc-main .desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* 統計卡 */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat .ic.y { background: var(--yellow-soft); color: var(--yellow-dark); }
.stat .ic.g { background: #E8EFDD; color: var(--green); }
.stat .ic.r { background: #FCE6E1; color: var(--rose); }
.stat b { font-size: 22px; font-weight: 900; display: block; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* 訂單篩選 */
.order-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.order-tabs button { padding: 8px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.order-tabs button.on { background: var(--yellow); border-color: var(--yellow); color: #fff; }

/* 訂單卡 */
.order { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 16px; }
.order-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.order-top .no { font-size: 13px; color: var(--muted); }
.order-top .no b { color: var(--ink); font-weight: 600; }
.order-top .date { font-size: 12px; color: var(--muted); margin-top: 3px; }
.badge-st { font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: var(--r-pill); }
.badge-st.ship { background: var(--yellow-soft); color: var(--yellow-dark); }
.badge-st.done { background: #E8EFDD; color: var(--green); }
.badge-st.wait { background: #FCE6E1; color: var(--rose); }
.order-body { display: flex; gap: 14px; align-items: center; }
.order-thumbs { display: flex; gap: 10px; }
.order-thumbs .t { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; }
.order-meta { margin-left: auto; text-align: right; }
.order-meta .cnt { font-size: 13px; color: var(--muted); }
.order-meta .amt { font-size: 18px; font-weight: 800; margin-top: 2px; }
.order-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

@media (max-width: 920px){ .acc-layout { grid-template-columns: 1fr; } .acc-side { position: static; } .acc-nav { display: grid; grid-template-columns: repeat(2,1fr); gap:4px; } .acc-nav .sep { display:none; } }
@media (max-width: 640px){ .stat-row { grid-template-columns: 1fr; } .acc-nav { grid-template-columns: 1fr; } .order-body { flex-wrap: wrap; } .order-meta { margin-left:0; text-align:left; } }

/* ===== 頁面專屬:account-profile.html ===== */
.pf-card { background:#fff; border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:30px 32px; margin-bottom:22px; }
.pf-card h3 { font-size:17px; font-weight:800; margin-bottom:20px; display:flex; align-items:center; gap:9px; }
.pf-card h3 .d { width:6px; height:6px; border-radius:50%; background:var(--yellow); }
.pf-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.pf-avatar { display:flex; align-items:center; gap:18px; margin-bottom:6px; }
.pf-avatar .av { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,#FCEFC9,#F4B731); display:grid; place-items:center; font-size:34px; flex-shrink:0; }
.seg { display:inline-flex; background:var(--cream-2); border-radius:var(--r-pill); padding:4px; gap:2px; }
.seg label { padding:8px 18px; border-radius:var(--r-pill); font-size:14px; font-weight:600; color:var(--ink-soft); cursor:pointer; }
.seg input { display:none; }
.seg input:checked + span { background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }
.seg label span { padding:8px 18px; border-radius:var(--r-pill); display:inline-block; }
.seg label { padding:0; }
@media (max-width:560px){ .pf-grid { grid-template-columns:1fr; } }

/* ===== 頁面專屬:account-favorites.html ===== */
.fav-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card-prod .fav.del { background:#fff; box-shadow:var(--shadow-sm); }
@media (max-width:920px){ .fav-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .fav-grid { grid-template-columns:1fr 1fr; } }

/* ===== 頁面專屬:account-address.html ===== */
.addr-list { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.addr-card { background:#fff; border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:24px; position:relative; border:1.5px solid transparent; }
.addr-card.default { border-color:var(--yellow); }
.addr-card .top { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.addr-card .nm { font-weight:700; font-size:15px; }
.addr-card .df { font-size:11px; font-weight:700; color:var(--yellow-dark); background:var(--yellow-soft); padding:3px 10px; border-radius:var(--r-pill); }
.addr-card .row { color:var(--ink-soft); font-size:14px; line-height:1.9; }
.addr-card .acts { display:flex; gap:14px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.addr-card .acts a { font-size:13px; font-weight:600; color:var(--ink-soft); }
.addr-card .acts a:hover { color:var(--yellow-dark); }
.addr-card .acts a.del:hover { color:var(--rose); }
.addr-add { border:1.5px dashed var(--line); border-radius:var(--r-lg); display:grid; place-items:center; min-height:200px; color:var(--muted); cursor:pointer; transition:all .2s; }
.addr-add:hover { border-color:var(--yellow); color:var(--yellow-dark); background:#fff; }
.addr-add .plus { width:46px; height:46px; border-radius:50%; background:var(--cream-2); display:grid; place-items:center; font-size:26px; margin:0 auto 10px; }
@media (max-width:560px){ .addr-list { grid-template-columns:1fr; } }

/* 地址編輯彈窗 Modal */
.modal-overlay { position:fixed; inset:0; background:rgba(40,42,50,.5); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; padding:20px; z-index:200; opacity:0; visibility:hidden; transition:opacity .22s; }
.modal-overlay.show { opacity:1; visibility:visible; }
.modal { background:#fff; border-radius:var(--r-xl); box-shadow:var(--shadow-lg); width:100%; max-width:480px; max-height:90vh; overflow-y:auto; transform:translateY(14px) scale(.97); transition:transform .25s; }
.modal-overlay.show .modal { transform:none; }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding:22px 26px; border-bottom:1px solid var(--line); }
.modal-head h3 { font-size:18px; font-weight:800; }
.modal-x { width:34px; height:34px; border-radius:50%; background:var(--cream-2); color:var(--ink-soft); display:grid; place-items:center; transition:all .2s; }
.modal-x:hover { background:var(--rose); color:#fff; }
.modal-body { padding:24px 26px; }
.modal-body .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.modal-chk { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--ink-soft); cursor:pointer; margin-top:4px; }
.modal-chk input { width:17px; height:17px; accent-color:var(--yellow); }
.modal-foot { display:flex; gap:12px; padding:18px 26px 24px; }
.modal-foot .btn { flex:1; }
@media (max-width:560px){ .modal-body .grid2 { grid-template-columns:1fr; } }

/* ===== 頁面專屬:account-coupons.html ===== */
.cp-tabs { display:flex; gap:8px; margin-bottom:20px; }
.cp-tabs button { padding:8px 18px; border-radius:var(--r-pill); border:1.5px solid var(--line); background:#fff; font-size:13px; font-weight:600; color:var(--ink-soft); }
.cp-tabs button.on { background:var(--yellow); border-color:var(--yellow); color:#fff; }
.cp-list { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.coupon { display:flex; background:#fff; border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; position:relative; }
.coupon .left { background:linear-gradient(135deg,#F8D67C,#F4B731); color:#fff; padding:22px 24px; display:flex; flex-direction:column; justify-content:center; align-items:center; min-width:130px; position:relative; }
.coupon .left .amt { font-size:30px; font-weight:900; line-height:1; }
.coupon .left .amt small { font-size:15px; font-weight:700; }
.coupon .left .cond { font-size:11px; margin-top:6px; opacity:.95; }
.coupon .left::after { content:""; position:absolute; right:-9px; top:0; bottom:0; width:18px; background:radial-gradient(circle at center, transparent 0 8px, #fff 8px) repeat-y; background-size:18px 22px; }
.coupon .right { padding:18px 22px; flex:1; display:flex; flex-direction:column; justify-content:center; }
.coupon .right b { font-size:15px; }
.coupon .right .exp { color:var(--muted); font-size:12px; margin:5px 0 12px; }
.coupon .right .btn { align-self:flex-start; }
.coupon.used { opacity:.6; }
.coupon.used .left { background:var(--muted); }
.coupon .stamp { position:absolute; right:18px; top:50%; transform:translateY(-50%) rotate(-12deg); border:2px solid var(--muted); color:var(--muted); font-weight:800; font-size:13px; padding:3px 10px; border-radius:6px; }
@media (max-width:560px){ .cp-list { grid-template-columns:1fr; } }

/* ===== 頁面專屬:order-tracking.html ===== */
.ord-box { background:#fff; border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:26px 28px; margin-bottom:20px; }
.ord-box h3 { font-size:16px; font-weight:800; margin-bottom:18px; display:flex; align-items:center; gap:9px; }
.ord-box h3 .d { width:6px; height:6px; border-radius:50%; background:var(--yellow); }
.badge-st { font-size:12px; font-weight:700; padding:5px 13px; border-radius:var(--r-pill); }
.badge-st.ship { background:var(--yellow-soft); color:var(--yellow-dark); }
.badge-st.done { background:#E8EFDD; color:var(--green); }
.ord-top { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.ord-top .no { font-size:13px; color:var(--muted); }
.ord-top .no b { color:var(--ink); font-weight:700; font-size:15px; }
.copy-no { color:var(--yellow-dark); cursor:pointer; margin-left:6px; }

.trk-courier { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.trk-courier .it { background:var(--cream-2); border-radius:var(--r); padding:16px 18px; }
.trk-courier .it span { font-size:12px; color:var(--muted); display:block; margin-bottom:4px; }
.trk-courier .it b { font-size:15px; }
.trk { margin-top:4px; }
.trk-step { display:flex; gap:18px; position:relative; padding-bottom:30px; }
.trk-step:last-child { padding-bottom:0; }
.trk-step::before { content:""; position:absolute; left:13px; top:30px; bottom:0; width:2px; background:var(--line); }
.trk-step:last-child::before { display:none; }
.trk-step.done::before { background:var(--green); }
.trk-step .dot { width:28px; height:28px; border-radius:50%; background:#fff; border:3px solid var(--line); flex-shrink:0; z-index:1; display:grid; place-items:center; }
.trk-step.done .dot { border-color:var(--green); background:var(--green); color:#fff; }
.trk-step.active .dot { border-color:var(--yellow); background:var(--yellow); box-shadow:0 0 0 5px var(--yellow-soft); }
.trk-step.active .dot::after { content:""; width:8px; height:8px; border-radius:50%; background:#fff; }
.trk-step .ct { padding-top:2px; }
.trk-step .ct b { font-size:15px; display:block; }
.trk-step.todo .ct b { color:var(--muted); }
.trk-step .ct .desc { color:var(--ink-soft); font-size:13.5px; margin-top:2px; }
.trk-step .when { color:var(--muted); font-size:12.5px; margin-top:3px; }
@media (max-width:640px){ .trk-courier { grid-template-columns:1fr; } }

/* ===== 頁面專屬:brand.html ===== */
/* ---- 品牌故事專屬 ---- */
.brand-hero { background: linear-gradient(120deg,#FFFFFF,#F1F2F5 60%,#E9EBEF); border-radius: var(--r-xl); padding: 64px 56px; text-align: center; margin-top: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.brand-hero .pill { margin-bottom: 16px; }
.brand-hero h1 { font-size: 40px; font-weight: 900; line-height: 1.3; }
.brand-hero p { color: var(--ink-soft); max-width: 560px; margin: 18px auto 0; font-size: 16px; }
.brand-hero .deco { position: absolute; font-size: 90px; opacity: .12; }
.brand-hero .deco.a { top: 20px; left: 40px; } .brand-hero .deco.b { bottom: 16px; right: 50px; }

.brand-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin: 64px 0; }
.brand-intro .img { background: linear-gradient(150deg,#F3E7D3,#E7D2B5); border-radius: var(--r-xl); aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow); }
.brand-intro .img svg { width: 38%; opacity: .8; }
.brand-intro h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.brand-intro .lead { color: var(--yellow-dark); font-weight: 700; margin-bottom: 16px; }
.brand-intro p { color: var(--ink-soft); line-height: 1.9; margin-bottom: 14px; }

.values { background: var(--cream-2); border-radius: var(--r-xl); padding: 54px; margin: 64px 0; }
.values .head { text-align: center; margin-bottom: 38px; }
.values .head h2 { font-size: 28px; font-weight: 800; }
.values .head p { color: var(--muted); margin-top: 8px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.value .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; margin-bottom: 16px; }
.value h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

.timeline { margin: 64px 0; }
.timeline .head { text-align: center; margin-bottom: 40px; }
.timeline .head h2 { font-size: 28px; font-weight: 800; }
.tl-list { max-width: 640px; margin: 0 auto; position: relative; padding-left: 40px; }
.tl-list::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -39px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--yellow); }
.tl-item .yr { font-weight: 800; color: var(--yellow-dark); font-size: 15px; }
.tl-item h4 { font-size: 16px; margin: 4px 0 6px; }
.tl-item p { color: var(--ink-soft); font-size: 14px; }

.brand-cta { background: linear-gradient(120deg,#FCE7AE,#F8D67C); border-radius: var(--r-xl); padding: 48px; text-align: center; margin: 64px 0 0; }
.brand-cta h2 { font-size: 26px; font-weight: 800; }
.brand-cta p { color: var(--ink-soft); margin: 10px 0 22px; }

@media (max-width: 820px){
  .brand-hero { padding: 44px 26px; } .brand-hero h1 { font-size: 28px; }
  .brand-intro { grid-template-columns: 1fr; gap: 24px; }
  .values { padding: 32px 22px; } .value-grid { grid-template-columns: 1fr; }
  .brand-cta { padding: 32px 22px; }
}

/* ===== 頁面專屬:blog.html ===== */
/* ---- 文章清單專屬 ---- */
.blog-cats { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 28px; }
.blog-cats button { padding: 9px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.blog-cats button.on { background: var(--yellow); border-color: var(--yellow); color: #fff; }

/* 精選文章 */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 40px; }
.feat .img { background: linear-gradient(150deg,#E4EAD9,#CADBB6); min-height: 320px; display: grid; place-items: center; position: relative; }
.feat .img svg { width: 28%; opacity: .75; }
.feat .img .tag { position: absolute; top: 18px; left: 18px; }
.feat .body { padding: 40px 44px 40px 0; display: flex; flex-direction: column; justify-content: center; }
.feat .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; display: flex; gap: 12px; }
.feat h2 { font-size: 28px; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.feat p { color: var(--ink-soft); line-height: 1.9; margin-bottom: 22px; }
.feat .more { color: var(--yellow-dark); font-weight: 700; }

/* 文章卡網格 */
.art-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.art-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: all .25s; }
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.art-card .img { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
.art-card .img svg { width: 30%; opacity: .7; }
.art-card .img .tag { position: absolute; top: 14px; left: 14px; }
.art-card .body { padding: 20px 22px 24px; }
.art-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 9px; display: flex; gap: 10px; }
.art-card h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.art-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }

@media (max-width: 820px){
  .feat { grid-template-columns: 1fr; }
  .feat .body { padding: 28px 26px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){ .art-grid { grid-template-columns: 1fr; } .feat h2 { font-size: 22px; } }

/* ===== 頁面專屬:article.html ===== */
/* ---- 文章內頁專屬 ---- */
.art-head { max-width: 760px; margin: 8px auto 0; text-align: center; }
.art-head .pill { margin-bottom: 16px; }
.art-head h1 { font-size: 34px; font-weight: 900; line-height: 1.4; }
.art-head .info { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.art-head .author { display: flex; align-items: center; gap: 8px; }
.art-head .author .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#FCEFC9,#F4B731); display: grid; place-items: center; font-size: 14px; }

.art-cover { max-width: 880px; margin: 28px auto 0; aspect-ratio: 21/9; border-radius: var(--r-xl); background: linear-gradient(150deg,#E4EAD9,#CADBB6); display: grid; place-items: center; box-shadow: var(--shadow); }
.art-cover svg { width: 16%; opacity: .7; }

.art-body { max-width: 720px; margin: 44px auto 0; color: var(--ink-soft); line-height: 2; font-size: 16px; }
.art-body h2 { color: var(--ink); font-size: 22px; font-weight: 800; margin: 36px 0 14px; }
.art-body h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.art-body p { margin-bottom: 18px; }
.art-body .lead { font-size: 18px; color: var(--ink); font-weight: 500; }
.art-body blockquote { border-left: 4px solid var(--yellow); background: var(--cream-2); padding: 18px 24px; border-radius: 0 var(--r) var(--r) 0; margin: 24px 0; color: var(--ink); font-weight: 500; }
.art-body ul.dots { margin: 0 0 18px; padding-left: 4px; }
.art-body ul.dots li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.art-body ul.dots li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.art-fig { margin: 26px 0; border-radius: var(--r-lg); aspect-ratio: 16/9; background: linear-gradient(150deg,#F3E7D3,#E7D2B5); display: grid; place-items: center; }
.art-fig svg { width: 14%; opacity: .7; }
.art-fig + .cap { text-align: center; color: var(--muted); font-size: 13px; margin-top: -16px; margin-bottom: 24px; }

/* 分享 + 標籤 */
.art-foot { max-width: 720px; margin: 36px auto 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; flex-wrap: wrap; gap: 14px; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.art-tags span { background: var(--cream-2); color: var(--ink-soft); font-size: 13px; padding: 6px 14px; border-radius: var(--r-pill); }
.share { display: flex; align-items: center; gap: 10px; }
.share .lbl { font-size: 13px; color: var(--muted); }
.share a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-soft); }
.share a:hover { background: var(--yellow); color: #fff; }

/* 作者卡 */
.author-card { max-width: 720px; margin: 30px auto 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; display: flex; gap: 18px; align-items: center; }
.author-card .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,#FCEFC9,#F4B731); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.author-card b { font-size: 16px; }
.author-card p { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }

@media (max-width: 640px){ .art-head h1 { font-size: 25px; } .art-body { font-size: 15px; } }

/* ===== 頁面專屬:contact.html ===== */
/* ---- 聯絡我們專屬 ---- */
.ct-layout { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; margin-top: 26px; }

/* 聯絡資訊 */
.ct-info { display: flex; flex-direction: column; gap: 14px; }
.ct-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.ct-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; flex-shrink: 0; }
.ct-card b { font-size: 15px; }
.ct-card p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; line-height: 1.7; }
.ct-card .sm { color: var(--muted); font-size: 12px; }
.ct-socials { display: flex; gap: 10px; margin-top: 4px; }
.ct-socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft); display: grid; place-items: center; }
.ct-socials a:hover { background: var(--yellow); color: #fff; }

/* 表單 */
.ct-form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 32px 34px; }
.ct-form h2 { font-size: 22px; font-weight: 800; }
.ct-form .sub { color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.ct-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 地圖 */
.ct-map { margin-top: 30px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 280px; background:
  linear-gradient(135deg,#EAEFE7,#DCE6E2);
  position: relative; display: grid; place-items: center; }
.ct-map .pin { text-align: center; color: var(--ink-soft); }
.ct-map .pin .dot { width: 50px; height: 50px; border-radius: 50% 50% 50% 0; background: var(--yellow); transform: rotate(-45deg); margin: 0 auto 14px; box-shadow: var(--shadow); display: grid; place-items: center; }
.ct-map .pin .dot svg { transform: rotate(45deg); color: #fff; }
.ct-map .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(#ffffff55 1px,transparent 1px),linear-gradient(90deg,#ffffff55 1px,transparent 1px); background-size: 44px 44px; }

/* FAQ */
.faq-sec { margin-top: 56px; }
.faq-sec .head { text-align: center; margin-bottom: 30px; }
.faq-sec .head h2 { font-size: 26px; font-weight: 800; }
.faq-sec .head p { color: var(--muted); margin-top: 6px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq .q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15px; }
.faq .q .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft); flex-shrink: 0; transition: all .25s; position: relative; font-size: 0; }
.faq .q .plus::before, .faq .q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; background: currentColor; border-radius: 1px; transform: translate(-50%,-50%); }
.faq .q .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq.open .q .plus { background: var(--yellow); color: #fff; transform: rotate(45deg); }
.faq .a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq.open .a { max-height: 200px; }
.faq .a p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }

@media (max-width: 920px){ .ct-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px){ .ct-form { padding: 24px; } .ct-form .grid2 { grid-template-columns: 1fr; } }

/* ===== 頁面專屬:search.html ===== */
.sr-head { margin: 22px 0 10px; }
.sr-head h1 { font-size: 26px; font-weight: 800; }
.sr-head h1 .kw { color: var(--yellow-dark); }
.sr-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sr-head p b { color: var(--ink); }

/* 區塊列(各自一列) */
.sr-block { margin-top: 36px; }
.sr-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sr-bar .t { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.sr-bar .t .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow-soft); color: var(--yellow-dark); display: grid; place-items: center; }
.sr-bar .t .cnt { font-size: 14px; font-weight: 600; color: var(--muted); }
.sr-bar .more { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.sr-bar .more:hover { color: var(--yellow-dark); }

/* 文章列 */
.sr-arts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.sr-art { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: all .25s; }
.sr-art:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sr-art .img { aspect-ratio: 16/10; display: grid; place-items: center; }
.sr-art .img svg { width: 28%; opacity: .7; }
.sr-art .body { padding: 18px 20px 22px; }
.sr-art .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.sr-art h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 7px; }
.sr-art p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }

.sr-divider { height: 1px; background: var(--line); margin: 8px 0; }

@media (max-width: 920px){ .sr-arts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .sr-arts { grid-template-columns: 1fr; } .sr-head h1 { font-size: 21px; } }

/* ===== 頁面專屬:404.html ===== */
.nf { text-align: center; padding: 50px 0 20px; max-width: 560px; margin: 0 auto; }
.nf-art { display: inline-block; margin-bottom: 10px; }
.nf-num { font-size: 140px; font-weight: 900; line-height: 1; letter-spacing: 4px;
  background: linear-gradient(135deg,#F4B731,#E2A41E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 26px; font-weight: 800; margin-top: 8px; }
.nf p { color: var(--ink-soft); margin: 12px 0 26px; font-size: 15px; }
.nf-search { position: relative; max-width: 420px; margin: 0 auto 24px; }
.nf-search input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 14px 54px 14px 22px; outline: none; }
.nf-search input:focus { border-color: var(--yellow); }
.nf-search .go { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #fff; display: grid; place-items: center; }
.nf-search .go:hover { background: var(--yellow-dark); }
.nf-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf-links { margin-top: 30px; color: var(--muted); font-size: 13px; }
.nf-links a { color: var(--yellow-dark); font-weight: 600; margin: 0 8px; }
.nf-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.nf-cats a { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.nf-cats a:hover { border-color: var(--yellow); color: var(--yellow-dark); }
@media (max-width:560px){ .nf-num { font-size: 100px; } }

/* ===== 頁面專屬:partnership.html ===== */
@media (max-width:560px){.pp-grid{grid-template-columns:1fr!important}}

/* ===== Hero 輪播 ===== */
.hero-card.has-carousel { position: relative; overflow: hidden; }
.hero-card.has-carousel .hero-slides { position: relative; width: 100%; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-card.has-carousel .dots { position: absolute; left: 10%; bottom: 30px; z-index: 4; margin: 0; }
@media (max-width: 640px){ .hero-card.has-carousel .dots { left: 24px; bottom: 16px; } }

/* ===== 頁首/404 搜尋鈕:覆蓋父主題 reset(去紅色 hover、邊框、置中 icon)===== */
.site-top .search .go,
.site-top .search .go:hover,
.site-top .search .go:focus,
.site-top .search .go:active,
.nf-search .go, .nf-search .go:hover, .nf-search .go:focus, .nf-search .go:active {
  background-color: var(--yellow) !important;
  border: none !important; outline: none !important; box-shadow: none !important;
  -webkit-appearance: none !important; appearance: none !important;
  padding: 0 !important; line-height: 0 !important;
  display: grid; place-items: center;
}
.site-top .search .go:hover, .nf-search .go:hover { background-color: var(--yellow-dark) !important; }
.site-top .search .go svg, .nf-search .go svg { display: block; }

/* ===== Hero 圖片當整張背景 + 文字遮罩 + 左右 5% ===== */
.hero-slide.has-img { background-size: cover; background-position: center; }
.hero-slide .hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 36%, rgba(255,255,255,.32) 66%, rgba(255,255,255,0) 100%); }
.hero-slide.has-img .hero-copy { position: relative; z-index: 2; max-width: 100%; }
.hero-card .hero-copy { padding: 48px 10%; max-width: none; width: 100%; }
@media (max-width: 640px){
  .hero-slide.has-img .hero-copy { max-width: 100%; }
  .hero-slide .hero-scrim { background: linear-gradient(180deg, rgba(255,255,255,.93) 35%, rgba(255,255,255,.72) 100%); }
  .hero-card .hero-copy { padding: 34px 24px; }
}

/* ===== Hero 箭頭:覆蓋父主題 reset(去紅框、白底)===== */
.hero-arrow, .hero-arrow:hover, .hero-arrow:focus, .hero-arrow:active {
  background-color: #fff !important; border: none !important; outline: none !important;
  box-shadow: var(--shadow) !important; -webkit-appearance: none !important; appearance: none !important;
  color: var(--ink-soft) !important;
}
.hero-arrow:hover { color: var(--ink) !important; }
.hero-arrow svg { display: block; }

/* ===== 解除 Hello Elementor .site-main 寬度限制,讓 .wrap 統一對齊(1240)===== */
.site-main { max-width: 100% !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ===== 圖示按鈕統一修正:去原生外觀/紅框/padding 偏移,圖示置中(覆蓋父主題 button reset)===== */
.site-top .search .go, .nf-search .go, .hero-arrow,
.card-prod .fav, .card-prod .card-cart, .fav, .wish-btn, .qty button, .modal-x, .ci-del, .ci-prod .del, .order .badge {
  -webkit-appearance: none !important; appearance: none !important;
  border: none !important; outline: none !important; padding: 0 !important;
}
.card-prod .fav, .card-prod .card-cart, .fav, .wish-btn, .hero-arrow, .search .go, .nf-search .go, .modal-x, .ci-del {
  display: grid !important; place-items: center !important; line-height: 0 !important;
}
.card-prod .fav svg, .card-prod .card-cart svg, .fav svg, .wish-btn svg, .hero-arrow svg, .search .go svg, .nf-search .go svg, .modal-x svg, .ci-del svg { display: block; }
/* 收藏愛心 hover 維持玫瑰色(不被父主題 #c36 蓋)*/
.card-prod .fav:hover, .fav:hover { background: #FCE6E1 !important; color: var(--rose) !important; }
.card-prod .fav.on, .fav.on { background: #FCE6E1 !important; color: var(--rose) !important; }

/* ===== Logo 比例修正:鎖定原始長寬比,避免被父主題/WP 拉伸變形 ===== */
.logo img, .foot-brand .logo img, .auth-logo img {
  width: auto !important; max-width: none !important;
  aspect-ratio: 259 / 300; object-fit: contain !important;
}
.logo img { height: 100px !important; }
.foot-brand .logo img { height: 72px !important; }
.auth-logo img { height: 76px !important; }
@media (max-width: 640px){ .logo img { height: 76px !important; } }

/* ===== Hero 圓點加陰影,在淺色背景更明顯 ===== */
.hero-card.has-carousel .dots i { box-shadow: 0 2px 8px rgba(30,33,45,.30); opacity: .9; }
.hero-card.has-carousel .dots i.on { box-shadow: 0 3px 10px rgba(244,183,49,.55); opacity: 1; }

/* ===== 分類列:圖片圖示(無分隔線,圖示置中對齊文字)===== */
.cats li a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px; }
.cats .ic-img { height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto; transition: transform .25s; }
.cats .ic-img img { height: 56px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.cats .lbl { width: 100%; text-align: center; }
.cats li a:hover .ic-img { transform: translateY(-4px); }
@media (max-width: 920px){ .cats .ic-img, .cats .ic-img img { height: 46px; } }

/* ===== mini cart 數量移到 icon 右上角 ===== */
.top-acts .top-act .ti-ic { position: relative; display: inline-flex; }
.top-acts .top-act .ti-ic .badge { position: absolute; top: -7px; right: -9px; }

/* ===== 頁首搜尋框靠右(與右側功能列同側)===== */
.site-top .topbar { position: relative; }
.site-top .topbar .search { position: relative; transform: none; left: auto; top: auto; width: 460px; max-width: 42%; flex: 0 0 auto; margin-left: auto; }
.site-top .topbar .top-acts { margin-left: 0; }
@media (max-width: 920px){ .site-top .topbar .search { max-width: 38%; } }

/* ===== 商店左側篩選:連結式項目 ===== */
.filters .filter-list a { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); padding: 3px 0; transition: color .15s; }
.filters .filter-list a:hover { color: var(--ink); }
.filters .filter-list a.on { color: var(--yellow-dark); font-weight: 700; }
.filters .filter-list a .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.filters .price-range { flex-wrap: wrap; gap: 8px; }
.filters .price-range input { width: 72px; }

/* ===== 價格篩選 重新設計(去微調箭頭 + 快速選項 + 圓形套用鈕)===== */
.filters .price-chips { display: grid; gap: 8px; margin-bottom: 14px; }
.filters .price-chips a { display: block; text-align: center; padding: 9px 12px; border-radius: var(--r); border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: all .18s; }
.filters .price-chips a:hover { border-color: var(--yellow); color: var(--ink); }
.filters .price-chips a.on { background: var(--yellow-soft); border-color: var(--yellow); color: var(--yellow-dark); }
.filters .price-range { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.filters .price-range input[type=number] { width: 100%; min-width: 0; -moz-appearance: textfield; appearance: textfield; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 8px; text-align: center; outline: none; font-size: 13px; color: var(--ink); }
.filters .price-range input[type=number]::-webkit-outer-spin-button,
.filters .price-range input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filters .price-range input:focus { border-color: var(--yellow); }
.filters .price-range .dash { color: var(--muted); flex-shrink: 0; }
.filters .price-range .price-go { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--yellow) !important; color: #fff !important;
  border: none !important; outline: none !important; padding: 0 !important;
  -webkit-appearance: none !important; appearance: none !important; }
.filters .price-range .price-go:hover { background: var(--yellow-dark) !important; }
.filters .price-range .price-go svg { display: block; }

/* ===== 特價顏色:原價灰色刪除線、特價紅色 ===== */
.card-prod .price del, .price-row del, .co-it del, .od-item del, .ci-prod del {
  color: var(--muted) !important; font-weight: 500; text-decoration: line-through; opacity: 1;
  font-size: 0.78em;   /* 原價文字比特價小 */
}
.card-prod .price ins { font-size: 1.05em; }  /* 特價金額略大、突出 */
.card-prod .price { display: inline-flex; align-items: baseline; gap: 6px; }
.card-prod .price del .woocommerce-Price-amount, .price-row del .woocommerce-Price-amount { color: var(--muted) !important; }
.card-prod .price ins, .price-row ins, .co-it ins, .od-item ins {
  color: #E0281C !important; text-decoration: none; background: transparent; font-weight: 800;
}
.card-prod .price ins .woocommerce-Price-amount, .price-row ins .woocommerce-Price-amount,
.card-prod .price ins bdi, .price-row ins bdi { color: #E0281C !important; }
.price-row ins { font-size: 30px; }

/* ===== 商品卡標籤:左上角可堆疊(新品 + 特價)===== */
.card-prod .thumb .card-tags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-prod .thumb .card-tags .tag { position: static; top: auto; left: auto; }
.tag.sale { background: #E0281C; color: #fff; }
/* WooCommerce 單品特價標籤 → 紅底白字 */
.woocommerce span.onsale, .gallery .onsale { background: #E0281C !important; color: #fff !important; border-radius: var(--r-pill); min-width: 0; min-height: 0; padding: 4px 12px; font-size: 12px; font-weight: 700; line-height: 1.4; margin: 0; }

/* ===== 手機版頁首:保留搜尋框(整行),logo 左、圖示右 ===== */
@media (max-width: 640px) {
  .site-top .topbar { flex-wrap: wrap; align-items: center; row-gap: 10px; column-gap: 12px; }
  .site-top .topbar .search {
    display: block; order: 3; flex: 1 0 100%; width: 100%; max-width: 100%; margin: 0;
  }
  .site-top .topbar .search input { height: 44px; }
  /* 三個 icon 靠右(蓋過桌面的 .site-top .topbar .top-acts{margin-left:0}) */
  .site-top .topbar .top-acts { margin-left: auto; gap: 20px; }
}

/* ===== 收藏(愛心)狀態 + 我的收藏頁 ===== */
.fav.on svg, .wish-btn.on svg { fill: var(--rose); }
.fav.on, .wish-btn.on { color: var(--rose); }
@keyframes wishpop { 0%{transform:scale(1)} 40%{transform:scale(1.25)} 100%{transform:scale(1)} }
.fav.on svg, .wish-btn.on svg { animation: wishpop .28s ease; }
.wishlist-loading { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--muted); }
.wishlist-empty { text-align: center; padding: 56px 20px 70px; }
.wishlist-empty .ic { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.wishlist-empty h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.wishlist-empty p { color: var(--ink-soft); margin-bottom: 22px; }

/* ============================================================
   Minicart 側欄(滑出式購物車)
   ============================================================ */
.mc-overlay { position: fixed; inset: 0; background: rgba(28,23,19,.42); z-index: 199; opacity: 0; visibility: hidden; transition: opacity .3s; }
.mc-overlay.show { opacity: 1; visibility: visible; }
.minicart {
  position: fixed; top: 0; right: 0; height: 100%; width: 390px; max-width: 92vw;
  background: #fff; z-index: 200; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.14); transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.minicart.open { transform: translateX(0); }
body.mc-lock { overflow: hidden; }
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mc-head h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0; }
.mc-close { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; line-height: 0; flex-shrink: 0; transition: all .2s; -webkit-appearance: none; appearance: none; }
.mc-close svg { display: block; }
.mc-close:hover { background: var(--yellow); color: #fff; }
/* 我的帳號:收藏頁 head-row(WC 帳號內容區) */
.woocommerce-MyAccount-content .head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.woocommerce-MyAccount-content .head-row h2 { font-size: 20px; font-weight: 800; }
.woocommerce-MyAccount-content .head-row .desc { color: var(--muted); font-size: 13px; }
.woocommerce-MyAccount-content .fav-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px){ .woocommerce-MyAccount-content .fav-grid { grid-template-columns: repeat(3, 1fr); } }
.mc-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 24px; }

/* WC mini cart 內容 */
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 6px 0; }
.woocommerce-mini-cart-item { position: relative; padding: 16px 30px 16px 78px; min-height: 64px; border-bottom: 1px solid var(--line); }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); margin: 0; }
.woocommerce-mini-cart-item > a:not(.remove) { display: block; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; text-decoration: none; }
.woocommerce-mini-cart-item > a:not(.remove):hover { color: var(--yellow-dark); }
.woocommerce-mini-cart-item .quantity { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.woocommerce-mini-cart-item .quantity .amount { color: var(--ink-soft); font-weight: 700; }
.woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft) !important; text-align: center; line-height: 24px; font-size: 15px; text-decoration: none; transition: all .2s; }
.woocommerce-mini-cart-item a.remove:hover { background: var(--rose); color: #fff !important; }
.woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; margin-top: auto; border-top: 2px solid var(--line); font-size: 16px; color: var(--ink); }
.woocommerce-mini-cart__total strong { font-weight: 700; }
.woocommerce-mini-cart__total .amount { font-size: 20px; font-weight: 900; color: var(--ink); }
.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 24px; margin: 0; }
.woocommerce-mini-cart__buttons .button {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; width: 100%;
  border-radius: var(--r-pill); font-weight: 700; font-size: 15px; text-decoration: none; transition: all .2s;
}
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { border-color: var(--yellow); color: var(--yellow-dark); background: #fff; }
.woocommerce-mini-cart__buttons .button.checkout { background: var(--yellow); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(244,183,49,.35); }
.woocommerce-mini-cart__buttons .button.checkout:hover { background: var(--yellow-dark); }
.woocommerce-mini-cart__empty-message { padding: 60px 0; text-align: center; color: var(--muted); font-size: 15px; }

/* 登入提示 toast */
.hh-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff; border-radius: var(--r-pill);
  padding: 12px 20px; display: flex; align-items: center; gap: 14px;
  font-size: 14px; z-index: 9999; opacity: 0; visibility: hidden;
  transition: opacity .28s, transform .28s, visibility .28s;
  white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  pointer-events: none;
}
.hh-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.hh-toast .toast-login { color: var(--yellow); font-weight: 700; text-decoration: none; }
.hh-toast .toast-login:hover { text-decoration: underline; }
.hh-toast .toast-x { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 0; font-size: 18px; line-height: 1; display: grid; place-items: center; }
