/* ═══════════════════════════════════════════════════════
   Care Cloud 輔具商城
   風格：極簡・留白・高質感・藝術選品感
   結構：左 Cart sidebar ＋ 右 Product Grid
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Backgrounds — warm off-white */
  --bg:          #DDD7CF;
  --bg-soft:     #F1EBE2;
  --bg-muted:    #E8DFCF;
  --bg-white:    #FFFFFF;

  /* Lines */
  --line:        #E2D9CD;
  --line-strong: #C8BEB2;

  /* Text */
  --text:        #1A1A1A;
  --text-mid:    #3A3A3A;
  --text-muted:  #1A1A1A;
  --text-soft:   #1A1A1A;

  /* Brand accent — one colour only */
  --accent:      #6D28D9;   /* soft purple for Care Cloud name */
  --accent-hover:#5B21B6;

  /* Legacy compat */
  --brand:       var(--accent);
  --brand-soft:  #EDE9FE;
  --brand-dark:  var(--accent-hover);
  --green:       #059669;
  --green-soft:  #D1FAE5;
  --blue-gray:   #6B7280;
  --success:     #059669;
  --warning:     #D97706;
  --error:       #DC2626;
  --surface:     #FFFFFF;
  --card:        #FFFFFF;

  /* Radius — minimal, editorial */
  --r-sm:        4px;
  --r-md:        6px;
  --r-lg:        8px;
  --r-xl:        12px;

  /* Shadows — very subtle */
  --shadow-sm:   0 1px 4px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.07);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.1);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 48px;
  --sp-9: 64px; --sp-10:80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ══════════════════════════════════════════
   全頁天空背景 + 飄動雲
══════════════════════════════════════════ */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(175deg,
    #5B9ED6 0%,
    #7AB8E2 18%,
    #A4CDE8 40%,
    #C2E2F2 65%,
    #D5EDF8 100%
  );
  overflow: hidden;
}

/* ── cloud shape ── */
.sky-cloud {
  position: absolute;
  background: rgba(255,255,255,.92);
  border-radius: 60px;
  filter: blur(3px);
  animation: skyDrift linear infinite;
}
.sky-cloud::before,
.sky-cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
}

/* Cloud 1 — large, slow, lower */
.sky-cloud-1 {
  width: 280px; height: 72px;
  bottom: 28%; left: -320px;
  animation-duration: 52s;
  animation-delay: 0s;
}
.sky-cloud-1::before { width:130px; height:110px; top:-60px; left:50px; }
.sky-cloud-1::after  { width: 95px; height: 80px; top:-44px; left:150px; }

/* Cloud 2 — medium */
.sky-cloud-2 {
  width: 200px; height: 55px;
  bottom: 50%; left: -240px;
  animation-duration: 38s;
  animation-delay: -14s;
}
.sky-cloud-2::before { width: 90px; height:76px; top:-38px; left:36px; }
.sky-cloud-2::after  { width: 68px; height:56px; top:-24px; left:108px; }

/* Cloud 3 — small, fast */
.sky-cloud-3 {
  width: 140px; height: 40px;
  bottom: 65%; left: -170px;
  animation-duration: 28s;
  animation-delay: -6s;
  opacity: .80;
}
.sky-cloud-3::before { width:64px; height:54px; top:-28px; left:22px; }
.sky-cloud-3::after  { width:48px; height:40px; top:-18px; left:74px; }

/* Cloud 4 — large, very slow, high */
.sky-cloud-4 {
  width: 340px; height: 86px;
  bottom: 72%; left: -380px;
  animation-duration: 66s;
  animation-delay: -28s;
  opacity: .88;
}
.sky-cloud-4::before { width:150px; height:126px; top:-68px; left:60px; }
.sky-cloud-4::after  { width:108px; height: 90px; top:-50px; left:190px; }

/* Cloud 5 — small accent */
.sky-cloud-5 {
  width: 108px; height: 30px;
  bottom: 80%; left: -130px;
  animation-duration: 22s;
  animation-delay: -9s;
  opacity: .70;
}
.sky-cloud-5::before { width:50px; height:42px; top:-22px; left:14px; }
.sky-cloud-5::after  { width:36px; height:30px; top:-14px; left:58px; }

/* Cloud 6 — medium, mid-height */
.sky-cloud-6 {
  width: 180px; height: 48px;
  bottom: 40%; left: -210px;
  animation-duration: 44s;
  animation-delay: -20s;
  opacity: .82;
}
.sky-cloud-6::before { width:80px; height:68px; top:-34px; left:30px; }
.sky-cloud-6::after  { width:60px; height:50px; top:-22px; left:98px; }

@keyframes skyDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 420px)); }
}

/* ── 全頁浮水印 logo (在 CSS 中定義，HTML 中也有 inline，CSS 優先) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/carecloud-watermark.svg');
  background-repeat: repeat;
  background-size: 110px 110px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

#app {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════
   全頁卡片半透明玻璃效果
══════════════════════════════════════════ */
.store-shell {
  --card:    rgba(255,255,255,.84);
  --surface: rgba(255,255,255,.84);
  --bg:      rgba(255,255,255,.42);
  --bg-soft: rgba(241,235,226,.52);
  --bg-muted:rgba(232,223,207,.48);
  --bg-white:rgba(255,255,255,.88);
}
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
img[src=""], img:not([src]) { visibility: hidden; }

/* ── 頁面容器 ── */
.store-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: var(--sp-10);
}

/* ════════════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════════════ */
.store-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--sp-6) 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.store-brand-text {
  display: flex;
  flex-direction: column;
}
.store-brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.store-brand strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1A1A1A;
  letter-spacing: -.02em;
}

.store-back {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: color .15s;
}
.store-back:hover { color: var(--text); }
.store-back-right { margin-left: auto; }

/* ── 麵包屑 ── */
.store-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  font-size: 15px;
  color: var(--text-soft);
}
.store-breadcrumb a { color: var(--text-muted); }
.store-breadcrumb a:hover { color: var(--text); }
.store-breadcrumb span { opacity: .4; margin: 0 2px; }

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero-card {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: var(--sp-9);
}

.hero-copy {
  padding: 56px 52px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.hero-copy > p {
  margin: 0;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 42ch;
}

/* CTA row in hero */
.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-muted);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.store-hero-placeholder {
  font-size: 5rem;
  background: var(--bg-muted);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ════════════════════════════════════════════════════
   SEARCH BAR
════════════════════════════════════════════════════ */
.muji-search {
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  max-width: 580px;
  transition: border-color .15s, box-shadow .15s;
}
.muji-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(160,143,124,.12);
}
.muji-search-icon {
  padding: 0 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.muji-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  padding: 0 8px 0 0;
  min-width: 0;
  height: 100%;
}
.muji-search input::placeholder { color: var(--text-soft); }
.muji-search-btn {
  flex-shrink: 0;
  height: 100%;
  padding: 0 22px;
  background: var(--text);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  border-left: 1px solid var(--line-strong);
  transition: opacity .15s;
  white-space: nowrap;
}
.muji-search-btn:hover { opacity: .85; }

/* Quick chips row */
.muji-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.muji-chips-label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: .04em;
}
.muji-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.muji-chip:hover,
.muji-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* ════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: var(--text);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: .85; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--brand);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }

.store-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }

/* ════════════════════════════════════════════════════
   BADGE / TAG / CHIP
════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 var(--sp-2);
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.chip:hover, .chip.active { background: var(--bg-muted); }
.chip-cta { font-weight: 600; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--line);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; }

/* ════════════════════════════════════════════════════
   SECTION HEAD
════════════════════════════════════════════════════ */
.section-head {
  margin-bottom: var(--sp-5);
  margin-top: var(--sp-2);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.section-head-left { flex: 1; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.section-head p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════════════════
   SPACE GRID & CARDS
════════════════════════════════════════════════════ */
.space-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-9);
}
.specialist-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.space-card {
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: block;
  width: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.space-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.space-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.store-entry-img  { aspect-ratio: 16/9; min-height: 140px; background: var(--bg-muted); }
.store-cat-img    { aspect-ratio: 4/3;  min-height: 160px; background: var(--bg-muted); }

.store-entry-emoji { font-size: 3rem; line-height: 1; }
.store-entry-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}
.space-card-image { position: relative; }

.space-card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}
.space-card-body h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.3;
}
.space-card-body p {
  margin: 0 0 var(--sp-2);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Category card */
.cat-product-card { cursor: default; }
.cat-product-card .space-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.cat-price-block {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.cat-card-actions { margin-top: var(--sp-1); }
.cat-start-link { align-self: flex-start; text-decoration: none; }

.entry-card-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: var(--sp-2) 0 var(--sp-3);
}
.entry-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--sp-3); }
.entry-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   SPACE HERO (分類頁 header)
════════════════════════════════════════════════════ */
.space-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--sp-6);
  align-items: center;
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: var(--sp-7) var(--sp-8);
  margin-bottom: var(--sp-6);
}
.space-hero h1 {
  margin: var(--sp-3) 0 var(--sp-3);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.3;
}
.space-hero p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.space-hero > div:first-child .badge { margin-bottom: var(--sp-3); }
.space-hero img {
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--bg-muted);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ════════════════════════════════════════════════════
   TWO-COL / PANEL
════════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.panel > p { margin: 0 0 var(--sp-5); font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ════════════════════════════════════════════════════
   ASSESSMENT
════════════════════════════════════════════════════ */
.assess-progress-wrap {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 6px;
  overflow: hidden;
}
.assess-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .3s ease;
}
.assess-progress-label {
  margin: 0 0 var(--sp-6);
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: .04em;
}
.assess-questions-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.assess-question {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color .2s;
}
.assess-question.is-answered {
  border-color: var(--brand);
  background: var(--bg-soft);
}
.assess-q-head { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); }
.assess-q-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assess-question.is-answered .assess-q-num {
  background: var(--brand);
  color: #fff;
}
.assess-q-text { margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.55; color: var(--text); }
.assess-options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.assess-opt {
  padding: 8px 18px;
  font-size: .875rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.assess-opt:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.assess-opt.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ════════════════════════════════════════════════════
   RESULT PAGE
════════════════════════════════════════════════════ */
.result-level-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.result-level-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}
.result-level-hero h1 {
  margin: 0 0 var(--sp-2);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.result-reason { margin: 0 0 4px; font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.result-score  { margin: 0; font-size: .8rem; color: var(--text-soft); }

.result-subsidy-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px var(--sp-5);
  border-radius: var(--r-md);
  background: #EDF3EB;
  border: 1px solid #C8D9C4;
  font-size: .875rem;
  color: var(--success);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.result-subsidy-sep { opacity: .35; }
.result-subsidy-bar strong { font-weight: 700; }

.result-note {
  margin-top: var(--sp-5);
  padding: 13px var(--sp-4);
  border-radius: var(--r-md);
  background: #FDF5E6;
  border-left: 3px solid var(--warning);
  font-size: .875rem;
  color: #7A5B30;
  line-height: 1.6;
}

/* result toolbar */
.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  margin: var(--sp-5) 0 var(--sp-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.result-toolbar .right { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.result-toolbar select {
  min-width: 140px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
}

/* result summary */
.recommend-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  margin-bottom: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.level-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--brand-dark);
}
.summary-content h1 {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}
.summary-tag { font-size: .8rem; font-weight: 600; color: var(--text-soft); letter-spacing: .05em; text-transform: uppercase; }
.summary-content p { margin: 0; color: var(--text-muted); line-height: 1.7; font-size: .9rem; }
.summary-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.summary-meta span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   PRODUCT CARDS
════════════════════════════════════════════════════ */
.recommendation-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.prod-card-full {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s;
}
.prod-card-full:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.prod-card-smart { border-left: 3px solid var(--green); background: #F9FCF8; }

.prod-card-img-wrap {
  width: 130px; height: 130px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.prod-card-emoji { font-size: 2.8rem; line-height: 1; }

.prod-card-detail { display: flex; flex-direction: column; gap: var(--sp-3); }
.prod-card-header { display: flex; flex-direction: column; gap: 4px; }
.prod-card-name { font-size: .975rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.35; }
.prod-card-subtitle { margin: 2px 0 0; color: var(--text-muted); font-size: .825rem; line-height: 1.55; }
.prod-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.prod-card-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.75; margin: 0; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

.prod-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.prod-feature-item {
  font-size: .8rem; color: var(--text);
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.5;
}
.prod-feature-item::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Ability Superstore extended card */
.as-product-list { gap: var(--sp-3); }
.prod-card-full.as-product-card {
  grid-template-columns: 140px minmax(0, 1fr) 210px;
  align-items: stretch;
  border-radius: var(--r-md);
}
.as-product-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-4);
  border-left: 1px solid var(--line);
  padding-left: var(--sp-5);
}
.as-product-rating { color: var(--warning); font-size: .8rem; font-weight: 600; }
.as-product-rating span { color: var(--text-soft); font-weight: 500; }
.as-feature-chip {
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  padding: 3px 8px;
}

/* ── Price block ── */
.price-block { display: flex; flex-direction: column; gap: 3px; }
.original-price { color: var(--text-soft); text-decoration: line-through; font-size: .8rem; font-weight: 500; }
.sale-price { color: var(--text); font-size: 1.35rem; font-weight: 600; }
.subsidy-price { color: var(--success); font-size: .8rem; font-weight: 600; }
.rent-price    { color: var(--warning); font-size: .8rem; font-weight: 600; }
.subsidy-price.muted, .rent-price.muted { color: var(--text-soft); font-weight: 500; }

/* ── Card actions ── */
.as-card-actions { display: grid; gap: var(--sp-2); }
.icon-btn, .cart-btn {
  min-height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font-size: .825rem;
  font-weight: 500;
  transition: all .15s;
}
.icon-btn:hover, .icon-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.cart-btn {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.cart-btn:hover, .cart-btn.active { opacity: .85; }

/* Product badges */
.badge-smart-tag, .badge-subsidy, .badge-rental, .badge-buy {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-smart-tag { background: #E9F0E7; color: #4A6844; }
.badge-subsidy   { background: #EDF3EB; color: #4A6A44; }
.badge-rental    { background: #FDF2E3; color: #7A5830; }
.badge-buy       { background: var(--bg-muted); color: var(--text-muted); }

/* ── Old small card compat ── */
.prod-card-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card-img .store-entry-emoji { font-size: 1.6rem; }

/* ════════════════════════════════════════════════════
   DEVICE GRID
════════════════════════════════════════════════════ */
.device-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.device-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.device-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-muted);
  display: block;
}
.device-card-body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.device-card-body h3 { margin: var(--sp-2) 0 var(--sp-2); font-size: .95rem; font-weight: 600; color: var(--text); }
.device-card-body p  { margin: 0 0 var(--sp-3); font-size: .825rem; color: var(--text-muted); line-height: 1.55; }
.device-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.device-price small  { display: block; font-size: .7rem; color: var(--text-soft); }
.device-price strong { font-size: .975rem; font-weight: 600; color: var(--text); }
.device-price .btn-primary { height: 36px; padding: 0 14px; font-size: .8rem; }

/* ════════════════════════════════════════════════════
   QUESTIONS / QUESTION LIST
════════════════════════════════════════════════════ */
.question-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 13px var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
}
.question-row strong { font-size: .875rem; flex: 1; line-height: 1.45; font-weight: 500; }
.question-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.question-chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ════════════════════════════════════════════════════
   RECOMMENDATION ITEM (old)
════════════════════════════════════════════════════ */
.recommendation-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
}
.recommendation-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.recommendation-item p { margin: 0 0 4px; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.recommendation-item .btn-primary { flex-shrink: 0; height: 36px; padding: 0 14px; font-size: .8rem; }

/* ════════════════════════════════════════════════════
   PRODUCT DETAIL
════════════════════════════════════════════════════ */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
  margin-bottom: var(--sp-9);
}
.product-card > div:first-child {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card > div:first-child img { width: 100%; height: 100%; object-fit: cover; }
.product-copy .tag-row { margin-bottom: var(--sp-3); }
.product-copy h1 {
  margin: var(--sp-3) 0 var(--sp-3);
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
}
.product-copy > p { margin: 0 0 var(--sp-5); font-size: .925rem; color: var(--text-muted); line-height: 1.75; }
.price-box {
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.price-box small  { font-size: .75rem; color: var(--text-soft); display: block; margin-bottom: 4px; }
.price-box strong { font-size: 1.5rem; font-weight: 600; color: var(--text); display: block; }
.price-box p      { margin: 6px 0 0; font-size: .8rem; color: var(--text-muted); }
.feature-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.feature-pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   MISC
════════════════════════════════════════════════════ */
.store-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: 1rem;
  color: var(--text-soft);
}

.store-empty {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  color: var(--text-muted);
}
.store-empty-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); }
.store-empty p { font-size: .9rem; }
.store-empty a { color: var(--brand); text-decoration: underline; }
.store-empty-inline { font-size: .875rem; color: var(--text-muted); padding: var(--sp-3) 0; }

/* ════════════════════════════════════════════════════
   MUJI HERO — Home
════════════════════════════════════════════════════ */
.hero-muji {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-9) var(--sp-8) var(--sp-8);
  margin-bottom: var(--sp-8);
}
.hero-muji-inner { max-width: 620px; }
.hero-muji-eyebrow {
  margin: 0 0 var(--sp-3);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero-muji-title {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text);
}
.hero-muji-sub {
  margin: 0 0 var(--sp-6);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}
.hero-actions { margin-bottom: var(--sp-5); }
.muji-search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.muji-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.muji-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 16px;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
}
.muji-search-input::placeholder { color: var(--text-soft); }
.muji-search-btn {
  flex-shrink: 0;
  padding: 0 22px;
  background: var(--text);
  color: #fff;
  border: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .02em;
  transition: opacity .15s;
}
.muji-search-btn:hover { opacity: .82; }
.muji-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.muji-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.muji-chip:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ════════════════════════════════════════════════════
   ENTRY HERO SPLIT — 分類頁 Banner（Framer 風格）
════════════════════════════════════════════════════ */
.entry-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  margin-bottom: var(--sp-7);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}

/* ── Left: copy panel ── */
.ehs-copy {
  padding: 3rem 2.5rem;
  background: #1A1A1A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.ehs-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at -10% 120%, rgba(109,40,217,.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 110% -10%, rgba(236,72,153,.20) 0%, transparent 55%);
  pointer-events: none;
}

.ehs-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  position: relative;
  z-index: 1;
}
.ehs-eyebrow span {
  opacity: .6;
}
.ehs-eyebrow .sep { margin: 0 .4em; opacity: .35; }

.ehs-title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

.ehs-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin: 0;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.ehs-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ehs-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3em .8em;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.18);
}

/* ── Right: visual panel ── */
.ehs-visual {
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.ehs-vis-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .75rem .5rem;
  background: var(--bg-white);
  transition: background .18s;
  cursor: default;
}
.ehs-vis-cell:hover { background: var(--brand-soft); }
.ehs-vis-cell:nth-child(1) { background: #EDE9FE; }
.ehs-vis-cell:nth-child(5) { background: #FDF4FF; }
.ehs-vis-cell:nth-child(9) { background: #E0F2FE; }
.ehs-vis-emoji {
  font-size: 1.65rem;
  line-height: 1;
}
.ehs-vis-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-align: center;
}

/* ── Legacy fallback（舊 muji 用到時不壞） ── */
.entry-hero-muji {
  padding: var(--sp-7) 0 var(--sp-6);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.entry-hero-title {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--text);
}
.entry-hero-desc {
  margin: 0;
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .entry-hero-split { grid-template-columns: 1fr; min-height: auto; }
  .ehs-visual { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ehs-copy { padding: 2rem 1.5rem; }
  .ehs-visual { display: none; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-card    { grid-template-columns: 1fr; }
  .hero-image   { min-height: 180px; max-height: 220px; }
  .space-grid   { grid-template-columns: 1fr; }
  .specialist-grid { grid-template-columns: repeat(2,1fr); }
  .two-col      { grid-template-columns: 1fr; }
  .device-grid  { grid-template-columns: repeat(2,1fr); }
  .prod-card-full,
  .prod-card-full.as-product-card { grid-template-columns: 100px 1fr; }
  .as-product-side {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: var(--sp-4);
  }
  .prod-card-img-wrap { width: 100px; height: 100px; }
  .product-card { grid-template-columns: 1fr; gap: var(--sp-6); }
  .space-hero   { grid-template-columns: 1fr; padding: var(--sp-6); }
  .space-hero img { display: none; }
  .hero-copy    { padding: var(--sp-7) var(--sp-6); }
  .result-level-hero { flex-direction: column; gap: var(--sp-4); }
  .recommend-summary { align-items: flex-start; padding: var(--sp-5); }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .store-shell { width: calc(100% - 32px); }
  .device-grid { grid-template-columns: 1fr; }
  .specialist-grid { grid-template-columns: 1fr; }
  .recommend-summary { flex-direction: column; }
  .result-toolbar .right,
  .result-toolbar select { width: 100%; }
  .hero-copy { padding: var(--sp-6) var(--sp-5); }
  .hero-copy h1 { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   PLP — Product Listing Page（篩選 + 商品格）
   ═══════════════════════════════════════════════════════ */

/* PLP Hero */
.plp-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-5);
  padding: var(--sp-6) 0 var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.plp-hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.2;
}
.plp-hero-desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.6;
  max-width: 520px;
}
.plp-hero-meta {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.plp-meta-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 18px;
  min-width: 72px;
}
.plp-meta-pill.plp-meta-green { background: rgba(114,140,105,.1); border-color: rgba(114,140,105,.25); }
.plp-meta-pill.plp-meta-blue  { background: rgba(174,185,193,.15); border-color: rgba(174,185,193,.3); }
.plp-meta-num  { font-size: 1.4rem; font-weight: 900; color: var(--text); line-height: 1; }
.plp-meta-lbl  { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* PLP Layout */
.plp-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: var(--sp-5);
  align-items: start;
  margin-top: var(--sp-5);
}

/* ── Sidebar ── */
.plp-sidebar {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.filter-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: .04em;
}
.filter-clear-btn {
  font-size: .72rem;
  color: var(--text-soft);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color .15s;
}
.filter-clear-btn:hover { color: var(--brand-dark); }

.filter-group {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.filter-group-label {
  font-size: .7rem;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  font-size: .83rem;
  color: var(--text);
  line-height: 1.4;
}
.filter-radio input,
.filter-check input {
  accent-color: var(--brand-dark);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── PLP Main ── */
.plp-main { min-width: 0; }

.plp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.plp-count {
  font-size: .83rem;
  color: var(--text-muted);
}
.plp-sort-select {
  font: inherit;
  font-size: .83rem;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

/* ── PLP Grid ── */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* ── PLP Card ── */
.plp-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.plp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plp-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.plp-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.plp-card:hover .plp-card-img-el { transform: scale(1.04); }
.plp-card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 4.5rem;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.14));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.plp-card:hover .plp-card-emoji { transform: scale(1.12) rotate(-4deg); }
.plp-card-img-wrap::before {
  content: '';
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.plp-discount-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #C62828;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
}

.plp-card-overlay-btns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.plp-card:hover .plp-card-overlay-btns { opacity: 1; transform: translateX(0); }

/* 點擊提示 */
.plp-card-view-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(92,81,71,.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  transform: translateY(100%);
  transition: transform .2s;
  letter-spacing: .04em;
}
.plp-card:hover .plp-card-view-hint { transform: translateY(0); }

.plp-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: background .15s, color .15s;
}
.plp-fav-btn:hover { background: #fff; }
.plp-fav-btn.active { color: #C62828; }

.plp-card-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.plp-card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.plp-card-name {
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp-card-sub {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp-card-rating {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.plp-stars { color: #d4a017; }
.plp-card-count { color: var(--text-soft); }

.plp-card-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 2px;
}
.plp-price-sale {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.plp-price-orig {
  font-size: .75rem;
  color: var(--text-soft);
  text-decoration: line-through;
}
.plp-price-subsidy {
  font-size: .72rem;
  color: var(--success);
  font-weight: 600;
  margin: 0 0 8px;
}
.plp-cart-btn {
  width: 100%;
  padding: 9px;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  padding-top: 9px;
  transition: opacity .15s;
  letter-spacing: .02em;
}
.plp-cart-btn:hover { opacity: .86; }
.plp-cart-btn.active { background: var(--success); }

/* ═══════════════════════════════════════════════════════
   Product Modal (商品彈出視窗)
   ═══════════════════════════════════════════════════════ */
.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.prod-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.prod-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,16,12,.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.prod-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: var(--r-xl);
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 28px 80px rgba(20,16,12,.22);
  transform: scale(.94) translateY(12px);
  transition: transform .28s;
}
.prod-modal.is-open .prod-modal-panel {
  transform: scale(1) translateY(0);
}
.prod-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: none;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.prod-modal-close:hover { background: var(--line-strong); color: var(--text); }

.prod-modal-left {
  background: var(--bg-soft);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.prod-modal-imgwrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-modal-img-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 24px;
}
.prod-modal-emoji { font-size: 6rem; line-height: 1; }

.prod-modal-right {
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow-y: auto;
}
.prod-modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prod-modal-name {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}
.prod-modal-subtitle {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}
.prod-modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
}
.rating-stars { color: #d4a017; letter-spacing: 1px; }
.rating-score { font-weight: 700; color: var(--text); }
.rating-count { color: var(--text-soft); }
.prod-modal-features {
  margin: 0;
  padding-left: 20px;
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.prod-modal-price-block {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prod-modal-sale {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1;
}
.prod-modal-orig {
  font-size: .82rem;
  color: var(--text-soft);
  text-decoration: line-through;
}
.prod-modal-subsidy { font-size: .83rem; color: var(--success); font-weight: 600; }
.prod-modal-rent    { font-size: .8rem; color: var(--blue-gray); }
.prod-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--sp-2);
}
.prod-modal-cart {
  flex: 1;
  padding: 13px 20px;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  letter-spacing: .02em;
}
.prod-modal-cart:hover { opacity: .86; }
.prod-modal-cart-add {
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}
.prod-modal-cart-add:hover { background: var(--bg-soft); opacity: 1; }
.prod-modal-fav {
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .15s, border-color .15s;
}
.prod-modal-fav:hover { color: var(--text); }
.prod-modal-fav.active { color: #c62828; border-color: #c62828; }

/* ── Responsive PLP ── */
@media (max-width: 960px) {
  .plp-layout { grid-template-columns: 1fr; }
  .plp-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); }
  .filter-header { grid-column: 1 / -1; }
  .plp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .plp-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-modal-panel { grid-template-columns: 1fr; max-height: 95vh; }
  .prod-modal-left { min-height: 200px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .plp-hero { flex-direction: column; align-items: flex-start; }
  .plp-hero-meta { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .plp-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .plp-sidebar { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   DRAW DOWN 風格 — 極簡選品商城
   結構：左 Cart ＋ 右 Product Grid
   ═══════════════════════════════════════════════════════ */

/* ── Store body 2-col layout ── */
.store-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0;
  padding-top: var(--sp-6);
  align-items: start;
}

/* ── Cart Sidebar ── */
.cart-sidebar {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: 300px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.cart-section-label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111827;
}

.cart-lines {
  min-height: 80px;
}

.cart-empty-msg {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  padding: var(--sp-4) 0;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-mode {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-top: 2px;
  display: block;
}

.cart-line-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-line-price {
  font-size: 15px;
  color: #111827;
  font-weight: 700;
}

.cart-remove-btn {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color .15s;
}
.cart-remove-btn:hover { color: var(--text); }

.cart-footer-line {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}

.cart-total-label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: .04em;
}

.cart-total-amt {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: var(--sp-4);
  padding: 15px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .15s;
}
.cart-checkout-btn:hover { opacity: .82; }

.cart-apply-note {
  margin: var(--sp-3) 0 0;
  font-size: .72rem;
  color: var(--text-soft);
  line-height: 1.5;
  text-align: center;
}

/* ── Product Canvas ── */
.product-canvas {
  padding-left: var(--sp-6);
}

/* ── Minimal category filter bar ── */
.cc-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.cc-filter-label {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-right: var(--sp-2);
}

.cc-filter-chip {
  font-size: 15px;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  letter-spacing: .02em;
}
.cc-filter-chip:hover { color: var(--text); }
.cc-filter-chip.active {
  color: var(--text);
  border-bottom-color: var(--text);
  font-weight: 700;
}

/* ── Product count line ── */
.cc-product-count {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: var(--sp-5);
  letter-spacing: .04em;
}

/* ── Product Grid ── */
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* ════════════════════════════════════════════════════
   PRODUCT CARD  .p-card  (杏一風格)
════════════════════════════════════════════════════ */
.p-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.p-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

/* image area — clean white bg, 1:1 */
.p-card-img {
  aspect-ratio: 1 / 1;
  background: #F7F9FB;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.p-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform .25s;
}
.p-card:hover .p-card-img-el { transform: scale(1.04); }
.p-card-emoji {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.1));
  transition: transform .25s;
}
.p-card:hover .p-card-emoji { transform: scale(1.08); }
.p-badge-smart {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* info area */
.p-card-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* 補助項目 row */
.p-subsidy-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-subsidy-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: #1D4ED8;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
.p-subsidy-val {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* product name + model */
.p-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.p-card-model {
  font-size: .75rem;
  color: var(--text-soft);
  margin: 0;
  font-weight: 500;
}

/* price block */
.p-card-price-block {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.p-sale-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.p-sale-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.p-sale-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #DC2626;
  letter-spacing: -.02em;
  line-height: 1;
}
.p-subsidy-compare {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.p-subsidy-compare strong { color: #1D4ED8; font-weight: 700; }
.p-after-sub {
  display: inline-block;
  margin-left: 6px;
  color: #059669;
  font-weight: 600;
}

/* action buttons */
.p-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.p-btn-cart,
.p-btn-apply,
.p-btn-rent {
  flex: 1;
  min-width: 0;
  height: 34px;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  white-space: nowrap;
  border: none;
}
.p-btn-cart {
  background: var(--text);
  color: #fff;
}
.p-btn-cart:hover { background: #333; }
.p-btn-cart.p-btn-added { background: var(--success); }
.p-btn-apply {
  background: var(--brand-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.p-btn-apply:hover { background: var(--accent); color: #fff; }
.p-btn-rent {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #93C5FD;
  flex: 0 0 auto;
  padding: 0 14px;
}
.p-btn-rent:hover { background: #1D4ED8; color: #fff; }

/* ── PLP hero for result page (minimal) ── */
.plp-page-header {
  padding: var(--sp-5) 0 var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.plp-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -.01em;
}

.plp-page-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Home — entry card grid (minimal) ── */
.cc-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5) var(--sp-4);
  margin-top: var(--sp-5);
}

.cc-entry-card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.cc-entry-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  transition: opacity .2s;
}
.cc-entry-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cc-entry-img .cc-entry-emoji { font-size: 2.5rem; }
.cc-entry-card:hover .cc-entry-img { opacity: .85; }

.cc-entry-type {
  font-size: 10px;
  color: var(--text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 3px;
}
.cc-entry-name {
  font-size: .88rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.cc-entry-count {
  font-size: .75rem;
  color: var(--text-soft);
  margin: 2px 0 0;
}

/* ── Home hero — ultra minimal ── */
.cc-hero {
  padding: var(--sp-9) 0 var(--sp-7);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-6);
}

.cc-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 var(--sp-3);
}

.cc-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 var(--sp-5);
}

.cc-hero-title em {
  font-style: normal;
  color: var(--accent);
}

.cc-hero-modes {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.cc-mode-tag {
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  letter-spacing: .04em;
}

.cc-hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 460px;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 10px;
}

.cc-search-input {
  flex: 1;
  border: none;
  background: none;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  padding: 0;
}
.cc-search-input::placeholder { color: var(--text-soft); }

.cc-search-btn {
  font-size: .8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .04em;
  transition: color .15s;
}
.cc-search-btn:hover { color: var(--text); }

/* ── Section label ── */
.cc-section-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: var(--sp-7) 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  display: block;
}

/* ── Monoir-style product card extras ── */
.p-card-img-el {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.p-disc-badge {
  position: absolute; bottom: 8px; left: 8px;
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: .04em;
}
.p-sub-badge {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.9);
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: .03em;
}
.p-card-rating {
  font-size: .75rem; margin: 4px 0 6px;
}
.p-card-rcount { color: var(--text-soft); }
.p-card-prices { display: flex; flex-direction: column; gap: 3px; }
.p-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .75rem;
}
.p-price-label { color: var(--text-soft); }
.p-price-val { font-weight: 600; color: var(--text-mid); }
.p-price-val small { font-weight: 400; color: var(--text-soft); font-size: .7rem; }
.p-price-sub .p-price-val { font-weight: 700; }

/* cc-sort-select */
.cc-sort-select {
  margin-left: auto;
  font: inherit; font-size: 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
}

/* cart-badge */
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px;
  background: #7C3AED; color: #fff;
  border-radius: 999px; font-size: 10px;
  font-weight: 700; padding: 0 4px;
  margin-left: 6px; vertical-align: middle;
  opacity: 0; transition: opacity .2s;
}
.cart-badge:not(:empty) { opacity: 1; }

/* ── Monoir Tile Cards (Home) ── */
.cc-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.cc-tile-grid--wide { grid-template-columns: repeat(3, 1fr); }

.cc-tile {
  border-radius: 20px;
  background: var(--tile-bg, #EDE9FE);
  color: var(--tile-text, #fff);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cc-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }

.cc-tile-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.08);
}
.cc-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-tile-emoji { font-size: 6rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.15)); }

.cc-tile-body { padding: var(--sp-4); flex: 1; }
.cc-tile-type {
  font-size: 20px; letter-spacing: .1em; text-transform: uppercase;
  opacity: .75; display: block; margin-bottom: 4px;
}
.cc-tile-name { font-size: 2rem; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.cc-tile-desc { font-size: 1.56rem; opacity: .8; margin: 0; line-height: 1.4; }

.cc-tile-arrow {
  position: absolute; top: 14px; right: 16px;
  font-size: 1.1rem; opacity: .7;
}

/* ── Hero ── */
.cc-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-6);
}
.cc-hero-eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 var(--sp-3);
}
.cc-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  color: var(--text); margin: 0 0 var(--sp-4);
}
.cc-hero-title em { font-style: normal; color: var(--accent); }
.cc-hero-modes { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.cc-mode-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.cc-mode-buy  { background: #EDE9FE; color: #6D28D9; }
.cc-mode-rent { background: #FCE7F3; color: #BE185D; }
.cc-mode-sub  { background: #D1FAE5; color: #065F46; }

.cc-hero-search {
  display: flex; align-items: center; gap: 0;
  max-width: 440px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-white);
  padding: 4px 4px 4px 16px;
}
.cc-search-input {
  flex: 1; border: none; background: none;
  font: inherit; font-size: .88rem; color: var(--text); outline: none;
}
.cc-search-input::placeholder { color: var(--text-soft); }
.cc-search-btn {
  padding: 8px 18px; background: var(--accent); color: #fff;
  border: none; border-radius: 999px; font-size: .82rem;
  font-weight: 700; cursor: pointer; transition: opacity .15s;
  letter-spacing: .03em;
}
.cc-search-btn:hover { opacity: .88; }

/* Hero stats */
.cc-hero-right { display: flex; flex-direction: column; gap: var(--sp-3); }
.cc-hero-stat {
  border-radius: 16px; padding: var(--sp-4) var(--sp-5);
  display: flex; flex-direction: column; align-items: center;
  min-width: 100px;
}
.cc-stat-purple { background: #EDE9FE; }
.cc-stat-pink   { background: #FCE7F3; }
.cc-stat-blue   { background: #DBEAFE; }
.cc-stat-num {
  font-size: 1.4rem; font-weight: 900; line-height: 1;
  color: var(--text);
}
.cc-stat-lbl { font-size: .7rem; color: var(--text-muted); margin-top: 3px; }

/* Section heading */
.cc-section-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.cc-section-hd h2 { font-size: 1.1rem; font-weight: 800; margin: 0; color: var(--text); }
.cc-section-hd p { font-size: .78rem; color: var(--text-soft); margin: 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .cc-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .cc-hero { grid-template-columns: 1fr; }
  .cc-hero-right { flex-direction: row; }
}
@media (max-width: 900px) {
  .store-body { grid-template-columns: 180px 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cc-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .store-body { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 var(--sp-4); margin-bottom: var(--sp-4); }
  .product-canvas { padding-left: 0; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-3); }
}
@media (max-width: 420px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-2); }
  .cc-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════
   AD CAROUSEL  .ad-carousel-wrap  ── 全版大圖單張輪播
════════════════════════════════════════════════════ */
.ad-carousel-wrap {
  position: relative;
  /* 突破容器寬度，貼齊頁面左右 */
  width: calc(100% + var(--sp-6, 0px) * 2);
  margin-left: calc(-1 * var(--sp-6, 0px));
  margin-bottom: var(--sp-7);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #0f172a;
}

.ad-track {
  display: flex;
  transition: transform .9s ease-in-out;
}

/* 全版單張卡 */
.ad-card {
  flex-shrink: 0;
  width: 100%;          /* JS 會設為 wrap.offsetWidth */
  min-height: 320px;
  background-color: var(--ad-bg, #4F46E5);
  background-image: var(--ad-img, none), linear-gradient(135deg, var(--ad-bg, #4F46E5) 0%, var(--ad-bg2, var(--ad-bg, #4F46E5)) 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: multiply, normal;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
/* 整張卡片的暗化遮罩，讓文字更易讀 */
.ad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.04) 100%);
  z-index: 1;
}

/* 左側文字區 */
.ad-body {
  padding: 48px 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  position: relative;
}

/* 右側視覺區 */
.ad-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.ad-visual-bg {
  display: none; /* 已由 card::before 處理 */
}
.ad-visual-orb {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(2px);
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 48px rgba(0,0,0,.2);
}
.ad-visual-orb2 {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  position: absolute;
  right: -30px; bottom: -30px;
}
.ad-visual-emoji {
  font-size: 8rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.4));
  animation: adEmojiFloat 3s ease-in-out infinite;
}
@keyframes adEmojiFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.ad-tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ad-accent, #FDE68A);
  text-transform: uppercase;
  opacity: .9;
}
.ad-logo {
  font-size: .95rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
}
.ad-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.ad-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  margin: 0;
  line-height: 1.6;
}
.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 22px;
  background: var(--ad-accent, #FDE68A);
  color: #1e293b;
  font-size: .9rem;
  font-weight: 800;
  border-radius: 99px;
  letter-spacing: .03em;
  width: fit-content;
  transition: opacity .15s, transform .1s;
}
.ad-cta:hover { opacity: .88; transform: translateY(-1px); }

/* 左右箭頭 — 浮在圖片上 */
.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
  z-index: 20;
}
.ad-nav:hover { background: rgba(255,255,255,.32); transform: translateY(-50%) scale(1.08); }
.ad-prev { left: 20px; }
.ad-next { right: 20px; }

/* 底部數字頁碼 */
.ad-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 20;
}
.ad-dot {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ad-dot:hover  { background: rgba(255,255,255,.45); color: #fff; }
.ad-dot.active { background: #fff; color: #1e293b; font-weight: 900; }

@media (max-width: 768px) {
  .ad-card { grid-template-columns: 1fr; min-height: 220px; }
  .ad-visual { display: none; }
  .ad-body { padding: 36px 28px; }
  .ad-title { font-size: 1.6rem; }
}

/* ════════════════════════════════════════════════════
   SUBSIDY HERO  .sh-hero  — sky透明
════════════════════════════════════════════════════ */
.sh-hero {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.45);
  padding: 48px 52px;
  margin-bottom: var(--sp-7);
  position: relative;
  overflow: hidden;
  color: #111827;
}

/* sh-mesh / sh-orb: hidden (sky-bg layer handles background) */
.sh-mesh { display: none; }

.sh-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sh-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.80);
  border-radius: 999px;
  padding: 4px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 18px;
  color: #1E3A5F;
  backdrop-filter: blur(8px);
}
.sh-hero-title {
  font-size: var(--h-page, clamp(2.2rem, 4.5vw, 3.6rem));
  font-weight: 900;
  line-height: var(--h-lh, 1.08);
  letter-spacing: var(--h-tracking, -.03em);
  margin: 0 0 18px;
  color: var(--split-dark, #111827);
}
.sh-hero-title .sh-g {
  color: #a855f7;
  font-weight: 700;
}
.sh-hero-title em,
.sh-hero-title .sh-d {
  font-style: normal;
  color: var(--split-dark, #111827);
  font-weight: 900;
}
.sh-hero-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #1F2937;
  margin: 0 0 28px;
  letter-spacing: .02em;
}
.sh-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sh-btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99,102,241,.40);
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.sh-btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.50); }
.sh-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.90);
  color: #1E1B4B;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}
.sh-btn-ghost:hover { background: rgba(255,255,255,.95); border-color: rgba(99,102,241,.35); }
.sh-hero-hotline {
  font-size: .85rem;
  color: #374151;
  margin: 0;
}
.sh-hero-hotline strong { color: #111827; }

/* hero right: 家庭共讀水彩插畫 (取代原 4 卡 icon grid) */
.sh-hero-img-wrap { flex-shrink: 0; }
.sh-hero-illust {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════════════
   SUBSIDY TIERS  .sh-tiers
════════════════════════════════════════════════════ */
.sh-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 var(--sp-4);
  letter-spacing: -.01em;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.sh-tiers { margin-bottom: var(--sp-7); }
.sh-tiers-block { margin-bottom: var(--sp-6); }
.sh-tiers-block:last-child { margin-bottom: 0; }

/* ── 長照 3.0 比例條 ── */
.sh-ltc-bar-wrap { margin: 12px 0 8px; }
.sh-ltc-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.sh-ltc-gov {
  background: #1D4ED8;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-left: 10px;
  white-space: nowrap;
  transition: width .6s ease;
  border-radius: 999px 0 0 999px;
}
.sh-ltc-full { border-radius: 999px; }
.sh-ltc-self {
  background: #E5E7EB;
  flex: 1;
  border-radius: 0 999px 999px 0;
}
.sh-ltc-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
}
.sh-ltc-lbl-gov strong { color: #1D4ED8; }
.sh-ltc-lbl-self strong { color: var(--text-mid); }

/* tier colours for LTC cards */
.sh-tier-low .sh-ltc-gov { background: #15803D; }
.sh-tier-low .sh-ltc-lbl-gov strong { color: #15803D; }
.sh-tier-mid .sh-ltc-gov { background: #0369A1; }
.sh-tier-mid .sh-ltc-lbl-gov strong { color: #0369A1; }

.sh-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.sh-tier-card {
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  transition: box-shadow .15s, transform .15s;
  overflow: visible;
  min-width: 0;
}
.sh-tier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sh-tier-low { background: #EFF6FF; border-color: #93C5FD; }
.sh-tier-mid { background: #F0FDF4; border-color: #86EFAC; }
.sh-tier-gen { background: #FFF7ED; border-color: #FED7AA; }
.sh-tier-header {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.4;
  margin-bottom: 10px;
}
.sh-tier-body { font-size: .82rem; color: var(--text-mid); line-height: 1.5; }
.sh-tier-body strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: visible;
}
.sh-tier-low .sh-tier-body strong { color: #1D4ED8; }
.sh-tier-mid .sh-tier-body strong { color: #15803D; }
.sh-tier-gen .sh-tier-body strong { color: #C2410C; }

/* ════════════════════════════════════════════════════
   APPLICATION FLOW  .sh-flow
════════════════════════════════════════════════════ */
.sh-flow {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-radius: var(--r-xl);
  padding: 32px 40px;
  margin-bottom: var(--sp-7);
}
.sh-flow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.sh-flow-step {
  flex: 1;
  min-width: 90px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 10px 14px;
  text-align: center;
  position: relative;
}
.sh-flow-num {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(109,40,217,.35);
}
.sh-flow-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
  line-height: 1;
}
.sh-flow-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.35;
  margin-bottom: 4px;
}
.sh-flow-sub { font-size: .7rem; color: var(--text-muted); }
.sh-flow-arrow {
  color: var(--accent);
  font-size: .9rem;
  flex-shrink: 0;
  opacity: .6;
}
.sh-flow-note {
  margin: 20px 0 0;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}
.sh-flow-note strong { color: var(--accent); }

/* ── Flow head row ── */
.sh-flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-5);
}
.sh-flow-head .sh-section-title { margin: 0; padding: 0; border: none; }
.sh-flow-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #065F46;
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.sh-flow-online-badge::before { content: '●'; font-size: 8px; }

/* ── Interactive step variants ── */
.sh-flow-step { cursor: default; }
.sh-step-cta {
  cursor: pointer;
  border: 2px solid var(--accent) !important;
  background: var(--brand-soft) !important;
  transition: background .15s, box-shadow .15s, transform .15s !important;
  position: relative;
}
.sh-step-cta:hover { box-shadow: 0 4px 16px rgba(109,40,217,.2); transform: translateY(-2px); }
.sh-step-cta.active {
  background: var(--accent) !important;
  color: #fff;
}
.sh-step-cta.active .sh-flow-label,
.sh-step-cta.active .sh-flow-sub { color: rgba(255,255,255,.9); }
.sh-step-cta.active .sh-flow-num { background: rgba(255,255,255,.25); color: #fff; box-shadow: none; }

.sh-flow-cta-hint {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 5px;
}
.sh-step-cta.active .sh-flow-cta-hint { color: rgba(255,255,255,.8); }

.sh-step-info { cursor: default; opacity: .85; }

/* ── Expandable panels ── */
.sh-flow-panel {
  display: none;
  margin-top: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-white);
  overflow: hidden;
  animation: panelSlide .2s ease;
}
.sh-flow-panel.open { display: block; }
@keyframes panelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sh-panel-inner {
  padding: 28px 32px;
}
.sh-panel-hd h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.sh-panel-hd p {
  margin: 0 0 24px;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Apply form ── */
.sh-apply-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.sh-form-row { display: flex; gap: var(--sp-4); }
.sh-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.sh-form-full { display: flex; flex-direction: column; }
.sh-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.sh-form-field span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: .02em;
}
.sh-form-field span em {
  font-style: normal;
  color: var(--error);
  margin-left: 2px;
}
.sh-form-field input,
.sh-form-field select,
.sh-form-field textarea {
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.sh-form-field input:focus,
.sh-form-field select:focus,
.sh-form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
  background: var(--bg-white);
}
.sh-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: var(--sp-2);
}
.sh-form-submit {
  height: 46px;
  padding: 0 32px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
  letter-spacing: .02em;
}
.sh-form-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.sh-form-note { font-size: .78rem; color: var(--text-soft); }
.sh-form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #D1FAE5 0%, #ECFDF5 100%);
  border-radius: var(--r-lg);
  border: 1.5px solid #6EE7B7;
  font-size: .9rem;
  font-weight: 600;
  color: #065F46;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.sh-form-success.sh-success-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sh-success-icon {
  font-size: 2rem;
  line-height: 1;
  animation: successIconPop .5s cubic-bezier(.34,1.56,.64,1) .15s both;
}
@keyframes successIconPop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}
.sh-form-success .sh-success-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .2rem;
}
.sh-form-success .sh-success-text span {
  font-size: .82rem;
  font-weight: 400;
  color: #047857;
}

/* ── Shop panel ── */
.sh-panel-shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.sh-panel-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text-mid);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.sh-panel-shop-btn:hover { background: var(--brand-soft); border-color: var(--accent); color: var(--accent); }
.sh-panel-shop-ai { background: var(--brand-soft); border-color: var(--accent); color: var(--accent); }
.sh-panel-shop-ai:hover { background: var(--accent); color: #fff; }

/* ── FA code variant ── */
.sh-cat-code-fa { background: #FEF3C7 !important; color: #B45309 !important; }

/* ════════════════════════════════════════════════════
   SUBSIDY CATEGORY BROWSE  .sh-cats
════════════════════════════════════════════════════ */
.sh-cats { margin-bottom: var(--sp-7); }
.sh-cats-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.sh-cats-header p {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
  white-space: nowrap;
}
.sh-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
.sh-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 14px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sh-cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sh-cat-code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--brand-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.sh-cat-icon { font-size: 3.6rem; margin: 4px 0 8px; line-height: 1; }
.sh-cat-name {
  font-size: 1.64rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.sh-cat-hint {
  font-size: 1.44rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.sh-cat-fa {
  background: #FEFCE8;
  border-color: #FDE68A;
}
.sh-cat-fa .sh-cat-code { background: #FEF3C7; color: #B45309; }
.sh-cat-consult {
  background: linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 100%);
  border-color: #C4B5FD;
}
.sh-cat-consult .sh-cat-name { color: var(--accent); }
.sh-cat-consult .sh-cat-hint { color: var(--accent-hover); }

/* ════════════════════════════════════════════════════
   RESIDENTIAL FA ZONE  .sh-fa-zone
════════════════════════════════════════════════════ */
.sh-fa-zone {
  background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 100%);
  border-radius: var(--r-xl);
  padding: 44px 52px;
  margin-bottom: var(--sp-7);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.sh-fa-zone::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.sh-fa-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sh-fa-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 10px;
}
.sh-fa-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: #fff;
}
.sh-fa-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 52ch;
}
.sh-fa-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.sh-fa-item {
  font-size: .78rem;
  font-weight: 600;
  color: #DBEAFE;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.sh-fa-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sh-fa-btn-primary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 28px;
  border-radius: var(--r-md);
  background: #fff;
  color: #1D4ED8;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: opacity .15s, transform .15s;
}
.sh-fa-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.sh-fa-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.sh-fa-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* FA icon cards */
.sh-fa-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 220px;
  flex-shrink: 0;
}
.sh-fa-icon-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 18px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.sh-fa-icon-tall { grid-row: span 1; }
.sh-fa-icon-card span { font-size: 2rem; line-height: 1; }
.sh-fa-icon-card small {
  font-size: 11px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Responsive (new homepage sections) ── */
@media (max-width: 1000px) {
  .sh-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .sh-hero-inner { grid-template-columns: 1fr; }
  .sh-hero-img-wrap { display: none; }
  .sh-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-fa-inner { grid-template-columns: 1fr; }
  .sh-fa-icons { display: none; }
  .sh-fa-zone { padding: 36px 32px; }
}
@media (max-width: 640px) {
  .sh-hero { padding: 32px 24px; }
  .sh-tier-grid { grid-template-columns: 1fr; }
  .sh-flow { padding: 24px 20px; }
  .sh-flow-steps { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .sh-flow-step { min-width: 80px; flex: 0 0 auto; }
  .sh-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   結帳抽屜 (Checkout Drawer)
══════════════════════════════════════════════════════ */
.co-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  justify-content: flex-end;
}
.co-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .34s;
}
.co-drawer {
  position: relative;
  width: min(520px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.co-overlay.is-open .co-backdrop { opacity: 1; }
.co-overlay.is-open .co-drawer   { transform: translateX(0); }

/* Header */
.co-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #E5E7EB;
  background: #FAFAFA;
  flex-shrink: 0;
}
.co-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #F3F4F6;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.co-close:hover { background: #E5E7EB; }

/* Step indicator */
.co-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: #9CA3AF;
  flex-wrap: wrap;
}
.co-step { font-weight: 500; transition: color .2s; }
.co-step.active { color: #6D28D9; font-weight: 700; }
.co-step.done   { color: #059669; }
.co-step-sep    { font-size: .7rem; }

/* Body */
.co-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.co-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
.co-sub-title {
  font-size: .9rem;
  font-weight: 700;
  color: #374151;
  margin: 4px 0 0;
}

/* Item list */
.co-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #F9FAFB;
  border-radius: 10px;
  border: 1px solid #F3F4F6;
}
.co-item-name {
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px;
}
.co-item-meta {
  font-size: .78rem;
  color: #6B7280;
  margin: 0;
}
.co-item-right { text-align: right; flex-shrink: 0; }
.co-item-price {
  font-size: .92rem;
  font-weight: 700;
  color: #6D28D9;
  margin: 0 0 5px;
}
.co-item-del {
  font-size: .72rem;
  color: #EF4444;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Summary */
.co-summary {
  background: #F3F0FF;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: #374151;
}
.co-free { color: #059669; font-weight: 700; }
.co-total-row {
  border-top: 1px solid #DDD6FE;
  padding-top: 8px;
  margin-top: 2px;
  font-size: .95rem;
}
.co-grand { color: #6D28D9; font-size: 1.05rem; font-weight: 900; }

/* Info box */
.co-info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .8rem;
  color: #92400E;
  line-height: 1.5;
}
.co-info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Form fields */
.co-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.co-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}
.co-req { color: #EF4444; }
.co-input {
  padding: 10px 13px;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font: inherit;
  font-size: .88rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  background: #fff;
}
.co-input:focus { border-color: #6D28D9; box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.co-textarea { resize: vertical; min-height: 72px; }
.co-field-err {
  font-size: .76rem;
  color: #EF4444;
  display: none;
  margin: 0;
}
.co-field-err.show { display: block; }

/* Payment options */
.co-payment-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.co-pay-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1.5px solid #E5E7EB;
  border-radius: 9px;
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.co-pay-opt:has(input:checked) {
  border-color: #6D28D9;
  background: #F3F0FF;
  color: #5B21B6;
}
.co-pay-opt input { accent-color: #6D28D9; }

/* Success screen */
.co-success-hero {
  text-align: center;
  padding: 24px 0 8px;
}
.co-success-icon { font-size: 4rem; margin-bottom: 10px; }
.co-success-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 6px;
}
.co-success-sub {
  font-size: .85rem;
  color: #6B7280;
  margin: 0;
}
.co-confirm-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .83rem;
  gap: 12px;
}
.co-confirm-row span:first-child { color: #6B7280; flex-shrink: 0; }
.co-confirm-row strong { color: #111827; }
.co-order-no { color: #6D28D9; font-family: monospace; letter-spacing: .06em; }
.co-next-steps { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 14px 16px; }
.co-next-title { font-size: .82rem; font-weight: 700; color: #065F46; margin: 0 0 10px; }
.co-next-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  color: #064E3B;
  line-height: 1.55;
}

/* Footer */
.co-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  background: #FAFAFA;
  flex-shrink: 0;
}
.co-btn-primary {
  flex: 1;
  padding: 13px 18px;
  background: #6D28D9;
  color: #fff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.co-btn-primary:hover { opacity: .88; }
.co-btn-secondary {
  padding: 13px 16px;
  background: #F3F4F6;
  color: #374151;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.co-btn-secondary:hover { background: #E5E7EB; }

/* Toast */
.store-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2937;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
  white-space: nowrap;
}
.store-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   附表四 官方補助碼 — sc4 元件
══════════════════════════════════════════ */

/* 整體區塊 */
.sc4-section,
.sc4-fa-section {
  padding: 0 1rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* 手風琴容器 */
.sc4-accordion { display: flex; flex-direction: column; gap: .5rem; }

/* 分類按鈕 */
.sc4-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.sc4-cat-toggle:hover { background: #EFF6FF; border-color: #BFDBFE; }
.sc4-cat-icon  { font-size: 1.2rem; }
.sc4-cat-name  { flex: 1; font-size: .9rem; color: #1E293B; }
.sc4-cat-name strong { color: #2563EB; font-weight: 700; }
.sc4-cat-count { font-size: .78rem; color: #64748B; background: #E2E8F0; padding: .15rem .5rem; border-radius: 999px; }
.sc4-cat-chevron { font-size: .85rem; color: #94A3B8; }

/* 面板 — 預設收起 */
.sc4-cat-panel { display: none; padding: .75rem 0 .25rem; }
.sc4-cat-panel.open { display: block; }

/* 商品卡片格線 */
.sc4-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .85rem;
}
.sc4-fa-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ── 官方補助碼商品卡（仿 PLP p-card 架構） ── */
.sc4-prod-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, border-color .18s, transform .18s;
  cursor: default;
}
.sc4-prod-card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,.12);
  border-color: #93C5FD;
  transform: translateY(-2px);
}

/* 圖片區 */
.sc4-prod-img {
  position: relative;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc4-prod-emoji { font-size: 2.8rem; line-height: 1; }
.sc4-prod-img--photo { height: 160px; padding: 0; overflow: hidden; background: #f8fafc; }
.sc4-prod-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) { .sc4-prod-img--photo { height: 130px; } }
@media (max-width: 480px) { .sc4-prod-img--photo { height: 110px; } }
.sc4-prod-badge {
  position: absolute;
  top: .5rem; right: .5rem;
  font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
}
.sc4-prod-badge.rent { background: #EDE9FE; color: #7C3AED; }

/* 資訊區 */
.sc4-prod-info {
  padding: .7rem .8rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

/* 補助項目標籤列 */
.sc4-prod-label-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.sc4-prod-tag {
  font-size: .65rem; font-weight: 700;
  background: #DCFCE7; color: #15803D;
  padding: .1rem .4rem; border-radius: 999px;
}
.sc4-prod-code {
  font-size: .68rem; font-weight: 700;
  background: #EFF6FF; color: #2563EB;
  padding: .1rem .4rem; border-radius: 4px;
  letter-spacing: .03em;
}
.sc4-prod-sub-cat {
  font-size: .63rem; font-weight: 600;
  background: #F1F5F9; color: #64748B;
  padding: .1rem .4rem; border-radius: 4px;
}

/* 品項名稱 */
.sc4-prod-name {
  font-size: .84rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
  margin: 0;
}
.sc4-prod-note {
  font-size: .7rem; color: #F59E0B; margin: 0;
}
.sc4-prod-spec {
  font-size: .72rem;
  color: #475569;
  background: #F0FDFA;
  border-left: 3px solid #0D9488;
  border-radius: 0 .35rem .35rem 0;
  padding: .35rem .55rem;
  margin: .5rem 0 0;
  line-height: 1.55;
}

/* 給付上限（仿售價） */
.sc4-prod-price-block {
  margin-top: auto;
  padding-top: .4rem;
  border-top: 1px solid #F1F5F9;
}
.sc4-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
}
.sc4-prod-price-lbl {
  font-size: .68rem;
  color: #64748B;
  white-space: nowrap;
}
.sc4-prod-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
}
.sc4-prod-sub {
  font-size: .7rem;
  color: #94A3B8;
  margin-top: .15rem;
}

@media (max-width: 600px) {
  .sc4-card-grid  { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .sc4-fa-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .sc4-cat-name   { font-size: .82rem; }
  .sc4-prod-img   { height: 90px; }
  .sc4-prod-emoji { font-size: 2.2rem; }
  .sc4-prod-price { font-size: 1rem; }
}

/* FA zone 深色雙欄佈局：左側購物車 + 右側商品 */
.sh-fa-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  margin-top: 28px;
  align-items: start;
  border-top: 1.5px solid rgba(255,255,255,.15);
  padding-top: 20px;
}
/* 購物車欄 — 深色主題 */
.sh-fa-body .cart-sidebar {
  padding: var(--sp-4, 16px) var(--sp-5, 20px) var(--sp-5, 20px) 0;
  border-right: 1px solid rgba(255,255,255,.15);
  background: transparent;
  min-height: 200px;
}
.sh-fa-body .cart-section-label { color: rgba(255,255,255,.5); }
.sh-fa-body .cart-header { border-bottom-color: rgba(255,255,255,.12); }
.sh-fa-body .cart-empty-msg { color: rgba(255,255,255,.45); }
.sh-fa-body .cart-line-name  { color: #fff; }
.sh-fa-body .cart-line-mode  { color: rgba(255,255,255,.55); }
.sh-fa-body .cart-line-price { color: #93C5FD; }
.sh-fa-body .cart-remove-btn { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.sh-fa-body .cart-remove-btn:hover { background: rgba(239,68,68,.5); color: #fff; }
.sh-fa-body .cart-footer-line { border-top-color: rgba(255,255,255,.12); }
.sh-fa-body .cart-total-label { color: rgba(255,255,255,.6); }
.sh-fa-body .cart-total-amt   { color: #fff; }
.sh-fa-body .cart-checkout-btn {
  background: #fff; color: #1D4ED8;
  font-weight: 700; border-radius: 8px;
}
.sh-fa-body .cart-checkout-btn:hover { background: #DBEAFE; }
/* 商品欄 */
.sh-fa-body .product-canvas { padding-left: 24px; }

/* FA 補助碼卡片包覆層（舊版，僅備用） */
.sh-fa-codes-wrap {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1.5px solid rgba(255,255,255,.18);
}

/* ══════════════════════════════════════════
   居家無障礙施工廠商卡片 (fav)
══════════════════════════════════════════ */
.fa-vendors-wrap {
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1.5px solid rgba(255,255,255,.15);
}
.fa-vendors-hd { margin-bottom: 1rem; }
.fa-vendors-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 .25rem; }
.fa-vendors-sub   { font-size: .8rem; color: rgba(255,255,255,.6); margin: 0; }
.fa-vendor-loading { color: rgba(255,255,255,.5); font-size: .85rem; padding: .5rem 0; }


.fa-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .85rem;
}

/* 單張廠商卡 */
.fav-card {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 1rem 1.1rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.fav-card:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

.fav-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.fav-name-wrap { display: flex; flex-direction: column; gap: .15rem; }
.fav-county { font-size: .7rem; color: rgba(255,255,255,.55); }
.fav-name   { font-size: .9rem; font-weight: 700; color: #fff; }

.fav-badges { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.fav-badge {
  font-size: .65rem; font-weight: 600; padding: .1rem .4rem;
  border-radius: 999px; white-space: nowrap;
}
.fav-badge.ltc    { background: #DBEAFE; color: #1D4ED8; }
.fav-badge.remote { background: #FEF3C7; color: #92400E; }

.fav-contact { display: flex; flex-direction: column; gap: .2rem; }
.fav-phone {
  font-size: .85rem; font-weight: 600; color: #7DD3FC;
  text-decoration: none;
}
.fav-phone:hover { color: #BAE6FD; }
.fav-addr { font-size: .75rem; color: rgba(255,255,255,.5); line-height: 1.4; }

.fav-items { display: flex; flex-wrap: wrap; gap: .3rem; }
.fav-tag {
  font-size: .7rem; background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); padding: .1rem .4rem;
  border-radius: 4px;
}

.fav-footer { border-top: 1px solid rgba(255,255,255,.1); padding-top: .4rem; }
.fav-survey { font-size: .72rem; font-weight: 600; }
.fav-survey.free { color: #6EE7B7; }
.fav-survey.paid { color: #FCD34D; cursor: help; }

@media (max-width: 600px) {
  .fa-vendor-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   入口頁 — 官方補助碼區段
══════════════════════════════════════════ */
.entry-code-sections { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 1.5rem; }

.entry-code-sec { }

.entry-code-sec-hd {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #E2E8F0;
}
.entry-code-sec-icon  { font-size: 1.3rem; }
.entry-code-sec-title { font-size: 1rem; font-weight: 600; color: #1E293B; flex: 1; }
.entry-code-sec-title strong { color: #2563EB; }
.entry-code-sec-count {
  font-size: .75rem; font-weight: 600;
  background: #EFF6FF; color: #2563EB;
  padding: .15rem .55rem; border-radius: 999px;
}
/* FA 深色背景內覆寫 */
.sh-fa-body .entry-code-sec-hd { border-bottom-color: rgba(255,255,255,.15); }
.sh-fa-body .entry-code-sec-title { color: #fff; }
.sh-fa-body .entry-code-sec-title strong { color: #93C5FD; }
.sh-fa-body .entry-code-sec-count { background: rgba(147,197,253,.15); color: #93C5FD; }

/* ── sc4 商品卡：操作按鈕 ── */
.sc4-prod-actions {
  display: flex;
  gap: .45rem;
  margin-top: .5rem;
}
.sc4-btn-cart,
.sc4-btn-wl {
  flex: 1;
  padding: .45rem .3rem;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.sc4-btn-cart:active,
.sc4-btn-wl:active { transform: scale(.96); }

.sc4-btn-cart {
  background: #2563EB;
  color: #fff;
}
.sc4-btn-cart:hover { background: #1D4ED8; }

.sc4-btn-wl {
  background: #F1F5F9;
  color: #64748B;
  flex: 0 0 auto;
  padding: .45rem .55rem;
}
.sc4-btn-wl:hover  { background: #FCE7F3; color: #DB2777; }
.sc4-btn-wl.active { background: #FCE7F3; color: #DB2777; }

/* 圖片角落收藏心 */
.sc4-wl-btn {
  position: absolute;
  top: .5rem; left: .5rem;
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8;
  transition: color .15s, background .15s;
}
.sc4-wl-btn:hover,
.sc4-wl-btn.active { color: #DB2777; background: #fff; }

/* ── sc4 Modal 客製化 ── */
.sc4-modal-panel .prod-modal-left { justify-content: flex-start; gap: 1rem; }
.sc4-modal-imgwrap {
  background: linear-gradient(135deg,#EFF6FF 0%,#F0FDF4 100%);
  border-radius: 16px;
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.sc4-modal-img    { width: 100%; height: 100%; object-fit: contain; padding: 8%; display: block; }
.sc4-modal-emoji  { font-size: 4rem; line-height: 1; }
.sc4-modal-cat-info {
  display: flex; flex-direction: column; gap: .3rem;
  align-items: flex-start;
}

/* 讓卡片顯示 pointer cursor */
.sc4-prod-card { cursor: pointer; }

/* ── 身心障礙代償墊付申請流程 (daf) ── */
.sh-daf-wrap,.sh-dvd-wrap{background:#fff;border:1px solid #E2E8F0;border-radius:1.25rem;padding:1.75rem 2rem;margin:1.5rem 0;}
.sh-daf-wrap h2,.sh-dvd-wrap h2{font-size:1.1rem;font-weight:900;color:#1E293B;margin-bottom:.5rem;}
.sh-daf-lead,.sh-dvd-lead{font-size:.84rem;color:#64748B;margin-bottom:1rem;line-height:1.6;}
.daf-eligibility{background:linear-gradient(135deg,#EFF6FF,#F0FDF4);border:1.5px solid #BFDBFE;border-radius:1rem;padding:1.25rem 1.5rem;margin:1.25rem 0;}
.daf-elig-title{font-size:.85rem;font-weight:900;color:#1D4ED8;margin-bottom:.875rem;}
.daf-elig-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.875rem;}
.daf-elig-item{display:flex;gap:.75rem;align-items:flex-start;background:#fff;border-radius:.75rem;padding:.875rem 1rem;border:1px solid #E2E8F0;}
.daf-elig-icon{font-size:1.5rem;flex-shrink:0;line-height:1;margin-top:.1rem;}
.daf-elig-item strong{display:block;font-size:.88rem;color:#1E293B;margin-bottom:.25rem;}
.daf-elig-item p{margin:0;font-size:.78rem;color:#475569;line-height:1.55;}
.daf-step-title{font-size:.95rem;font-weight:900;color:#1E293B;margin:1.5rem 0 .75rem;}
.daf-flow{display:flex;flex-direction:column;gap:0;}
.daf-step{display:flex;gap:.875rem;align-items:flex-start;background:#F8FAFF;border:1px solid #DBEAFE;border-radius:.875rem;padding:1rem 1.25rem;}
.daf-step-num{width:32px;height:32px;background:#2563EB;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:900;flex-shrink:0;}
.daf-step-body{display:flex;flex-direction:column;gap:.2rem;}
.daf-step-body strong{font-size:.88rem;color:#1E293B;}
.daf-step-body span{font-size:.79rem;color:#475569;line-height:1.55;}
.daf-arrow{text-align:left;padding:.2rem 0 .2rem 1rem;color:#94A3B8;font-size:.95rem;}
.daf-tag{display:inline-block;background:#DBEAFE;color:#1D4ED8;border-radius:4px;padding:0 5px;font-size:.76rem;font-weight:700;margin:0 2px;}
.daf-docs-wrap{background:#FFFBEB;border:1.5px solid #FDE68A;border-radius:1rem;padding:1.25rem 1.5rem;margin-top:1.25rem;}
.daf-docs-title{font-size:.85rem;font-weight:900;color:#92400E;margin-bottom:.75rem;}
.daf-docs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.4rem;}
.daf-doc-item{font-size:.81rem;color:#1E293B;line-height:1.55;display:flex;gap:.4rem;align-items:flex-start;}
.daf-check{color:#16A34A;font-size:.88rem;flex-shrink:0;line-height:1.55;}
.daf-rate-wrap{background:#F0FDF4;border:1.5px solid #86EFAC;border-radius:1rem;padding:1.25rem 1.5rem;margin-top:1.25rem;}
.daf-rate-title{font-size:.85rem;font-weight:900;color:#15803D;margin-bottom:.75rem;}
.daf-rate-table-wrap{overflow-x:auto;}
.daf-rate-table{width:100%;border-collapse:collapse;font-size:.82rem;}
.daf-rate-table th{background:#16A34A;color:#fff;padding:.6rem .875rem;text-align:center;font-weight:700;}
.daf-rate-table td{padding:.55rem .875rem;text-align:center;border-bottom:1px solid #DCFCE7;color:#374151;}
.daf-rate-table tr:hover td{background:#DCFCE7;}
.daf-rate-highlight td{background:#F0FDF4;font-weight:700;color:#15803D;}
@media(max-width:640px){.daf-elig-grid,.daf-docs-grid{grid-template-columns:1fr;}}

/* ── 身障特約廠商查詢 (dvd) ── */
.dvd-legend{background:#F8FAFF;border:1px solid #DBEAFE;border-radius:.875rem;padding:1rem 1.25rem;margin:1rem 0 1.25rem;}
.dvd-legend-title{font-size:.82rem;font-weight:900;color:#1D4ED8;margin-bottom:.6rem;}
.dvd-legend-grid{display:flex;flex-wrap:wrap;gap:.35rem .75rem;}
.dvd-leg-item{font-size:.76rem;color:#475569;white-space:nowrap;}
.dvd-leg-item b{color:#1D4ED8;}
.dvd-filter-bar{background:#F1F5F9;border-radius:1rem;padding:1rem 1.25rem;margin-bottom:1rem;display:flex;flex-direction:column;gap:.75rem;}
.dvd-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;}
.dvd-filter-label{font-size:.78rem;font-weight:800;color:#64748B;width:60px;flex-shrink:0;}
.dvd-city-select{border:1px solid #CBD5E1;border-radius:.5rem;padding:.45rem .75rem;font-size:.85rem;font-family:inherit;color:#1E293B;background:#fff;}
.dvd-clear-btn{padding:.4rem .9rem;background:#E2E8F0;border:none;border-radius:.5rem;font-size:.78rem;font-weight:700;color:#475569;cursor:pointer;transition:background .15s;}
.dvd-clear-btn:hover{background:#CBD5E1;}
.dvd-cat-chips{display:flex;flex-wrap:wrap;gap:.3rem;}
.dvd-chip{padding:.3rem .7rem;background:#fff;border:1.5px solid #CBD5E1;border-radius:99px;font-size:.76rem;font-weight:700;color:#64748B;cursor:pointer;transition:all .15s;}
.dvd-chip.active{background:#2563EB;border-color:#2563EB;color:#fff;}
.dvd-count{font-size:.82rem;color:#64748B;margin-bottom:.75rem;padding-left:.25rem;}
.dvd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;}
.dvd-card{background:#fff;border:1px solid #E2E8F0;border-radius:1rem;padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:.5rem;transition:box-shadow .15s;}
.dvd-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.09);}
.dvd-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;}
.dvd-card-name{font-size:.9rem;font-weight:800;color:#1E293B;line-height:1.35;}
.dvd-card-county{font-size:.72rem;font-weight:700;padding:.2rem .55rem;border-radius:99px;background:#EFF6FF;color:#1D4ED8;white-space:nowrap;flex-shrink:0;}
.dvd-card-county.nat{background:#FEF3C7;color:#92400E;}
.dvd-card-info{font-size:.78rem;color:#475569;display:flex;flex-direction:column;gap:.2rem;}
.dvd-card-info a{color:#1D4ED8;word-break:break-all;}
.dvd-card-cats{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.2rem;}
.dvd-cat-badge{font-size:.68rem;padding:.15rem .4rem;border-radius:4px;background:#F0F7FF;color:#1D4ED8;border:1px solid #BFDBFE;font-weight:700;}
.dvd-empty{text-align:center;padding:2rem;color:#94A3B8;font-size:.9rem;grid-column:1/-1;}
@media(max-width:640px){.dvd-grid{grid-template-columns:1fr;}}

/* ── DVS 諮詢單按鈕 & Modal ── */
.dvd-consult-btn {
  margin-top: .75rem; width: 100%;
  padding: .55rem 0; border: none; border-radius: 8px;
  background: #1D4ED8; color: #fff;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .18s;
}
.dvd-consult-btn:hover { background: #1E40AF; }
.dvd-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; padding: 16px;
}
.dvd-modal {
  background: #fff; border-radius: 16px; padding: 2rem;
  width: 100%; max-width: 440px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.dvd-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: #64748b;
}
.dvd-modal-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 .4rem; }
.dvd-modal-vend  { font-size: .85rem; color: #64748b; margin: 0 0 1.2rem; }
.dvd-modal-form  { display: flex; flex-direction: column; gap: .75rem; }
.dvd-modal-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; font-weight: 600; color: #374151; }
.dvd-modal-form input,
.dvd-modal-form select,
.dvd-modal-form textarea {
  padding: .5rem .75rem; border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .85rem; outline: none; transition: border-color .18s;
}
.dvd-modal-form input:focus,
.dvd-modal-form select:focus,
.dvd-modal-form textarea:focus { border-color: #1D4ED8; }
.dvd-modal-submit {
  padding: .7rem; border: none; border-radius: 8px;
  background: #1D4ED8; color: #fff; font-weight: 700;
  font-size: .9rem; cursor: pointer; transition: background .18s; margin-top: .25rem;
}
.dvd-modal-submit:hover { background: #1E40AF; }
.dvd-modal-success { text-align: center; }
.dvd-success-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.dvd-modal-success h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.dvd-modal-success p  { font-size: .85rem; color: #64748b; margin: .2rem 0; }

/* ════════════════════════════════════════════════════
   身心障礙代償墊付申請流程 - 收合區塊
   ════════════════════════════════════════════════════ */
.sh-daf-wrap .daf-collapsible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding-bottom: .75rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.25rem;
  user-select: none;
}
.sh-daf-wrap .daf-collapsible-head h2 { margin: 0; }
.sh-daf-wrap .daf-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1D4ED8; color: #fff;
  font-size: 1rem; font-weight: 900;
  flex-shrink: 0;
  transition: transform .3s ease, background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(29,78,216,.30);
}
.sh-daf-wrap .daf-collapsible-head:hover .daf-toggle-btn {
  background: #1e40af;
  box-shadow: 0 4px 14px rgba(29,78,216,.45);
}
.sh-daf-wrap .daf-collapsible-head.collapsed .daf-toggle-btn { transform: rotate(180deg); }
.sh-daf-wrap .daf-collapsible-body {
  overflow: hidden;
  max-height: 6000px;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 1;
}
.sh-daf-wrap .daf-collapsible-body.collapsed { max-height: 0; opacity: 0; }

/* ════════════════════════════════════════════════════
   sh-hero 四角水彩點綴 (樹/雲/小村/貓)
   ════════════════════════════════════════════════════ */
.sh-hero { position: relative; overflow: hidden; }
.sh-hero-corner {
  position: absolute;
  width: 100px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: .92;
}
.sh-hero-corner--tl { top: 12px;    left: 12px; }      /* 樹 — 左上 */
.sh-hero-corner--tr { top: 12px;    right: 12px; }     /* 雲 — 右上 */
.sh-hero-corner--bl { bottom: 12px; left: 12px; }      /* 小村 — 左下 */
.sh-hero-corner--br { bottom: 12px; right: 12px; }     /* 貓 — 右下 */
@media (max-width: 720px) { .sh-hero-corner { display: none; } }

/* 貓水彩點綴 — 身障特約廠商查詢 section 右下 */
.sh-dvd-wrap { position: relative; }
.sh-dvd-cat-deco {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 100px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: .92;
}
@media (max-width: 720px) { .sh-dvd-cat-deco { display: none; } }

/* ════════════════════════════════════════════════════
   EA-EH 快速切換列 (顯示在 cat 頁 hero 下方)
   ════════════════════════════════════════════════════ */
.cat-quick-nav {
  display: flex;
  flex-wrap: wrap;            /* 換行不橫向 scroll */
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  background: transparent;    /* 去背 */
  border-bottom: none;
}
.cat-quick-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1rem;
  background: #fff;
  border: 2px solid #CBD5E1;
  border-radius: 999px;
  text-decoration: none !important;
  color: #334155;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,.04);
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.cat-quick-pill:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59,130,246,.20);
}
.cat-quick-pill.is-active {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  border-color: #1D4ED8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,78,216,.35);
  transform: translateY(-1px);
}
.cat-quick-pill.is-active:hover {
  background: linear-gradient(135deg, #1E40AF, #1D4ED8);
  color: #fff;
}
.cat-quick-icon { font-size: 1rem; line-height: 1; }
.cat-quick-code { font-weight: 800; letter-spacing: .04em; }
.cat-quick-name { font-weight: 700; }
.cat-quick-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 .35rem;
  height: 18px;
  border-radius: 9px;
  background: rgba(0,0,0,.08);
  font-size: .68rem;
  font-weight: 800;
}
.cat-quick-pill.is-active .cat-quick-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
@media (max-width: 720px) {
  .cat-quick-nav { padding: .75rem 1rem; gap: .4rem; }
  .cat-quick-pill { padding: .45rem .65rem; font-size: .75rem; }
  .cat-quick-name { display: none; }  /* 手機只顯示 icon + code + count */
}

/* 生活空間 pill 變體 (4 個空間) */
.cat-quick-nav--space {
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.cat-quick-pill--space {
  border-color: #94A3B8;
  background: rgba(255,255,255,.85);
}
.cat-quick-pill--space.is-active {
  background: linear-gradient(135deg, #059669, #10B981);
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.cat-quick-pill--space.is-active:hover {
  background: linear-gradient(135deg, #047857, #059669);
}
.cat-quick-pill--space:hover {
  background: #F0FDF4;
  border-color: #10B981;
  color: #059669;
}
.cat-quick-pill--space .cat-quick-icon { font-size: 1.1rem; }
.cat-quick-pill--space .cat-quick-name { font-size: .9rem; }
.cat-quick-desc {
  font-size: .7rem;
  font-weight: 500;
  opacity: .75;
  margin-left: .25rem;
}
@media (max-width: 720px) { .cat-quick-desc { display: none; } }
