/* The Taiwan Shop — premium Taiwan-travel ("TPE ✈ HOME"), Lukas brand palette
   cream #F7F1E4 / navy #13263D / deep #0E1B2E / orange #FF7A1A / yellow #FFE14D
   Weighting: ~60 cream · 30 navy · 10 orange; yellow = marker signature only. */
:root {
  --porcelain: #F7F1E4;
  --porcelain-deep: #EFE5CF;
  --navy: #13263D;
  --navy-deep: #0E1B2E;
  --navy-soft: #5A6B80;
  --surface: #FFFFFF;
  --accent: #FF7A1A;
  --highlight: #FFE14D;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(14, 27, 46, .07);
  --shadow-lift: 0 14px 34px rgba(14, 27, 46, .16);
  --font-display: "Noto Serif TC", "Songti TC", serif;
  --font-body: "Noto Sans TC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
/* NOTE: no global scroll-behavior:smooth — it breaks scrolling in embedded webviews;
   smooth anchor scrolling is done in app.js via scrollIntoView instead. */
body { margin: 0; background: var(--porcelain); color: var(--navy); font-family: var(--font-body); font-size: 16.5px; line-height: 1.7; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.22; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { max-width: 1120px; margin: 0 auto; padding: 0 22px 72px; }
.narrow { max-width: 720px; }
::selection { background: var(--highlight); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { background: var(--porcelain); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(19, 38, 61, .12); }
.header-accent { height: 3px; background: var(--accent); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: var(--porcelain); border-radius: 9px; font-family: var(--font-display); font-weight: 900; font-size: 21px; box-shadow: inset 0 0 0 2px rgba(247, 241, 228, .4); }
.seal-sm { width: 27px; height: 27px; font-size: 14px; vertical-align: middle; }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15.5px; }
.main-nav a { position: relative; }
.main-nav a:not(.lang-toggle):not(.cart-link)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .25s ease; }
.main-nav a:not(.lang-toggle):not(.cart-link):hover::after { right: 0; }
.lang-toggle { padding: 5px 14px; border: 1.5px solid var(--navy); border-radius: 99px; font-size: 14px; transition: background .2s, color .2s; }
.lang-toggle:hover { background: var(--navy); color: var(--porcelain); }
.cart-link { font-weight: 700; }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; background: var(--accent); color: #fff; border-radius: 99px; font-size: 12.5px; margin-left: 3px; }
.ship-bar { background: var(--navy-deep); color: var(--porcelain); text-align: center; font-size: 13.5px; padding: 7px 16px; letter-spacing: .04em; }
.ship-bar strong { color: var(--highlight); font-weight: 700; }

/* ---------- 鐵窗花 divider ---------- */
.flower-divider { display: flex; align-items: center; gap: 18px; margin: 58px 0; }
.flower-divider::before, .flower-divider::after { content: ""; flex: 1; height: 1px; background: rgba(19, 38, 61, .22); }
.flower-divider svg { flex: 0 0 auto; opacity: .55; }

/* ---------- hero: editorial split ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding: 58px 0 16px; }
.hero-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); margin: 0 0 16px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s ease, transform .6s ease; }
.hero h1 .w.in { opacity: 1; transform: none; }
.hero-sub { font-size: 18px; color: var(--navy-soft); margin: 0 0 30px; max-width: 460px; }
.marker { background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 68%; background-size: 0% 45%; padding: 0 .08em; transition: background-size .8s cubic-bezier(.6, 0, .2, 1) .5s; }
.marker.in { background-size: 100% 45%; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stage { position: relative; }
.hero-media { --p: 0; width: calc(88% + var(--p) * 12%); margin-left: auto; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lift); border: calc(8px * (1 - var(--p)) + 2px) solid var(--surface); will-change: width; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transform: translateY(calc(var(--p) * -16px)) scale(1.07); transition: none; }
.hero-caption { font-size: 12.5px; letter-spacing: .18em; color: var(--navy-soft); margin-top: 13px; text-transform: uppercase; text-align: right; }

/* postmark stamp overlapping the photo — never dead-still */
.postmark { position: absolute; top: -34px; left: -18px; z-index: 3; color: var(--accent); opacity: .92; filter: drop-shadow(0 2px 6px rgba(14,27,46,.12)); animation: stamp-idle 9s ease-in-out infinite; }
@keyframes stamp-idle { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-7.5deg) translateY(-6px); } }

/* faint drifting lanterns behind the hero copy */
.hero-lanterns { position: absolute; inset: 0; pointer-events: none; color: var(--navy-soft); z-index: 0; }
.hero-lanterns svg { position: absolute; opacity: .13; }
.hero-lanterns svg:nth-child(1) { top: 12%; left: 2%; animation: lantern-drift 11s ease-in-out infinite; }
.hero-lanterns svg:nth-child(2) { top: 64%; left: 38%; animation: lantern-drift 14s ease-in-out infinite reverse; }
.hero-lanterns svg:nth-child(3) { top: 34%; left: 27%; animation: lantern-drift 17s ease-in-out 2s infinite; }
@keyframes lantern-drift { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(6px, -14px) rotate(2.5deg); } }
.hero-copy { position: relative; z-index: 1; }

/* vertical 直書 rail */
.vertical-rail { position: absolute; top: 66px; right: -30px; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .42em; color: var(--navy-soft); opacity: .8; z-index: 2; }
@media (max-width: 1220px) { .vertical-rail { display: none; } }
.vertical-rail::after { content: ""; display: block; width: 1px; height: 70px; background: var(--accent); margin: 14px auto 0; }

/* ---------- swipe gallery + 小籠包 steamer ---------- */
.swipe-section { margin-top: 42px; }
.swipe-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.swipe-head .section-head { margin-bottom: 0; }
.steamer-svg { flex: 0 0 auto; margin-bottom: -26px; }
.steam-wisp { animation: steam-rise 3.2s ease-in-out infinite; }
.steam-wisp:nth-child(2) { animation-delay: 1.1s; }
.steam-wisp:nth-child(3) { animation-delay: 2.1s; }
@keyframes steam-rise { 0% { transform: translateY(4px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.swipe-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 22px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab;
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.swipe-card { flex: 0 0 264px; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; user-select: none; }
.swipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.swipe-img { aspect-ratio: 1; background: #fff; overflow: hidden; }
.swipe-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); pointer-events: none; }
.swipe-body { padding: 13px 16px 16px; }
.swipe-body h3 { margin: 0 0 7px; font-size: 16px; font-family: var(--font-body); font-weight: 700; }
.swipe-card-all { display: flex; align-items: center; justify-content: center; background: var(--navy-deep); color: var(--porcelain);
  font-family: var(--font-display); font-weight: 900; font-size: 18px; text-align: center; padding: 20px; }
.swipe-card-all:hover { background: var(--navy); }

/* ---------- taiwan icon marquee ---------- */
.icon-marquee { overflow: hidden; margin: 46px 0 6px; padding: 18px 0; border-top: 1px solid rgba(19,38,61,.14); border-bottom: 1px solid rgba(19,38,61,.14); }
.mq-track { display: flex; gap: 58px; width: max-content; color: var(--navy-soft); animation: mq 38s linear infinite; }
.icon-marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { flex: 0 0 auto; opacity: .75; transition: opacity .25s, transform .25s; }
.mq-item:hover { opacity: 1; transform: translateY(-3px); color: var(--accent); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 30px; border-radius: 99px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; font-family: var(--font-body); transition: transform .15s ease, box-shadow .15s ease, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--navy-deep); }
.btn-primary:hover { background: #FF8A38; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--porcelain); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 18px; }

/* ---------- collection grid ---------- */
.section-head { display: flex; align-items: baseline; gap: 18px; margin: 8px 0 26px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.section-head .sub { color: var(--navy-soft); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, .13), transparent 65%); }
.card:hover::after { opacity: 1; }
.card-no { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .16em; color: var(--navy-soft); background: rgba(247, 241, 228, .92); padding: 3px 10px; border-radius: 99px; }
.card-img { aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(calc(var(--zoom, 1) * 1.045)); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 0 0 10px; font-size: 17.5px; font-family: var(--font-body); font-weight: 700; }
.price-pill { display: inline-block; color: var(--accent); font-weight: 800; font-size: 15.5px; letter-spacing: .02em; }

/* reveal on scroll — hidden state only when JS runs, so content never stays invisible */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- museum placards (USP) ---------- */
.usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.usp { background: var(--surface); border-radius: var(--radius); padding: 22px 24px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.usp h4 { margin: 0 0 6px; font-size: 16.5px; font-family: var(--font-display); font-weight: 700; }
.usp p { margin: 0; font-size: 14.5px; color: var(--navy-soft); }

/* ---------- boarding-pass pickup band ---------- */
.pickup-band { margin-top: 64px; background: var(--navy-deep); border-radius: calc(var(--radius) + 8px); padding: 40px; }
.ticket { display: grid; grid-template-columns: 235px 1fr; background: var(--porcelain); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.ticket-stub { position: relative; padding: 26px 22px; border-right: 2px dashed rgba(19,38,61,.3); display: flex; flex-direction: column; gap: 12px; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-deep); z-index: 2; }
.ticket-stub::before { top: -12px; }
.ticket-stub::after { bottom: -12px; }
.route { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: .06em; }
.route svg { color: var(--accent); }
.stub-label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-soft); }
.barcode { margin-top: auto; height: 44px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 5px, var(--navy) 5px 6px, transparent 6px 11px, var(--navy) 11px 14px, transparent 14px 17px); opacity: .8; border-radius: 2px; }
.ticket-main { padding: 26px 30px 30px; }
.ticket-main h2 { font-size: clamp(24px, 3.4vw, 33px); margin: 0 0 20px; }
.pickup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.step-no { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--accent); display: block; margin-bottom: 4px; }
.step h4 { margin: 0 0 3px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--navy-soft); }

/* ---------- product page (K-haku editorial) ---------- */
.product-topbar { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 8px; }
.back-link { color: var(--navy-soft); font-size: 14.5px; }
.back-link:hover { color: var(--accent); }
.product-arrows { display: flex; gap: 10px; }
.arrow-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1.5px solid var(--navy); border-radius: 50%; font-size: 17px; transition: background .2s, color .2s, transform .15s; }
.arrow-btn:hover { background: var(--navy); color: var(--porcelain); transform: translateY(-2px); }
.product-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; padding-top: 10px; }
.product-eyebrow { font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 10px; }
.product-info h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 2px 0 10px; }
.product-info h1 .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .55s ease, transform .55s ease; }
.product-info h1 .w.in { opacity: 1; transform: none; }
.price { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 24px; font-family: var(--font-body); }
.price::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--accent); margin-right: 12px; vertical-align: middle; }

/* floating cutout (clean white-bg photos): blend-multiply removes the white */
.float-wrap { position: relative; padding: 6%; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--navy-soft); z-index: 0; }
/* brightness lift clips the studio near-white to pure white so multiply erases it cleanly;
   no drop-shadow — it would draw the rectangular photo bounds */
.float-img { position: relative; z-index: 1; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.02); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stamp-chip { position: absolute; z-index: 2; right: 2%; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 14px; border: 2px solid var(--accent); color: var(--accent); border-radius: 10px; font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: .1em; background: rgba(247, 241, 228, .8); animation: chip-idle 8s ease-in-out .8s infinite; }
@keyframes chip-idle { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4.6deg) translateY(-5px); } }
.stamp-chip em { font-style: normal; font-size: 9px; letter-spacing: .24em; }

/* framed gallery (photos that aren't clean cutouts) */
.gallery-main { background: var(--surface); border: 10px solid var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface); cursor: pointer; transition: border-color .15s; box-shadow: var(--shadow); }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.variants { margin-bottom: 20px; }
.var-name { font-size: 14px; color: var(--navy-soft); display: block; margin-bottom: 8px; }
.var-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.var-pill { padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--navy-soft); background: transparent; cursor: pointer; font-family: var(--font-body); font-size: 14.5px; color: var(--navy); transition: all .15s; }
.var-pill:hover { border-color: var(--navy); }
.var-pill.active { background: var(--navy); border-color: var(--navy); color: var(--porcelain); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--navy-soft); }
.qty-stepper { display: flex; border: 1.5px solid var(--navy-soft); border-radius: 99px; overflow: hidden; }
.qty-stepper button { width: 40px; border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--navy); }
.qty-stepper input { width: 46px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 700; color: var(--navy); font-family: var(--font-body); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.description { margin-top: 58px; }
.description h2 { font-size: 25px; display: inline-block; padding-bottom: 5px; border-bottom: 3px solid var(--highlight); }
.prose { max-width: 720px; }
.prose img { border-radius: var(--radius); margin: 14px 0; }
.prose h2, .prose h3 { font-family: var(--font-body); font-weight: 700; }

/* ---------- cart / checkout ---------- */
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 13px 17px; margin-bottom: 12px; box-shadow: var(--shadow); }
.cart-item img { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; background: #fff; }
.cart-item .ci-title { font-weight: 700; }
.cart-item .ci-var { font-size: 13.5px; color: var(--navy-soft); }
.ci-right { text-align: right; }
.ci-price { font-weight: 800; color: var(--accent); }
.ci-remove { background: none; border: none; color: var(--navy-soft); cursor: pointer; font-size: 13px; padding: 0; font-family: var(--font-body); text-decoration: underline; }
.ci-remove:hover { color: var(--accent); }
.cart-summary { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-top: 22px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sum-row.muted { color: var(--navy-soft); font-size: 14.5px; }
.sum-row.total { font-size: 21px; border-top: 2px solid var(--porcelain-deep); padding-top: 12px; margin-top: 12px; font-weight: 800; }
.empty-state { text-align: center; color: var(--navy-soft); padding: 52px 0; }
.co-summary { background: var(--surface); border-radius: var(--radius); padding: 15px 19px; box-shadow: var(--shadow); margin-bottom: 26px; font-size: 15px; }
.co-form h2 { font-size: 20px; margin: 28px 0 12px; }
.co-form label { display: block; margin-bottom: 13px; font-weight: 500; }
.co-form input:not([type="radio"]) { width: 100%; padding: 12px 15px; border: 1.5px solid rgba(19, 38, 61, .25); border-radius: 10px; background: var(--surface); font-size: 16px; font-family: var(--font-body); margin-top: 5px; color: var(--navy); }
.co-form input:not([type="radio"]):focus { border-color: var(--accent); outline: none; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid rgba(19, 38, 61, .25); border-radius: 12px; padding: 14px 17px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.choice em { color: var(--navy-soft); font-size: 13px; }
.hint { font-size: 13.5px; color: var(--navy-soft); }
.test-note { text-align: center; color: var(--accent); font-weight: 600; }

/* ---------- scroll-filling bubble tea (background element) ---------- */
.tea-bg { position: fixed; bottom: 34px; z-index: 0; pointer-events: none;
  right: max(14px, calc((100vw - 1120px) / 2 - 252px)); opacity: .92;
  transition: opacity .3s; }
.tea-svg { display: block; }
main, .site-header, .site-footer { position: relative; z-index: 1; }
@media (max-width: 1399px) { .tea-bg { right: -36px; bottom: 20px; opacity: .5; } .tea-svg { width: 132px; height: 204px; } }
@media (max-width: 780px) { .tea-bg { right: -22px; bottom: 12px; opacity: .42; } .tea-svg { width: 88px; height: 136px; } }
.tea-bubble { animation: tea-bubble-rise 4.5s ease-in infinite; }
.tea-bubble:nth-of-type(2) { animation-delay: 2.2s; }
@keyframes tea-bubble-rise { 0% { transform: translateY(0); } 100% { transform: translateY(-70px); } }
@media (prefers-reduced-motion: reduce) { .tea-bubble { animation: none; } }

/* ---------- e-commerce features ---------- */
.badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.badge-preorder { background: var(--navy); color: var(--porcelain); }
.badge-soldout { background: var(--red, #C2453B); background: #C2453B; color: #fff; }
.card-img, .swipe-img { position: relative; }
.product-eyebrow .badge { position: static; margin-left: 8px; }
.preorder-note { color: var(--navy-soft); font-size: 14.5px; margin: -10px 0 18px; }
/* (scarcity-note / var-pill.out removed: print-to-order means stock never gates a sale) */

.waitlist-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 3px solid #C2453B; }
.waitlist-box h3 { margin: 0 0 12px; font-size: 16.5px; font-family: var(--font-display); }
.waitlist-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-box input { flex: 1; min-width: 180px; padding: 11px 14px; border: 1.5px solid rgba(19,38,61,.25); border-radius: 10px; font-size: 15px; font-family: var(--font-body); }

/* checkout add-on keychains (加購) */
.addon-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--highlight); margin-bottom: 22px; }
.addon-box h2 { margin: 0 0 2px; font-size: 19px; }
.addon-box .hint { margin: 0 0 14px; }
.addon-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.addon-row::-webkit-scrollbar { display: none; }
.addon-card { flex: 0 0 104px; background: var(--porcelain); border: 1.5px solid rgba(19,38,61,.16); border-radius: 12px; padding: 8px 8px 10px; cursor: pointer; font-family: var(--font-body); color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.addon-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.addon-swatch { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(19,38,61,.18), 0 1px 4px rgba(14,27,46,.12); }
.addon-name { font-size: 12.5px; line-height: 1.3; text-align: center; }
.addon-price { font-weight: 800; color: var(--accent); font-size: 14px; }

.coupon-row { display: flex; gap: 8px; margin-top: 5px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.coupon-row .btn { padding: 9px 18px; font-size: 14px; }

.fs-bar { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.fs-track { height: 9px; background: var(--porcelain-deep); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.fs-fill { height: 100%; background: linear-gradient(90deg, var(--highlight), var(--accent)); border-radius: 99px; transition: width .5s ease; }
.fs-bar span { font-size: 14px; font-weight: 700; }

.cross-sell { margin-top: 46px; }
.cross-sell h2 { font-size: 24px; display: inline-block; padding-bottom: 5px; border-bottom: 3px solid var(--highlight); }
.cs-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cs-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 12px 18px 12px 12px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cs-card img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.cs-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cs-mini { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); margin-bottom: 10px; font-size: 14.5px; }
.cs-mini img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cs-mini span { flex: 1; font-weight: 700; }
.cs-mini .btn { padding: 8px 16px; font-size: 14px; }

.reviews { margin-top: 46px; }
.reviews h2 { font-size: 24px; display: inline-block; padding-bottom: 5px; border-bottom: 3px solid var(--highlight); }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.review { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.rv-stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.review p { margin: 8px 0; font-size: 14.5px; }
.rv-meta { color: var(--navy-soft); font-size: 13px; }
.rv-form-box { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.rv-form-box summary { cursor: pointer; font-weight: 700; }
.rv-form-box form { display: grid; gap: 10px; margin-top: 14px; }
.rv-form-box input, .rv-form-box textarea { padding: 10px 13px; border: 1.5px solid rgba(19,38,61,.25); border-radius: 10px; font-family: var(--font-body); font-size: 15px; }
.rv-stars-pick { display: flex; gap: 12px; color: var(--accent); font-weight: 700; }
.rv-stars-pick label { cursor: pointer; }
.pill-status { display: inline-block; margin-top: 8px; background: var(--highlight); color: var(--navy-deep); padding: 3px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }

/* ---------- newsletter + creator pages ---------- */
.newsletter { margin-top: 56px; background: var(--surface); border-radius: calc(var(--radius) + 6px); padding: 30px 34px; box-shadow: var(--shadow); border-top: 4px solid var(--highlight); }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 6px; font-size: 26px; }
.newsletter p { margin: 0; color: var(--navy-soft); font-size: 14.5px; max-width: 420px; }
.newsletter form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 430px; }
.newsletter input { flex: 1; padding: 12px 15px; border: 1.5px solid rgba(19,38,61,.25); border-radius: 99px; font-size: 15px; font-family: var(--font-body); }

.creator-hero { text-align: center; padding: 54px 0 30px; }
.creator-hero h1 { font-size: clamp(28px, 4.6vw, 46px); max-width: 760px; margin: 10px auto 22px; }
.creator-code { display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 99px; padding: 10px 22px 10px 12px; box-shadow: var(--shadow); font-size: 14px; color: var(--navy-soft); flex-wrap: wrap; justify-content: center; }
.code-pill { background: var(--highlight); color: var(--navy-deep); font-weight: 900; font-family: var(--font-display); letter-spacing: .1em; padding: 6px 18px; border-radius: 99px; font-size: 17px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--navy-deep); color: var(--porcelain); padding: 13px 24px; border-radius: 99px; font-weight: 600; box-shadow: var(--shadow-lift); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 99; border-left: 4px solid var(--highlight); }
.toast.show { opacity: 1; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: var(--navy-deep); color: var(--porcelain); }
.footer-accent { height: 3px; background: var(--accent); }
.skyline { display: block; width: 100%; height: 74px; color: var(--porcelain); margin-top: 10px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 14px 22px 30px; font-size: 14.5px; }
.footer-legal { font-size: 12.5px; color: #8FA0B4; }
.footer-brand { margin: 0 0 18px; }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px;
  padding: 20px 0 22px; margin-bottom: 6px;
  border-top: 1px solid rgba(247, 241, 228, .14);
  border-bottom: 1px solid rgba(247, 241, 228, .14);
}
.footer-col h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; color: var(--highlight); text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col p { margin: 0 0 8px; }
.footer-col a { color: var(--porcelain); text-decoration: none; border-bottom: 1px solid rgba(247, 241, 228, .3); }
.footer-col a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ft-nl-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ft-nl-form input {
  flex: 1; min-width: 150px; padding: 10px 13px; border-radius: 99px;
  border: 1.5px solid rgba(247, 241, 228, .3); background: rgba(247, 241, 228, .07);
  color: var(--porcelain); font-family: inherit; font-size: 14.5px;
}
.ft-nl-form input::placeholder { color: #8FA0B4; }
.ft-nl-form input:focus { outline: none; border-color: var(--accent); background: rgba(247, 241, 228, .12); }
.ft-nl-form .btn { padding: 10px 22px; }

/* ---------- policy pages ---------- */
.policy-page { padding-top: 30px; }
.policy-page h1 { margin-bottom: 18px; }
.policy-page .prose h3 { margin: 26px 0 8px; font-size: 17px; }
.policy-page .prose ul, .policy-page .prose ol { padding-left: 22px; }
.policy-page .prose li { margin-bottom: 6px; }
.policy-contact {
  margin-top: 28px; padding: 14px 18px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); border-left: 3px solid var(--accent);
}

/* ---------- mobile pass (designed, not shrunk) ---------- */
@media (max-width: 780px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta-row { justify-content: center; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-media { width: 100%; margin: 0; border-width: 4px; }
  .hero-media img { aspect-ratio: 4 / 4.2; }
  .hero-caption { text-align: center; }
  .postmark { top: -20px; left: auto; right: -8px; width: 84px; height: 84px; }
  .vertical-rail { display: none; }
  .icon-marquee { margin-top: 30px; }
  .mq-track { gap: 40px; }
  .swipe-head { flex-direction: row; align-items: center; }
  .steamer-svg { width: 118px; height: 132px; margin-bottom: -10px; }
  .swipe-card { flex-basis: 216px; }
  .usps { grid-template-columns: 1fr; gap: 12px; }
  .usp { padding: 16px 18px 14px; }
  .pickup-band { padding: 18px; border-radius: var(--radius); }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-right: none; border-bottom: 2px dashed rgba(19,38,61,.3); flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 20px; }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .barcode { display: none; }
  .pickup-steps { grid-template-columns: 1fr; gap: 12px; }
  .product-layout { grid-template-columns: 1fr; gap: 26px; }
  .product-layout .product-info { order: 2; }
  .product-layout .gallery { order: 1; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .stamp-chip { font-size: 13px; padding: 7px 10px; }
  .main-nav { gap: 13px; font-size: 14.5px; }
  .brand-name { display: none; }
  .flower-divider { margin: 40px 0; }
  .buy-row .btn { flex: 1; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .ft-nl-form .btn { flex: 1; text-align: center; }
}

/* ---------- order-complete (thank-you) ---------- */
.order-complete { padding-top: 30px; }
.oc-hero { text-align: center; margin-bottom: 26px; }
.oc-check {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: #BBDFC8; color: #17643C; font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(23, 100, 60, .22); animation: oc-pop .5s cubic-bezier(.2, 1.3, .5, 1) both;
}
@keyframes oc-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.oc-hero h1 { margin: 0 0 8px; }
.oc-hero p { color: var(--navy-soft); max-width: 34em; margin: 0 auto; }
.oc-receipt {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 20px; border-top: 3px solid var(--accent);
}
.oc-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 7px 0; font-size: 15px; }
.oc-items-head { font-weight: 700; margin: 12px 0 4px; border-top: 1px dashed var(--porcelain-deep); padding-top: 12px; }
.oc-item { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14.5px; color: var(--navy); }
.oc-totals { margin-top: 8px; border-top: 1px dashed var(--porcelain-deep); padding-top: 8px; }
.oc-grand { border-top: 1.5px solid var(--navy); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.oc-email { text-align: center; margin: 14px 0 0; }
.oc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.oc-actions .btn { flex: 1; text-align: center; min-width: 160px; }

/* ---------- flash-sale banner ---------- */
.flash-bar {
  background: linear-gradient(90deg, var(--accent), #ff9d4d);
  color: var(--navy-deep); text-align: center; font-weight: 700;
  padding: 8px 14px; display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; font-size: 15px; letter-spacing: .01em;
}
.flash-bar .flash-tag { background: var(--navy-deep); color: var(--highlight); border-radius: 99px; padding: 2px 12px; font-size: 13px; }
.flash-bar .flash-code { background: rgba(14, 27, 46, .12); border: 1px dashed var(--navy-deep); border-radius: 8px; padding: 1px 9px; font-weight: 800; letter-spacing: .08em; }
.flash-cd { font-variant-numeric: tabular-nums; background: var(--navy-deep); color: #fff; border-radius: 8px; padding: 3px 10px; font-weight: 800; }
.flash-bar[hidden] { display: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .oc-check { animation: none; }
  .js .reveal, .hero h1 .w, .product-info h1 .w { opacity: 1; transform: none; transition: none; }
  .marker { background-size: 100% 45%; transition: none; }
  .hero-media { --p: 1 !important; }
  .hero-media img { transform: none; }
  .mq-track, .postmark, .float-img, .stamp-chip, .hero-lanterns svg, .steam-wisp { animation: none; }
  .card, .card-img img, .btn { transition: none; }
}

/* ── Gift-guide landers + SEO copy blocks (SEO-CONTENT.md) ─────────────────── */
/* Curation note under each pick on a gift-guide page: the editorial voice, so it
   reads as a recommendation rather than a caption. */
.pick-note {
  margin: 8px 0 0;
  color: var(--navy-soft);
  font-size: 14.5px;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}
/* Lander intro paragraph — sits under the hero, sets up the whole list. */
.guide-intro {
  max-width: 62ch;
  margin: 0 auto 28px;
  color: var(--navy-soft);
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
}
/* Product-page footnotes: the CC licence attribution and the support line.
   Quiet by design — present and honest, never competing with the buy block. */
.license-line,
.support-line {
  margin: 6px 0 0;
  color: var(--navy-soft);
  font-size: 13px;
  line-height: 1.6;
}
.license-line { opacity: .85; }
.support-line::before { content: "🇹🇼 "; }
@media (max-width: 780px) {
  .guide-intro { font-size: 15.5px; text-align: left; }
}
