: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.live-embedded-hidden {
  display: none;
}

.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;
  background: #fff;
}

.detail-gallery-main {
  position: relative;
  aspect-ratio: 15 / 13;
  overflow: hidden;
  background: #f6f2ea;
}

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

.detail-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.detail-gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 4px rgba(47, 36, 27, 0.18);
}

.detail-gallery-dots span.active {
  width: 18px;
  background: var(--mall-primary);
}

.detail-body {
  padding: 0 0 calc(112px + env(safe-area-inset-bottom));
  background: #f5f5f5;
}

.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-card {
  margin-bottom: 10px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.detail-main-card {
  padding: 14px 16px 16px;
}

.detail-title {
  margin: 8px 0 0;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.cart-item-spec {
  display: inline-flex;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #777;
  font-size: 12px;
  line-height: 1.35;
}

.detail-retail-price {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
}

.detail-subline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}

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

.detail-price {
  color: #ff4757;
  font-size: 24px;
  font-weight: 800;
}

.detail-state-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(234, 184, 106, 0.14);
  color: #8a5f1d;
  font-size: 12px;
  font-weight: 700;
}

.detail-state-chip.sold-out {
  background: #f1f1f1;
  color: #999;
}

.detail-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.detail-quantity-row strong {
  color: #222;
  font-size: 14px;
}

.detail-spec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 13px 0 0;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: transparent;
  color: #222;
  text-align: left;
}

.detail-spec-summary span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-spec-summary em {
  color: #bbb;
  font-style: normal;
  font-size: 20px;
}

.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: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 4px;
  background: #f7f7f7;
  border: 1px solid #eee;
}

.qty-stepper button {
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #333;
  box-shadow: none;
}

.qty-stepper strong {
  min-width: 38px;
  text-align: center;
  line-height: 30px;
  background: #f8f8f8;
  color: #222;
  font-size: 14px;
}

.detail-review-card {
  padding: 14px 16px 16px;
}

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

.detail-review-head strong {
  color: #222;
  font-size: 16px;
}

.detail-review-head button {
  border: none;
  background: transparent;
  color: var(--mall-primary-deep);
  font-size: 13px;
  font-weight: 700;
}

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

.review-list-app {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.review-card {
  min-height: 112px;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eeeeee;
}

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

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

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

.review-meta strong {
  display: block;
  max-width: 112px;
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-stars {
  margin-top: 2px;
  color: #ddd;
  font-size: 10px;
  letter-spacing: -1px;
  white-space: nowrap;
}

.review-stars span.active {
  color: var(--mall-primary);
}

.review-detail {
  display: -webkit-box;
  min-height: 30px;
  margin: 8px 0 6px;
  overflow: hidden;
  color: #666;
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-time {
  color: #aaa;
  font-size: 10px;
}

.review-empty {
  padding: 10px 0;
  color: #aaa;
  font-size: 13px;
}

.review-sheet {
  max-height: min(76vh, 720px);
}

.review-sheet-list {
  display: grid;
  gap: 10px;
  max-height: calc(76vh - 72px);
  overflow: auto;
  padding: 0 4px 12px;
}

.review-sheet-list .review-card {
  min-height: auto;
}

.review-sheet-list .review-meta strong {
  max-width: 240px;
}

.detail-spec-sheet {
  min-height: 280px;
  max-height: min(78vh, 720px);
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.spec-sheet-product {
  display: flex;
  gap: 14px;
  padding: 4px 0 16px;
}

.spec-sheet-product img {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #f4f4f4;
}

.spec-sheet-product div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-sheet-product strong {
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spec-sheet-product span {
  color: #555;
  font-size: 14px;
}

.spec-sheet-product em {
  color: #ff4757;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
}

.spec-sheet-qty {
  margin-top: 4px;
  padding: 16px 0;
}

.spec-sheet-blocks {
  padding-top: 2px;
  padding-bottom: 8px;
}

.spec-sheet-block {
  margin-top: 12px;
}

.spec-sheet-title {
  margin-bottom: 12px;
  color: #222;
  font-size: 15px;
  font-weight: 800;
}

.spec-sheet-confirm {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: none;
  border-radius: 999px;
  background: #d9c574;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(180, 150, 70, 0.26);
}

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

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

.detail-rich-card {
  padding: 0;
}

.detail-rich-card .detail-section-head {
  padding: 14px 16px;
}

.detail-section-head {
  margin: 0 0 12px;
}

.detail-section-head h2 {
  margin: 0;
  color: #222;
  font-size: 16px;
}

.detail-section-head p {
  margin: 4px 0 0;
  color: #999;
  font-size: 12px;
}

.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);
}

.detail-cta-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: min(calc(100vw - 24px), calc(var(--mall-shell-width) - 24px));
  transform: translateX(-50%);
  min-height: 64px;
  padding: 8px;
  border: 1px solid rgba(126, 105, 79, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(80, 60, 30, 0.14);
  backdrop-filter: blur(18px);
}

.detail-cta-cart {
  flex: 0 0 auto;
  width: 56px;
  border: none;
  border-radius: 16px;
  padding: 5px 4px;
  background: rgba(188, 149, 80, 0.08);
  color: var(--mall-muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-cta-cart:active {
  transform: translateY(1px);
}

.detail-cta-cart-icon {
  position: relative;
  display: inline-flex;
}

.detail-cta-cart-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--mall-primary-deep, #0f766e);
}

.detail-cta-cart-label {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-cta-bar .action-secondary,
.detail-cta-bar .action-primary {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 48px;
  box-shadow: none;
}

.detail-cta-bar .action-secondary {
  background: rgba(234, 184, 106, 0.18);
  color: #8a5f1d;
}

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

.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;
}

.cart-shortcut-icon {
  position: relative;
  display: inline-flex;
}

.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;
}

.cart-item-body {
  min-width: 0;
}

.cart-item-title {
  color: #0b1f1e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.cart-item-sold {
  margin-top: 6px;
}

.cart-item-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
}

.cart-item-price {
  min-width: 0;
  color: var(--mall-accent);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.cart-qty-stepper {
  flex: 0 0 auto;
  margin-left: auto;
}

.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;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.field input,
.field textarea,
.field select {
  box-sizing: border-box;
  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(4, 1fr);
  gap: 2px;
  width: min(calc(100vw - 16px), calc(var(--mall-shell-width) - 16px));
  transform: translateX(-50%);
  padding: 8px 6px;
  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;
  min-width: 0;
  padding: 6px 2px 5px;
  color: var(--mall-muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 650;
}

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

.bottom-nav-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.bottom-nav button.active .bottom-nav-icon {
  color: #20c997;
  stroke-width: 2.6;
}

.bottom-nav button span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav button,
.action-shortcut {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.22);
}

.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 {
  position: relative;
  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);
}

.top-cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(11, 31, 30, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.04);
}

.top-cart-button svg {
  width: 23px;
  height: 23px;
}

.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,
.detail-cta-bar {
  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(4, 1fr);
}

@media (max-width: 520px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    max-width: 401px;
    height: 62px;
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 6px 8px;
    border-radius: 20px;
    overflow: hidden;
  }

  .bottom-nav button {
    flex: 1 1 0;
    width: 25%;
    height: 50px;
    min-width: 0;
    max-width: 25%;
    padding: 4px 0 3px;
    gap: 2px;
    flex-shrink: 1;
  }

  .bottom-nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .bottom-nav button span {
    width: 100%;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    white-space: nowrap;
  }
}

.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;
  }

  .cart-card {
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 24px 76px minmax(0, 1fr);
    gap: 9px;
  }

  .cart-thumb {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .cart-item-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cart-item-sold {
    margin-top: 4px;
  }

  .cart-item-buy-row {
    gap: 8px;
    margin-top: 9px;
  }

  .cart-item-price {
    font-size: 20px;
  }

  .cart-qty-stepper {
    gap: 8px;
    padding: 5px 7px;
    border-radius: 14px;
  }

  .cart-qty-stepper button {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .cart-qty-stepper strong {
    min-width: 14px;
    text-align: center;
  }
}

/* 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 {
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 8px), 560px);
  height: min(calc(100dvh - 8px), 860px);
  max-height: calc(100dvh - 8px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.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;
  min-height: 0;
  padding: 16px 16px calc(132px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
  align-content: start;
  scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.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: none;
  overflow: visible;
  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));
  align-content: start;
}

.address-form-grid > .pill-button {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
}

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

.address-form-grid .field,
.address-inline-actions .field {
  min-width: 0;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  font-size: 16px;
  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;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 24px 24px 0 0;
  }

  .address-modal-body {
    gap: 16px;
    padding: 14px 14px calc(124px + env(safe-area-inset-bottom, 0px));
  }

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

  .address-form-grid > .pill-button {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Checkout v2: 重构后的结算页 ===== */
.checkout-v2 {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.cv2-card {
  margin: 0 0 12px;
  padding: 14px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.cv2-divider {
  height: 1px;
  background: rgba(17, 24, 39, 0.06);
  margin: 12px 0;
}

/* 顶部 tab：快递 / 自提 */
.cv2-tab-row {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin: -4px -4px 12px;
}
.cv2-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: rgba(17, 24, 39, 0.6);
  font-size: 13px;
  font-weight: 600;
}
.cv2-tab.active {
  background: linear-gradient(135deg, #ff7a59, #ff3d4f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 80, 80, 0.25);
}

/* 收货地址行 */
.cv2-address-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 4px 2px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.cv2-address-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-size: 14px;
  margin-top: 2px;
}
.cv2-address-icon.store {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.cv2-address-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cv2-address-region {
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
  line-height: 1.4;
}
.cv2-address-copy strong {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  word-break: break-word;
}
.cv2-address-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.7);
}
.cv2-address-chip {
  font-style: normal;
  padding: 1px 6px;
  background: rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.55);
  font-size: 11px;
  border-radius: 4px;
}
.cv2-address-row.empty .cv2-address-copy strong {
  color: rgba(17, 24, 39, 0.5);
  font-weight: 600;
}

.cv2-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.6);
}
.cv2-link-action {
  color: rgba(17, 24, 39, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv2-chev {
  display: inline-block;
  color: rgba(17, 24, 39, 0.35);
  font-size: 16px;
  line-height: 1;
}

/* 商品行 */
.cv2-product-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  padding: 6px 0;
  align-items: flex-start;
}
.cv2-product-row + .cv2-product-row {
  border-top: 1px dashed rgba(17, 24, 39, 0.06);
  padding-top: 12px;
  margin-top: 6px;
}
.cv2-product-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}
.cv2-product-body {
  min-width: 0;
}
.cv2-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv2-product-spec {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
}
.cv2-product-count {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
}
.cv2-product-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.cv2-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.7);
  gap: 10px;
}
.cv2-meta-value {
  color: rgba(17, 24, 39, 0.85);
  font-weight: 500;
}
.cv2-remark-row label {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.7);
}
.cv2-remark-row input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  font-size: 13px;
  text-align: right;
  color: rgba(17, 24, 39, 0.85);
  padding: 0;
  outline: none;
}
.cv2-remark-row input::placeholder {
  color: rgba(17, 24, 39, 0.4);
}

/* 结算信息 */
.cv2-summary-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.5);
  margin-bottom: 8px;
}
.cv2-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.7);
}
.cv2-summary-line strong {
  color: rgba(17, 24, 39, 0.95);
  font-weight: 600;
}
.cv2-summary-muted {
  color: rgba(17, 24, 39, 0.45);
  font-size: 12px;
}
.cv2-summary-tip {
  margin: 2px 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.09);
  color: #b45309;
  font-size: 12px;
  line-height: 1.45;
}
.cv2-deduction-line strong {
  color: #0f766e;
}
.cv2-summary-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}
.cv2-accent {
  color: #ff3d4f !important;
  font-size: 18px;
  font-weight: 800 !important;
}

/* 支付方式 */
.cv2-pay-head {
  font-size: 13px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.5);
  margin-bottom: 6px;
}
.cv2-pay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 4px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.cv2-pay-row + .cv2-pay-row {
  border-top: 1px solid rgba(17, 24, 39, 0.05);
}
.cv2-pay-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.cv2-pay-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cv2-coupon-icon {
  background: rgba(255, 99, 99, 0.1);
  color: #ff3d4f;
  font-size: 16px;
}
.cv2-cash-icon {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-weight: 800;
}
.cv2-pay-row.readonly {
  cursor: default;
}
.cv2-pay-name {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cv2-pay-name strong {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.cv2-pay-name em {
  font-style: normal;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.5);
}
.cv2-pay-radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(17, 24, 39, 0.2);
  background: #fff;
  position: relative;
}
.cv2-pay-radio.checked {
  border-color: #ff3d4f;
  background: #ff3d4f;
}
.cv2-pay-radio.checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.cv2-pay-more {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.45);
}
.cv2-pay-note {
  margin: 0 4px 8px 44px;
  color: #b45309;
  font-size: 12px;
  line-height: 1.45;
}

/* 底部支付按钮 */
.cv2-pay-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), calc(var(--mall-shell-width, 820px) - 24px));
  z-index: 30;
}
.cv2-pay-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3c 0%, #ff3d4f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 22px rgba(255, 80, 80, 0.4);
  cursor: pointer;
}
.cv2-pay-btn:active {
  transform: translateY(1px);
}
.cv2-pay-btn-amount {
  font-size: 17px;
}
