/* Teaon1 設計系統 v2 — 茶具品牌風格
   原則：暖紙底色、深松綠、宋體展示標題、軟陰影取代硬邊框、
   中國市場可用的系統字體（不依賴 Google Fonts） */

:root {
  color-scheme: light;
  --bg: #f3eee3;
  --surface: #fffdf7;
  --surface-soft: #e9e1cf;
  --ink: #182019;
  --muted: #5f6a5f;
  --line: #ddd3bd;
  --green: #1d5c40;
  --green-dark: #0f3528;
  --green-deep: #0a2419;
  --gold: #c29a4b;
  --gold-soft: #e7d9b8;
  --rose: #b65e54;
  --shadow-sm: 0 2px 10px rgb(31 38 30 / 6%);
  --shadow: 0 14px 40px rgb(31 38 30 / 10%);
  --shadow-hover: 0 22px 52px rgb(31 38 30 / 16%);
  --focus-ring: 0 0 0 3px rgb(29 92 64 / 18%);
  --radius: 14px;
  --radius-lg: 22px;
  --speed: 0.2s;
  --font-sans: Inter, "Noto Sans TC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Songti TC", "Songti SC", "Noto Serif TC", "Source Han Serif TC", "Source Han Serif SC", PMingLiU, SimSun, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  transition: background-color var(--speed) ease, border-color var(--speed) ease,
    color var(--speed) ease, box-shadow var(--speed) ease, transform 0.15s ease,
    opacity var(--speed) ease;
}

:focus-visible {
  outline: 3px solid rgb(29 92 64 / 55%);
  outline-offset: 2px;
}

::selection {
  background: rgb(194 154 75 / 30%);
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 字級系統 ---------- */

/* 中文標題行高不可小於 1，否則字形會互相裁切 */
h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 頁首 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgb(243 238 227 / 90%);
  border-bottom: 1px solid rgb(221 211 189 / 70%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 8px 18px rgb(20 61 45 / 16%);
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.search input,
.contact-form input,
.contact-form textarea,
.auth-form input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.contact-form textarea {
  min-height: 140px;
  padding: 14px 18px;
  border-radius: var(--radius);
  resize: vertical;
}

.search input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.auth-form input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.header-actions a,
.policy-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.header-actions a {
  position: relative;
  padding: 4px 0;
}

.header-actions a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right var(--speed) ease;
}

.header-actions a:hover {
  color: var(--green);
}

.header-actions a:hover::after {
  right: 0;
}

.cart-button,
.primary-link,
.secondary-link,
.category-tab,
.auth-tab,
.add-button,
.checkout-button,
.qty-button,
.icon-button,
.line-remove,
.submit-button,
.link-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}

.cart-button:hover {
  background: var(--green);
}

.cart-button:active {
  transform: scale(0.97);
}

.cart-button span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1d1607;
  font-size: 13px;
}

@keyframes badge-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-button span.bump {
  animation: badge-pop 0.35s ease;
}

/* ---------- 版面骨架 ---------- */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 56px) 72px;
}

.shop-hero,
.story-band,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.shop-hero {
  min-height: 500px;
}

.hero-copy,
.content-panel,
.policy-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgb(221 211 189 / 55%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

/* 首頁沉浸式深綠 hero */
.shop-hero .hero-copy {
  border: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgb(194 154 75 / 16%), transparent 55%),
    linear-gradient(158deg, #17472f 0%, var(--green-dark) 55%, var(--green-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.shop-hero h1 {
  color: #fff;
}

.shop-hero .hero-copy p:not(.eyebrow) {
  color: rgb(255 255 255 / 80%);
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-perks li {
  padding: 8px 15px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: rgb(255 255 255 / 88%);
  font-size: 13px;
  font-weight: 600;
}

.hero-copy p:not(.eyebrow),
.page-lead,
.story-band p,
.content-panel p,
.policy-card p,
.policy-card li,
.contact-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p:not(.eyebrow),
.page-lead {
  max-width: 60ch;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.submit-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link,
.submit-button {
  background: var(--green);
  color: #fff;
}

.primary-link:hover,
.submit-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgb(15 53 40 / 28%);
}

.primary-link:active,
.submit-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.secondary-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.secondary-link:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: rgb(29 92 64 / 6%);
}

/* hero 內的按鈕配色（金色主 CTA + 描邊次要） */
.shop-hero .primary-link {
  background: var(--gold);
  color: #221a09;
}

.shop-hero .primary-link:hover {
  background: #d2ab5e;
  box-shadow: 0 12px 26px rgb(0 0 0 / 30%);
}

.shop-hero .secondary-link {
  border-color: rgb(255 255 255 / 32%);
  color: #fff;
}

.shop-hero .secondary-link:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgb(255 255 255 / 6%);
}

.link-button {
  justify-self: start;
  padding: 0;
  background: none;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--green-dark);
}

.hero-media,
.story-band img,
.split-image {
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.hero-media img,
.story-band img,
.split-image img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 數據列 ---------- */

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 30px 0 56px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats div {
  padding: 18px 24px;
}

.quick-stats div + div {
  border-left: 1px solid var(--line);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
}

.quick-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.shop-section,
.story-band,
.policy-grid,
.contact-grid {
  margin-top: 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.view-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.view-tools select {
  min-width: 170px;
}

.category-tabs,
.policy-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tab,
.policy-nav a,
.auth-tab {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.category-tab:hover,
.policy-nav a:hover,
.auth-tab:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: rgb(29 92 64 / 5%);
}

.category-tab.is-active,
.auth-tab.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

/* ---------- 商品卡片 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

.product-image img {
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 253 247 / 92%);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-meta,
.product-body small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.product-card h3 {
  margin: 9px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-body small {
  margin-top: 8px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
}

.price {
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.add-button,
.checkout-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.add-button:hover,
.checkout-button:hover:not(:disabled) {
  background: var(--green-dark);
}

.add-button:active {
  transform: scale(0.96);
}

.add-button.is-added {
  background: var(--green-dark);
}

.checkout-button {
  width: 100%;
  min-height: 52px;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 253 247 / 70%);
  color: var(--muted);
  text-align: center;
}

/* ---------- 品牌敘事帶 ---------- */

.story-band {
  grid-template-columns: 1fr 380px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 120% at 0% 100%, rgb(194 154 75 / 12%), transparent 50%),
    linear-gradient(155deg, #17472f, var(--green-dark) 70%);
  color: #fff;
  box-shadow: var(--shadow);
}

.story-band h2 {
  color: #fff;
}

.story-band p:not(.eyebrow) {
  color: rgb(255 255 255 / 78%);
}

.content-panel,
.policy-card,
.contact-card {
  padding: clamp(26px, 4vw, 42px);
}

.policy-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.policy-card h2,
.contact-card h2 {
  font-size: 22px;
}

.policy-card ul {
  padding-left: 20px;
}

/* ---------- 購物車頁 ---------- */

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.cart-summary {
  position: sticky;
  top: 96px;
}

/* ---------- 購物車抽屜 ---------- */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgb(10 22 16 / 48%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  width: min(100%, 430px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 60px rgb(0 0 0 / 22%);
  transform: translateX(103%);
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.34, 1);
}

.cart-drawer.is-open .cart-panel {
  transform: none;
}

.cart-head,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-total {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 18px;
}

.cart-total strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--green-dark);
}

.cart-head h2 {
  font-size: 24px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--line);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 16px 24px;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgb(221 211 189 / 60%);
}

.cart-line img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-line h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
}

.cart-line p {
  margin: 4px 0 10px;
  color: var(--muted);
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-line-side strong {
  font-size: 15px;
  color: var(--green-dark);
}

.line-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.line-remove:hover {
  background: var(--rose);
  color: #fff;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qty-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
}

.qty-button:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}

.qty-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.cart-panel .checkout-button {
  margin: 0 24px 8px;
  width: calc(100% - 48px);
}

.checkout-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--rose);
}

.cart-panel .checkout-message {
  margin: 0 24px 14px;
}

.trust-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.cart-panel .trust-note {
  margin: 0 24px 12px;
}

.empty-cart {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--muted);
  text-align: center;
}

.empty-cart-icon {
  font-size: 40px;
}

.empty-cart p {
  margin: 0;
  font-weight: 700;
}

/* ---------- 會員 / 登入 ---------- */

.auth-wrap {
  display: grid;
  place-items: center;
  padding: 26px 0;
}

.auth-panel {
  width: min(100%, 540px);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0 18px;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label,
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.form-message.is-error {
  color: var(--rose);
}

.form-message.is-success {
  color: var(--green);
}

.account-head .hero-actions {
  margin-top: 24px;
}

.order-list {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.order-card-head strong {
  font-family: var(--font-serif);
  font-size: 17px;
}

.order-card-head time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.order-status {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.order-status.is-pending {
  background: rgb(194 154 75 / 16%);
  color: #93702c;
}

.order-status.is-paid {
  background: rgb(29 92 64 / 12%);
  color: var(--green-dark);
}

.order-status.is-canceled {
  background: rgb(95 106 95 / 14%);
  color: var(--muted);
}

.order-items {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(221 211 189 / 60%);
  color: var(--muted);
  font-size: 14px;
}

.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  font-size: 16px;
}

.order-card-foot strong {
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 20px;
}

/* ---------- 結帳成功摘要 ---------- */

.order-confirm {
  display: grid;
  margin: 20px 0 4px;
  max-width: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid rgb(221 211 189 / 60%);
}

.confirm-row:last-child {
  border-bottom: 0;
}

.confirm-row span {
  color: var(--muted);
}

/* ---------- 聯絡表單 ---------- */

.contact-form {
  display: grid;
  gap: 15px;
}

/* ---------- 頁尾 ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
  padding: 44px clamp(18px, 4vw, 56px) 48px;
  background: var(--green-deep);
  color: rgb(255 255 255 / 60%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.footer-links a {
  color: rgb(255 255 255 / 85%);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
}

.site-footer > div > span {
  margin-top: 4px;
  font-size: 13px;
}

/* ---------- 響應式 ---------- */

@media (max-width: 980px) {
  .site-header,
  .shop-hero,
  .story-band,
  .split-section,
  .cart-page {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-grid,
  .policy-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-summary {
    position: static;
  }

  .shop-hero {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 18px;
  }

  .site-header {
    gap: 12px;
  }

  .header-actions {
    gap: 8px 14px;
  }

  .header-actions a {
    font-size: 14px;
  }

  .cart-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .quick-stats div {
    padding: 14px 4px;
  }

  .quick-stats div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-grid,
  .policy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-copy,
  .content-panel,
  .policy-card,
  .contact-card,
  .story-band {
    padding: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cart-panel {
    border-radius: 0;
  }
}

/* ---------- 減少動態 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
