/* Xtoryline Shop v2 — minimal, buy-first · elegant motion */
:root {
  --bg: #f7f4ef;
  --bg-2: #efe9e0;
  --ink: #161412;
  --muted: rgba(22, 20, 18, 0.62);
  --line: rgba(22, 20, 18, 0.12);
  --card: #fffdf9;
  --accent: #1c1917;
  --ok: #2f6b4f;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --pad: clamp(20px, 4vw, 40px);
  --max: 1120px;
  --font: "Noto Sans TC", "Inter", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Spectral", "Songti TC", "PingFang TC", Georgia, serif;
  --poetic: "Noto Serif TC", "Spectral", "Songti TC", Georgia, serif;
  --shadow: 0 18px 40px rgba(22, 20, 18, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.45s;
  --dur-fast: 0.22s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--dur-fast) var(--ease); }
button {
  font: inherit; cursor: pointer; border: 0; background: none; color: inherit;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: #000; color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(22, 20, 18, 0.04);
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { justify-self: start; display: flex; align-items: center; }
.logo img { height: 28px; width: auto; }
.nav {
  display: flex; gap: 28px; justify-content: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
}
.nav a {
  opacity: 0.72;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-right {
  justify-self: end;
  display: flex; align-items: center; gap: 16px;
}
.lang, .bag {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  opacity: 0.8;
}
.bag { display: inline-flex; gap: 6px; align-items: center; }
.bag-count {
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  transition: transform var(--dur-fast) var(--ease);
}
.bag-count.is-pop {
  animation: bagPop 0.45s var(--ease-out);
}
@keyframes bagPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Focus for keyboard / a11y */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn:focus-visible,
.chip:focus-visible,
.path-card:focus-visible {
  outline-offset: 3px;
}

img {
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
img.is-loaded,
img[src*="logo"],
.logo img {
  opacity: 1;
}
.card.is-sold .card-media img {
  filter: grayscale(0.35) brightness(0.92);
}
.card.is-sold .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 249, 0.08);
  pointer-events: none;
}

/* Main + page enter */
#main { min-height: 70vh; }
.page-enter {
  animation: pageIn var(--dur) var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
  padding: clamp(48px, 10vw, 96px) var(--pad) clamp(28px, 5vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 14ch;
  color: var(--ink);
}
.hero-anchor {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  max-width: 28em;
  margin: 0 0 14px;
  opacity: 0.88;
}
.hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 38ch; margin: 0 0 28px; line-height: 1.55;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 8px;
}
.hero-anchor + .hero-actions {
  margin-top: 22px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98) translateY(0); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.92; box-shadow: 0 10px 24px rgba(22,20,18,0.12); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(22,20,18,0.32); background: rgba(255,253,249,0.6); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Paths */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
}
.path-card {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 22px 20px;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.path-card:hover,
.path-card.reveal.is-in:hover {
  background: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.path-card .go {
  transition: transform var(--dur) var(--ease);
}
.path-card:hover .go { transform: translateX(4px); }
.path-card h3 {
  font-family: var(--serif);
  font-weight: 500; font-size: 22px; margin: 0 0 8px;
}
.path-card p { margin: 0; font-size: 14px; color: var(--muted); }
.path-card .go {
  margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  display: inline-block;
}

/* Section */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad) 64px;
}
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500; font-size: 28px; margin: 0;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.chip {
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip:hover { border-color: rgba(22,20,18,0.28); color: var(--ink); }
.chip.is-on {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* Shelf sections on home */
.shelf { margin-bottom: 48px; }
.shelf-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 16px;
}
.shelf-head h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500; margin: 0;
  letter-spacing: -0.02em;
}
.shelf-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* Product grid — equal columns + equal card height */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 800px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  opacity: 0;
  animation: riseIn var(--dur) var(--ease-out) forwards;
}
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(n+7) { animation-delay: 0.28s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover,
.card.reveal.is-in:hover {
  border-color: rgba(22,20,18,0.2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  flex: 0 0 auto;
  background: var(--bg-2);
  overflow: hidden;
  cursor: zoom-in;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
/* same frame for digital / every category */
.card-media-digital {
  background: #f3efe7;
}
.card-media-digital img {
  object-fit: cover;
  object-position: center 42%;
}
.card-body {
  padding: 14px 14px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  min-height: 1.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.22;
  min-height: 2.44em; /* always 2 lines of space */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
}
.card-title a {
  display: block;
}
.card-price {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
  min-height: 1.25em;
}
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.card-actions .btn {
  min-height: 42px;
  flex: 1;
  font-size: 13px;
  padding: 0 12px;
}
.sold-word {
  color: #c62828;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.print-soon-banner {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  background: var(--panel-2);
  border-radius: 12px;
}
.print-soon-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.print-soon-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.card-badge-soon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(247, 244, 239, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.card.is-soon .card-media {
  position: relative;
}
.card.is-soon .card-actions .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.price-soon {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.soon-word {
  color: #8a857c;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card.is-soon .card-media img {
  filter: grayscale(0.15) brightness(1.02);
}
.card-media { position: relative; }
/* Sold: keep Add label, grey disabled only */
.card.is-sold .btn-primary:disabled,
.btn-primary:disabled {
  opacity: 1;
  background: #d4d0c8;
  color: #8a857c;
  border-color: #d4d0c8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.pdp-kicker .sold-word,
.pdp .sold-word {
  color: #c62828;
  font-weight: 600;
}

/* Product detail */
.pdp {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad) 72px;
  display: grid;
  gap: 28px;
}
@media (min-width: 880px) {
  .pdp { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
}
.pdp-media {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.pdp-media:hover { box-shadow: var(--shadow); }
.pdp-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.pdp-media:hover img { transform: scale(1.02); }
.pdp-gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px;
}
.pdp-gallery-thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.58;
  padding: 0;
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.pdp-gallery-thumb:hover,
.pdp-gallery-thumb.is-selected {
  border-color: var(--ink);
  opacity: 1;
}
.pdp-gallery-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.pdp-media-digital {
  background: #0a0a0a;
  aspect-ratio: 4/5;
}
.pdp-media-digital img {
  object-fit: contain;
  transition: opacity 0.25s var(--ease), transform 0.8s var(--ease);
}
/* —— Lock Screen Stories (polished) —— */
.lock-pack {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--pad) 88px;
}
.lock-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .lock-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

.lock-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(255,255,255,0.55) 0%, transparent 70%),
    linear-gradient(165deg, #ebe4d8 0%, #f7f4ef 45%, #e5ddd0 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lock-stage::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,20,18,0.06) 0%, transparent 70%);
  top: 12%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

/* Left mini previews · phone true center (matches swipe/dots column) */
.lock-stage-row {
  position: relative;
  z-index: 1;
  display: grid;
  /* equal side gutters: left rail + empty right so phone sits center */
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.lock-stories {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  max-height: min(480px, 68vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.lock-stories::-webkit-scrollbar {
  display: none;
}

.phone-wrap {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  animation: phoneFloat 5.5s var(--ease) infinite alternate;
}
@keyframes phoneFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.phone {
  width: min(270px, 68vw);
  position: relative;
}
.phone-bezel {
  background: linear-gradient(160deg, #2a2622 0%, #141210 55%, #1c1917 100%);
  border-radius: 40px;
  padding: 11px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 32px 60px rgba(22, 20, 18, 0.22),
    0 8px 20px rgba(22, 20, 18, 0.1);
}
.phone-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background: #0a0908;
  border-radius: 14px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9/19.5;
  border-radius: 30px;
  overflow: hidden;
  background: #0d0c0b;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transition: opacity 0.4s var(--ease), transform 0.9s var(--ease), object-position 0.4s var(--ease);
  will-change: opacity, transform;
}
.phone-screen img.is-swap {
  opacity: 0;
}
.phone-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 42%),
    linear-gradient(0deg, rgba(0,0,0,0.45) 0%, transparent 32%);
}
.phone-status {
  position: absolute;
  top: 12px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.phone-time {
  margin: 36px 0 0;
  font-size: clamp(48px, 11vw, 58px);
  font-weight: 200;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
  font-family: var(--font);
  line-height: 1;
  z-index: 2;
}
.phone-home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.55);
}

.lock-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  z-index: 1;
  width: 100%;
  max-width: 360px;
}
.lock-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0;
  z-index: 1;
}
.lock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  background: rgba(22,20,18,0.18);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
}
.lock-dot.is-on {
  background: var(--ink);
  width: 18px;
  border-radius: 4px;
}

.lock-nav {
  display: flex;
  gap: 10px;
  margin: 0;
  z-index: 1;
}
.lock-nav button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255,253,249,0.85);
  border-radius: var(--radius-pill);
  font-size: 16px;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lock-nav button:hover {
  border-color: rgba(22,20,18,0.28);
  transform: translateY(-1px);
}

.lock-hint {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  z-index: 1;
  width: 100%;
}
.lock-story {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  background: #111;
  overflow: hidden;
  width: 34px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 5px;
  opacity: 0.7;
  box-shadow: 0 1px 4px rgba(22,20,18,0.08);
  transition: opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.lock-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
/* labels hide on mini rail — title via title attr / phone */
.lock-story span {
  display: none;
}
.lock-story:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 3px 8px rgba(22,20,18,0.12);
}
.lock-story:hover img { transform: scale(1.06); }
.lock-story.is-on {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.lock-more {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  z-index: 1;
}

.lock-copy {
  padding: 8px 0 0;
}
.lock-copy .pdp-kicker {
  margin-bottom: 12px;
}
.lock-copy h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.12;
}
.lock-copy .pdp-price {
  font-size: 20px;
  margin-bottom: 14px;
}
.lock-copy .pdp-story {
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 22px;
}
.lock-copy .digital-includes {
  margin-bottom: 18px;
  transition: border-color var(--dur) var(--ease);
}
.lock-copy .digital-includes:hover {
  border-color: rgba(22,20,18,0.2);
}
.lock-copy .pdp-cta {
  max-width: 100%;
  margin-top: 8px;
}
.lock-copy .pdp-facts {
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .phone-wrap { animation: none; }
}

.digital-includes {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.digital-includes h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.digital-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.digital-includes li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.digital-includes li:last-child { border-bottom: 0; }
.digital-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.55;
}
.pdp-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.pdp h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500; margin: 0 0 10px; letter-spacing: -0.03em;
}
.pdp-price { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.pdp-story { color: var(--muted); margin: 0 0 18px; max-width: 40ch; }
.pdp-facts {
  list-style: none; padding: 0; margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.pdp-facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pdp-facts span:first-child { color: var(--muted); }
.pdp-size-picker {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}
.pdp-size-picker legend {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.pdp-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp-size {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  min-height: 44px;
  min-width: 52px;
  padding: 0 14px;
}
.pdp-size:hover,
.pdp-size.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pdp-cta { display: grid; gap: 10px; max-width: 360px; }
.pdp-help {
  font-size: 13px; color: var(--muted); margin: 8px 0 0;
}
.back {
  display: inline-flex; margin-bottom: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.back:hover { color: var(--ink); }

/* Custom / About */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}
.page.about-page {
  max-width: var(--max);
}
.page h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.page p { color: var(--muted); margin: 0 0 14px; }

.about-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 48px;
    align-items: center;
  }
}
.about-photo {
  margin: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.about-copy {
  max-width: 560px;
}
.about-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.about-copy p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: rgba(22, 20, 18, 0.78);
}

/* About story — elegant word / character type reveal */
.about-copy .about-type-line {
  /* reserve layout so page doesn’t jump while typing */
}
.about-copy .type-token {
  display: inline;
  opacity: 0;
  transform: translateY(0.06em);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.about-copy .type-token.is-in {
  opacity: 1;
  transform: translateY(0);
}
.about-copy .type-token.is-space {
  white-space: pre-wrap;
}
.about-copy h1 .type-token {
  color: inherit;
}
.about-copy .about-eyebrow .type-token {
  color: inherit;
}
/* CTAs wait until story finishes typing (overrides .reveal.is-in) */
.about-copy .about-copy-actions.reveal,
.about-copy .about-copy-actions.reveal.is-in {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.about-copy.is-typed .about-copy-actions.reveal,
.about-copy.is-typed .about-copy-actions.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .about-copy .type-token {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .about-copy .about-copy-actions.reveal,
  .about-copy .about-copy-actions.reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
.about-gallery-block {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-gallery-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .about-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .about-gallery-item.is-wide {
    grid-column: span 2;
  }
}
.about-gallery-item {
  margin: 0;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}
.about-gallery-item.is-wide {
  aspect-ratio: 4 / 3;
}
.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.about-gallery-item:hover img {
  transform: scale(1.04);
}

/* Route progress */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 80;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.route-progress.is-run {
  opacity: 1;
  animation: routeBar 0.48s var(--ease-out) forwards;
}
@keyframes routeBar {
  0% { width: 0; opacity: 1; }
  70% { width: 85%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* Scroll reveal — section / item / card */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children via CSS custom property */
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }
.reveal-delay-6 { transition-delay: 0.36s; }
.reveal-delay-7 { transition-delay: 0.42s; }
.reveal-delay-8 { transition-delay: 0.48s; }
.reveal-delay-9 { transition-delay: 0.54s; }
.reveal-delay-10 { transition-delay: 0.6s; }
.reveal-delay-11 { transition-delay: 0.66s; }
.reveal-delay-12 { transition-delay: 0.72s; }

/* Cards: disable old riseIn when using scroll reveal */
.card.reveal {
  animation: none;
  opacity: 0;
}
.card.reveal.is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}
.shop-empty .btn {
  margin-top: 14px;
}

.custom-form {
  margin-top: 28px;
  max-width: 440px;
}
.custom-form label {
  display: block;
  margin-top: 4px;
}
.custom-form .btn {
  margin-top: 10px;
}
.steps {
  margin: 28px 0;
  display: grid; gap: 12px;
}
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px;
  padding: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-n {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
}
.step h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; }

.form {
  display: grid; gap: 12px; margin-top: 24px;
}
.form label { font-size: 13px; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }

/* Bag drawer */
.drawer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(22,20,18,0);
  display: flex; justify-content: flex-end;
  transition: background var(--dur) var(--ease);
  pointer-events: none;
}
.drawer.is-open {
  background: rgba(22,20,18,0.28);
  pointer-events: auto;
}
.drawer[hidden] { display: none; }
.drawer-panel {
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0;
}
.icon-btn { font-size: 28px; line-height: 1; opacity: 0.6; padding: 4px 8px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 18px; }
.drawer-foot { padding: 16px 18px 24px; border-top: 1px solid var(--line); }
.bag-empty { color: var(--muted); font-size: 14px; padding: 24px 0; }
.bag-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.bag-row img {
  width: 64px; height: 80px; object-fit: cover; background: var(--bg-2);
  border-radius: 0;
}
.bag-row h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.bag-row p { margin: 0; font-size: 13px; color: var(--muted); }
.bag-row .bag-options { font-size: 12px; margin-top: 3px; }
.bag-total {
  display: flex; justify-content: space-between;
  font-weight: 600; margin-bottom: 12px;
}
.bag-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; font-size: 13px; font-weight: 500;
  border-radius: var(--radius-pill); z-index: 60;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(22,20,18,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner {
  max-width: min(920px, 100%);
  max-height: 90vh;
  transform: scale(0.96) translateY(10px);
  transition: transform var(--dur) var(--ease-out);
}
.lightbox.is-open .lightbox-inner {
  transform: scale(1) translateY(0);
}
.lightbox-inner img {
  max-height: 88vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 32px; color: #fff; opacity: 0.85;
  line-height: 1; padding: 8px;
}
.lightbox-close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .page-enter, .card { animation: none; opacity: 1; transform: none; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad) 48px;
  margin-top: 24px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-mark { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; }
.footer-line { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.footer-markets { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 18px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.footer-note { font-size: 12px; color: var(--muted); margin: 0; }

/* TW Chinese readability */
/* 文青：中文用宋體系詩意字 */
html[lang="zh-Hant"] body {
  font-size: 16px;
  letter-spacing: 0.02em;
  font-family: var(--poetic);
}
html[lang="zh-Hant"] .hero h1,
html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3,
html[lang="zh-Hant"] .card-title,
html[lang="zh-Hant"] .path-card h3,
html[lang="zh-Hant"] .hero-anchor,
html[lang="zh-Hant"] .about-copy p,
html[lang="zh-Hant"] .pdp-story,
html[lang="zh-Hant"] .footer-line {
  font-family: var(--poetic);
  letter-spacing: 0.04em;
}
html[lang="zh-Hant"] .hero h1 {
  max-width: 12em;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #0c0b0a;
  opacity: 1;
}
/* ZH: sub softer so title reads stronger */
html[lang="zh-Hant"] .hero-anchor {
  color: var(--muted);
  opacity: 1;
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  letter-spacing: 0.03em;
}
/* UI / buttons stay clear sans */
html[lang="zh-Hant"] .btn,
html[lang="zh-Hant"] .chip,
html[lang="zh-Hant"] .nav,
html[lang="zh-Hant"] .mobile-tab,
html[lang="zh-Hant"] .card-meta,
html[lang="zh-Hant"] .bag,
html[lang="zh-Hant"] .lang,
html[lang="zh-Hant"] .form input,
html[lang="zh-Hant"] .form textarea,
html[lang="zh-Hant"] .form label {
  font-family: var(--font);
  letter-spacing: 0.04em;
}

/* ========== MOBILE POLISH ========== */
@media (max-width: 720px) {
  :root {
    --pad: 16px;
  }

  body {
    font-size: 15px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px var(--pad);
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .header .nav { display: none; }
  .logo img { height: 24px; }
  .header-right { gap: 12px; }
  .lang {
    min-width: 44px;
    min-height: 44px;
    font-size: 13px;
  }
  .bag {
    min-height: 44px;
    padding: 0 4px;
    font-size: 13px;
  }
  .bag-label {
    /* hide long word on narrow screens; count still visible */
    max-width: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Bottom tab bar */
  .mobile-tab {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: rgba(247, 244, 239, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-tab a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    opacity: 1;
    transition: color var(--dur-fast) var(--ease);
  }
  .mobile-tab a .tab-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.72;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .mobile-tab a .tab-ico svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .mobile-tab a.is-active {
    color: var(--ink);
  }
  .mobile-tab a.is-active .tab-ico {
    opacity: 1;
    transform: translateY(-1px);
  }

  /* Hero */
  .hero {
    padding: 28px var(--pad) 20px;
  }
  .hero-kicker {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    max-width: none;
    margin-bottom: 14px;
  }
  .hero-anchor {
    font-size: 15px;
    max-width: none;
    margin-bottom: 20px;
  }
  html[lang="zh-Hant"] .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    font-weight: 600;
  }
  html[lang="zh-Hant"] .hero-anchor {
    font-size: 14px;
    color: var(--muted);
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  /* Paths — stacked, full width */
  .paths {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 var(--pad) 28px;
  }
  .path-card {
    min-height: 0;
    padding: 18px 16px;
  }
  .path-card h3 {
    font-size: 20px;
  }
  .path-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  /* Sections */
  .section {
    padding: 4px var(--pad) 40px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head p {
    font-size: 13px;
  }
  .shelf {
    margin-bottom: 36px;
  }
  .shelf-head h3 {
    font-size: 18px;
  }
  .shelf-head p {
    font-size: 12px;
  }

  /* Filters — horizontal scroll */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin: 0 calc(-1 * var(--pad)) 16px;
    padding: 0 var(--pad) 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  /* Product grid — equal 2-col cells, equal card height */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-auto-rows: 1fr;
  }
  .card {
    height: 100%;
    min-width: 0;
  }
  .card-media {
    aspect-ratio: 4 / 5;
    width: 100%;
  }
  .card-media-digital,
  .card-media-digital img {
    object-fit: cover;
  }
  .card-body {
    padding: 10px 10px 12px;
    flex: 1 1 auto;
  }
  .card-meta {
    font-size: 10px;
    margin-bottom: 4px;
    min-height: 1.3em;
  }
  .card-title {
    font-size: 17px;
    line-height: 1.28;
    min-height: 2.56em; /* fixed 2 lines on mobile */
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .card-price {
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 1.2em;
  }
  .card-actions {
    margin-top: auto;
  }
  .card-actions .btn {
    min-height: 40px;
    width: 100%;
    font-size: 12px;
    padding: 0 8px;
    letter-spacing: 0.02em;
  }
  .sold-badge {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 10px;
  }

  /* PDP */
  .pdp {
    padding: 12px var(--pad) 48px;
    gap: 20px;
  }
  .pdp h1 {
    font-size: 28px;
  }
  .pdp-story {
    font-size: 15px;
    max-width: none;
  }
  .pdp-cta {
    max-width: none;
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, var(--bg) 28%);
    padding-top: 16px;
    padding-bottom: 8px;
    z-index: 5;
  }
  .pdp-cta .btn {
    min-height: 50px;
  }
  .back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    font-size: 14px;
  }

  /* Lock screen pack mobile */
  .lock-pack {
    padding: 12px var(--pad) 48px;
  }
  .lock-stage {
    padding: 16px 8px 14px;
    width: 100%;
  }
  .lock-stage-row {
    grid-template-columns: 36px 1fr 36px;
    gap: 0 6px;
    max-width: 300px;
  }
  .phone {
    width: min(230px, 62vw);
  }
  .phone-wrap {
    margin: 0;
  }
  .lock-stories {
    width: 30px;
    max-height: min(420px, 62vh);
    gap: 4px;
  }
  .lock-story {
    width: 28px;
    height: 38px;
    border-radius: 4px;
  }
  .lock-controls {
    max-width: 300px;
  }
  .lock-copy {
    padding: 4px 0 0;
  }
  .lock-copy h1 {
    font-size: 28px;
  }
  .lock-copy .pdp-story {
    font-size: 15px;
    max-width: none;
  }
  .lock-copy .pdp-cta {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, var(--bg) 30%);
    padding-top: 12px;
  }
  .lock-nav button {
    min-width: 48px;
    height: 44px;
  }

  /* About */
  .page {
    padding: 24px var(--pad) 48px;
  }
  .about-layout {
    gap: 20px;
  }
  .about-photo img {
    aspect-ratio: 1 / 1;
    object-position: center 18%;
  }
  .about-copy {
    max-width: none;
  }
  .page h1 {
    font-size: 28px;
  }
  .steps .step {
    padding: 14px;
  }

  /* Bag drawer = bottom sheet on mobile */
  .drawer {
    align-items: flex-end;
    justify-content: stretch;
  }
  .drawer-panel {
    width: 100%;
    max-height: min(90vh, 100%);
    height: auto;
    min-height: 50vh;
    margin-top: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    transition: transform var(--dur) var(--ease-out);
  }
  .drawer.is-open .drawer-panel {
    transform: translateY(0);
  }
  .drawer-foot {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .drawer-foot .btn {
    min-height: 50px;
  }
  .drawer-body {
    max-height: 45vh;
    overflow: auto;
  }

  /* Footer */
  .footer {
    padding: 28px var(--pad) 24px;
    margin-top: 8px;
  }
  .footer-mark {
    font-size: 16px;
  }

  /* Toast above tab bar */
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* Reduce heavy float on small screens */
  .phone-wrap {
    animation: none;
  }
}

/* hide mobile tab on desktop */
.mobile-tab {
  display: none;
}

@media (max-width: 720px) {
  .mobile-tab {
    display: grid;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-title {
    font-size: 15px;
    min-height: 2.56em;
  }
  .hero h1 {
    font-size: 34px;
  }
  html[lang="zh-Hant"] .hero h1 {
    font-size: 36px;
  }
  .card-actions .btn {
    font-size: 11px;
    min-height: 38px;
  }
}


/* ===== Live Stripe checkout form inside bag drawer ===== */
.drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(58vh, 560px);
  overflow: auto;
}
.checkout-form {
  display: grid;
  gap: 10px;
}
.checkout-form[hidden] {
  display: none !important;
}
.checkout-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.checkout-form textarea {
  resize: vertical;
  min-height: 56px;
}
.checkout-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 4px;
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: 10px;
}
.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkout-address-fields {
  display: grid;
  gap: 10px;
}
.checkout-address-fields[hidden] {
  display: none !important;
}
.drawer-foot .bag-total {
  margin-top: 4px;
}


/* ===== Music section ===== */
.music-home { padding-top: 8px; }
.music-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.music-row {
  display: grid;
  grid-template-columns: 28px 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.music-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.music-n {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--soft);
  text-align: center;
}
.music-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.music-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.music-meta strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}
.music-meta span {
  font-size: 12px;
  color: var(--muted);
}
.music-play {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.75;
}
.music-row:hover .music-play { opacity: 1; }
.music-channel {
  margin: 18px 0 0;
  font-size: 13px;
}
.music-channel a { color: var(--muted); }
.music-page h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  margin: 0 0 8px;
}
.music-list-page .music-row {
  grid-template-columns: 36px 72px 1fr auto;
  padding: 16px 18px;
}
.music-list-page .music-row img {
  width: 72px;
  height: 72px;
}
@media (max-width: 640px) {
  .music-row {
    grid-template-columns: 22px 48px 1fr;
    grid-template-rows: auto auto;
  }
  .music-play {
    grid-column: 3;
    justify-self: start;
  }
  .music-list-page .music-row {
    grid-template-columns: 28px 56px 1fr;
  }
  .music-list-page .music-row img {
    width: 56px;
    height: 56px;
  }
}
