:root {
  --ink: #111111;
  --muted: #8a8580;
  --line: #e6e3df;
  --paper: #ffffff;
  --stone: #f4f2ef;
  --sans: "Jost", "Noto Sans TC", system-ui, sans-serif;
  --tc: "Noto Sans TC", "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main:focus { outline: none; }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink); color: #fff;
  font-family: var(--tc); font-size: 11px; letter-spacing: .12em;
  text-align: center; padding: 8px var(--gutter);
}
.announce:empty { display: none; }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--gutter);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 20px; font-weight: 400; letter-spacing: .24em;
  padding-left: .24em; /* 平衡字距讓視覺置中 */
  text-transform: uppercase;
}
.nav { display: flex; gap: 28px; }
.nav-right { justify-content: flex-end; }
.nav a {
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px;
  position: relative; padding: 4px 0;
}
.nav a::after, .link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 28px; height: 28px; position: relative; }
.menu-toggle span {
  position: absolute; left: 3px; right: 3px; height: 1px; background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:first-child { top: 10px; }
.menu-toggle span:last-child { top: 17px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 14px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 14px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 60px 0 0 0; z-index: 19; background: var(--paper);
  display: flex; flex-direction: column; padding: 32px var(--gutter); gap: 22px;
}
.drawer[hidden] { display: none; }
.drawer a { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; font-weight: 300; }

/* ---------- home: hero ---------- */
.hero {
  position: relative; aspect-ratio: 1440 / 812; max-width: 100%; /* 櫥窗照原始比例，整張顯示不裁切 */
  overflow: hidden; background: var(--stone);
}
.hero img { object-position: 50% 45%; transform: scale(1.02); animation: settle 1.6s ease forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 6vw, 72px);
  color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,.25);
}
.hero-copy .eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.hero-copy h1 {
  font-weight: 300; font-size: clamp(36px, 6vw, 84px); letter-spacing: .06em;
  line-height: 1.05; margin: 10px 0 22px; text-transform: uppercase;
}

.link-line {
  position: relative; display: inline-block; padding-bottom: 3px;
  text-transform: uppercase; letter-spacing: .18em; font-size: 11px;
}
.link-line::after { transform: scaleX(1); }
.link-line:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- home: 看商品 ---------- */
.cta {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center;
  border-bottom: 1px solid var(--line);
}
.cta-eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.cta-lead {
  max-width: 38em; font-family: var(--tc); font-weight: 300; font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1; letter-spacing: .06em; color: #3d3a37; text-wrap: pretty;
}
.cta-btn { min-width: min(320px, 100%); padding: 18px 28px; }
.cta-count { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- home: 個人介紹 ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.intro-media { aspect-ratio: 4 / 5; max-width: 100%; max-height: calc(100svh - 105px); overflow: hidden; background: var(--stone); }
.intro-media img { object-position: 50% 30%; }
.intro-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 6vw, 96px); min-width: 0;
}
.intro-title { font-weight: 300; font-size: clamp(32px, 4.4vw, 60px); letter-spacing: .08em; line-height: 1.1; text-wrap: balance; }
.intro .cta-lead { max-width: 30em; }

/* ---------- home: 到貨日誌 ---------- */
.journal { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.journal-title { font-weight: 300; text-transform: uppercase; letter-spacing: .2em; font-size: 15px; margin-bottom: 8px; }
.drop { padding: 36px 0 56px; border-top: 1px solid var(--line); }
.drop:first-of-type { border-top: 0; }
.drop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 24px; }
.drop-date { font-size: 28px; font-weight: 300; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.drop-head h2 { font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.drop-count { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; flex: 1; }
.drop .grid { padding: 0; }
.disclaimer { margin-top: 40px; max-width: 46em; font-family: var(--tc); font-size: 11px; font-weight: 300; line-height: 1.8; color: var(--muted); }

/* ---------- home: 新光三越活動 ---------- */
.event-list { border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .35s ease;
}
.event:hover { padding-left: 10px; }
.event-date { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-title {
  font-family: var(--tc); font-size: 16px; font-weight: 400; letter-spacing: .04em; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.events-updated {
  display: block; margin-top: 6px; font-size: 10px; letter-spacing: .14em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.event-note { grid-column: 2; font-family: var(--tc); font-size: 12px; font-weight: 300; color: var(--muted); }
.event-arrow { grid-column: 3; grid-row: 1; font-size: 14px; }

/* ---------- home: brand banners ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.banner { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.banner img { transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.banner:hover img { transform: scale(1.04); }
.banner-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px var(--gutter);
  color: #fff; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(transparent, rgba(0,0,0,.3));
}
.banner-copy h2 { font-weight: 300; font-size: clamp(24px, 3vw, 40px); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- section headings ---------- */
.section { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px; gap: 16px;
}
.section-head h2, .page-title {
  font-weight: 300; text-transform: uppercase; letter-spacing: .2em; font-size: 15px;
}
.page-head { padding: 56px var(--gutter) 28px; text-align: center; }
.page-head .count { color: var(--muted); font-size: 11px; letter-spacing: .14em; margin-top: 8px; }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  padding: 0 var(--gutter) 40px;
}
.filters button {
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px;
  color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color .2s ease;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px 16px; padding: 0 var(--gutter) 96px;
}
.section .grid { padding: 0; }
.card { display: block; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.card-media img { transition: transform .9s cubic-bezier(.2,.6,.2,1), opacity .4s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: #fff;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px;
}
.card-body { padding-top: 14px; display: grid; gap: 2px; }
.card-brand { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.card-name { font-family: var(--tc); font-weight: 300; color: #3d3a37; }
.card-price { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.card.is-sold .card-media img { opacity: .55; }

.empty { text-align: center; color: var(--muted); padding: 80px var(--gutter) 140px; font-family: var(--tc); }

/* ---------- brands index ---------- */
.brand-list { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.brand-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s ease;
}
.brand-row:first-child { border-top: 1px solid var(--line); }
.brand-row:hover { padding-left: 12px; }
.brand-row h3 { font-weight: 300; font-size: clamp(22px, 3vw, 34px); letter-spacing: .1em; text-transform: uppercase; }
.brand-row span { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- product detail ---------- */
.crumbs {
  padding: 22px var(--gutter); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 80px); padding: 0 var(--gutter) 96px; }
.pdp-media { aspect-ratio: 3 / 4; background: var(--stone); overflow: hidden; }
.pdp-info { position: sticky; top: 104px; align-self: start; padding-top: 12px; max-width: 440px; }
.pdp-brand { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; }
.pdp-name { font-family: var(--tc); font-weight: 300; font-size: 24px; margin: 8px 0 14px; letter-spacing: .04em; }
.pdp-price { font-size: 15px; letter-spacing: .06em; }
.pdp-status { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-desc { font-family: var(--tc); font-weight: 300; color: #3d3a37; margin-top: 28px; white-space: pre-line; }
.pdp-actions { display: grid; gap: 10px; margin-top: 28px; }
.btn {
  display: block; text-align: center; padding: 15px 20px;
  text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  border: 1px solid var(--ink); transition: background .25s ease, color .25s ease;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.details { margin-top: 36px; border-top: 1px solid var(--line); }
.details div {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 12px;
}
.details dt { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.more { padding: 0 var(--gutter) 96px; }
.more .grid { padding: 0; }

.line-card { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.line-card img { width: 88px; height: 88px; flex: none; }
.line-card p { font-family: var(--tc); font-size: 12px; font-weight: 300; color: #3d3a37; line-height: 1.8; }
.footer-qr { width: 96px; height: 96px; margin-top: 10px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.about-media { background: var(--stone); }
.about-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 6vw, 96px); gap: 22px; }
.about-copy p { font-family: var(--tc); font-weight: 300; font-size: 15px; line-height: 2; color: #3d3a37; }

/* ---------- footer: 店鋪資訊 + 聯絡 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer { background: var(--stone); border-top: 0; }
.visit { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.visit-name { font-family: var(--tc); font-size: 18px; font-weight: 400; letter-spacing: .06em; }
.visit-addr { font-family: var(--tc); font-size: 13px; font-weight: 300; color: #3d3a37; margin-top: 6px; white-space: pre-line; line-height: 1.8; }
.hours { margin-top: 28px; max-width: 340px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; }
.hours dd:first-child { color: var(--muted); letter-spacing: .08em; }
.visit-contact .footer-qr { width: 120px; height: 120px; margin: 0; background: #fff; padding: 6px; }
.visit-note { font-family: var(--tc); font-size: 12px; font-weight: 300; color: #3d3a37; line-height: 1.8; margin: 12px 0 14px; }
.visit-btn { display: inline-block; padding: 12px 22px; }
.visit-shop a { display: block; font-size: 12px; color: #3d3a37; padding: 3px 0; }
.visit-shop a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; font-size: 12px; color: #3d3a37; padding: 3px 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-logo { letter-spacing: .42em; font-size: 16px; text-transform: uppercase; }
.footer-tag { color: var(--muted); font-size: 12px; margin-top: 8px; }
.footer-h { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; margin-bottom: 12px; }
.copyright { margin-top: 56px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }

/* ---------- page transition ---------- */
.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .header { height: 60px; grid-template-columns: 40px 1fr 40px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .logo { justify-self: center; font-size: 16px; letter-spacing: .24em; padding-left: .24em; white-space: nowrap; }
  .hero { height: auto; min-height: 0; }
  .banners { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; }
  .intro-media { max-height: none; }
  .copyright { margin-top: 24px; }
  .event { grid-template-columns: 1fr auto; }
  .event-date { grid-column: 1; }
  .event-title, .event-note { grid-column: 1; }
  .event-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 10px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; max-width: none; }
  .about { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
