:root {
  --primary: #26352f;
  --dark: #1d2824;
  --warm: #faf8f3;
  --gold: #b89a63;
  --fresh-gold: #d0ae69;
  --charcoal: #2e2e2b;
  --muted: #746f67;
  --border: #e7e1d7;
  --sage: #8faf9d;
  --sage-light: #edf4ef;
  --red: #b45f5a;
  --line: #06c755;
  --shadow: 0 8px 24px rgba(38, 53, 47, .08);
  --shell: 1240px;
}

/* Store Hub page shell — Breadcrumb only; no Shared Header/Footer chrome. */
html, body.ett-store-hub-page {
  margin: 0;
  padding: 0;
  background: var(--warm, #faf8f3);
  overflow-x: hidden;
  max-width: 100%;
}
.ett-store-hub {
  background: var(--warm);
  color: var(--charcoal);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}
.ett-store-hub *,
.ett-store-hub *::before,
.ett-store-hub *::after { box-sizing: border-box; }
.ett-store-hub > main { flex: 1 0 auto; min-width: 0; }
.ett-store-hub button, .ett-store-hub input, .ett-store-hub select { font: inherit; color: inherit; }
.ett-store-hub button, .ett-store-hub a { touch-action: manipulation; }
.ett-store-hub a { color: inherit; text-decoration: none; }
.ett-store-hub svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ett-store-hub .shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.ett-store-hub .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ett-store-hub .svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ett-store-hub .breadcrumbs { height: 42px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.ett-store-hub .breadcrumbs strong { color: var(--charcoal); }
.ett-store-hub .breadcrumbs a:hover { color: #506b60; text-decoration: underline; text-underline-offset: 3px; }


.merchant-header {
  width: min(1348px, calc(100% - 40px));
  min-height: 216px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #dfcfaa;
  border-radius: 9px;
  box-shadow: 0 8px 30px rgba(38, 53, 47, .025);
}
.merchant-content {
  min-height: 214px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .92fr);
  align-items: center;
  gap: 68px;
  padding: 23px 68px 23px 56px;
}
.merchant-block { display: flex; align-items: center; gap: 28px; min-width: 0; }
.merchant-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 2px 7px rgba(38, 53, 47, .07));
}
.merchant-logo--empty {
  background: #eef1f0;
  box-shadow: inset 0 0 0 1px #e7e1d7;
  filter: none;
}
.merchant-copy { min-width: 0; }
.merchant-copy h1, .section-heading h2 {
  font-family: "Noto Serif TC", "Songti TC", serif;
  color: #15261f;
}
.merchant-copy h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; white-space: nowrap; letter-spacing: .02em; }
.merchant-meta { display: flex; align-items: center; gap: 13px; font-size: 14px; }
.merchant-meta > span { display: flex; align-items: center; gap: 4px; }
.merchant-meta svg { width: 16px; }
.merchant-meta a { text-decoration: underline; text-underline-offset: 3px; color: #315a50; font-weight: 600; }
.chip { background: #f1f1ed; border-radius: 999px; padding: 2px 12px; }
.merchant-copy > p { font-size: 14px; color: #4f514d; margin: 9px 0; line-height: 1.7; }
.notice {
  font-size: 14px;
  background: #f2eee1;
  border-radius: 5px;
  padding: 7px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
}
.notice svg { color: #9a8b56; fill: #b9ad79; stroke: #b9ad79; }
.action-panel { align-self: center; min-width: 0; }
.gold-rule { display: block; width: 28px; height: 3px; background: var(--fresh-gold); margin-bottom: 9px; }
.activity-total {
  font-family: "Noto Serif TC", "Songti TC", serif;
  color: #153128;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 2px;
}
.activity-total strong {
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  color: #cf3030;
  font-size: 1.14em;
}
.page-meta { font-size: 13px; color: #65706b; margin: 0 0 10px; white-space: nowrap; }
.page-meta span { color: #aaa79f; margin-inline: 3px; }
.line-primary, .outline-btn {
  border-radius: 5px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.ett-store-hub a.line-primary {
  width: 100%;
  border: 0;
  background: #009B3A;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  border-radius: 5px;
  font-weight: 700;
}
.ett-store-hub a.line-primary:hover { background: #008833; color: #fff; }
.line-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}
.line-brand-badge .line-brand-icon {
  width: 16px;
  height: 16px;
}
.line-brand-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}
.line-brand-icon--sm { width: 18px; height: 18px; }
.outline-btn {
  height: 35px;
  background: #fff;
  border: 1px solid #36534a;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.outline-btn:hover { background: var(--sage-light); }
.outline-btn.is-copied {
  background: #26352f;
  border-color: #26352f;
  color: #fff;
  font-weight: 700;
}
.outline-btn.is-copied svg { stroke: #fff; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.page-meta { font-size: 13px; color: #65706b; margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.audience--mobile { display: none; }
.audience--desktop { display: inline-flex; }
.card-body .summary { margin: 6px 0 4px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.facts--date { margin-top: 4px; }
.facts--loc { margin-top: 2px; }

.activities { padding-top: 26px; }
.section-top { display: grid; grid-template-columns: 1.25fr .9fr 1fr; align-items: end; gap: 24px; margin-bottom: 12px; }
.section-heading { border-left: 4px solid var(--fresh-gold); padding: 4px 0 4px 18px; }
.section-heading h2 { font-size: 24px; line-height: 1.2; margin: 0; }
.stats { display: flex; justify-content: center; align-items: center; gap: 14px; padding-bottom: 5px; }
.stats button { background: none; border: 0; padding: 4px; cursor: pointer; font-size: 13px; }
.stats button.active { color: var(--primary); font-weight: 700; }
.stats b { color: #b33d3d; font-size: 16px; }
.stats i { width: 1px; height: 16px; background: var(--border); }
.months {
  height: 36px;
  border: 1px solid #dcd8cf;
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, .8fr);
  padding: 3px;
}
.months button { border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-size: 12px; }
.months button.active { background: var(--primary); color: #fff; }
.toolbar { display: grid; grid-template-columns: 1fr 1fr 1fr 3.2fr 1.1fr; gap: 10px; margin-bottom: 12px; }
.toolbar select, .toolbar input {
  height: 40px;
  border: 1px solid #ddd8ce;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  padding: 0 13px;
  outline: none;
}
.toolbar select:focus, .toolbar input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(143, 175, 157, .16); }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 13px; top: 10px; color: #52645d; }
.search-field input { padding-left: 42px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.activity-card {
  height: 190px;
  border: 1px solid #e4dfd6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 43% 57%;
  box-shadow: 0 4px 14px rgba(38, 53, 47, .055);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.activity-card:focus-visible { outline: 3px solid rgba(143, 175, 157, .55); outline-offset: 3px; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 10px 11px 8px; display: flex; flex-direction: column; min-width: 0; }
.tags { display: flex; gap: 6px; margin-bottom: 4px; }
.tag { font-size: 10px; padding: 3px 9px; border-radius: 999px; background: #eef1f0; color: #52615c; }
.tag.status { background: #f7e4b9; color: #6d592d; }
.tag.status.green { background: #daf0df; color: #28704a; }
.tag.status.sage { background: #e4f3e9; color: #397354; }
.tag.status.coral { background: #f8d8ce; color: #904933; }
.card-body h3 {
  font-family: "Noto Serif TC", "Songti TC", serif;
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  color: #1c2924;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary {
  font-size: 11px;
  color: #5f615d;
  line-height: 1.45;
  margin: 3px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.facts { font-size: 10px; display: flex; gap: 10px; color: #59645f; white-space: nowrap; }
.facts span { display: flex; align-items: center; gap: 3px; }
.facts svg { width: 13px; height: 13px; }
.price-line { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.price { color: #b12828; font-size: 19px; font-weight: 500; }
.price small { font-size: 10px; }
.audience { font-size: 10px; background: #f6e9c8; border-radius: 999px; padding: 3px 11px; }
.audience.trade { background: #f7d9d3; }
.card-foot {
  border-top: 1px solid #eeeae3;
  margin-top: 4px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  font-size: 9px;
  color: #8a8a84;
}
.card-foot span + span::before { content: "|"; margin-inline: 5px; color: #c4c0b9; }
.card-foot .card-link { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.load-more { display: flex; margin: 16px auto 12px; border: 1px solid var(--primary); background: #fff; border-radius: 6px; padding: 8px 31px; font-weight: 700; cursor: pointer; gap: 16px; }
.load-more:hover { background: var(--sage-light); }
.load-more[hidden], .empty[hidden] { display: none !important; }
.empty { text-align: center; padding: 50px; background: #fff; border: 1px dashed var(--border); border-radius: 8px; }
.empty h3 { font-family: "Noto Serif TC", serif; }
.empty .linkish {
  border: 0;
  background: none;
  color: #315a50;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  margin-left: 6px;
}
.trust {
  min-height: 48px;
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 18px;
  font-size: 11px;
  color: #676963;
}
.trust svg { color: #397268; fill: #397268; stroke: #fff; }
.trust p { margin: 0; }
.trust a { margin-left: 35px; color: #a47c3f; text-decoration: underline; text-underline-offset: 3px; }

/* Mini Footer — activity-family visual language; Store Hub presentation only. */
.hub-mini-footer {
  width: 100%;
  max-width: 100%;
  margin: 28px 0 0;
  background: linear-gradient(150deg, #2F2B26, #37312B);
  color: #FAF8F3;
  text-align: center;
  padding: 16px 16px 14px;
  border: 0;
  flex: 0 0 auto;
  overflow-wrap: anywhere;
}
.hub-mini-footer__brand {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .04em;
  color: #FAF8F3;
}
.hub-mini-footer__copyright {
  margin: 4px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(250, 248, 243, .66);
}

/* Floating ↑ TOP — fixed safe area; must not cover CTAs / Mini Footer. */
.hub-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  z-index: 25;
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(38, 53, 47, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(38, 53, 47, .12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  line-height: 1;
}
.hub-top:hover,
.hub-top:focus-visible {
  background: #fff;
  border-color: var(--gold);
  outline: none;
}
.hub-top[hidden] { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 30;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 701px) {
  .hub-mini-footer { padding: 18px 18px 16px; }
  .hub-mini-footer__brand { font-size: 14px; letter-spacing: .05em; }
  .hub-mini-footer__copyright { margin-top: 5px; font-size: 11px; }
}

@media (max-width: 1100px) {
  .merchant-content { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .85fr); gap: 34px; padding-inline: 34px; }
  .merchant-logo { width: 96px; height: 96px; }
  .merchant-copy h1 { font-size: 25px; }
  .notice { font-size: 13px; }
  .section-top { grid-template-columns: 1fr 1fr; }
  .months { grid-column: 1 / -1; }
  .toolbar { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .ett-store-hub .shell { width: min(100% - 28px, var(--shell)); }
  .breadcrumbs { height: 40px; font-size: 12px; overflow: hidden; white-space: nowrap; }
  .merchant-header { width: calc(100% - 28px); min-height: 0; }
  .merchant-content { display: block; min-height: 0; padding: 20px; }
  .merchant-block { align-items: flex-start; gap: 15px; }
  .merchant-logo { width: 76px; height: 76px; }
  .merchant-copy h1 { font-size: 23px; white-space: normal; }
  .merchant-meta { flex-wrap: wrap; font-size: 13px; gap: 8px; }
  .merchant-copy > p { font-size: 13px; }
  .notice { white-space: normal; font-size: 13px; }
  .action-panel { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
  .gold-rule { width: 24px; }
  .activity-total { font-size: 21px; }
  .page-meta { white-space: normal; }
  .line-primary { height: 46px; }
  .outline-btn { height: 42px; }
  .activities { padding-top: 20px; }
  .section-top { display: block; }
  .section-heading h2 { font-size: 23px; }
  .stats { justify-content: flex-start; margin: 12px 0 9px; }
  .months { overflow-x: auto; grid-template-columns: repeat(5, minmax(76px, 1fr)); margin-bottom: 12px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar label:nth-child(3), .search-field, .toolbar label:last-child { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr; }
  .activity-card { height: 202px; grid-template-columns: 42% 58%; }
  .audience--mobile { display: inline-flex; }
  .audience--desktop { display: none; }
  .trust { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .trust p { width: calc(100% - 30px); }
  .trust a { margin-left: 30px; }
  .toast { bottom: 18px; white-space: nowrap; }
  .hub-top {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 80px));
  }
}

@media (max-width: 400px) {
  .merchant-content { padding: 17px; }
  .merchant-block { display: block; }
  .merchant-logo { width: 72px; height: 72px; margin-bottom: 12px; }
  .activity-card { height: auto; min-height: 195px; }
  .card-body h3 { font-size: 16px; }
  .price { font-size: 17px; }
  .facts { gap: 6px; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar label, .toolbar label:nth-child(3), .search-field, .toolbar label:last-child { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ett-store-hub * { scroll-behavior: auto !important; transition: none !important; }
}
