/* SoulKey 靈鑰・六根生活 官網樣式
   配色維持梅紫大地色系；頁首、favicon 用 SoulKey 金色鑰匙標誌 */
:root {
  /* 配色：梅紫（取自 GRSGCO 標誌）＋亞麻、沙、木的大地色，點綴香檳金；頁首用 SoulKey 金色鑰匙標誌 */
  --plum: #A62A6C;
  --plum-deep: #6E1E4A;
  --plum-ink: #2E1A26;
  --plum-soft: #F4E7EE;
  --ivory: #F6F1E9;
  --pearl: #FBF8F3;
  --mist: #EAE3D8;
  --sand: #DCCFBD;
  --wood: #8A6A4F;
  --gold: #A88655;
  --gold-soft: #E6D7BD;
  --ink: #2A2229;
  --muted: #7C7079;
  --line: #E7DED5;
  --grsgco: #A62A6C;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --display-en: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.8; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .06em; margin: 0; }

/* 品牌標誌（PNG 遮罩，可換色） */
.emblem { display: inline-block; width: 40px; height: 40px; background: var(--plum); -webkit-mask: url(img/emblem.png) center / contain no-repeat; mask: url(img/emblem.png) center / contain no-repeat; }
.emblem.large { width: 88px; height: 88px; background: var(--gold-soft); }
.wordmark { display: inline-block; width: 128px; height: 24px; background: var(--ink); -webkit-mask: url(img/wordmark.png) left center / contain no-repeat; mask: url(img/wordmark.png) left center / contain no-repeat; }

.kicker { font-family: var(--serif-en); font-style: italic; font-size: 17px; letter-spacing: .08em; color: var(--gold); margin: 0 0 10px; }
.kicker.light { color: var(--gold-soft); }
.btn { display: inline-block; background: var(--plum); color: #fff; border: 1px solid var(--plum); padding: 13px 34px; text-decoration: none; font: inherit; font-weight: 400; letter-spacing: .2em; font-size: 14px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--plum); color: #fff; }
.btn.full { width: 100%; }
.link { text-decoration: none; letter-spacing: .15em; font-size: 14px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

.announce { background: var(--plum-ink); color: var(--gold-soft); text-align: center; font-size: 12px; letter-spacing: .2em; padding: 8px 16px; }

/* 頁首 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 14px 48px; background: rgba(248, 244, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .2em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }
.cart-btn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
.cart-btn span { min-width: 20px; height: 20px; border-radius: 10px; background: var(--plum); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* 主視覺 */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 72px 48px 56px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.35; letter-spacing: .12em; color: var(--plum-ink); margin-bottom: 24px; }
.lede { color: var(--muted); font-size: 16px; line-height: 2.1; margin: 0 0 36px; }
.hero-cta { display: flex; align-items: center; gap: 32px; }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 0 0; box-shadow: 0 30px 60px -30px rgba(75, 23, 54, .35); }
.hero-art::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 100%; height: 100%; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; z-index: -1; }
.hero-art figcaption { font-family: var(--serif-en); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: right; }

.pillars { max-width: 1240px; margin: 0 auto; padding: 32px 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars div { text-align: center; padding: 0 12px; border-right: 1px solid var(--line); }
.pillars div:last-child { border-right: 0; }
.pillars .ico { color: var(--gold); font-size: 18px; }
.pillars h3 { font-size: 16px; margin: 6px 0 2px; }
.pillars p { margin: 0; font-size: 13px; color: var(--muted); }

/* 區塊 */
.section { max-width: 1240px; margin: 0 auto; padding: 96px 48px; }
.section.pearl { max-width: none; background: var(--pearl); }
.section.pearl > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--plum-ink); }
.section-head .sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 15px; }

/* 六根 */
.senses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sense { background: var(--pearl); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.sense:hover { box-shadow: 0 24px 48px -28px rgba(46, 26, 38, .35); transform: translateY(-2px); }
.sense-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.sense-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sense:hover .sense-ph img { transform: scale(1.04); }
.sense-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46, 26, 38, .55), transparent 60%); }
.glyph { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); z-index: 1; font-family: "Noto Serif TC", serif; font-size: 72px; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sense-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sense-body .en { font-family: var(--serif-en); font-style: italic; color: var(--gold); margin: 0; font-size: 16px; }
.sense-body h3 { font-size: 20px; color: var(--plum-ink); margin: 2px 0 8px; letter-spacing: .15em; }
.sense-body > p:not(.en) { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--gold-soft); background: none; padding: 4px 12px; font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--plum); color: var(--plum); }
.sense-link { margin-top: 14px; font-size: 13px; letter-spacing: .12em; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--gold); align-self: flex-start; }
.sense.soon { cursor: default; }
.sense.soon:hover { box-shadow: none; transform: none; }
.sense.soon .sense-ph { background: linear-gradient(135deg, var(--sand), var(--mist)); }
.sense.soon .sense-ph::after { background: none; }
.sense.soon .glyph { color: var(--wood); text-shadow: none; opacity: .7; }
.soon-tag { align-self: flex-start; font-size: 12px; letter-spacing: .25em; color: var(--wood); border: 1px dashed var(--wood); padding: 3px 12px; }

/* 商品卡 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.card { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.card .ph { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.card .badge { position: absolute; top: 12px; left: 12px; background: var(--pearl); color: var(--plum); font-family: var(--serif-en); font-size: 12px; letter-spacing: .25em; padding: 3px 10px; }
.card .meta { padding-top: 14px; }
.card .col { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.card h3 { font-size: 17px; line-height: 1.5; margin: 4px 0 6px; letter-spacing: .08em; }
.card p { margin: 0 0 8px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-family: var(--serif-en); font-size: 18px; color: var(--plum-ink); }
.card .price small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 4px; }
.card .has-film { font-size: 12px; color: var(--plum); margin-left: 10px; letter-spacing: .1em; }
.card.flash .ph { outline: 2px solid var(--plum); outline-offset: 4px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-bottom: 18px; }
.subfilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; min-height: 8px; }
.subfilters button { border: 1px solid var(--line); background: var(--pearl); padding: 4px 14px; font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--muted); cursor: pointer; }
.subfilters button.on { border-color: var(--plum); color: var(--plum); }
.filters button { border: 0; background: none; padding: 6px 0; cursor: pointer; font: inherit; font-size: 14px; letter-spacing: .15em; color: var(--muted); border-bottom: 1px solid transparent; }
.filters button.on { color: var(--plum); border-bottom-color: var(--plum); }
.filters button:hover { color: var(--ink); }

/* 品牌故事 */
.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--plum-deep); color: #fff; }
.story-art img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.story-copy { padding: 88px 72px; display: flex; flex-direction: column; justify-content: center; }
.story-copy h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: .12em; margin: 4px 0 24px; }
.story-copy p { color: rgba(255, 255, 255, .86); margin: 0 0 16px; max-width: 460px; }
.story-copy .emblem { margin-bottom: 24px; }
.story-copy .sign { font-family: var(--serif-en); font-style: italic; font-size: 22px; color: var(--gold-soft); margin-top: 16px; line-height: 1.5; }

/* 影像 */
.films { background: var(--mist); padding: 96px 48px; border-top: 1px solid var(--sand); }
.film-grid { max-width: 1240px; margin: 0 auto 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.film { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #1c1a22; cursor: pointer; }
.film img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; transition: transform 1.2s var(--ease); }
.film:hover img { transform: scale(1.04); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 28, .82)); pointer-events: none; }
.film .play { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; z-index: 1; backdrop-filter: blur(4px); }
.film .cap { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; color: #fff; }
.film .cap .en { font-family: var(--serif-en); font-style: italic; color: var(--gold-soft); font-size: 15px; display: block; }
.film .cap h3 { font-size: 22px; letter-spacing: .2em; }
.film .cap button { margin-top: 6px; border: 0; background: none; padding: 0; color: rgba(255, 255, 255, .85); font: inherit; font-size: 12px; letter-spacing: .1em; cursor: pointer; border-bottom: 1px solid var(--gold); }
.film.playing { aspect-ratio: 3 / 4; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.center { text-align: center; }

/* 頁尾 */
.foot { background: var(--plum-ink); color: rgba(255, 255, 255, .78); padding: 72px 48px 32px; }
.foot-brand { text-align: center; margin-bottom: 48px; }
.foot-brand .emblem { width: 56px; height: 56px; background: var(--gold-soft); display: block; margin: 0 auto 14px; }
.foot-brand .wordmark { width: 180px; height: 34px; background: #fff; -webkit-mask-position: center; mask-position: center; }
.foot-brand .tag { font-family: var(--serif-en); font-style: italic; color: var(--gold-soft); margin: 8px 0 0; }
.foot-cols { max-width: 760px; margin: 0 auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.foot-cols h4 { font-family: var(--serif); color: #fff; font-weight: 500; letter-spacing: .2em; margin: 0 0 12px; }
.foot-cols a { display: block; text-decoration: none; font-size: 13px; margin-bottom: 6px; letter-spacing: .08em; }
.foot-cols a:hover { color: var(--gold-soft); }
.disclaimer { max-width: 760px; margin: 0 auto; font-size: 12px; text-align: center; color: rgba(255, 255, 255, .55); }
.legal { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 16px; letter-spacing: .1em; }

/* 商品詳情 */
.pd { width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 0; padding: 0; background: var(--pearl); color: var(--ink); display: none; grid-template-columns: 1.1fr 1fr; overflow: auto; }
.pd[open] { display: grid; }
.pd::backdrop { background: rgba(43, 20, 36, .55); backdrop-filter: blur(3px); }
.pd .close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); z-index: 1; }
.pd-gallery { background: var(--mist); }
.pd-gallery > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 60px; height: 60px; object-fit: cover; cursor: pointer; opacity: .6; border: 1px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--plum); }
.pd-info { padding: 44px 40px; }
.pd-info h2 { font-size: 26px; line-height: 1.5; color: var(--plum-ink); }
.pd-price { font-family: var(--serif-en); font-size: 26px; color: var(--plum); margin: 8px 0 12px; }
.pd-line { color: var(--muted); margin: 0 0 24px; }
.pd-label { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.pd select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--ivory); font: inherit; color: var(--ink); margin-bottom: 14px; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-bottom: 16px; }
.pd-qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.pd-qty span { min-width: 32px; text-align: center; }
.pd-specs { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pd-specs li { padding: 3px 0; }
.pd-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* 購物車 */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--pearl); z-index: 30; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 28px; box-shadow: -20px 0 40px rgba(43, 20, 36, .12); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-head button { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.backdrop { position: fixed; inset: 0; background: rgba(43, 20, 36, .4); z-index: 25; display: none; }
.backdrop.on { display: block; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line img { width: 64px; height: 80px; object-fit: cover; }
.line small { display: block; color: var(--muted); font-size: 12px; }
.line strong { font-family: var(--serif-en); font-weight: 500; font-size: 16px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); }
.sum { padding: 16px 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; padding: 2px 0; }
.sum .total { font-size: 18px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--serif); }
.checkout h3 { font-size: 18px; margin: 8px 0; }
.checkout label { display: block; margin: 12px 0; font-size: 13px; letter-spacing: .08em; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); font: inherit; background: var(--ivory); color: var(--ink); }
.checkout input:focus, .checkout textarea:focus, .pd select:focus { outline: 1px solid var(--plum); outline-offset: 0; }
.checkout fieldset { border: 0; padding: 0; margin: 12px 0; font-size: 13px; }
.checkout legend { letter-spacing: .08em; margin-bottom: 6px; }
.checkout .inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 18px; }
.checkout .agree { display: flex; font-size: 12px; }
.checkout input[type=radio], .checkout input[type=checkbox] { accent-color: var(--plum); }
.hint { font-size: 12px; color: var(--muted); text-align: center; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }

/* 內頁 */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { font-size: 34px; color: var(--plum-ink); margin-bottom: 16px; }
.page h2 { margin-top: 40px; font-size: 20px; color: var(--plum); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .senses { grid-template-columns: repeat(2, 1fr); }
  .film-grid { grid-template-columns: repeat(2, 1fr); }
  .story-copy { padding: 64px 40px; }
}
@media (max-width: 720px) {
  .top { padding: 12px 16px; gap: 12px; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .emblem { width: 32px; height: 32px; }
  .wordmark { width: 104px; height: 20px; }
  .hero { grid-template-columns: 1fr; padding: 40px 16px 32px; gap: 40px; }
  .hero-art { order: -1; margin: 0 14px; }
  .hero-art img { aspect-ratio: 1 / 1.05; }
  .lede br { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; row-gap: 20px; }
  .pillars div:nth-child(2) { border-right: 0; }
  .section { padding: 64px 16px; }
  .section-head { margin-bottom: 32px; }
  .senses { grid-template-columns: 1fr; gap: 16px; }
  .glyph { font-size: 56px; }
  .subfilters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 28px; }
  .subfilters button { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .card h3 { font-size: 15px; }
  .filters { gap: 0 18px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; }
  .filters button { white-space: nowrap; }
  .story { grid-template-columns: 1fr; }
  .story-art img { min-height: 0; aspect-ratio: 4 / 3; }
  .story-copy { padding: 48px 20px; }
  .films { padding: 64px 16px; }
  .film-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .film .cap { left: 12px; right: 12px; bottom: 10px; }
  .film .cap h3 { font-size: 16px; letter-spacing: .1em; }
  .film .cap button { display: none; }
  .foot { padding: 56px 20px 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; font-size: 12px; }
  .pd { grid-template-columns: 1fr; max-height: calc(100% - 24px); }
  .pd-info { padding: 24px 20px 32px; }
}

/* 香氛故事區：大圖＋疊放的米色文字卡 */
.feature { position: relative; max-width: 1240px; margin: 0 auto; padding: 24px 48px 96px; display: grid; grid-template-columns: 7fr 5fr; align-items: center; }
.feature-art img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.feature-card { background: var(--pearl); border: 1px solid var(--line); padding: 48px 44px; margin-left: -96px; position: relative; box-shadow: 0 30px 60px -36px rgba(46, 26, 38, .35); }
.feature-card h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.5; color: var(--plum-ink); margin-bottom: 16px; }
.feature-card > p:not(.kicker) { color: var(--muted); margin: 0 0 20px; }
.notes { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.notes li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.notes span { font-family: var(--serif); color: var(--ink); font-size: 15px; letter-spacing: .1em; }
.feature-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.soon-note, .chip-soon { font-size: 12px; letter-spacing: .15em; color: var(--wood); border: 1px dashed var(--wood); padding: 3px 10px; }
.chip-soon { letter-spacing: .08em; }

/* 分頁 */
.tabs { display: flex; justify-content: center; gap: 36px; margin: -16px 0 40px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; font: inherit; font-size: 14px; letter-spacing: .15em; color: var(--muted); padding: 10px 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* 快速加入購物車 */
.card { position: relative; }
.quick { position: absolute; right: 10px; top: calc((100% - 0px) * 0); margin-top: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(251, 248, 243, .92); color: var(--plum-ink); display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(46, 26, 38, .4); transition: background .2s, color .2s; }
.quick:hover { background: var(--plum); color: #fff; }

/* 搜尋與熱門關鍵字 */
.search { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.search input { width: 100%; padding: 13px 18px; border: 1px solid var(--line); background: var(--pearl); font: inherit; color: var(--ink); letter-spacing: .05em; }
.search input:focus { outline: 1px solid var(--plum); }
.keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.keywords button { border: 0; background: var(--mist); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 12px; letter-spacing: .08em; color: var(--ink); cursor: pointer; }
.keywords button.on, .keywords button:hover { background: var(--plum); color: #fff; }

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; padding: 0 0 64px; }
  .feature-card { margin: -48px 16px 0; padding: 28px 22px; }
  .tabs { gap: 20px; justify-content: flex-start; overflow-x: auto; margin-top: -8px; }
  .tabs button { white-space: nowrap; }
  .search { margin-bottom: 24px; }
}

/* 文化小誌（只介紹、不販售） */
.note-band { background: var(--mist); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.note-inner { max-width: 720px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.note-inner h2 { font-size: clamp(26px, 3vw, 34px); color: var(--plum-ink); margin-bottom: 18px; }
.note-inner p { color: var(--ink); margin: 0 auto 14px; }
.note-inner .fine { font-size: 13px; color: var(--wood); }
.note-inner .link { background: none; border: 0; border-bottom: 1px solid var(--gold); font: inherit; color: var(--plum); cursor: pointer; margin-top: 10px; padding: 0 0 2px; }
@media (max-width: 720px) { .note-inner { padding: 52px 20px; } }

.note-inner { max-width: 1000px; }
.note-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 24px; text-align: left; }
.note-card { background: var(--pearl); border: 1px solid var(--line); padding: 32px 30px 28px; }
.note-card .en { font-family: var(--serif-en); font-style: italic; color: var(--gold); margin: 0; font-size: 16px; }
.note-card h3 { font-size: 22px; color: var(--plum-ink); margin: 2px 0 12px; letter-spacing: .2em; }
.note-card p:not(.en) { font-size: 14px; color: var(--ink); margin: 0 0 14px; }
@media (max-width: 720px) { .note-cards { grid-template-columns: 1fr; gap: 14px; } .note-card { padding: 24px 20px; } }

/* 會員 */
.member-btn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; letter-spacing: .08em; }
.member-btn span { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 0; padding: 40px 36px 32px; background: var(--pearl); color: var(--ink); overflow: auto; }
.mb::backdrop { background: rgba(43, 20, 36, .55); backdrop-filter: blur(3px); }
.mb .close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.mb #mbGuest > .emblem { display: block; margin: 0 auto 18px; width: 48px; height: 48px; }
.mb-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.mb-tabs button { flex: 1; border: 0; background: none; padding: 10px 0; font: inherit; letter-spacing: .15em; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mb-tabs button.on { color: var(--plum); border-bottom-color: var(--plum); }
.mb-form label { display: block; margin: 12px 0; font-size: 13px; letter-spacing: .06em; }
.mb-form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); background: var(--ivory); font: inherit; color: var(--ink); }
.mb-form input:focus { outline: 1px solid var(--plum); }
.mb-form .inline { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.mb-form input[type=checkbox] { accent-color: var(--plum); margin-top: 3px; }
.mb-err { min-height: 1.4em; font-size: 13px; color: var(--plum); margin: 4px 0; }
.mb h2 { font-size: 22px; color: var(--plum-ink); margin-bottom: 8px; }
.mb-h3 { font-size: 16px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.order { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order div { display: flex; justify-content: space-between; gap: 8px; }
.order small { display: block; color: var(--muted); }
.st { font-size: 12px; padding: 1px 8px; border: 1px solid currentColor; }
.st-paid { color: #3c7a52; } .st-pending { color: var(--wood); } .st-failed { color: var(--plum); }
.mb .link { background: none; border: 0; border-bottom: 1px solid var(--gold); font: inherit; color: var(--muted); cursor: pointer; margin-top: 18px; padding: 0; }
.need-login { padding: 18px 0 4px; border-top: 1px solid var(--line); text-align: center; }
.need-login p { margin: 0 0 8px; font-size: 14px; }
.need-login .perks { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.need-login .btn { margin-bottom: 10px; }
.who { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 720px) {
  .member-btn { margin-left: auto; }
  .member-btn span { display: none; }
  .cart-btn { margin-left: 4px; }
  .mb { padding: 36px 22px 26px; }
}

/* 庫存狀態、預購、預計到貨 */
.card .state { position: absolute; bottom: 10px; left: 10px; font-size: 12px; letter-spacing: .15em; padding: 3px 10px; background: var(--pearl); }
.state-preorder { color: var(--wood); }
.state-soldout { color: var(--muted); }
.card.soldout .ph img { filter: grayscale(.7); opacity: .7; }
.pd-status { font-size: 13px; margin: -4px 0 14px; padding: 8px 12px; background: var(--mist); }
.pd-status.state-stock { color: #3c7a52; }
.pd-status.state-preorder { color: var(--wood); }
.tag { font-size: 11px; padding: 0 6px; border: 1px solid currentColor; margin-left: 4px; white-space: nowrap; }
.tag-stock { color: #3c7a52; } .tag-preorder { color: var(--wood); }
.sum .dep { font-size: 13px; color: var(--wood); }
.sum .dep.strong { font-weight: 500; color: var(--plum); font-size: 15px; }
.eta { font-size: 13px; color: #3c7a52; background: var(--mist); padding: 8px 12px; margin: 10px 0 0; }
.eta small { color: var(--muted); font-size: 11px; }
.btn.small { padding: 6px 14px; font-size: 12px; margin-top: 6px; }

/* 語言切換 */
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); padding: 2px; }
.lang-switch button { border: 0; background: none; font: inherit; font-size: 12px; padding: 3px 8px; cursor: pointer; color: var(--muted); letter-spacing: .05em; }
.lang-switch button.on { background: var(--plum); color: #fff; }
@media (max-width: 720px) { .lang-switch { margin-left: auto; } .lang-switch button { padding: 3px 6px; } .member-btn { margin-left: 4px; } }
html[lang="en"] .hero h1 { letter-spacing: .02em; }
html[lang="en"] .section-head h2, html[lang="en"] .story-copy h2 { letter-spacing: .03em; }

/* 會員價與點數 */
.card .mprice { display: block; font-size: 12px; color: var(--plum); letter-spacing: .05em; }
.pd-price .mprice { font-family: var(--sans); font-size: 14px; color: var(--plum); margin-left: 8px; }
.sum .member-line { color: var(--plum); }
.earn { font-size: 12px; color: var(--plum); margin: 6px 0 0; text-align: right; }
#pointsField small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.points-card { margin: 14px 0 6px; padding: 14px 16px; background: var(--plum-soft); display: grid; gap: 2px; }
.points-card span { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.points-card b { font-family: var(--serif); font-size: 22px; color: var(--plum); font-weight: 500; }
.points-card small { font-size: 11px; color: var(--muted); }
.points-log { list-style: none; padding: 0; margin: 0 0 8px; font-size: 12px; }
.points-log li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.points-log .plus { color: #3c7a52; } .points-log .minus { color: var(--plum); }

/* SoulKey 標誌 */
.sk-mark { display: inline-block; width: 40px; height: 40px; background: url(img/soulkey-mark.svg) center / contain no-repeat; flex: none; }
.sk-mark.large { width: 84px; height: 84px; }
.sk-word { display: flex; flex-direction: column; line-height: 1.1; }
.sk-word b { font-family: var(--display-en); font-weight: 600; font-size: 20px; letter-spacing: .14em; color: var(--ink); }
.sk-word small { font-size: 11px; letter-spacing: .3em; color: var(--gold); margin-top: 3px; }
.hero h1 .h1-en { display: block; font-family: var(--display-en); font-size: .36em; letter-spacing: .28em; color: var(--gold); margin-top: 10px; font-weight: 400; }
.hero-tag { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; color: var(--ink); margin: 0 0 14px; }
.story { background: var(--plum-deep); }
.story-copy .sk-mark { margin-bottom: 20px; }
.family { list-style: none; padding: 0; margin: 4px 0 8px; max-width: 460px; }
.family li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(232, 214, 168, .22); font-size: 14px; }
.family b { font-weight: 500; color: var(--gold-soft); }
.family span { color: rgba(255, 255, 255, .78); }
.link.light { color: var(--gold-soft); margin-top: 14px; display: inline-block; }
.foot-brand .sk-mark { display: block; margin: 0 auto 12px; }
.foot-name { font-family: var(--serif); color: #fff; letter-spacing: .15em; margin: 0; }
/* GRSGCO 真絲：品牌中的品牌，保留自己的梅紫標誌 */
.grsgco { background: #F7EEF2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grsgco-inner { max-width: 1040px; margin: 0 auto; padding: 64px 48px; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.grsgco-brand { text-align: center; }
.grsgco .emblem { width: 96px; height: 96px; background: var(--grsgco); display: block; margin: 0 auto 14px; }
.grsgco .wordmark { width: 200px; height: 38px; background: var(--grsgco); -webkit-mask-position: center; mask-position: center; }
.g-tag { font-family: var(--serif-en); font-style: italic; color: var(--grsgco); margin: 8px 0 0; font-size: 15px; }
.grsgco-copy h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--plum-ink); margin-bottom: 14px; }
.grsgco-copy p:not(.kicker) { color: var(--ink); max-width: 520px; }
.grsgco-copy .kicker { color: var(--grsgco); }
.grsgco-btn { background: var(--grsgco); border-color: var(--grsgco); margin-top: 8px; }
.grsgco-btn:hover { background: #7a1f50; border-color: #7a1f50; }
.card .badge { color: var(--grsgco); }
@media (max-width: 720px) {
  .sk-mark { width: 32px; height: 32px; }
  .sk-word b { font-size: 16px; }
  .sk-word small { font-size: 10px; letter-spacing: .2em; }
  .grsgco-inner { grid-template-columns: 1fr; padding: 48px 20px; gap: 24px; }
  .family li { grid-template-columns: 1fr; gap: 0; }
}

/* 頁首：SoulKey 標誌較寬，中等寬度時收起導覽列，避免擠成直排 */
.nav a, .sk-word small, .member-btn span { white-space: nowrap; }
.top { gap: 24px; }
@media (max-width: 1080px) { .nav { display: none; } .lang-switch { margin-left: auto; } }

/* 品牌故事延伸：GRSGCO 緊接在品牌故事之後 */
.story-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.story-links .link.light { margin-top: 0; }
.grsgco { border-top: 0; }
.soul-colors { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 4px 0 14px; }
.soul-colors li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .12); display: grid; place-items: center; font-family: var(--serif-en); font-size: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.fine-g { font-size: 13px; color: var(--muted); }
