/* ===== 心綻選物 × 岩座 IWAKURA（商品優先版） ===== */
:root {
  --bg: #fdfaf5;
  --surface: #ffffff;
  --surface-soft: #f7f1e6;
  --ink: #362c22;
  --ink-soft: #7c6f60;
  --line: #ece1cf;

  --mist: #bcd8e3;
  --mist-deep: #7ea0b3;
  --sand: #e3c48b;
  --sand-deep: #c99a4c;
  --moss: #a8c093;
  --moss-deep: #7c9968;
  --rose: #eac3cb;
  --rose-deep: #c17e8d;

  --gold: #b08a3e;
  --radius: 3px;
  --maxw: 1180px;
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; line-height: 1.85; color: var(--ink-soft); }
button { font-family: inherit; }

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--rose-deep);
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.accent-mist { border-left: 4px solid var(--mist-deep); }
.accent-sand { border-left: 4px solid var(--sand-deep); }
.accent-moss { border-left: 4px solid var(--moss-deep); }
.accent-rose { border-left: 4px solid var(--rose-deep); }

/* ===== Announcement bar ===== */
.announce {
  background: var(--surface-soft);
  color: var(--ink);
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(54, 44, 34, 0.05); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.06em; color: var(--rose-deep); }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.15em; color: var(--ink-soft); text-transform: uppercase; }
.main-nav { display: flex; gap: 1.8rem; }
.main-nav a { font-size: 0.86rem; letter-spacing: 0.03em; color: var(--ink); padding: 4px 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--rose-deep); } }

.cart-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none; cursor: pointer;
  color: var(--ink); padding: 0; margin-left: 0.6rem;
}
.cart-icon svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose-deep); color: #fff;
  font-size: 0.62rem; line-height: 1; font-weight: 600;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Hero 輪播（短版） ===== */
.hero { position: relative; min-height: 62vh; display: flex; align-items: center; overflow: hidden; }
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(54, 38, 34, 0.62) 0%, rgba(54, 38, 34, 0.4) 42%, rgba(54, 38, 34, 0.12) 75%);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .hero-arrow:hover { background: rgba(255,255,255,0.24); } }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
  background: transparent; padding: 0; cursor: pointer; transition: all 0.2s ease;
}
.hero-dot.active { background: #fff; width: 22px; border-radius: 5px; }
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; color: #fff; width: 100%; }
.hero-eyebrow { font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.hero-content h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.35; color: #fff; margin-bottom: 1.2rem; font-weight: 600; }
.hero-desc { color: #f5f0e8; font-size: 0.96rem; max-width: 480px; margin-bottom: 1.8rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 30px; font-size: 0.86rem; letter-spacing: 0.06em;
  border-radius: var(--radius); border: 1px solid transparent; transition: all 0.25s ease; cursor: pointer;
}
.btn-light { background: #fff; color: var(--rose-deep); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--rose-deep); color: #fff; } }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: var(--rose-deep); } }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--ink); color: #fff; } }

/* ===== Section head (左對齊，商品區用) ===== */
.section-head-left { max-width: var(--maxw); margin: 0 auto 1.6rem; padding: 0 28px; }
.section-head-left h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 0.5rem; }
.section-sub { font-size: 0.88rem; }

/* ===== 手鍊／足鍊 情境導覽 ===== */
.category-showcase {
  max-width: var(--maxw);
  margin: 3.2rem auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.showcase-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--surface-soft);
}
.showcase-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
@media (hover: hover) and (pointer: fine) { .showcase-tile:hover img { transform: scale(1.05); } }
.showcase-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,32,26,0) 40%, rgba(40,32,26,0.72) 100%);
}
.showcase-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem 1.7rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.showcase-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rose);
}
.showcase-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff;
  margin-bottom: 0.3rem;
}
.showcase-desc { font-size: 0.84rem; color: #f0e9e0; max-width: 30ch; margin-bottom: 0.9rem; }
.showcase-cta { font-size: 0.82rem; color: #fff; letter-spacing: 0.03em; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 商品區（熱門 + 需要選區） ===== */
.products-section { padding: 3.5rem 0 4.5rem; }
#need-tabs, #products { scroll-margin-top: 68px; }

.need-tabs {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: rgba(253, 250, 245, 0.96);
  backdrop-filter: blur(6px);
  padding: 0.8rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.need-tabs-label {
  max-width: var(--maxw);
  margin: 0 auto 0.5rem;
  padding: 0 28px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.tabs-scroll {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .pill:hover { border-color: var(--rose-deep); color: var(--rose-deep); } }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-grid-narrow { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .product-card:focus-visible {
    box-shadow: 0 16px 32px rgba(54, 44, 34, 0.08);
    transform: translateY(-3px);
    outline: none;
  }
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 40%, #fffdf9 0%, var(--surface-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.3rem;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-media img.product-photo-real { object-fit: cover; mix-blend-mode: normal; }
.badge {
  position: absolute; top: 10px; right: 10px; background: var(--rose-deep); color: #fff;
  font-size: 0.64rem; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 20px;
}
.product-body { padding: 1rem 1.1rem 1.2rem; }
.product-name { font-size: 0.94rem; line-height: 1.5; margin-bottom: 0.4rem; color: var(--ink); }
.product-pain { font-size: 0.78rem; line-height: 1.6; margin-bottom: 0.7rem; min-height: 2.4em; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.7rem; }
.tag {
  font-size: 0.66rem; color: var(--gold); background: rgba(176, 138, 62, 0.1);
  padding: 3px 9px; border-radius: 20px; letter-spacing: 0.02em;
}
.product-price { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 600; }
.product-price-ref { font-size: 0.7rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }

/* ===== 品牌來源（短） ===== */
.brand-brief { padding: 4rem 28px; background: var(--surface-soft); }
.brand-brief-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.brand-brief h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: 1rem; }
.brand-brief p { font-size: 0.92rem; margin-bottom: 1.6rem; }

/* ===== CTA ===== */
.cta { padding: 5rem 28px; }
.cta-inner {
  max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr;
  gap: 3rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); padding: 3rem; border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(54, 44, 34, 0.06);
}
.cta-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }
.cta h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 0.8rem; }
.cta p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { padding: 3rem 28px 1.5rem; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.82rem; margin-top: 0.3rem; }
.footer-social { display: flex; gap: 1.6rem; align-items: center; }
.social-icon {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--ink-soft);
}
.social-icon svg {
  width: 40px; height: 40px; padding: 9px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); transition: all 0.2s ease;
}
.social-icon span { font-size: 0.7rem; letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) { .social-icon:hover svg { background: var(--ink); color: #fff; border-color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .social-icon:hover span { color: var(--rose-deep); } }
.footer-trust {
  max-width: 800px; margin: 0 auto 0.8rem; padding: 0 28px;
  font-size: 0.72rem; line-height: 1.8; color: var(--ink-soft); text-align: center;
}
.footer-note { max-width: var(--maxw); margin: 0 auto; font-size: 0.7rem; color: var(--ink-soft); text-align: center; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(40, 32, 26, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-box-text { grid-template-columns: 1fr; max-width: 620px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(54,44,34,0.08); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .modal-close:hover { background: rgba(54,44,34,0.16); } }
.modal-media {
  background: radial-gradient(circle at 50% 40%, #fffdf9 0%, var(--surface-soft) 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.modal-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.modal-media img.product-photo-real { object-fit: cover; mix-blend-mode: normal; }
.modal-body { padding: 2rem 2rem 2.2rem; }
.modal-body h3 { font-size: 1.25rem; margin: 0.5rem 0 0.2rem; color: var(--ink); }
.modal-jp { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1rem; }
.modal-pain { font-size: 0.92rem; color: var(--ink); margin-bottom: 0.8rem; font-family: var(--serif); font-style: italic; }
.modal-story { font-size: 0.88rem; line-height: 1.9; margin-bottom: 1.3rem; }
.modal-price { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; margin-bottom: 1rem; }
.modal-source { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.modal-box-text .modal-body { padding: 2.6rem; }
.modal-box-text h3 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.brand-story-p { font-size: 0.92rem; line-height: 1.95; margin-bottom: 1.2rem; }

/* ===== 加入購物車（商品彈窗） ===== */
.modal-buy-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.qty-stepper {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px;
}
.qty-btn {
  border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink);
  width: 20px; line-height: 1; padding: 0;
}
@media (hover: hover) and (pointer: fine) { .qty-btn:hover { color: var(--rose-deep); } }

/* ===== CartDrawer ===== */
#cartDrawer { justify-content: flex-end; padding: 0; }
.cart-drawer-box {
  background: var(--surface); width: 100%; max-width: 380px; height: 100%;
  display: flex; flex-direction: column; transform: translateX(12px);
  transition: transform 0.25s ease;
}
#cartDrawer.open .cart-drawer-box { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.1rem; }
.cart-drawer-head .modal-close { position: static; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-drawer-empty { padding: 2rem 1.6rem; text-align: center; font-size: 0.86rem; }
.cart-row { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--surface-soft); }
.cart-row-name { font-size: 0.86rem; color: var(--ink); margin-bottom: 0.2rem; }
.cart-row-price { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.cart-row-qty { display: flex; align-items: center; gap: 0.6rem; }
.cart-row-qty span { font-size: 0.86rem; min-width: 1.2em; text-align: center; }
.cart-row-remove { margin-left: auto; border: none; background: none; color: var(--ink-soft); font-size: 0.74rem; cursor: pointer; text-decoration: underline; }
.cart-drawer-foot { padding: 1.2rem 1.6rem 1.6rem; border-top: 1px solid var(--line); }
.cart-drawer-total-row { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-bottom: 0.9rem; }
.cart-drawer-checkout { width: 100%; text-align: center; }
.cart-drawer-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== CheckoutModal ===== */
.checkout-box { max-width: 480px; }
.checkout-notice {
  font-size: 0.8rem; line-height: 1.7; color: var(--gold);
  background: rgba(176, 138, 62, 0.1); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; margin-bottom: 1.2rem;
}
.checkout-summary { background: var(--surface-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: 0.84rem; }
.checkout-summary p { color: var(--ink); margin-bottom: 0.3rem; }
.checkout-total { font-weight: 600; margin-top: 0.5rem !important; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.checkout-label { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.6rem; letter-spacing: 0.04em; }
.checkout-radio { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.7rem; cursor: pointer; }
.checkout-radio input { margin-right: 0.5rem; }
.checkout-form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }
.checkout-form label { font-size: 0.82rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.35rem; }
.checkout-form input, .checkout-form textarea {
  font-family: inherit; font-size: 0.9rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; background: #fff;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--rose-deep); }
.checkout-store-info { font-size: 0.92rem; color: var(--ink); background: var(--surface-soft); padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.checkout-store-info p { color: var(--ink); margin-bottom: 0.3rem; }
.checkout-store-info p:last-child { margin-bottom: 0; }
.checkout-done-msg { font-size: 0.94rem; line-height: 1.9; margin-bottom: 1.4rem; }
.checkout-subfields { margin-top: -0.3rem; }
.checkout-pickup-note {
  font-size: 0.86rem; line-height: 1.8; color: var(--ink);
  background: var(--surface-soft); padding: 0.9rem 1.1rem; border-radius: var(--radius);
}

.bank-info-card {
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1.2rem;
}
.bank-info-title { font-family: var(--serif); font-size: 0.98rem; color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }
.bank-info-row { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.35rem; }
.bank-copy-btn { margin-top: 0.6rem; padding: 8px 20px; font-size: 0.8rem; }
.checkout-transfer-note { font-size: 0.86rem; line-height: 1.9; margin-bottom: 1.3rem; }
.checkout-transfer-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.checkout-transfer-actions .btn { flex: 1; text-align: center; min-width: 150px; }
.brand-story-sub {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--rose-deep);
  margin: 1.8rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}

/* ===== ThemeModal：先選主題，再進商品牆 ===== */
.theme-modal-sub { font-size: 0.9rem; margin: 0.8rem 0 1.8rem; }
.theme-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.theme-modal-card {
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .theme-modal-card:hover {
    background: var(--surface);
    border-color: var(--rose-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(54, 44, 34, 0.07);
  }
}
.theme-modal-card h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.4rem; }
.theme-modal-card p { font-size: 0.8rem; line-height: 1.6; margin-bottom: 0.7rem; min-height: 2.6em; }
.theme-modal-cta { font-size: 0.76rem; color: var(--rose-deep); letter-spacing: 0.02em; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-narrow { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-img { max-width: 200px; margin: 0 auto; }
  .cta-actions { justify-content: center; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-media { max-height: 220px; }
  .showcase-tile { aspect-ratio: 3 / 4; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }

  .header-inner { padding: 14px 20px; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(54, 44, 34, 0.06);
  }
  .main-nav.open { max-height: 300px; }
  .main-nav a { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav-toggle { display: flex; }

  .hero { min-height: 58vh; }
  .hero-slide .hero-img-wrist { object-position: 22% 32%; }
  .hero-content { padding: 0 20px; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 0.9rem; }
  .hero-content h1 { font-size: 1.85rem; line-height: 1.4; margin-bottom: 1rem; }
  .hero-desc { font-size: 0.92rem; }
  .br-desktop { display: none; }

  .category-showcase { grid-template-columns: 1fr; padding: 0 20px; margin: 2.4rem auto; gap: 1rem; }
  .showcase-tile { aspect-ratio: 16 / 11; border-radius: 6px; }
  .showcase-text { padding: 1.4rem 1.3rem; }
  .showcase-title { font-size: 1.3rem; }
  .showcase-desc { font-size: 0.8rem; max-width: none; }

  .section-head-left { padding: 0 20px; margin-bottom: 1.4rem; }
  .section-head-left h2 { font-size: 1.25rem; }
  .products-section { padding: 3rem 0 3.5rem; }

  .need-tabs { top: 64px; padding: 0.7rem 0; }
  .need-tabs-label, .tabs-scroll { padding: 0 20px; }
  .pill { padding: 7px 16px; font-size: 0.8rem; }

  .product-grid, .product-grid-narrow {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    padding: 0 20px;
  }
  .product-media { padding: 1rem; }
  .product-body { padding: 0.85rem 0.9rem 1.05rem; }
  .product-name { font-size: 0.86rem; line-height: 1.45; }
  .product-pain { font-size: 0.73rem; min-height: 2.2em; margin-bottom: 0.6rem; }
  .product-tags { gap: 5px; margin-bottom: 0.6rem; }
  .tag { font-size: 0.62rem; padding: 3px 8px; }
  .product-price { font-size: 0.94rem; }
  .product-card:active { transform: scale(0.98); }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.8rem; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-social { gap: 1.4rem; justify-content: center; }
  .footer-trust, .footer-note { padding: 0 20px; }

  .hero-arrow { display: none; }
  .modal-backdrop { padding: 16px; }
  .modal-box { border-radius: 6px; max-height: 88vh; }
  .modal-body { padding: 1.5rem 1.3rem 1.7rem; }
  .modal-box-text .modal-body { padding: 1.8rem 1.3rem; }
  .modal-body h3 { font-size: 1.15rem; }
  .theme-modal-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .theme-modal-card p { min-height: 0; }

  .cart-icon { margin-left: 0.3rem; }
  .cart-drawer-box { max-width: 100%; }
  .checkout-box { max-width: 100%; }
}

/* ===== 運費與應匯款金額 ===== */
.cart-drawer-ship-note { font-size: 0.74rem; line-height: 1.6; color: var(--ink-soft); margin: -0.4rem 0 0.9rem; }
.checkout-sub-row { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-total.checkout-sub-row { font-size: 1rem; color: var(--rose-deep); }
.ship-tag { font-style: normal; font-size: 0.72rem; color: var(--gold); background: rgba(176, 138, 62, 0.12); border-radius: 999px; padding: 1px 9px; margin-left: 0.5rem; white-space: nowrap; }
.ship-tag.free { color: var(--ink-soft); background: var(--surface-soft); }
.bank-amount { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.2rem; }
.bank-amount strong { font-family: var(--serif); font-size: 1.35rem; color: var(--rose-deep); font-weight: 600; }
.bank-amount-sub { font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.bank-amount-sub:empty { display: none; }

.checkout-card-note { font-size: 0.76rem; line-height: 1.7; color: var(--ink-soft); background: var(--surface-soft); border-radius: var(--radius); padding: 0.6rem 0.8rem; }
#paymentChoice { margin-top: 1rem; }
.checkout-agree { font-size: 0.74rem; line-height: 1.7; color: var(--ink-soft); }
.checkout-agree a { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 2px; }


/* ===== 結帳：手機改成整頁式（不再是會晃動的小框） ===== */
.checkout-topbar { display: none; }
@media (max-width: 900px) {
  #checkoutModal { padding: 0; align-items: stretch; justify-content: stretch; background: var(--surface); height: 100vh; height: 100dvh; bottom: auto; }
  #checkoutModal .checkout-box { max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: none; background: var(--surface); }
  #checkoutModal .modal-close { display: none; }
  #checkoutModal .checkout-topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; height: 54px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
  .checkout-back { border: none; background: none; font-size: 0.95rem; color: var(--ink); padding: 12px 4px; cursor: pointer; font-family: inherit; }
  .checkout-top-title { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
  .checkout-secure { font-size: 0.74rem; color: #3a7d5c; letter-spacing: 0.04em; }
  #checkoutModal .modal-body { padding: 1.1rem 18px calc(1.4rem + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
  #checkoutModal .modal-body > .section-eyebrow, #checkoutModal .modal-body > h3 { display: none; }
  .checkout-submit-bar { position: sticky; bottom: 0; z-index: 4; margin: 0 -18px; padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 78%, rgba(255, 255, 255, 0)); }
  .checkout-submit-bar .btn { width: 100%; text-align: center; padding-top: 0.95rem; padding-bottom: 0.95rem; }
  #cartDrawer .cart-drawer-box { height: 100vh; height: 100dvh; }
}
