/* ==========================================================================
   毛日照護 — 融合版設計
   B 的深色暖光世界 × A 的症狀索引架構與檢驗單資訊密度。
   概念：「深夜的診間」——焦慮的飼主半夜查資料，介面要冷靜、可查、不刺眼。
   ========================================================================== */

:root {
  /* 深色是主場：白底商品照在深底上會跳出來，且全台寵物電商幾乎沒人這樣做 */
  --ground: #1A1613;
  --surface: #241E19;
  --raised: #2E2721;
  --ink: #F2E9DA;
  --ink-2: #C3B6A5;
  --muted: #8C8071;
  --line: #372E27;

  --accent: #E9A23F;          /* 蜜橘：CTA 與強調，唯一的主色 */
  --accent-2: #8FA96E;        /* 苔綠：症狀標籤，低調 */
  --signal: #E08B70;          /* 磚紅：只給重症／處方級，語意色不是裝飾 */
  --signal-bg: #3A241D;
  --on-accent: #22190C;

  --lightbox: #F9F3E8;        /* 商品照的「被燈照亮」展示面 */
  --glow: radial-gradient(circle at 50% 38%, rgba(233, 162, 63, .20), transparent 68%);

  /* 中文網頁字體無法 inline（字檔動輒數 MB），靠系統堆疊 + 字重字距做層次 */
  --serif: "Noto Serif TC", "Songti TC", "SimSun", Georgia, serif;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #F5EFE4;
    --surface: #FFFFFF;
    --raised: #FBF6EC;
    --ink: #1A1613;
    --ink-2: #4A4038;
    --muted: #857A6C;
    --line: #E2D8C8;
    --accent: #A8670F;
    --accent-2: #5C7742;
    --signal: #A8462F;
    --signal-bg: #F5E3DC;
    --on-accent: #FFFFFF;
    --lightbox: #FFFFFF;
    --glow: radial-gradient(circle at 50% 38%, rgba(168, 103, 15, .10), transparent 68%);
    --shadow: 0 1px 3px rgba(26, 22, 19, .07), 0 12px 30px -18px rgba(26, 22, 19, .3);
  }
}

:root[data-theme="light"] {
  --ground: #F5EFE4;
  --surface: #FFFFFF;
  --raised: #FBF6EC;
  --ink: #1A1613;
  --ink-2: #4A4038;
  --muted: #857A6C;
  --line: #E2D8C8;
  --accent: #A8670F;
  --accent-2: #5C7742;
  --signal: #A8462F;
  --signal-bg: #F5E3DC;
  --on-accent: #FFFFFF;
  --lightbox: #FFFFFF;
  --glow: radial-gradient(circle at 50% 38%, rgba(168, 103, 15, .10), transparent 68%);
  --shadow: 0 1px 3px rgba(26, 22, 19, .07), 0 12px 30px -18px rgba(26, 22, 19, .3);
}

:root[data-theme="dark"] {
  --ground: #1A1613;
  --surface: #241E19;
  --raised: #2E2721;
  --ink: #F2E9DA;
  --ink-2: #C3B6A5;
  --muted: #8C8071;
  --line: #372E27;
  --accent: #E9A23F;
  --accent-2: #8FA96E;
  --signal: #E08B70;
  --signal-bg: #3A241D;
  --on-accent: #22190C;
  --lightbox: #F9F3E8;
  --glow: radial-gradient(circle at 50% 38%, rgba(233, 162, 63, .20), transparent 68%);
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(.9rem, .86rem + .18vw, 1rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 頂欄 ─────────────────────────────────────────────── */
.topbar {
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  color: var(--ink-2);
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar b { color: var(--ink); font-weight: 600; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: baseline; gap: 11px; text-decoration: none; }
.brand .name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.brand .en {
  font-family: var(--mono); font-size: .62rem; color: var(--muted);
  letter-spacing: .16em; text-transform: uppercase;
}
nav.main { display: flex; gap: 24px; font-size: .86rem; }
nav.main a {
  color: var(--ink-2); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
}
nav.main a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cart-btn {
  appearance: none; cursor: pointer; position: relative;
  font-family: var(--mono); font-size: .78rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; background: var(--surface); color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-btn .n {
  min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; padding: 0 5px;
}
.cart-btn .n[data-empty="true"] { background: var(--line); color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto; height: 140%;
  background: var(--glow); pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; gap: 44px; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  padding-top: 60px; padding-bottom: 52px;
}
.hero .kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.24; letter-spacing: .01em;
  margin: 0 0 18px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { margin: 0 0 26px; max-width: 42ch; color: var(--ink-2); font-size: 1.04rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  appearance: none; cursor: pointer; font-family: var(--sans);
  font-size: .92rem; font-weight: 600; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .14s ease, opacity .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 商品照都是白底方圖、不是去背（罐身本身也是白的，去背會把罐子挖掉），
   所以固定用亮色卡片承載，深色下反而成為視覺焦點。 */
.lamp { position: relative; aspect-ratio: 1; max-width: 390px; margin-inline: auto; display: grid; place-items: center; }
.lamp .disc {
  position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FBF6EC 0%, #F0E6D4 62%, #E6D9C2 100%);
  box-shadow: 0 0 60px -6px rgba(233, 162, 63, .32), 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.lamp .frame {
  position: relative; width: 66%; background: #FFFFFF;
  border-radius: 16px; padding: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .12);
}
.lamp .frame img { display: block; width: 100%; height: auto; }
.lamp .caption {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  color: var(--muted); white-space: nowrap;
}

/* ── 區塊標頭 ─────────────────────────────────────────── */
.sec { border-top: 1px solid var(--line); padding: 58px 0; }
.sec-head { margin-bottom: 24px; }
.sec-head .kicker {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.sec-head h2 {
  font-family: var(--serif); margin: 0 0 8px;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); font-weight: 700;
}
.sec-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }

/* ── 症狀索引（A 的核心）────────────────────────────── */
.index-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; color: var(--ink-2);
  padding: 8px 18px;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.drawers {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
}
.drawer {
  appearance: none; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: inherit;
  padding: 12px 14px 11px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.drawer:hover { border-color: var(--accent); transform: translateY(-2px); }
.drawer[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.drawer[aria-pressed="true"] .d-en, .drawer[aria-pressed="true"] .d-n { color: inherit; opacity: .7; }
.drawer .d-en {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.drawer.is-critical .d-en { color: var(--signal); }
.drawer .d-zh { font-size: .94rem; font-weight: 500; line-height: 1.4; }
.drawer .d-n { font-family: var(--mono); font-size: .66rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 24px 0 14px;
}
.result-bar .count { font-family: var(--mono); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-bar .count b { color: var(--ink); font-size: .95rem; }
.link-btn {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}

/* ── 商品卡（A 的檢驗單密度 × B 的暖白圖框）────────── */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .16s ease, border-color .16s ease;
}
.item:hover { transform: translateY(-3px); border-color: var(--accent); }
.item .pic {
  background: var(--lightbox); aspect-ratio: 1; padding: 16px;
  display: grid; place-items: center; cursor: pointer; border: 0; width: 100%;
}
.item .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item .meta {
  font-family: var(--mono); font-size: .61rem; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 8px;
}
.item h3 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.5; }
.item h3 button {
  appearance: none; background: 0; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.item h3 button:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: .68rem; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
}
.tag.critical { background: var(--signal-bg); color: var(--signal); }
.spec {
  font-family: var(--mono); font-size: .67rem; color: var(--muted);
  line-height: 1.55; border-top: 1px dotted var(--line); padding-top: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.item .row {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.item .row .p { font-family: var(--mono); font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.item .row .p s { font-size: .72rem; color: var(--muted); font-weight: 400; margin-right: 5px; }
.mini {
  appearance: none; cursor: pointer; font-family: var(--sans); font-size: .8rem;
  padding: 7px 15px; border-radius: 999px; font-weight: 600;
  background: var(--accent); color: var(--on-accent); border: 0;
}
.mini:hover { opacity: .88; }
.mini.added { background: var(--accent-2); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ── 照護節奏（B）─────────────────────────────────────── */
.rhythm-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.slot {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 13px;
}
.slot-when { display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.slot-when .hh {
  font-family: var(--mono); font-size: 1.45rem; font-weight: 600;
  color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.slot-when .lbl { font-size: 1rem; font-weight: 700; }
.slot-when .note { font-size: .76rem; color: var(--muted); margin-left: auto; }
.slot ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.slot li { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; }
.slot li .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); margin-top: .58em; }
.slot li b { font-weight: 600; display: block; }
.slot li span { color: var(--muted); font-size: .79rem; }

/* ── 貓蕾度數（B）─────────────────────────────────────── */
.scale {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 26px 24px; margin-top: 22px;
}
.ticks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; margin-bottom: 20px; }
.ticks::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: .45; border-radius: 2px;
}
.tick {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 4px 2px; color: var(--ink-2); position: relative; border-radius: 8px;
}
.tick .deg { font-family: var(--mono); font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tick .pin {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--muted);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tick .nm { font-size: .75rem; line-height: 1.4; text-align: center; }
.tick:hover .pin { border-color: var(--accent); }
.tick[aria-pressed="true"] { color: var(--ink); }
.tick[aria-pressed="true"] .deg { color: var(--accent); }
.tick[aria-pressed="true"] .pin { background: var(--accent); border-color: var(--accent); transform: scale(1.28); }

.scale-detail {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: 180px minmax(0, 1fr);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.scale-detail .pic { background: var(--lightbox); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; }
.scale-detail .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.scale-detail h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.scale-detail p { margin: 0 0 12px; color: var(--ink-2); font-size: .88rem; max-width: 52ch; }
.scale-detail .buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scale-detail .p { font-family: var(--mono); font-size: 1.18rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── 情境（A）─────────────────────────────────────────── */
.case-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); }
.case {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.case.is-critical { border-top-color: var(--signal); }
.case .c-en { font-family: var(--mono); font-size: .61rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-family: var(--serif); font-size: 1.1rem; margin: 0; font-weight: 700; }
.case p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.7; }
.case ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.case li { font-size: .82rem; color: var(--ink-2); padding-left: 15px; position: relative; }
.case li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 1px; background: var(--accent-2); }
.case.is-critical li::before { background: var(--signal); }
.case button.jump {
  appearance: none; background: 0; border: 0; padding: 0; margin-top: 8px;
  font: inherit; font-size: .82rem; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-align: left;
}

/* ── 回購（B）─────────────────────────────────────────── */
.refill-box {
  background: var(--raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 30px; display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
}
.refill-box h2 { font-family: var(--serif); margin: 0 0 10px; font-size: 1.45rem; font-weight: 700; }
.refill-box p { margin: 0 0 18px; color: var(--ink-2); max-width: 46ch; }
.refill-steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 13px; align-items: flex-start; }
.step .n {
  flex: none; width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
}
.step div { font-size: .86rem; }
.step b { display: block; font-weight: 600; }
.step span { color: var(--muted); font-size: .79rem; }

/* ── 授權與法規（A）──────────────────────────────────── */
.disclaim-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.disclaim h4 {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 500;
}
.disclaim p { margin: 0; font-size: .82rem; color: var(--ink-2); line-height: 1.78; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer.site .f-name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
footer.site .f-note { font-size: .78rem; color: var(--muted); max-width: 44ch; line-height: 1.75; }

/* ── 商品詳情 / 購物車：共用抽屜 ─────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(460px, 100%);
  background: var(--ground); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .9);
}
.panel[data-open="true"] { transform: translateX(0); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-family: var(--serif); margin: 0; font-size: 1.15rem; font-weight: 700; }
.panel-close {
  appearance: none; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  width: 32px; height: 32px; color: var(--ink); font-size: 1rem; line-height: 1;
}
.panel-close:hover { border-color: var(--accent); color: var(--accent); }
.panel-body { flex: 1; overflow-y: auto; padding: 20px; }
.panel-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--surface); }

/* 商品詳情 */
.detail-pic { background: var(--lightbox); border-radius: 12px; padding: 20px; display: grid; place-items: center; margin-bottom: 16px; }
.detail-pic img { max-width: 100%; max-height: 280px; object-fit: contain; }
.detail-brand { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.detail h3 { font-family: var(--serif); margin: 6px 0 10px; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.detail .price-lg { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; margin: 10px 0 16px; }
.detail .price-lg s { font-size: .85rem; color: var(--muted); font-weight: 400; margin-right: 8px; }
.detail dl { margin: 16px 0 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 9px 14px; font-size: .84rem; }
.detail dt { font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; padding-top: 2px; }
.detail dd { margin: 0; color: var(--ink-2); line-height: 1.7; }
.detail .intro { font-size: .88rem; color: var(--ink-2); line-height: 1.8; white-space: pre-line; margin-top: 4px; }
.detail .caution {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: var(--signal-bg); color: var(--signal);
  font-size: .8rem; line-height: 1.7;
}

/* 購物車 */
.cart-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { background: var(--lightbox); border-radius: 8px; aspect-ratio: 1; display: grid; place-items: center; padding: 5px; }
.cart-line .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-line .nm { font-size: .86rem; font-weight: 600; line-height: 1.45; }
.cart-line .unit { font-family: var(--mono); font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.qty button {
  appearance: none; cursor: pointer; width: 24px; height: 24px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 6px; font-size: .85rem; line-height: 1;
}
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty .v { font-family: var(--mono); font-size: .82rem; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-line .sum { font-family: var(--mono); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line .rm { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); background: 0; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
.cart-line .rm:hover { color: var(--signal); }

.totals { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; font-size: .86rem; }
.totals .r { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.totals .r.grand { color: var(--ink); font-size: 1.05rem; font-weight: 700; padding-top: 9px; border-top: 1px solid var(--line); }
.totals .r span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ship-hint { font-size: .78rem; color: var(--accent-2); margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 95;
  background: var(--ink); color: var(--ground);
  padding: 11px 20px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow);
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .item:hover, .btn:hover, .drawer:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .lamp { max-width: 290px; }
  .refill-box { grid-template-columns: 1fr; }
  nav.main { display: none; }
}
@media (max-width: 580px) {
  .wrap { padding: 0 16px; }
  .ticks { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ticks::before { display: none; }
  .scale-detail { grid-template-columns: 1fr; }
  .scale-detail .pic { max-width: 180px; }
  .drawers { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .item .txt { padding: 12px 12px 14px; }
  .brand .en { display: none; }
}
