.shop-screen {
  --shop-ink: #241d16;
  --shop-muted: #847768;
  --shop-paper: #fbf7ef;
  --shop-card: #fffdf8;
  --shop-line: #eadfce;
  --shop-red: #a84532;
  --shop-red-dark: #7f2e22;
  --shop-gold: #b38a4a;
  margin: -16px -16px 72px;
  padding: 0 0 28px;
  color: var(--shop-ink);
  background: #f4eee4;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: calc(100vh - 146px);
}

.shop-root { min-height: 480px; }
.shop-loading,
.shop-empty {
  padding: 84px 24px;
  color: var(--shop-muted);
  text-align: center;
}

.shop-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 8px;
  background: #f4eee4;
}
.shop-market-head h2 { margin: 0; font-size: 23px; }
.shop-market-head p { margin: 3px 0 0; color: var(--shop-muted); font-size: 12px; }
.shop-market-actions { display: flex; gap: 7px; }
.shop-market-actions .shop-icon-button { min-width: 52px; min-height: 34px; padding: 6px 10px; border-color: #dfd0bd; color: #664b38; background: #fffaf2; }
.shop-market-actions .shop-icon-button b { color: #fff8ed; background: var(--shop-red); }

.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 22px;
  color: #fff8ec;
  background:
    radial-gradient(circle at 86% 12%, rgba(229, 190, 123, .24), transparent 34%),
    linear-gradient(145deg, #261e17 0%, #473023 62%, #6d382b 100%);
}

.shop-hero::after {
  content: "甄";
  position: absolute;
  right: 16px;
  bottom: -32px;
  color: rgba(255,255,255,.055);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 142px;
  line-height: 1;
}

.shop-hero-top,
.shop-section-head,
.shop-detail-top,
.shop-cart-head,
.shop-order-head,
.shop-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-brand-kicker {
  margin: 0 0 7px;
  color: #dfbd81;
  font-size: 12px;
  letter-spacing: .24em;
}

.shop-hero h2 {
  margin: 0;
  color: #fffaf0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: 29px;
  letter-spacing: .08em;
}

.shop-hero p:last-child {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255,248,236,.72);
  font-size: 13px;
}

.shop-hero-actions { display: flex; gap: 8px; position: relative; z-index: 2; }
.shop-icon-button {
  min-width: 54px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  color: #fff8ec;
  background: rgba(255,255,255,.08);
  font-size: 12px;
}

.shop-icon-button b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 10px;
  color: #552a20;
  background: #efcf91;
  font-size: 11px;
}

.shop-notice {
  display: flex;
  gap: 9px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #e6d7bf;
  border-radius: 12px;
  color: #6f5b42;
  background: #fff9ed;
  font-size: 12px;
  line-height: 1.55;
}
.shop-notice strong { color: var(--shop-red); white-space: nowrap; }

.shop-search-wrap { padding: 4px 14px 8px; }
.shop-search {
  width: 100%;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid var(--shop-line);
  border-radius: 22px;
  color: var(--shop-ink);
  background: rgba(255,255,255,.88);
  outline: none;
}
.shop-search:focus { border-color: #c9a66f; box-shadow: 0 0 0 3px rgba(179,138,74,.1); }

.shop-categories {
  display: flex;
  gap: 8px;
  padding: 0 14px 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar { display: none; }
.shop-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--shop-line);
  border-radius: 13px;
  color: #6d5c49;
  background: rgba(255,255,255,.72);
  font-size: 12px;
}
.shop-category span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  color: #fff7ea;
  background: #846247;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14px;
}
.shop-category.active { border-color: #ba8a65; color: #7e3024; background: #fff9f0; box-shadow: 0 5px 15px rgba(92,61,37,.07); }
.shop-category.active span { background: var(--shop-red); }

.shop-content { padding: 0 14px; }
.shop-section-head { margin: 2px 0 12px; }
.shop-section-head h3 { margin: 0; font-size: 18px; }
.shop-section-head span { color: var(--shop-muted); font-size: 12px; }
.shop-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.shop-product-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212,197,174,.86);
  border-radius: 16px;
  color: var(--shop-ink);
  text-align: left;
  background: var(--shop-card);
  box-shadow: 0 8px 22px rgba(72,48,28,.055);
}
.shop-product-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .96;
  overflow: hidden;
  color: #8c6a4f;
  background: linear-gradient(145deg, #f6ecdc, #efe0ca);
}
.shop-product-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-placeholder { font-family: "STKaiti", "KaiTi", serif; font-size: 50px; opacity: .72; }
.shop-product-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #fff8ef;
  background: rgba(110,51,38,.9);
  font-size: 10px;
}
.shop-product-copy { padding: 11px 11px 12px; }
.shop-product-copy strong { display: block; min-height: 42px; font-size: 14px; line-height: 1.5; }
.shop-product-copy p { margin: 5px 0 8px; min-height: 18px; color: var(--shop-muted); font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shop-price { color: var(--shop-red); font-size: 13px; }
.shop-price b { font-size: 20px; }
.shop-price del { margin-left: 5px; color: #a89f94; font-size: 11px; font-weight: 400; }
.shop-stock { float: right; margin-top: 5px; color: #9b8b7a; font-size: 10px; }

.shop-page { min-height: 500px; background: var(--shop-paper); }
.shop-page-bar {
  position: sticky;
  top: 86px;
  z-index: 6;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  min-height: 52px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--shop-line);
  background: rgba(251,247,239,.96);
  backdrop-filter: blur(12px);
}
.shop-page-bar h2 { margin: 0; text-align: center; font-size: 17px; }
.shop-back,
.shop-text-button {
  border: 0;
  color: #765a3d;
  background: transparent;
  font-size: 13px;
}
.shop-back { text-align: left; font-size: 24px; }

.shop-detail-gallery { position: relative; aspect-ratio: 1 / .82; background: #efe2d0; }
.shop-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #936d4c; font-family: "STKaiti", "KaiTi", serif; font-size: 84px; }
.shop-detail-copy { padding: 18px 16px 112px; }
.shop-detail-copy h2 { margin: 9px 0 7px; color: var(--shop-ink); font-size: 23px; line-height: 1.35; }
.shop-detail-subtitle { margin: 0 0 14px; color: var(--shop-muted); line-height: 1.65; }
.shop-detail-price { color: var(--shop-red); font-size: 15px; }
.shop-detail-price b { font-size: 28px; }
.shop-detail-meta,
.shop-policy-card,
.shop-description {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fffdf8;
}
.shop-detail-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 6px 0; font-size: 13px; }
.shop-detail-meta span { color: var(--shop-muted); }
.shop-policy-card strong,
.shop-description h3 { display: block; margin: 0 0 7px; font-size: 15px; }
.shop-policy-card p,
.shop-description p { margin: 0; color: #66594c; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.shop-option-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.shop-option {
  padding: 8px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 9px;
  color: #604d3b;
  background: #fff;
}
.shop-option.active { border-color: var(--shop-red); color: var(--shop-red); background: #fff4ef; }

.shop-buy-bar {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: 68px;
  display: grid;
  grid-template-columns: 74px 1fr 1fr;
  width: min(100%, 430px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--shop-line);
  background: rgba(255,253,248,.97);
  transform: translateX(-50%);
}
.shop-buy-bar button { min-height: 44px; border: 0; }
.shop-cart-shortcut { color: #6d5843; background: transparent; }
.shop-add-cart { color: #7a3327; background: #f1dbc4; border-radius: 22px 0 0 22px !important; }
.shop-buy-now { color: #fff8ee; background: var(--shop-red); border-radius: 0 22px 22px 0 !important; }

.shop-cart-list,
.shop-order-list,
.shop-checkout-body { padding: 14px 14px 120px; }
.shop-cart-item,
.shop-order-card,
.shop-address-card,
.shop-checkout-card {
  margin-bottom: 11px;
  padding: 13px;
  border: 1px solid var(--shop-line);
  border-radius: 15px;
  background: #fffdf9;
  box-shadow: 0 5px 16px rgba(74,48,26,.045);
}
.shop-cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.shop-cart-thumb,
.shop-order-thumb { display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: #8d6545; background: #f0e1ce; font-family: "STKaiti", "KaiTi", serif; font-size: 30px; }
.shop-cart-thumb { width: 74px; height: 74px; }
.shop-cart-thumb img,
.shop-order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-copy strong { display: block; font-size: 14px; line-height: 1.45; }
.shop-cart-copy small { display: block; margin: 4px 0 8px; color: var(--shop-muted); }
.shop-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-quantity { display: flex; align-items: center; border: 1px solid var(--shop-line); border-radius: 9px; overflow: hidden; }
.shop-quantity button { width: 30px; height: 28px; border: 0; background: #f8f1e7; }
.shop-quantity span { min-width: 30px; text-align: center; font-size: 12px; }
.shop-remove { border: 0; color: #9a6e60; background: transparent; font-size: 12px; }

.shop-summary-bar {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 430px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--shop-line);
  background: rgba(255,253,248,.97);
  transform: translateX(-50%);
}
.shop-summary-bar small { display: block; color: var(--shop-muted); font-size: 10px; }
.shop-summary-bar strong { color: var(--shop-red); font-size: 20px; }
.shop-primary {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  color: #fff9f0;
  background: var(--shop-red);
  font-weight: 700;
}
.shop-primary:disabled { opacity: .45; }
.shop-secondary {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d6c3aa;
  border-radius: 19px;
  color: #74553d;
  background: #fffdf8;
}

.shop-checkout-card h3 { margin: 0 0 12px; font-size: 15px; }
.shop-address-card { position: relative; display: block; width: 100%; padding-right: 38px; }
.shop-address-card.active { border-color: #b66c56; background: #fff7ef; }
.shop-address-card strong { display: block; margin-bottom: 5px; }
.shop-address-card p { margin: 4px 0 0; color: #675a4d; font-size: 12px; line-height: 1.55; }
.shop-address-card input[type="radio"] { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; transform: translateY(-50%); accent-color: var(--shop-red); }
.shop-form-grid { display: grid; gap: 10px; }
.shop-form-grid.two { grid-template-columns: 1fr 1fr; }
.shop-field label { display: block; margin-bottom: 5px; color: #776858; font-size: 12px; }
.shop-field input,
.shop-field textarea,
.shop-field select {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  color: var(--shop-ink);
  background: #fff;
}
.shop-field textarea { min-height: 76px; resize: vertical; }
.shop-checkline { display: flex; align-items: flex-start; gap: 8px; color: #625346; font-size: 12px; line-height: 1.55; }
.shop-checkline input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--shop-red); }
.shop-money-row { display: flex; justify-content: space-between; margin: 8px 0; color: #685b4f; font-size: 13px; }
.shop-money-row.total { padding-top: 9px; border-top: 1px solid var(--shop-line); color: var(--shop-ink); font-weight: 700; }

.shop-order-head strong { font-size: 13px; }
.shop-order-status { color: var(--shop-red); font-size: 12px; font-weight: 700; }
.shop-order-items { margin: 11px 0; padding: 10px 0; border-top: 1px solid #f0e7db; border-bottom: 1px solid #f0e7db; }
.shop-order-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 9px; align-items: center; margin: 7px 0; }
.shop-order-thumb { width: 48px; height: 48px; font-size: 20px; }
.shop-order-item p { margin: 0; font-size: 12px; line-height: 1.4; }
.shop-order-item small { color: var(--shop-muted); }
.shop-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.shop-order-actions button { min-height: 34px; padding: 0 12px; border: 1px solid #d8c8b3; border-radius: 17px; color: #72533c; background: #fff; font-size: 12px; }
.shop-order-actions button.primary { border-color: var(--shop-red); color: #fff; background: var(--shop-red); }
.shop-order-requested { width: 100%; color: #9b7540; font-size: 12px; text-align: right; }
.shop-tracking { margin-top: 9px; padding: 9px 10px; border-radius: 9px; color: #635447; background: #f8f0e4; font-size: 12px; line-height: 1.55; }

.shop-toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 136px;
  max-width: 340px;
  padding: 11px 16px;
  border-radius: 20px;
  color: #fff;
  background: rgba(38,29,22,.92);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  transform: translateX(-50%);
  font-size: 13px;
  text-align: center;
}
.shop-toast.hidden { display: none; }

@media (max-width: 350px) {
  .shop-product-grid { gap: 8px; }
  .shop-product-copy { padding: 9px; }
  .shop-form-grid.two { grid-template-columns: 1fr; }
  .shop-hero { padding-left: 16px; padding-right: 16px; }
}
