:root {
  --ink: #19211f;
  --muted: #62706b;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dfe5df;
  --red: #a62327;
  --green: #1f6f5c;
  --gold: #b98635;
  --blue: #315d77;
  --shadow: 0 10px 30px rgba(25, 33, 31, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-bottom: 104px;
}

.entry-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 28px;
  min-height: 100vh;
  padding: clamp(32px, 7vw, 76px) 16px;
  align-content: center;
  overflow: hidden;
}

.entry-panel::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 28px);
  z-index: -2;
  border: 1px solid rgba(185, 134, 53, .28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 249, 236, .72)),
    radial-gradient(circle at 86% 12%, rgba(166, 35, 39, .14), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(31, 111, 92, .13), transparent 30%);
  box-shadow: 0 28px 80px rgba(25, 33, 31, .12);
}

.entry-panel::after {
  content: "朱雀开物";
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(28px, 5vw, 64px);
  z-index: -1;
  color: rgba(166, 35, 39, .05);
  font-size: clamp(72px, 15vw, 190px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.entry-aura {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 134, 53, .18), transparent 24%),
    radial-gradient(circle at 84% 70%, rgba(166, 35, 39, .12), transparent 28%),
    linear-gradient(135deg, #f8f3e6, #f4f7ef 52%, #fbf3ee);
}

.entry-copy {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: 0 clamp(14px, 3vw, 46px);
}

.entry-copy p {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
}

.entry-copy h1 {
  margin: 0;
  color: var(--ink);
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
}

.entry-copy span,
.bundle-intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(14px, 3vw, 46px);
}

.entry-actions button {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(25, 33, 31, .1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 250, 239, .74));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 48px rgba(25, 33, 31, .1);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.entry-actions button::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(185, 134, 53, .28);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185, 134, 53, .12), transparent 62%);
}

.entry-actions button:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 134, 53, .38);
  box-shadow: 0 24px 60px rgba(25, 33, 31, .14);
}

.entry-actions button:last-child {
  border-color: rgba(166, 35, 39, .32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 244, 230, .82)),
    radial-gradient(circle at 88% 14%, rgba(166, 35, 39, .12), transparent 36%);
}

.entry-actions em {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(185, 134, 53, .42);
  border-radius: 999px;
  color: var(--red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
}

.entry-actions strong {
  max-width: 8em;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.entry-actions span {
  color: var(--muted);
  max-width: 18em;
  font-size: 16px;
  line-height: 1.7;
}

.bundle-page {
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: 32px 16px 0;
}

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

.bundle-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bundle-card.featured {
  border-color: rgba(166, 35, 39, .32);
  background: linear-gradient(180deg, #fff, #fff8f2);
}

.bundle-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.bundle-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.bundle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.bundle-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bundle-total div {
  padding: 10px;
  border-radius: 8px;
  background: #f6faf8;
}

.bundle-total span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bundle-total strong {
  color: var(--red);
  font-size: 20px;
}

.bundle-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bundle-items b {
  color: var(--ink);
}

.bundle-action,
.bundle-secondary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.bundle-secondary {
  justify-self: start;
  padding: 0 18px;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  overflow: hidden;
  background: #203932;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 16, .08);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: min(78vh, 760px);
  width: min(620px, 100%);
  padding: 72px 24px 44px;
  color: #fff;
}

.hero-copy p,
.section-title p {
  margin: 0 0 8px;
  color: #f3ca76;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a,
.floating-cart a,
.order-text-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions .secondary {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .12);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 16px;
  transform: translateY(-22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.brand-strip div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  background: var(--surface);
}

.brand-strip strong {
  color: var(--green);
  font-size: 15px;
}

.brand-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.toolbar,
.order-panel {
  margin: 10px 16px 0;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.search-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.search-field span,
.customer-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.customer-form input,
.customer-form textarea,
#orderText {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.search-field input,
.customer-form input {
  height: 44px;
  padding: 0 14px;
}

.search-field input:focus,
.customer-form input:focus,
.customer-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, .14);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33413c;
  font-weight: 800;
}

.category-tabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef4f0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fill-media .product-media img {
  object-fit: cover;
}

.focus-amituofo .product-media img {
  object-position: 50% 52%;
  transform: scale(1.18);
  transform-origin: 50% 52%;
}

.focus-dunhuang-zaji .product-media img {
  object-position: 48% 50%;
  transform: scale(1.1);
  transform-origin: 48% 50%;
}

.focus-zaji-24 .product-media img {
  object-position: 50% 46%;
  transform: scale(1.08);
  transform-origin: 50% 46%;
}

.focus-zaji-60 .product-media img {
  object-position: 54% 45%;
  transform: scale(1.08);
  transform-origin: 54% 45%;
}

.focus-amituofo-60 .product-media img {
  object-position: 50% 43%;
  transform: scale(1.08);
  transform-origin: 50% 43%;
}

.focus-resin-poster .product-media img {
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(1);
  transform-origin: 50% 50%;
}

.focus-cloud-pink-lotus .product-media img {
  object-position: 50% 52%;
  transform: scale(1);
  transform-origin: 50% 52%;
}

.focus-gold-jade-lotus .product-media img {
  object-position: 50% 52%;
  transform: scale(1);
  transform-origin: 50% 52%;
}

.focus-good-fortune-sticker .product-media img {
  object-position: 50% 58%;
  transform: scale(1);
  transform-origin: 50% 58%;
}

.focus-plush-guardian .product-media img {
  object-position: 50% 50%;
  transform: scale(1.04);
  transform-origin: 50% 50%;
}

.focus-plush-feature .product-media img {
  object-position: 50% 48%;
  transform: scale(1.16);
  transform-origin: 50% 48%;
}

.focus-plush-daci .product-media img {
  object-position: 50% 47%;
  transform: scale(1.08);
  transform-origin: 50% 47%;
}

.focus-plush-dazhi .product-media img {
  object-position: 50% 48%;
  transform: scale(1.05);
  transform-origin: 50% 48%;
}

.focus-plush-dayuan .product-media img {
  object-position: 50% 48%;
  transform: scale(1.04);
  transform-origin: 50% 48%;
}

.product-media span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.product-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.product-desc {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf5f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.unit-notice {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a4a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.product-action {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 8px;
  align-items: center;
}

.stepper {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stepper button {
  border: 0;
  background: #f2f6f4;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #fff;
}

.quantity-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.quantity-field input::-webkit-outer-spin-button,
.quantity-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.quantity-field span {
  flex: 0 0 auto;
  padding-right: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stepper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(31, 111, 92, .12);
}

.add-one {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.empty-result,
.empty-order {
  padding: 24px;
  border: 1px dashed #b8c5bd;
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  color: var(--muted);
  text-align: center;
}

.order-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-lines {
  display: grid;
  gap: 8px;
}

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

.order-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.order-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-summary strong {
  color: var(--red);
  font-size: 20px;
  line-height: 1.15;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-line b {
  display: block;
  margin-bottom: 3px;
}

.order-line span {
  color: var(--muted);
  font-size: 13px;
}

.customer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-form label {
  display: grid;
  gap: 7px;
}

.customer-form .wide {
  grid-column: 1 / -1;
}

.customer-form textarea,
#orderText {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.order-text-wrap {
  display: grid;
  gap: 10px;
}

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

.order-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-text-head button {
  min-height: 38px;
  cursor: pointer;
}

#orderText {
  min-height: 210px;
  background: #f8fbf9;
  line-height: 1.6;
}

.copy-tip {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  width: min(560px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(25, 33, 31, .94);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.floating-cart div {
  display: grid;
  gap: 2px;
}

.floating-cart span {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.floating-cart a {
  min-height: 44px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero,
  .hero-copy {
    min-height: 72vh;
  }

  .hero::after {
    background: rgba(8, 18, 16, .06);
  }

  .hero-copy {
    padding: 56px 18px 34px;
  }

  .brand-strip {
    grid-template-columns: 1fr;
    margin: 0 12px;
  }

  .toolbar,
  .order-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 12px;
  }

  .product-action {
    grid-template-columns: 1fr;
  }

  .customer-form,
  .order-summary,
  .order-line {
    grid-template-columns: 1fr;
  }

  .order-text-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-tools {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .floating-cart {
    grid-template-columns: 1fr 104px;
  }
}

/* Catalog v2: customer-first series browsing */
body.modal-open {
  overflow: hidden;
}

.brand-strip {
  display: none;
}

.page-shell {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.toolbar {
  margin-top: 22px;
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -16px;
  padding: 8px 16px;
  background: rgba(247, 245, 239, .94);
  backdrop-filter: blur(10px);
}

.series-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33413c;
  font-weight: 800;
  text-decoration: none;
}

.product-grid {
  display: block;
  margin: 16px;
}

.series-section {
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.series-section + .series-section {
  margin-top: 36px;
}

.series-head,
.category-head,
.subcategory-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.series-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.series-head p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.series-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.series-head span,
.category-head span,
.subcategory-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-section {
  margin-top: 18px;
}

.category-head {
  padding: 10px 0;
}

.category-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.category-toggle::before {
  content: "−";
  display: inline-block;
  width: 14px;
  margin-right: 4px;
  text-align: center;
}

.category-section.is-collapsed {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-section.is-collapsed .category-toggle::before {
  content: "+";
}

.category-section.is-collapsed .category-body {
  display: none;
}

.category-head h4 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.2;
}

.subcategory-block {
  margin-top: 10px;
}

.subcategory-title {
  padding: 10px 0 8px;
}

.subcategory-title strong {
  font-size: 16px;
}

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

.product-card {
  grid-template-rows: 1fr auto;
}

.product-open {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-row div,
.detail-price-grid div {
  padding: 8px;
  border-radius: 8px;
  background: #f7faf7;
}

.price-row span,
.detail-price-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-row strong,
.detail-price-grid strong {
  color: var(--red);
  font-size: 16px;
  line-height: 1.15;
}

.product-action {
  padding: 0 12px 12px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 18px;
  background: rgba(8, 18, 16, .62);
}

.product-modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.product-modal-card {
  position: relative;
  width: min(860px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
}

.modal-close {
  position: sticky;
  top: 10px;
  z-index: 2;
  float: right;
  min-height: 36px;
  margin: 10px 10px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-weight: 800;
}

.modal-product {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 18px;
  padding: 18px;
}

.modal-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #eef4f0;
}

.modal-product.fill-media img {
  object-fit: cover;
}

.modal-product.focus-amituofo img {
  object-position: 50% 52%;
  transform: scale(1);
  transform-origin: 50% 52%;
}

.modal-product.focus-amituofo {
  grid-template-columns: minmax(0, 320px) 1fr;
}

.modal-product.focus-dunhuang-zaji img {
  object-position: 48% 50%;
  transform: scale(1.08);
  transform-origin: 48% 50%;
}

.modal-product.focus-zaji-24 img {
  object-position: 50% 46%;
  transform: scale(1.06);
  transform-origin: 50% 46%;
}

.modal-product.focus-zaji-60 img {
  object-position: 54% 45%;
  transform: scale(1.06);
  transform-origin: 54% 45%;
}

.modal-product.focus-amituofo-60 img {
  object-position: 50% 43%;
  transform: scale(1.06);
  transform-origin: 50% 43%;
}

.modal-product.focus-resin-poster img {
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(1);
  transform-origin: 50% 50%;
}

.modal-product.focus-cloud-pink-lotus img {
  object-position: 50% 52%;
  transform: scale(1);
  transform-origin: 50% 52%;
}

.modal-product.focus-gold-jade-lotus img {
  object-position: 50% 52%;
  transform: scale(1);
  transform-origin: 50% 52%;
}

.modal-product.focus-good-fortune-sticker img {
  object-position: 50% 58%;
  transform: scale(1);
  transform-origin: 50% 58%;
}

.modal-product.focus-good-fortune-sticker .modal-detail-image {
  width: min(86%, 680px);
  justify-self: center;
  margin: 8px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(39, 54, 45, .12);
}

.modal-product.focus-good-fortune-sticker .modal-detail-image img {
  width: 100%;
}

.modal-product.focus-plush-guardian img {
  object-position: 50% 50%;
  transform: scale(1.03);
  transform-origin: 50% 50%;
}

.modal-product.focus-plush-feature img {
  object-position: 50% 48%;
  transform: scale(1.12);
  transform-origin: 50% 48%;
}

.modal-product.focus-plush-daci img {
  object-position: 50% 47%;
  transform: scale(1.08);
  transform-origin: 50% 47%;
}

.modal-product.focus-plush-dazhi img {
  object-position: 50% 48%;
  transform: scale(1.05);
  transform-origin: 50% 48%;
}

.modal-product.focus-plush-dayuan img {
  object-position: 50% 48%;
  transform: scale(1.04);
  transform-origin: 50% 48%;
}

.modal-product-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.modal-detail-image {
  grid-column: 1 / -1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.modal-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  transform: none;
}

.modal-product .modal-detail-image img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  transform-origin: center;
  border-radius: 0;
  background: #fff;
}

.modal-product-body > p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.modal-product-body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.variant-picker {
  display: grid;
  gap: 10px;
}

.variant-picker h4 {
  margin: 0;
  color: var(--green);
  font-size: 16px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.variant-row.has-thumb {
  grid-template-columns: 64px 1fr 132px;
}

.variant-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #eef4f0;
}

.variant-row b,
.variant-row span {
  display: block;
}

.variant-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .entry-panel {
    min-height: 100dvh;
    padding: 28px 12px;
  }

  .entry-actions,
  .bundle-grid,
  .bundle-total {
    grid-template-columns: 1fr;
  }

  .entry-actions button {
    min-height: 150px;
  }

  .bundle-page {
    min-height: auto;
    padding: 24px 12px 0;
  }

  .hero,
  .hero-copy {
    min-height: 62vh;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11vw, 46px);
    line-height: 1.05;
  }

  .hero-actions a {
    min-height: 46px;
    padding: 0 16px;
  }

  .toolbar,
  .order-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .product-grid {
    margin: 14px 12px;
  }

  .series-section {
    padding: 14px 12px;
  }

  .series-head h3 {
    font-size: 26px;
  }

  .category-head h4 {
    font-size: 20px;
  }

  .category-head {
    align-items: center;
  }

  .category-head-actions {
    flex-shrink: 0;
  }

  .section-products {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .product-media img {
    object-fit: contain;
  }

  .fill-media .product-media img {
    object-fit: cover;
  }

  .product-body {
    padding: 12px 12px 8px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-desc {
    min-height: 0;
    font-size: 13px;
  }

  .product-action {
    grid-template-columns: 112px 1fr;
    padding: 0 12px 12px;
  }

  .stepper,
  .add-one {
    height: 42px;
  }

  .stepper {
    grid-template-columns: 36px 1fr 36px;
  }

  .floating-cart {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(520px, calc(100% - 20px));
    grid-template-columns: 1fr 112px;
    padding: 10px;
  }

  .product-modal {
    align-items: end;
    padding: 0;
  }

  .product-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .modal-product {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .modal-product img {
    aspect-ratio: 4 / 3;
  }

  .modal-product-body h3 {
    font-size: 24px;
  }
}

@media (max-width: 390px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-open {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .variant-row {
    grid-template-columns: 1fr;
  }

  .variant-row.has-thumb {
    grid-template-columns: 64px 1fr;
  }

  .variant-row.has-thumb .stepper {
    grid-column: 1 / -1;
  }
}

/* Cart summary now lives at the end of the catalog instead of floating over content. */
.page-shell {
  padding-bottom: 40px;
}

.floating-cart {
  position: static;
  left: auto;
  bottom: auto;
  z-index: 1;
  width: auto;
  transform: none;
  margin: 18px 16px 0;
}

@media (max-width: 760px) {
  .floating-cart {
    position: static;
    bottom: auto;
    width: auto;
    margin: 18px 12px 0;
  }
}
