:root {
  --mall-bg: #f5f1eb;
  --mall-surface: rgba(255, 255, 255, 0.92);
  --mall-card: #ffffff;
  --mall-primary: #d4b066;
  --mall-primary-deep: #bc9550;
  --mall-accent: #f25f5c;
  --mall-text: #2f241b;
  --mall-muted: #8f8174;
  --mall-line: rgba(126, 105, 79, 0.14);
  --mall-shadow: 0 18px 50px rgba(81, 58, 26, 0.12);
  --mall-radius: 28px;
  --mall-radius-sm: 16px;
  --mall-shell-width: 440px;
  --mall-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(212, 176, 102, 0.36), transparent 42%),
    linear-gradient(180deg, #f2e3c3 0%, #f8f5ee 18%, #f5f1eb 100%);
  color: var(--mall-text);
  font-family: var(--mall-font);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.mall-app {
  position: relative;
  min-height: 100vh;
  padding: 20px 12px 40px;
}

.mall-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(212, 176, 102, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(145, 113, 67, 0.08));
  pointer-events: none;
}

.mall-phone-shell {
  position: relative;
  max-width: var(--mall-shell-width);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--mall-shadow);
  backdrop-filter: blur(18px);
}

.mall-page {
  min-height: calc(100vh - 40px);
  background:
    linear-gradient(180deg, rgba(241, 226, 192, 0.72) 0%, rgba(255, 255, 255, 0.55) 280px),
    linear-gradient(180deg, #faf7f1 0%, #f6f2eb 100%);
}

.page-section {
  padding: 20px 18px 110px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(241, 198, 117, 0.94), rgba(241, 198, 117, 0.78));
  backdrop-filter: blur(12px);
}

.topbar-back {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
}

.topbar-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.topbar-action {
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.brand-hero {
  position: relative;
  padding: 20px 18px 12px;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--mall-radius);
  padding: 18px;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(135, 98, 48, 0.22), rgba(212, 176, 102, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 243, 233, 0.96));
  box-shadow: 0 14px 32px rgba(121, 95, 58, 0.13);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(212, 176, 102, 0.15);
  pointer-events: none;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(125, 93, 36, 0.12);
}

.brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
}

.brand-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--mall-muted);
}

.search-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(191, 156, 93, 0.15);
}

.search-card-home {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
}

.search-card-result {
  padding: 10px 14px;
}

.search-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.search-card input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--mall-text);
  outline: none;
  font-size: 15px;
}

.search-card input::placeholder {
  color: #9f968f;
}

.search-card-home input {
  font-size: 14px;
}

.search-button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--mall-primary), var(--mall-primary-deep));
  box-shadow: 0 8px 16px rgba(194, 153, 76, 0.22);
  white-space: nowrap;
  flex: 0 0 auto;
}

.search-card-home .search-button {
  padding: 7px 12px;
  font-size: 13px;
}

.hero-subtext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--mall-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(212, 176, 102, 0.12);
  color: var(--mall-primary-deep);
  font-size: 12px;
  border: 1px solid rgba(212, 176, 102, 0.18);
}

.carousel {
  margin: 16px 18px 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--mall-card);
  box-shadow: 0 12px 32px rgba(102, 78, 48, 0.12);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(212, 176, 102, 0.12), rgba(255, 255, 255, 0.9));
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(131, 101, 55, 0.2);
}

.carousel-dot.active {
  width: 24px;
  background: var(--mall-primary);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 18px 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--mall-muted);
}

.ghost-link {
  border: none;
  background: transparent;
  color: var(--mall-primary-deep);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px calc(120px + env(safe-area-inset-bottom));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mall-card);
  box-shadow: 0 12px 30px rgba(96, 74, 41, 0.09);
}

.product-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(212, 176, 102, 0.08), rgba(255, 255, 255, 0.85));
}

.product-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ef4f47;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.product-body {
  padding: 14px;
}

.product-title {
  margin: 0;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--mall-accent);
}

.product-price small {
  font-size: 14px;
}

.product-old {
  color: #c7c0b9;
  text-decoration: line-through;
  font-size: 14px;
}

.product-sales {
  margin-top: 8px;
  color: var(--mall-muted);
  font-size: 13px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.product-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(212, 176, 102, 0.1);
  color: var(--mall-primary-deep);
  font-size: 11px;
}

.empty-state,
.loading-state,
.notice-card {
  margin: 18px;
  padding: 26px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  color: var(--mall-muted);
  box-shadow: 0 12px 28px rgba(101, 77, 43, 0.08);
}

.notice-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mall-text);
}

.checkout-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, #2c2418, #6f5430 58%, #c79346);
  color: #fff;
  box-shadow: 0 16px 36px rgba(85, 58, 22, 0.22);
}

.checkout-hero strong,
.checkout-hero span {
  display: block;
}

.checkout-hero strong {
  font-size: 22px;
  margin-bottom: 6px;
}

.checkout-hero span {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 13px;
}

.checkout-hero-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detail-gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 18px 18px 120px;
}

.detail-card,
.checkout-card,
.cart-card,
.profile-card {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(97, 75, 43, 0.08);
}

.detail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.detail-subline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--mall-muted);
  font-size: 14px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.detail-price {
  color: var(--mall-accent);
  font-size: 34px;
  font-weight: 700;
}

.spec-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.spec-chip {
  border: 1px solid rgba(212, 176, 102, 0.16);
  background: rgba(212, 176, 102, 0.08);
  color: var(--mall-text);
  border-radius: 999px;
  padding: 10px 14px;
}

.spec-chip.active {
  color: var(--mall-primary-deep);
  border-color: var(--mall-primary);
  background: rgba(212, 176, 102, 0.18);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #f7f4ee;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--mall-primary-deep);
  box-shadow: 0 4px 12px rgba(123, 95, 53, 0.1);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 14px;
  border-radius: 18px;
  background: #faf8f2;
  border: 1px solid var(--mall-line);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0ece5;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta strong {
  display: block;
  font-size: 14px;
}

.review-meta span {
  color: var(--mall-muted);
  font-size: 12px;
}

.html-detail {
  color: #44372c;
  line-height: 1.8;
}

.html-detail img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sticky-actionbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  display: flex;
  gap: 10px;
  width: min(calc(100vw - 24px), calc(var(--mall-shell-width) - 24px));
  transform: translateX(-50%);
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(80, 60, 30, 0.16);
  backdrop-filter: blur(16px);
}

.checkout-action-copy {
  flex: 1;
  padding: 0 8px;
}

.checkout-action-order {
  margin-top: 6px;
  font-size: 13px;
  color: var(--mall-text);
}

.action-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  color: var(--mall-muted);
  font-size: 12px;
}

.action-primary,
.action-secondary {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
}

.action-secondary {
  color: #6b4d21;
  background: linear-gradient(135deg, #f2d393, #ddb56a);
}

.action-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7a5f, #f24b62);
}

.action-primary:disabled,
.action-secondary:disabled,
.pill-button:disabled,
.outline-button:disabled {
  color: #9d9388;
  background: linear-gradient(135deg, #ece6dc, #ded5c8);
  box-shadow: none;
  cursor: not-allowed;
}

.cart-item {
  display: grid;
  grid-template-columns: 28px 92px 1fr;
  gap: 12px;
  align-items: center;
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(212, 176, 102, 0.25);
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
}

.check-box.active {
  color: #fff;
  background: var(--mall-primary);
  border-color: var(--mall-primary);
}

.cart-thumb {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee6;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-summary-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 24px), calc(var(--mall-shell-width) - 24px));
  transform: translateX(-50%);
  padding: 14px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(80, 60, 30, 0.16);
}

.cart-summary-text {
  flex: 1;
  font-size: 14px;
}

.cart-summary-text strong {
  color: var(--mall-accent);
  font-size: 28px;
}

.pill-button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--mall-primary), var(--mall-primary-deep));
}

.pill-button.warn {
  background: linear-gradient(135deg, #ef6a62, #db4358);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--mall-muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--mall-line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  outline: none;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.radio-card-row,
.tab-row {
  display: flex;
  gap: 10px;
}

.checkout-payment-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tab-pill,
.radio-card {
  flex: 1;
  border: 1px solid rgba(212, 176, 102, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--mall-muted);
}

.tab-pill.active,
.radio-card.active {
  color: var(--mall-primary-deep);
  border-color: var(--mall-primary);
  background: rgba(212, 176, 102, 0.12);
}

.radio-card span,
.radio-card strong {
  display: block;
}

.radio-card span {
  font-size: 12px;
  color: var(--mall-muted);
  margin-bottom: 6px;
}

.radio-card strong {
  font-size: 15px;
  color: var(--mall-text);
}

.payment-method-card {
  background: linear-gradient(135deg, rgba(255, 249, 238, 0.98), rgba(255, 243, 218, 0.96));
  border-color: rgba(212, 176, 102, 0.45);
}

.payment-method-card span,
.payment-method-card strong {
  color: var(--mall-text);
}

.checkout-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-product img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 18px;
}

.line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.line-row strong.accent {
  color: var(--mall-accent);
  font-size: 24px;
}

.address-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.address-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(212, 176, 102, 0.12);
  color: var(--mall-primary-deep);
}

.address-copy strong {
  display: block;
  margin-bottom: 6px;
}

.address-copy span {
  color: var(--mall-muted);
  line-height: 1.5;
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 176, 102, 0.18), rgba(255, 255, 255, 0.8));
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head strong {
  display: block;
  font-size: 18px;
}

.profile-head span {
  color: var(--mall-muted);
  font-size: 13px;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.outline-button {
  width: 100%;
  border: 1px solid rgba(212, 176, 102, 0.22);
  border-radius: 18px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--mall-text);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100vw - 24px), calc(var(--mall-shell-width) - 24px));
  transform: translateX(-50%);
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(80, 60, 30, 0.16);
}

.bottom-nav button {
  border: none;
  background: transparent;
  padding: 10px 6px;
  color: var(--mall-muted);
}

.bottom-nav button.active {
  color: var(--mall-primary-deep);
  font-weight: 700;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 22, 14, 0.45);
  backdrop-filter: blur(8px);
}

.modal-sheet {
  width: min(calc(100vw - 16px), 440px);
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 18px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 238, 0.98));
  box-shadow: 0 -10px 40px rgba(50, 38, 18, 0.22);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h3 {
  margin: 0;
  font-size: 18px;
}

.close-button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(212, 176, 102, 0.12);
  color: var(--mall-primary-deep);
}

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(47, 36, 27, 0.92);
  box-shadow: 0 12px 28px rgba(35, 25, 15, 0.28);
}

.login-layout {
  padding: 18px;
}

.login-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(79, 59, 27, 0.12);
}

.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.login-tabs button {
  flex: 1;
  border: 1px solid rgba(212, 176, 102, 0.2);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: var(--mall-muted);
}

.login-tabs button.active {
  color: var(--mall-primary-deep);
  border-color: var(--mall-primary);
  background: rgba(212, 176, 102, 0.1);
}

.inline-actions {
  display: flex;
  gap: 10px;
}

.inline-actions > * {
  flex: 1;
}

.payment-success-card {
  padding: 28px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(90, 66, 35, 0.12);
  text-align: center;
}

.payment-success-card.is-paid {
  background:
    radial-gradient(circle at top, rgba(216, 246, 221, 0.92), transparent 30%),
    rgba(255, 255, 255, 0.96);
}

.payment-success-card.is-pending {
  background:
    radial-gradient(circle at top, rgba(255, 238, 204, 0.92), transparent 30%),
    rgba(255, 255, 255, 0.96);
}

.payment-success-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ee7f57, #f24b62);
  box-shadow: 0 12px 30px rgba(242, 75, 98, 0.22);
}

.payment-success-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.payment-success-card p {
  margin: 0;
  color: var(--mall-muted);
  line-height: 1.7;
}

.payment-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.payment-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #faf6ef;
  border: 1px solid rgba(212, 176, 102, 0.14);
}

.payment-meta-item span {
  color: var(--mall-muted);
}

.payment-meta-item strong {
  margin: 0;
  font-size: 14px;
}

.payment-success-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.helper-text {
  color: var(--mall-muted);
  font-size: 12px;
  line-height: 1.6;
}

.mall-app {
  min-height: 100vh;
  padding: 0 0 110px;
  background: #fdfbf7;
}

.mall-backdrop {
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.04), rgba(180, 83, 9, 0));
}

.mall-phone-shell {
  max-width: 820px;
  min-height: 100vh;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mall-page {
  min-height: 100vh;
  background: #fdfbf7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(253, 251, 247, 0.92);
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  backdrop-filter: blur(10px);
}

.topbar-home {
  justify-content: space-between;
}

.topbar-left,
.topbar-tools,
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-left {
  min-width: 48px;
}

.topbar-tools {
  margin-left: auto;
}

.topbar-title {
  color: #0b1f1e;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.topbar-back {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(11, 31, 30, 0.82);
}

.topbar-action {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(11, 31, 30, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(11, 31, 30, 0.82);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.04);
}

.lang-select svg {
  width: 14px;
  height: 14px;
  color: rgba(11, 31, 30, 0.58);
  flex: 0 0 auto;
}

.lang-select select {
  min-width: 54px;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(11, 31, 30, 0.82);
  font-size: 12px;
  font-weight: 900;
  appearance: none;
}

.brand-hero {
  padding: 14px 16px 10px;
}

.brand-panel,
.carousel,
.product-card,
.cart-card,
.checkout-card,
.profile-card,
.login-card,
.notice-card,
.empty-state,
.loading-state,
.review-card {
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.brand-panel {
  min-height: auto;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.brand-panel::before {
  inset: auto -60px -70px auto;
  width: 180px;
  height: 180px;
  background: rgba(180, 83, 9, 0.08);
}

.brand-copy p,
.section-header p {
  color: rgba(11, 31, 30, 0.62);
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.home-shortcut {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #fff);
  text-align: left;
}

.home-shortcut strong {
  color: #0b1f1e;
  font-size: 14px;
}

.home-shortcut span {
  color: rgba(11, 31, 30, 0.62);
  font-size: 12px;
}

.search-card {
  margin-top: 14px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.search-button,
.pill-button {
  background: linear-gradient(135deg, #0f766e, #1f9b8f);
  box-shadow: none;
}

.action-secondary {
  background: linear-gradient(135deg, #f5d792, #eab86a);
  color: #6b4d21;
}

.action-primary {
  background: linear-gradient(135deg, #0f766e, #1f9b8f);
}

.section-header {
  margin: 18px 16px 10px;
}

.section-header h2 {
  font-size: 16px;
}

.carousel {
  margin: 12px 16px 0;
}

.product-grid {
  gap: 12px;
  padding: 0 16px calc(118px + env(safe-area-inset-bottom));
}

.product-title {
  min-height: 40px;
  font-size: 15px;
}

.product-price {
  font-size: 24px;
}

.page-section {
  padding: 16px 16px 120px;
}

.bottom-nav,
.cart-summary-bar,
.sticky-actionbar {
  width: min(calc(100vw - 24px), 796px);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.bottom-nav {
  grid-template-columns: repeat(3, 1fr);
}

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

.order-tabs::-webkit-scrollbar {
  display: none;
}

.order-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: #fff;
  color: rgba(11, 31, 30, 0.68);
  font-weight: 700;
}

.order-tab.active {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.3);
  color: #0f766e;
}

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

.order-card,
.order-status-card {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.order-status-card {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 1));
}

.order-status-card strong {
  font-size: 18px;
  color: #0f766e;
}

.order-status-card span {
  color: rgba(11, 31, 30, 0.62);
  font-size: 12px;
}

.order-card-header,
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  align-items: flex-start;
}

.order-card-header-copy {
  display: grid;
  gap: 4px;
}

.order-card-header span {
  color: rgba(11, 31, 30, 0.62);
  font-size: 12px;
}

.order-card-header em {
  color: rgba(11, 31, 30, 0.52);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.order-card-header strong {
  color: #b45309;
  font-size: 13px;
}

.order-products {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.order-product {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
}

.order-product img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f7f5ef;
}

.order-product-copy {
  display: grid;
  gap: 4px;
}

.order-product-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #0b1f1e;
}

.order-product-copy span {
  color: rgba(11, 31, 30, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.order-product-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.order-product-meta strong {
  color: #b45309;
}

.order-product-meta span,
.order-product-meta em {
  color: rgba(11, 31, 30, 0.62);
  font-size: 12px;
  font-style: normal;
}

.order-card-footer {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 118, 110, 0.08);
}

.order-summary span {
  color: rgba(11, 31, 30, 0.62);
  font-size: 13px;
}

.order-summary strong {
  color: #b45309;
  font-size: 18px;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.order-action-button {
  width: auto;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 999px;
}

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

.order-section-header {
  margin: 0 0 12px;
}

@media (max-width: 520px) {
  .mall-app {
    padding: 0;
  }

  .mall-phone-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
  }

  .mall-page {
    min-height: 100vh;
  }
}

/* allinpay payment card */
.payment-method-card { align-items: flex-start; }
.payment-method-card span,
.payment-method-card strong,
.payment-method-card em { color: var(--mall-text); }
.payment-method-brand { display: flex; align-items: center; gap: 10px; }
.payment-method-logo-wrap { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 36px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.96); box-shadow: inset 0 0 0 1px rgba(212, 176, 102, 0.16); }
.payment-method-logo { display: block; max-width: 76px; max-height: 24px; width: auto; height: auto; }
.payment-method-card em { margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mall-muted); }

.address-modal-sheet {
  width: min(calc(100vw - 12px), 520px);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
}

.address-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96));
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.address-modal-body {
  display: grid;
  gap: 18px;
  padding: 16px;
  overflow: auto;
}

.sheet-section {
  display: grid;
  gap: 12px;
}

.sheet-section-title {
  color: rgba(11, 31, 30, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.address-option-list {
  display: grid;
  gap: 10px;
  max-height: min(30vh, 280px);
  overflow: auto;
  padding-right: 2px;
}

.address-option-card {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.address-option-card.is-selected {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.address-option-card .address-copy {
  text-align: left;
}

.address-empty-state {
  margin: 0;
}

.address-form-grid {
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 241, 0.96));
}

.address-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  border-color: rgba(15, 118, 110, 0.12);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.field textarea {
  min-height: 96px;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11, 31, 30, 0.46) 50%),
    linear-gradient(135deg, rgba(11, 31, 30, 0.46) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .address-modal-sheet {
    width: 100vw;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }

  .address-modal-body {
    gap: 16px;
    padding: 14px;
  }

  .address-option-list {
    max-height: 28vh;
  }

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