/* ===========================================================
   SOVELL — 共用樣式
   色彩系統：Oat white / Ink / Oatmeal / Nude sand / Dusk rose
   原則：大量留白、細字重、低對比、無邊角卡片套路
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500&family=Noto+Serif+TC:wght@300;400&family=Jost:wght@400;500&family=Fraunces:opsz,wght@9..144,300;9..144,400&display=swap');

:root {
  --oat-white: #F4EFE7;
  --ink: #2E2A26;
  --oatmeal: #E4DACA;
  --nude-sand: #D6BFAC;
  --dusk-rose: #A8827C;
  /* 有文字的按鈕專用：同色相加深，米白字對比 4.69:1（WCAG AA） */
  --dusk-rose-deep: #86625C;

  --ink-soft: rgba(46, 42, 38, 0.62);
  --ink-faint: rgba(46, 42, 38, 0.38);
  --hairline: rgba(46, 42, 38, 0.14);

  --font-latin: 'Jost', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Jost', sans-serif;
  --font-serif: 'Fraunces', 'Noto Serif TC', serif;

  --max-width: 1180px;
  --gutter: clamp(24px, 6vw, 96px);

  /* 全站統一的緩動曲線，作為互動細節的簽名動作 */
  --ease-brand: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--oat-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wordmark {
  font-family: var(--font-latin);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--ink-soft);
  background: var(--oatmeal);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 6px 16px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 18px;
  padding-bottom: 18px;
}

.breadcrumb a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-brand);
}
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease-brand);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb a:hover::after { right: 0; }

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--ink-faint);
}

.breadcrumb .current { color: var(--ink); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-nav .wordmark { font-size: 1.15rem; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-links a { transition: color 0.3s var(--ease-brand); }
.nav-links a:hover { color: var(--ink); }

@media (min-width: 861px) {
  .nav-links > a,
  .nav-item > a {
    position: relative;
    padding-bottom: 3px;
  }
  .nav-links > a::after,
  .nav-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.4s var(--ease-brand), left 0.4s var(--ease-brand);
  }
  .nav-links > a:hover::after,
  .nav-item > a:hover::after,
  .nav-item:focus-within > a::after {
    width: 100%;
    left: 0;
  }
}

/* ---------- Hero ---------- */
/* 主圖滿版出血到瀏覽器右側，文字仍對齊版心左邊，營造雜誌編輯感 */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(56px, 9vh, 120px);
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(calc((100vw - var(--max-width)) / 2), var(--gutter));
  padding-right: 0;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.28;
  margin: 20px 0 28px;
  letter-spacing: -0.01em;
}

.hero-copy p.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 36px;
}

.hero-media {
  overflow: hidden;
  border-radius: 18px 0 0 18px;
}

.hero-media img { width: 100%; height: auto; object-fit: cover; }
.hero-media video { width: 100%; height: auto; object-fit: cover; display: block; }

@media (max-width: 860px) {
  /* 手機版堆疊後，主圖左右都貼齊螢幕邊緣（文字仍保留左右留白） */
  .hero-media {
    border-radius: 0;
    margin-left: min(calc((var(--max-width) - 100vw) / 2), calc(-1 * var(--gutter)));
  }
}

/* ---------- Buttons ---------- */
/* Hover 用「色塊由下往上滑入填滿」取代直接換色，手感更細膩 */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-latin);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 14px 34px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  transition: color 0.4s var(--ease-brand), border-color 0.4s var(--ease-brand), transform 0.15s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-brand);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }

.btn:hover { color: var(--oat-white); }

.btn-accent {
  border-color: var(--dusk-rose-deep);
  background: var(--dusk-rose-deep);
  color: var(--oat-white);
}

.btn-accent:hover { border-color: var(--ink); }

.btn-quiet {
  position: relative;
  border-bottom: 1px solid var(--ink-faint);
  padding: 4px 0;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.95rem;
}
/* 擴大點擊範圍到約 44px，不改變底線位置 */
.btn-quiet::after {
  content: "";
  position: absolute;
  inset: -10px -8px;
}

/* ---------- Section rhythm ---------- */
section { padding: clamp(56px, 9vh, 120px) 0; }

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.section-head { max-width: 46ch; margin-bottom: 48px; }

.section-head .eyebrow { display: block; margin-bottom: 14px; }

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.4;
  margin: 0;
}

/* ---------- Brand story split ---------- */
.story-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.story-split img { width: 100%; border-radius: 18px; }

.story-copy p { color: var(--ink-soft); max-width: 42ch; }

.story-copy blockquote {
  font-family: var(--font-serif);
  margin: 0 0 28px;
  padding-left: 20px;
  border-left: 1px solid var(--nude-sand);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Product rows (editorial, not cards) ---------- */
.product-rows { display: flex; flex-direction: column; }

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vh, 64px) 0;
  border-bottom: 1px solid var(--hairline);
}

.product-row:first-child { border-top: 1px solid var(--hairline); }

.product-row:nth-child(even) .row-media { order: 2; }
.product-row:nth-child(even) .row-copy { order: 1; }

.row-media { overflow: hidden; border-radius: 18px; }
.row-media img { width: 100%; transition: transform 0.6s ease; }
.product-row:hover .row-media img { transform: scale(1.02); }
.row-media video, .row-media video.hero-video { width: 100%; display: block; }

/* 首頁商品列：限制圖片高度，避免比例過長的圖把版面拉開
   （等比縮小，不裁切，臉部不會被切到） */
@media (min-width: 861px) {
  #products .row-media {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #products .row-media img {
    width: auto;
    max-width: 100%;
    max-height: 620px;
  }
  #products .row-media video {
    width: auto;
    max-width: 100%;
    max-height: 620px;
  }
}

.row-copy .sku {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}

.row-copy h3 {
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0 0 16px;
}

.row-copy p { color: var(--ink-soft); max-width: 40ch; margin: 0 0 24px; }

/* ---------- Service strip ---------- */
/* 用跟商品列表一樣的「編號」語言＋直線分隔，取代圖示，維持全站一致的排版系統 */
.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 56px 0;
}

.service-strip .item {
  position: relative;
  padding-left: 28px;
}

.service-strip .item::before {
  content: "0" counter(service-item);
  counter-increment: service-item;
  display: block;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--dusk-rose);
  margin-bottom: 14px;
}

.service-strip {
  counter-reset: service-item;
}

.service-strip .item:not(:first-child) {
  border-left: 1px solid var(--hairline);
}

.service-strip .item h3,
.service-strip .item h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.service-strip .item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .service-strip .item:not(:first-child) { border-left: none; border-top: 1px solid var(--hairline); padding-top: 28px; }
  .service-strip .item { padding-left: 0; }
}

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 48px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer .foot-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

footer .wordmark { font-size: 1rem; color: var(--ink); margin-bottom: 8px; display: block; }

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-brand);
}
.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease-brand);
}

.foot-links a:hover { color: var(--ink); }
.foot-links a:hover::after { right: 0; }

.foot-line-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.btn-line {
  display: inline-block;
  font-size: 0.86rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: border-color 0.35s var(--ease-brand), background 0.35s var(--ease-brand), transform 0.15s ease;
}
.btn-line:active { transform: scale(0.97); }

.btn-line:hover {
  border-color: var(--ink);
  background: var(--oatmeal);
}

.foot-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-origin {
  font-family: var(--font-latin);
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  footer .foot-main { gap: 28px; }
  .foot-legal { margin-top: 28px; }
}

/* ---------- Product detail page ---------- */
/* 商品主圖固定比例，讓六款商品頁的主圖高度一致，不會因來源照片比例不同而忽大忽小 */
.product-hero .row-media {
  aspect-ratio: 1 / 1.85;
  overflow: hidden;
  border-radius: 0 18px 18px 0;
}
.product-hero .row-media img,
.product-hero .row-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 主圖滿版出血到瀏覽器左側，文字仍對齊版心右邊，跟首頁 hero 的編輯感呼應 */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(32px, 5vh, 72px);
  padding-bottom: clamp(40px, 7vh, 80px);
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-right: max(calc((100vw - var(--max-width)) / 2), var(--gutter));
  padding-left: 0;
}

@media (max-width: 860px) {
  /* 手機單欄：文字補回左側版心，主圖仍滿版出血 */
  .product-hero { padding-left: var(--gutter); }
  .product-hero .row-media {
    margin-left: calc(-1 * var(--gutter));
    border-radius: 0;
    margin-right: min(calc((var(--max-width) - 100vw) / 2), calc(-1 * var(--gutter)));
  }
}

.product-hero .row-copy .price {
  font-family: var(--font-latin);
  font-size: 1.1rem;
  margin: 0 0 28px;
  color: var(--ink);
}

.product-hero .row-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  color: var(--ink-soft);
}

.product-hero .row-copy li {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.product-hero .row-copy li:last-child { border-bottom: 1px solid var(--hairline); }

.pull-statement {
  padding: clamp(56px, 10vh, 128px) 0;
}

.pull-statement .statement-inner {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  max-width: 640px;
  margin: 0 auto;
}

.pull-statement .rule-line {
  width: 1px;
  background: var(--ink);
  opacity: 0.25;
  flex-shrink: 0;
  align-self: stretch;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pull-statement.is-visible .rule-line { transform: scaleY(1); }

.pull-statement p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.85;
  margin: 0;
  text-align: left;
}
html.has-js .pull-statement p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 0.65s, transform 1s ease 0.65s;
}

html.has-js .pull-statement.is-visible p { opacity: 1; transform: translateY(0); }

.pull-statement .eyebrow {
  display: block;
  margin-bottom: 16px;
}
html.has-js .pull-statement .eyebrow {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}

html.has-js .pull-statement.is-visible .eyebrow { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .pull-statement .rule-line,
  html.has-js .pull-statement p,
  html.has-js .pull-statement .eyebrow { transition: none; transform: none; opacity: 1; }
}

.detail-rows .product-row { grid-template-columns: 0.9fr 1.1fr; }

.colorway-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.colorway-block img { width: 100%; border-radius: 18px; }

.lifestyle-gallery {
  column-count: 2;
  column-gap: 16px;
}
.lifestyle-gallery img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 16px;
  break-inside: avoid;
  transition: transform 0.4s ease;
}
.lifestyle-gallery img:hover { transform: scale(1.015); }

@media (min-width: 640px) {
  .lifestyle-gallery { column-count: 3; }
}

/* ---------- Card surface (spec tables, grouped content) ---------- */
.card-surface {
  background: var(--oatmeal);
  border-radius: 8px;
  padding: 32px;
}

/* ---------- Index list (size guide product links) ---------- */
.index-list { border-top: 1px solid var(--hairline); }
.index-list a {
  display: flex;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s ease;
}
.index-list a:hover { background: var(--oatmeal); }
.index-list .idx-sku {
  font-family: var(--font-latin);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-right: 20px;
  min-width: 24px;
}
.index-list .idx-name { flex: 1; font-size: 0.98rem; }
.index-list .idx-arrow { color: var(--ink-faint); transition: transform 0.2s ease; }
.index-list a:hover .idx-arrow { transform: translateX(4px); color: var(--ink); }

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle-input { display: none; }

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 70;
  position: relative;
}
.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero,
  .story-split,
  .product-row,
  .product-hero,
  .colorway-block,
  .detail-rows .product-row {
    grid-template-columns: 1fr;
  }
  .product-row:nth-child(even) .row-media,
  .product-row:nth-child(even) .row-copy { order: initial; }
  .service-strip { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle-label { display: flex; }

  .nav-links {
    /* 收合時完全不渲染，避免在手機上產生橫向捲動空白區 */
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--oat-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 96px 32px 32px;
    font-size: 1.05rem;
    box-shadow: -12px 0 32px rgba(46,42,38,0.12);
    z-index: 65;
  }
  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
    animation: nav-slide-in 0.28s ease;
  }

  @keyframes nav-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(46, 42, 38, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
  }
  .nav-toggle-input:checked ~ .nav-overlay { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--oat-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#intro-loader .intro-word {
  font-family: var(--font-latin);
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 18px;
}
#intro-loader .intro-pct {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
@media (prefers-reduced-motion: reduce) {
  #intro-loader { display: none; }
}

/* ---------- Nav dropdown (商品) ---------- */
@media (min-width: 861px) {
  .nav-item {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
  }

  .nav-item .dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    margin-top: 0;
    width: 280px;
    background: var(--oat-white);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(46,42,38,0.10);
    padding: 8px 10px 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 80;
  }

  .nav-item:hover .dropdown-panel,
  .nav-item:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-panel .dropdown-grid {
    display: flex;
    flex-direction: column;
  }

  .dropdown-panel .dropdown-grid a:not(:last-child) {
    border-bottom: 1px solid var(--hairline);
  }

  .dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 0;
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.15s ease, padding-left 0.15s ease;
  }

  .dropdown-panel a:hover,
  .dropdown-panel a:focus-visible {
    background: var(--oatmeal);
    padding-left: 12px;
  }

  .dropdown-panel .d-sku {
    font-family: var(--font-latin);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    flex-shrink: 0;
    min-width: 16px;
  }

  .dropdown-panel .dropdown-all {
    display: block;
    text-align: center;
    margin-top: 2px;
    padding: 12px 8px 10px;
    font-size: 0.78rem;
    color: var(--ink-soft);
    border-radius: 0;
    white-space: nowrap;
  }

  .dropdown-panel .dropdown-all:hover { background: transparent; color: var(--ink); }
}

@media (max-width: 860px) {
  .dropdown-panel { display: none !important; }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.has-js .service-strip .item.reveal:nth-child(2) { transition-delay: 0.1s; }
html.has-js .service-strip .item.reveal:nth-child(3) { transition-delay: 0.2s; }
html.has-js .service-strip .item.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal { transition: none !important; }
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--oat-white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(46,42,38,0.10);
}
#back-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--oatmeal); border-color: var(--ink); }
#back-to-top:active { transform: scale(0.94); }
#back-to-top svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  #back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
}

/* ---------- Color dots ---------- */
.color-dots {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.color-dot {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-brand);
}
.color-dot .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 1px rgba(46,42,38,0.05), 0 0 0 0 rgba(46,42,38,0);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand);
}
/* 色卡加上放大＋外圈細環，讓顏色感覺像可以點的實體物件 */
.color-dot:hover { color: var(--ink); }
.color-dot:hover .dot {
  transform: scale(1.15);
  box-shadow: inset 0 0 0 1px rgba(46,42,38,0.05), 0 0 0 3px var(--oatmeal);
}
html.has-js .color-dots .color-dot.reveal {
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.has-js .color-dots .color-dot.reveal.is-visible { transform: scale(1); }
html.has-js .color-dots .color-dot.reveal:nth-child(1) { transition-delay: 0s; }
html.has-js .color-dots .color-dot.reveal:nth-child(2) { transition-delay: 0.08s; }
html.has-js .color-dots .color-dot.reveal:nth-child(3) { transition-delay: 0.16s; }
html.has-js .color-dots .color-dot.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Line-by-line mask reveal ---------- */
.split-lines .split-line {
  display: block;
  overflow: hidden;
}
.split-lines .split-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.01);
}
html.has-js .split-lines.is-visible .split-line-inner {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .split-lines .split-line-inner { transition: none; }
}

/* ---------- Page transition overlay ---------- */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--oat-white);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease;
}
html.has-js #page-transition-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  #page-transition-overlay { transition: none; }
}

/* ---------- Product prev/next navigation ---------- */
.product-pager {
  display: flex;
  border-top: 1px solid var(--hairline);
}
.product-pager a {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px var(--gutter);
  transition: background 0.2s ease;
}
.product-pager a:hover { background: var(--oatmeal); }
.product-pager .pager-next {
  text-align: right;
  align-items: flex-end;
  border-left: 1px solid var(--hairline);
}
.product-pager .pager-dir {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.product-pager .pager-name {
  font-size: 0.98rem;
  color: var(--ink);
}
@media (max-width: 700px) {
  .product-pager { flex-direction: column; }
  .product-pager .pager-next { border-left: none; border-top: 1px solid var(--hairline); text-align: left; align-items: flex-start; }
}
