/* MERCH — Amazon/Taobao-style product cards (media left / commerce panel right). */

.merch-hero { padding-bottom: 24px; }
.merch-section { padding-top: 12px; }

.merch-grid { display: grid; gap: 22px; margin-top: 10px; }

.merch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
}

/* ---- media (left) ---- */
.merch-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0d0d0d;
  overflow: hidden;
}
.merch-media img,
.merch-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.merch-media img.is-active,
.merch-media video.is-active { opacity: 1; }
.merch-soon-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c1715;
  background: var(--gold);
}
.merch-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
}
.merch-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.merch-dots button.is-active { background: #fff; }

/* ---- panel (right) ---- */
.merch-panel { padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.merch-panel h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.merch-sub { margin: 0; color: var(--muted); }

.merch-rating { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.merch-stars { color: var(--gold); letter-spacing: 2px; }

.merch-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.merch-price .now { font-size: 1.8rem; font-weight: 900; color: var(--text); }
.merch-price .was { color: var(--subtle); text-decoration: line-through; }
.merch-price .off {
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
}

.merch-variant { display: grid; gap: 8px; }
.merch-variant > span { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.merch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.merch-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
}
.merch-chip:hover { background: var(--surface-strong); }
.merch-chip.is-active { border-color: var(--gold); background: var(--surface-strong); box-shadow: 0 0 0 2px rgba(215, 170, 98, 0.3); }
.merch-swatch { display: inline-flex; align-items: center; gap: 8px; }
.merch-swatch i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); }

.merch-buy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.merch-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.merch-stepper button {
  width: 42px;
  height: 44px;
  border: 0;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
}
.merch-stepper button:hover { background: var(--surface-strong); }
.merch-stepper output { min-width: 44px; text-align: center; font-weight: 800; }

.merch-total { margin-left: auto; font-size: 0.9rem; color: var(--muted); }
.merch-total b { display: block; font-size: 1.4rem; color: var(--text); }

.merch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.merch-actions .button { flex: 1 1 auto; }
.merch-note { margin: 4px 0 0; font-size: 0.84rem; color: var(--gold); min-height: 1.1em; }

@media (max-width: 820px) {
  .merch-card { grid-template-columns: 1fr; }
  .merch-media { aspect-ratio: 4 / 3; }
}

/* ---------- donate page (reuses the merch hero shell) ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.donate-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  padding: 22px 24px;
}
.donate-card h3 { margin: 0 0 10px; }
.donate-card p { color: var(--subtle); line-height: 1.7; margin: 0 0 12px; }
.donate-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-note { font-size: 0.85rem; font-style: italic; }

/* donate proverb — serif pull-quote under the support copy */
.donate-proverb { margin: 20px 0 0; padding: 0; border: 0; }
.donate-proverb__line {
  margin: 0 0 6px;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
.donate-proverb cite {
  font-style: normal;
  color: var(--subtle);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
