/* 商城前台样式 */
.shop-header {
  background: linear-gradient(160deg, var(--brown-deep), var(--brown));
  color: #f6ecda;
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-brand { display: flex; align-items: center; gap: 10px; }
.shop-logo { font-size: 26px; }
.shop-title { font-family: var(--serif); font-size: 17px; letter-spacing: 1px; }
.shop-sub { font-size: 11px; color: var(--gold-soft); margin-top: 1px; }
.shop-my { font-size: 13px; color: #f0e4cd; padding: 6px 12px; border: 1px solid rgba(236,220,184,.35); border-radius: 999px; }

.shop-main { max-width: 560px; margin: 0 auto; padding: 0 14px 40px; }

.shop-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 28px; margin-bottom: 6px; }
.cat-name { font-size: 13px; color: var(--ink); }

.shop-section { margin-bottom: 24px; }
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-cover {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--muted);
  background-size: cover;
  background-position: center;
}
.product-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.product-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.product-price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.product-price { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--clay); }
.product-price .unit { font-size: 12px; font-weight: normal; }
.product-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-badge { display: inline-block; background: var(--clay); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: auto; }

.shop-footer { text-align: center; padding: 24px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-link { color: var(--muted); text-decoration: none; }

/* 详情页 */
.detail-cover { width: 100%; aspect-ratio: 1; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; font-size: 96px; background-size: cover; background-position: center; }
.detail-body { padding: 16px; }
.detail-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.detail-price { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--clay); margin: 10px 0; }
.detail-desc { color: var(--ink-soft); line-height: 1.7; white-space: pre-wrap; }
.detail-specs { margin-top: 14px; }
.detail-specs .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.detail-bottom { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }

/* 下单/支付 */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.order-item:last-child { border-bottom: none; }
.order-thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.order-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-summary .total { font-size: 18px; font-weight: 700; color: var(--clay); border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 12px; }

.pay-box { text-align: center; padding: 24px 16px; }
.pay-amount { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--clay); margin: 10px 0; }
.pay-qr { max-width: 240px; width: 100%; margin: 20px auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.pay-tip { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 16px 0; }

.order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #f5f5f5; color: #757575; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-done { background: #e8f5e9; color: #2e7d32; }

.video-box { background: #000; border-radius: 12px; overflow: hidden; margin: 12px 0; }
.video-box video { width: 100%; display: block; }
