#shoppingView {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 82% at 50% -6%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 245, 248, 0.95) 48%, rgba(255, 239, 245, 0.98) 100%);
  color: #8f5f70;
}

#shoppingView::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 9%, rgba(255, 195, 214, 0.24) 0%, rgba(255, 195, 214, 0) 36%),
    radial-gradient(circle at 82% 12%, rgba(196, 230, 255, 0.18) 0%, rgba(196, 230, 255, 0) 34%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.26) 0 8px, rgba(255, 244, 249, 0.18) 8px 16px);
  pointer-events: none;
  z-index: 0;
}

#shoppingView .shopping-app-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle, rgba(246, 183, 200, 0.25) 1.1px, transparent 1.1px) 0 0/14px 14px,
    linear-gradient(180deg, rgba(255, 252, 251, 0.85) 0%, rgba(255, 242, 246, 0.95) 100%);
}

.shopping-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-radius: 0 0 24px 24px;
  border-bottom: 2px dashed rgba(246, 180, 198, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 251, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(241, 165, 187, 0.22);
}

.shopping-back-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #ffd8e4;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #fff3f8);
  color: #e8839c;
  box-shadow: 0 6px 12px rgba(239, 155, 176, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shopping-back-glyph {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.shopping-back-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 7px rgba(239, 155, 176, 0.2);
}

.shopping-title-wrap {
  text-align: center;
}

.shopping-title {
  margin: 0;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: #f87895;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.92), 0 7px 14px rgba(247, 141, 166, 0.3);
}

.shopping-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: #bd8996;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.shopping-coin-pill {
  height: 34px;
  border: 2px solid rgba(250, 182, 199, 0.85);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 248, 0.95));
  color: #a66c7a;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(239, 159, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.shopping-coin-glyph {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
  border: 2px solid #ff8da6;
  border-radius: 50%;
  box-sizing: border-box;
}

.shopping-coin-glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ff8da6;
  opacity: 0.38;
}

.shopping-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 151, 176, 0.55) rgba(255, 255, 255, 0.2);
}

.shopping-page {
  display: none;
}

.shopping-page.is-active {
  display: block;
}

.shopping-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.shopping-category-chip {
  height: 38px;
  border-radius: 999px;
  border: 2px solid #f6cad7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 248, 0.92));
  color: #aa7987;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 9px rgba(233, 160, 178, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shopping-category-chip:active {
  transform: translateY(1px);
}

.shopping-category-chip.is-active {
  color: #fff;
  border-color: #f38ea8;
  background: linear-gradient(135deg, #ffacc0, #f288a1);
  box-shadow: 0 10px 16px rgba(244, 131, 154, 0.32), inset 0 1px 0 rgba(255, 218, 228, 0.75);
}

.shopping-scallop-divider {
  height: 14px;
  margin: 2px 0 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 7px 7px, rgba(247, 163, 184, 0.9) 6px, transparent 6px) 0 0/14px 14px repeat-x,
    linear-gradient(180deg, rgba(253, 223, 233, 0.92), rgba(255, 255, 255, 0));
}

.shopping-promo-card {
  border: 2px solid #f8d8df;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 240, 245, 0.95), rgba(255, 229, 236, 0.9));
  padding: 14px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(243, 157, 176, 0.16);
}

.shopping-promo-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: inset 0 0 0 2px rgba(249, 214, 223, 0.9);
}

.shopping-promo-copy h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  color: #a86f7d;
  font-weight: 700;
  font-family: "Times New Roman", "STSong", serif;
}

.shopping-promo-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #b68a95;
}

.shopping-pill-btn {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, #ff9db0, #f48499);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

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

.shopping-product-card {
  position: relative;
  border-radius: 22px;
  border: 2px solid #f2ceda;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 250, 0.93));
  padding: 11px 10px 12px;
  box-shadow: 0 11px 20px rgba(229, 153, 174, 0.2);
}

.shopping-product-card::before,
.shopping-product-card::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 34px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 228, 237, 0.9));
  border: 1px solid rgba(247, 193, 207, 0.9);
  opacity: 0.82;
  pointer-events: none;
}

.shopping-product-card::before {
  left: 14px;
  transform: rotate(-7deg);
}

.shopping-product-card::after {
  right: 14px;
  transform: rotate(8deg);
}

.shopping-product-media-wrap {
  border-radius: 16px;
  border: 1px solid #f5dbe1;
  padding: 8px;
  background:
    radial-gradient(circle, rgba(252, 201, 215, 0.45) 0.9px, transparent 0.9px) 0 0/9px 9px,
    linear-gradient(180deg, #fff9fb, #fff5f9);
  position: relative;
}

.shopping-product-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: linear-gradient(180deg, #ffe470, #ffd451);
  color: #7b5a00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  border-radius: 8px 8px 8px 2px;
  padding: 2px 8px;
  box-shadow: 0 4px 9px rgba(255, 212, 73, 0.35);
}

.shopping-product-media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf2f7, #ffe7ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #cb8b9b;
  overflow: hidden;
}

.shopping-glyph-gift,
.shopping-glyph-placeholder {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
}

.shopping-glyph-gift::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 16px;
  bottom: 6px;
  border: 2px solid #c592a2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 46%, #c592a2 46% 54%, transparent 54%),
    linear-gradient(180deg, #fffafc, #fbeff4);
}

.shopping-glyph-gift::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 8px;
  height: 12px;
  border: 2px solid #c592a2;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 47%, #c592a2 47% 53%, transparent 53%),
    linear-gradient(180deg, #ffffff, #fdf2f6);
}

.shopping-glyph-placeholder {
  border: 2px dashed #d4a9b8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fdf3f8);
  box-sizing: border-box;
}

.shopping-glyph-placeholder::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d9a8b8;
  opacity: 0.55;
}

.shopping-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.shopping-product-name {
  margin: 10px 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #905f6f;
  letter-spacing: 0.2px;
  line-height: 1.3;
  min-height: 38px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.shopping-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shopping-product-price {
  color: #f36f86;
  font-size: 27px;
  font-weight: 800;
}

.shopping-product-old-price {
  color: #c7a2ac;
  font-size: 12px;
  text-decoration: line-through;
}

.shopping-buy-btn {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9fb2, #f3859b);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 12px rgba(238, 129, 154, 0.32), inset 0 1px 0 rgba(255, 224, 233, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shopping-buy-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(238, 129, 154, 0.3);
}

.shopping-end-hint {
  margin: 14px 0 4px;
  text-align: center;
  color: #c197a1;
  font-size: 13px;
}

.shopping-circle-avatars {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.shopping-circle-avatar-item {
  min-width: 84px;
  text-align: center;
}

.shopping-circle-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 14px;
  border: 2px solid #f2c2ce;
  background: linear-gradient(145deg, #fff0f5, #ffe3eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 12px rgba(231, 160, 181, 0.18);
  overflow: hidden;
}

.shopping-circle-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shopping-circle-avatar-name {
  font-size: 12px;
  color: #9a7480;
}

.shopping-circle-tools {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 122px;
}

.shopping-circle-tool-btn {
  border: 1px solid #f4bed0;
  background: linear-gradient(180deg, #fff8fb, #ffeef4);
  color: #ab6f82;
  border-radius: 999px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.shopping-circle-tool-btn:active {
  transform: translateY(1px);
}

.shopping-circle-feed {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shopping-circle-card {
  border: 2px solid #f0cad3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  box-shadow: 0 12px 18px rgba(226, 162, 178, 0.14);
}

.shopping-circle-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shopping-circle-meta .shopping-circle-avatar {
  width: 44px;
  height: 44px;
  font-size: 20px;
  margin: 0;
  border-radius: 10px;
}

.shopping-circle-author {
  font-size: 14px;
  color: #8f5f6c;
  font-weight: 700;
}

.shopping-circle-time {
  font-size: 12px;
  color: #bf9aa5;
}

.shopping-circle-bubble {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #c6e5ff;
  background: linear-gradient(180deg, #f1f9ff, #e7f4ff);
  color: #667682;
  font-size: 14px;
  line-height: 1.45;
}

.shopping-circle-product {
  margin-top: 10px;
  border-radius: 16px;
  border: 2px dashed #f4ccd7;
  padding: 10px;
  background: #fffafc;
}

.shopping-circle-product-media {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(145deg, #fff4f8, #ffeaf1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.shopping-circle-product-media-rich {
  overflow: hidden;
}

.shopping-circle-product-media-rich img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.shopping-circle-product-name {
  margin-top: 6px;
  font-size: 14px;
  color: #a76f7d;
  text-align: center;
  letter-spacing: 0.4px;
}

.shopping-circle-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.shopping-circle-action-btn {
  flex: 1;
  border: 1px solid #efbfd0;
  background: linear-gradient(180deg, #fff9fc, #ffeff5);
  color: #b57488;
  border-radius: 999px;
  min-height: 30px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.shopping-action-glyph {
  width: 12px;
  height: 12px;
  position: relative;
  display: inline-block;
  flex: 0 0 12px;
}

.shopping-action-glyph.is-like {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.shopping-action-glyph.is-like::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.shopping-action-glyph.is-comment {
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}

.shopping-action-glyph.is-comment::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-20deg) skewX(-15deg);
  border-radius: 0 0 0 2px;
}

.shopping-circle-action-btn.is-liked {
  color: #f15f85;
  border-color: #f49cb5;
}

.shopping-circle-action-btn:active {
  transform: translateY(1px);
}

.shopping-circle-interaction-status {
  margin-top: 8px;
  color: #ac7e8f;
  font-size: 12px;
  line-height: 1.45;
}

.shopping-circle-comments {
  margin-top: 8px;
  border: 1px solid #efd8de;
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
}

.shopping-circle-comment-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-top: 1px dashed #f2e0e6;
}

.shopping-circle-comment-row.is-repliable {
  cursor: pointer;
}

.shopping-circle-comment-row.is-repliable:active {
  opacity: 0.75;
}

.shopping-circle-comment-row:first-child {
  border-top: 0;
}

.shopping-circle-comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #f0d2dc;
  background: linear-gradient(145deg, #fff0f5, #ffe5ee);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.shopping-circle-comment-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shopping-circle-comment-main {
  min-width: 0;
  flex: 1;
}

.shopping-circle-comment-name {
  color: #99697a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.shopping-circle-comment-text {
  color: #8f6d79;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 1px;
  word-break: break-word;
}

.shopping-circle-comment-reply-target {
  color: #b97d92;
  font-weight: 600;
  margin-right: 4px;
}

.shopping-circle-comment-actions {
  margin-top: 3px;
  display: flex;
  align-items: center;
}

.shopping-circle-comment-action-btn {
  border: 1px solid #efc3d1;
  background: #fff5f8;
  color: #b7718a;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 3px 8px;
  cursor: pointer;
}

.shopping-circle-comment-action-btn:active {
  transform: translateY(1px);
}

.shopping-circle-comment-time {
  color: #c19daa;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.shopping-empty-page {
  min-height: 320px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #bb8f9a;
  gap: 6px;
}

.shopping-empty-page.is-active {
  display: flex;
}

.shopping-empty-icon {
  width: 58px;
  height: 58px;
}

.shopping-empty-glyph {
  position: relative;
  display: inline-block;
}

.shopping-empty-glyph::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 16px;
  bottom: 7px;
  border: 2px solid #d8b8c2;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #fdf2f7);
}

.shopping-empty-glyph::after {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 9px;
  height: 10px;
  border: 2px solid #d8b8c2;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.shopping-bag-empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #bb8f9a;
  gap: 6px;
}

.shopping-bag-toolbar {
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
}

.shopping-bag-test-btn {
  border: 1px solid #f5bccf;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7fb, #ffeef5);
  color: #b56f84;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  padding: 0 12px;
  cursor: pointer;
}

.shopping-bag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopping-bag-card {
  border: 2px solid #f2ccd8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
}

.shopping-bag-media {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f4d7df;
  background: #fff5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopping-bag-media .shopping-glyph-gift {
  width: 34px;
  height: 34px;
}

.shopping-bag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopping-bag-main {
  min-width: 0;
}

.shopping-bag-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shopping-bag-title-row h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: #895a69;
}

.shopping-bag-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
}

.shopping-bag-status.is-transit {
  background: #f5a3ba;
}

.shopping-bag-status.is-delivered {
  background: #61c18f;
}

.shopping-bag-meta {
  margin-top: 3px;
  color: #ab7f8c;
  font-size: 12px;
}

.shopping-record-list {
  margin-top: 12px;
  border: 2px solid #f0cad6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.shopping-record-list h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #9f6f7f;
}

.shopping-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed #f2d7de;
}

.shopping-record-row:first-of-type {
  border-top: 0;
}

.shopping-record-main {
  min-width: 0;
}

.shopping-record-title {
  color: #845968;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.shopping-record-sub {
  color: #b08995;
  font-size: 12px;
  margin-top: 2px;
}

.shopping-record-side {
  text-align: right;
  flex-shrink: 0;
}

.shopping-record-amount {
  font-size: 13px;
  font-weight: 800;
}

.shopping-record-amount.expense {
  color: #ed6f8f;
}

.shopping-record-amount.income {
  color: #48ab7a;
}

.shopping-record-time {
  color: #c09ca7;
  font-size: 11px;
}

.shopping-record-empty {
  color: #b58a98;
  font-size: 12px;
  padding: 8px 2px;
}

.shopping-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}

.shopping-purchase-modal.is-open {
  display: block;
}

.shopping-purchase-mask {
  position: absolute;
  inset: 0;
  background: rgba(65, 45, 54, 0.32);
}

.shopping-purchase-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 340px);
  max-height: min(78vh, 560px);
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid #f2cad7;
  background: linear-gradient(180deg, #fffefc, #fff3f8);
  box-shadow: 0 16px 34px rgba(171, 105, 127, 0.25);
  display: flex;
  flex-direction: column;
}

.shopping-purchase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.shopping-purchase-head h3 {
  margin: 0;
  font-size: 15px;
  color: #8b5b6a;
}

.shopping-purchase-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #f5cddd;
  background: #fff;
  color: #b37486;
  cursor: pointer;
}

.shopping-purchase-product {
  margin: 0 12px 10px;
  border-radius: 12px;
  border: 1px dashed #f3c6d5;
  padding: 8px 10px;
  color: #9b6e7d;
  font-size: 13px;
  line-height: 1.35;
}

.shopping-purchase-list {
  overflow-y: auto;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-purchase-friend {
  border: 1px solid #f3cad7;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #986b7a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.shopping-purchase-friend.is-selected {
  border-color: #ef8ea9;
  background: linear-gradient(135deg, #fff1f6, #ffe6ef);
}

.shopping-purchase-friend-avatar {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #f2d6df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shopping-purchase-friend-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-purchase-empty {
  border-radius: 12px;
  border: 1px dashed #f0cad6;
  background: rgba(255, 255, 255, 0.9);
  color: #ad8190;
  text-align: center;
  font-size: 12px;
  padding: 14px 10px;
}

.shopping-purchase-confirm {
  margin: 0 12px 12px;
  border: 0;
  border-radius: 12px;
  height: 38px;
  background: linear-gradient(135deg, #ff94b2, #f37f9a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.shopping-purchase-confirm:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.shopping-bottom-nav {
  position: relative;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 245, 249, 0.94));
  border: 2px solid #f6d3de;
  box-shadow: 0 10px 22px rgba(232, 151, 170, 0.25);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  flex-shrink: 0;
  z-index: 5;
  padding: 5px;
}

.shopping-nav-btn {
  border: 0;
  height: 58px;
  border-radius: 18px;
  background: transparent;
  color: #b38b96;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.shopping-nav-btn:active {
  transform: translateY(1px);
}

.shopping-nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  color: currentColor;
}

.shopping-nav-icon.is-mall {
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}

.shopping-nav-icon.is-mall::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.shopping-nav-icon.is-mall::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor;
}

.shopping-nav-icon.is-circle {
  border: 2px solid currentColor;
  border-radius: 6px;
  box-sizing: border-box;
}

.shopping-nav-icon.is-circle::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-18deg) skewX(-15deg);
  border-radius: 0 0 0 2px;
}

.shopping-nav-icon.is-circle::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor;
}

.shopping-nav-icon.is-bag {
  border: 2px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  box-sizing: border-box;
}

.shopping-nav-icon.is-bag::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -4px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.shopping-nav-icon.is-bag::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
  opacity: 0.85;
}

.shopping-nav-btn.is-active {
  color: #ef6d8b;
  background: linear-gradient(180deg, rgba(255, 234, 241, 0.92), rgba(255, 223, 234, 0.88));
  box-shadow: inset 0 0 0 1px rgba(247, 165, 185, 0.5), 0 6px 10px rgba(240, 146, 171, 0.18);
}

@media (max-width: 375px) {
  .shopping-title {
    font-size: 26px;
  }

  .shopping-product-grid {
    gap: 10px;
  }

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

  .shopping-buy-btn {
    font-size: 14px;
  }
}

/* Lowest-performance mode: prioritize smoothness on mobile web. */
#shoppingView.shopping-lowperf {
  background: #fff6fa;
}

#shoppingView.shopping-lowperf::before {
  display: none;
}

#shoppingView.shopping-lowperf .shopping-app-shell {
  background: #fff7fb;
}

#shoppingView.shopping-lowperf .shopping-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#shoppingView.shopping-lowperf .shopping-category-chip,
#shoppingView.shopping-lowperf .shopping-buy-btn,
#shoppingView.shopping-lowperf .shopping-nav-btn {
  transition: none;
}

#shoppingView.shopping-lowperf .shopping-product-card {
  box-shadow: none;
  border-width: 1px;
}

#shoppingView.shopping-lowperf .shopping-product-card::before,
#shoppingView.shopping-lowperf .shopping-product-card::after {
  display: none;
}

#shoppingView.shopping-lowperf .shopping-product-media-wrap {
  background: #fff8fb;
}

#shoppingView.shopping-lowperf .shopping-product-badge {
  box-shadow: none;
}

#shoppingView.shopping-lowperf .shopping-buy-btn {
  box-shadow: none;
}

#shoppingView.shopping-lowperf .shopping-bottom-nav {
  box-shadow: none;
}

#shoppingView.shopping-lowperf .shopping-nav-btn.is-active {
  box-shadow: none;
}
