:root {
  --cream: #fff9f5;
  --cream-deep: #fff0e8;
  --card: #ffffff;
  --ink: #33231f;
  --muted: #75645e;
  --soft: #9b8780;
  --line: #f0e4dc;
  --caramel: #993c1d;
  --caramel-dark: #5a281c;
  --pink: #ff8fab;
  --pink-deep: #d4537e;
  --pink-soft: #ffe4ec;
  --green: #66bb6a;
  --mint: #e8f5e9;
  --orange: #ff8f00;
  --blue: #42a5f5;
  --blue-soft: #e3f2fd;
  --shadow: 0 18px 45px rgba(90, 40, 28, 0.14);
  --tab-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7efe8;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", Roboto, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 181, 206, 0.18), rgba(227, 242, 253, 0.16) 42%, rgba(232, 245, 233, 0.18)),
    #f7efe8;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 143, 171, 0.38);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 240, 232, 0.98) 0%, rgba(255, 249, 245, 0.98) 32%, #fffdfb 100%);
  box-shadow: 0 0 0 1px rgba(153, 60, 29, 0.06), 0 30px 80px rgba(64, 33, 24, 0.16);
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(255, 249, 245, 0.86);
  border-bottom: 1px solid rgba(240, 228, 220, 0.78);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(212, 83, 126, 0.24);
  overflow: hidden;
}

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

.brand-lockup strong {
  display: block;
  color: var(--caramel);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.brand-lockup small {
  display: block;
  margin-top: 2px;
  color: var(--pink-deep);
  font-size: 11px;
  line-height: 1.2;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.round-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--caramel);
  place-items: center;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(90, 40, 28, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.round-icon:active {
  transform: scale(0.94);
}

.round-icon svg,
.floating-cart svg,
.tab-item svg,
.mini-icon svg,
.product-action svg,
.line-icon svg,
.favorite-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--pink-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.floating-cart {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: calc(var(--tab-height) + 24px + env(safe-area-inset-bottom));
  z-index: 46;
  display: grid;
  width: 56px;
  height: 56px;
  color: #fff;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 16px 30px rgba(212, 83, 126, 0.32), 0 8px 18px rgba(90, 40, 28, 0.14);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-cart:active {
  transform: scale(0.94);
}

.floating-cart.is-dragging {
  cursor: grabbing;
  transform: scale(1.04);
  transition: none;
  box-shadow: 0 20px 36px rgba(212, 83, 126, 0.38), 0 10px 22px rgba(90, 40, 28, 0.16);
}

.floating-cart svg {
  width: 25px;
  height: 25px;
}

.floating-cart .cart-count {
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(212, 83, 126, 0.26);
}

.screen {
  min-height: calc(100vh - 69px);
  padding: 0 16px calc(var(--tab-height) + 22px + env(safe-area-inset-bottom));
}

.view {
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: 198px;
  margin: 8px 0 18px;
  padding: 18px 18px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 181, 206, 0.84) 0%, rgba(255, 240, 232, 0.9) 48%, rgba(187, 222, 251, 0.82) 100%),
    #ffe4ec;
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  inset: auto -18px -34px auto;
  width: 190px;
  height: 190px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent 8%, #000 70%);
  opacity: 0.62;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--caramel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1,
.section-title h2,
.category-head h1 {
  margin: 0;
}

.hero h1 {
  margin-top: 12px;
  color: var(--caramel-dark);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
}

.hero p {
  margin: 8px 0 14px;
  color: rgba(90, 40, 28, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.hero-metrics {
  display: flex;
  gap: 8px;
}

.hero-metric {
  min-width: 62px;
  padding: 8px 8px 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-metric b {
  display: block;
  color: var(--pink-deep);
  font-size: 17px;
  line-height: 1;
}

.hero-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.hero-photo {
  position: absolute;
  right: -12px;
  bottom: -6px;
  z-index: 1;
  width: 178px;
  height: 178px;
  padding: 7px;
  transform: rotate(3deg);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 38px rgba(90, 40, 28, 0.18);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 10px 22px rgba(212, 83, 126, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(90, 40, 28, 0.06);
}

.search-panel svg {
  width: 19px;
  height: 19px;
  color: var(--soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-panel input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search-panel input::placeholder {
  color: #aa9991;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.section-title h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.link-button {
  color: var(--pink-deep);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile {
  display: flex;
  min-height: 90px;
  min-width: 0;
  padding: 10px 6px 9px;
  color: var(--caramel);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: var(--tile-bg, #ffe4ec);
  box-shadow: 0 10px 22px rgba(90, 40, 28, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:active {
  transform: scale(0.97);
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 0 7px;
  color: var(--tile-color, var(--pink-deep));
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.category-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-label {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 60, 29, 0.07);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(90, 40, 28, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:active {
  transform: translateY(1px) scale(0.99);
}

.product-media {
  position: relative;
  height: 150px;
  padding: 8px;
  background: var(--tone, linear-gradient(135deg, #ffe4ec, #ffccdd));
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 8px 18px rgba(212, 83, 126, 0.24);
  font-size: 11px;
  font-weight: 800;
}

.badge.caramel {
  background: linear-gradient(135deg, #b56a3a, #7a351d);
}

.badge.green {
  background: linear-gradient(135deg, #81c784, #43a047);
}

.favorite-toggle {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--pink-deep);
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(90, 40, 28, 0.14);
}

.favorite-toggle.is-active svg {
  fill: currentColor;
}

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

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.product-body h3 {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  color: #302522;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-subtitle {
  margin: 4px 0 9px;
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.price {
  color: var(--pink-deep);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.price small {
  font-size: 11px;
  font-weight: 700;
}

.product-action {
  display: grid;
  width: 31px;
  height: 31px;
  color: #fff;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 9px 18px rgba(212, 83, 126, 0.24);
}

.product-action:active {
  transform: scale(0.9);
}

.story-band {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 12px;
  margin: 20px 0 8px;
}

.story-card {
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(90, 40, 28, 0.07);
}

.story-card h3 {
  margin: 0 0 8px;
  color: var(--caramel);
  font-size: 15px;
  font-weight: 800;
}

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

.story-card.accent {
  display: grid;
  min-height: 132px;
  color: #fff;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 8%, rgba(51, 35, 31, 0.72)),
    var(--story-image);
  background-position: center;
  background-size: cover;
}

.story-card.accent h3,
.story-card.accent p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.category-head {
  margin: 8px 0 14px;
}

.category-head h1 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.category-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid rgba(153, 60, 29, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 10px 22px rgba(212, 83, 126, 0.2);
}

.featured-strip {
  display: grid;
  grid-auto-columns: 76%;
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -16px 20px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-strip::-webkit-scrollbar {
  display: none;
}

.wide-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 22px;
  background: #222;
  box-shadow: 0 16px 34px rgba(90, 40, 28, 0.14);
}

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

.wide-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(51, 35, 31, 0.72));
}

.wide-card-body {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: #fff;
}

.wide-card-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.wide-card-body p {
  margin: 0;
  opacity: 0.86;
  font-size: 12px;
}

.empty-state {
  padding: 34px 22px;
  text-align: center;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(90, 40, 28, 0.07);
}

.empty-state .brand-mark {
  margin: 0 auto 12px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 12px 26px rgba(212, 83, 126, 0.24);
}

.primary-button.green {
  background: linear-gradient(135deg, #81c784, #43a047);
  box-shadow: 0 12px 26px rgba(76, 175, 80, 0.18);
}

.ghost-button {
  color: var(--pink-deep);
  border: 2px solid rgba(212, 83, 126, 0.32);
  background: rgba(255, 255, 255, 0.72);
}

.danger-button {
  color: var(--caramel);
  background: #fff3e0;
}

.profile-hero {
  position: relative;
  margin: 8px -16px 0;
  padding: 28px 18px 54px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background:
    linear-gradient(135deg, rgba(255, 181, 206, 0.96), rgba(255, 107, 138, 0.96)),
    #ff8fab;
}

.profile-hero::after {
  position: absolute;
  right: -24px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  content: "";
  background:
    radial-gradient(circle at 20px 26px, rgba(255, 255, 255, 0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 42px 18px, rgba(255, 255, 255, 0.26) 0 5px, transparent 6px),
    radial-gradient(circle at 54px 34px, rgba(255, 255, 255, 0.26) 0 5px, transparent 6px),
    radial-gradient(circle at 35px 45px, rgba(255, 255, 255, 0.26) 0 5px, transparent 6px);
  background-size: 76px 76px;
  opacity: 0.8;
  transform: rotate(-16deg);
}

.profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 26px rgba(132, 45, 74, 0.18);
  overflow: hidden;
}

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

.profile-main h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.profile-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.vip-progress {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.progress-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.vip-progress small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.asset-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -28px;
}

.asset-card,
.order-card,
.benefit-card,
.store-card {
  border: 1px solid rgba(153, 60, 29, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(90, 40, 28, 0.07);
}

.asset-card {
  min-width: 0;
  padding: 13px 6px 12px;
  border-radius: 18px;
  text-align: center;
}

.asset-card b {
  display: block;
  color: var(--asset-color, var(--pink-deep));
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.asset-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.order-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shortcut {
  min-width: 0;
  padding: 6px 2px;
  color: var(--muted);
  background: transparent;
  text-align: center;
}

.shortcut-icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  color: var(--shortcut-color, var(--pink-deep));
  place-items: center;
  border-radius: 16px;
  background: var(--shortcut-bg, #ffe4ec);
}

.shortcut-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-label {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--pink-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  box-shadow: 0 6px 12px rgba(212, 83, 126, 0.22);
}

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

.order-card {
  position: relative;
  overflow: hidden;
  padding: 13px;
  border-radius: 20px;
}

.order-card.pending {
  border-left: 4px solid var(--orange);
}

.order-alert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #925309;
  border-radius: 999px;
  background: #fff3e0;
  font-size: 12px;
  font-weight: 800;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 143, 0, 0.34);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(255, 143, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 143, 0, 0);
  }
}

.order-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.order-main img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.order-main h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.order-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.pink {
  color: #b93463;
  background: #ffe4ec;
}

.status-pill.orange {
  color: #925309;
  background: #fff3e0;
}

.status-pill.blue {
  color: #1565c0;
  background: #e3f2fd;
}

.status-pill.purple {
  color: #6a4c93;
  background: #f1e8ff;
}

.status-pill.green,
.status-pill.done {
  color: #2e7d32;
  background: #e8f5e9;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #81c784, #43a047);
  font-size: 12px;
  font-weight: 800;
}

.order-foot .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  border-width: 1px;
  border-radius: 12px;
  font-size: 12px;
}

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

.benefit-card,
.store-card {
  padding: 14px;
  border-radius: 20px;
}

.benefit-card h3,
.store-card h3 {
  margin: 0 0 6px;
  color: var(--caramel);
  font-size: 15px;
  font-weight: 800;
}

.benefit-card p,
.store-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.store-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.store-tag {
  display: grid;
  width: 54px;
  height: 54px;
  color: #fff;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #42a5f5, #81c784);
}

.store-tag svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 430px);
  min-height: calc(var(--tab-height) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -18px 34px rgba(90, 40, 28, 0.12);
  backdrop-filter: blur(18px);
}

.tab-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  color: #9c8b84;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 16px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.tab-item.is-active {
  color: var(--pink-deep);
}

.tab-item.is-center {
  margin-top: -22px;
  color: #fff;
}

.tab-item.is-center .center-bubble {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
  box-shadow: 0 14px 24px rgba(212, 83, 126, 0.28);
}

.tab-item.is-center svg {
  width: 23px;
  height: 23px;
}

.tab-item.is-center span:last-child {
  color: var(--pink-deep);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  background: rgba(50, 29, 24, 0.38);
  backdrop-filter: blur(8px);
  animation: fade-in 0.16s ease both;
}

.modal-card,
.sheet {
  width: min(100%, 430px);
  max-height: 92vh;
  background: var(--cream);
  box-shadow: 0 -22px 50px rgba(44, 24, 18, 0.24);
}

.sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(153, 60, 29, 0.08);
  background: rgba(255, 249, 245, 0.88);
  backdrop-filter: blur(14px);
}

.sheet-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.icon-close {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--muted);
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
}

.icon-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.floating-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.sheet-scroll {
  overflow-y: auto;
}

.detail-cover {
  position: relative;
  height: 318px;
  padding: 16px;
  background: var(--tone, linear-gradient(135deg, #ffe4ec, #bbdefb));
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(90, 40, 28, 0.18);
}

.detail-cover .badge {
  top: 26px;
  left: 26px;
}

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

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-body h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.28;
}

.detail-body .lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.detail-price {
  flex: 0 0 auto;
  color: var(--pink-deep);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

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

.detail-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

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

.option-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-button,
.time-button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 9px 7px;
  color: var(--ink);
  border: 1.5px solid rgba(153, 60, 29, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.option-button strong,
.time-button strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.option-button span,
.time-button span {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.option-button.is-active,
.time-button.is-active {
  border-color: rgba(212, 83, 126, 0.72);
  background: #fff0f5;
  box-shadow: 0 8px 18px rgba(212, 83, 126, 0.1);
}

.option-button.is-active::after,
.time-button.is-active::after {
  position: absolute;
  top: -1px;
  right: -1px;
  display: grid;
  width: 18px;
  height: 18px;
  content: "✓";
  color: #fff;
  place-items: center;
  border-radius: 0 14px 0 10px;
  background: var(--pink-deep);
  font-size: 11px;
  font-weight: 900;
}

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

.time-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
}

.time-button.is-disabled {
  color: #b5aaa5;
  background: #f4eee9;
  cursor: not-allowed;
}

.allergen {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  color: #805111;
  border-left: 4px solid var(--orange);
  border-radius: 16px;
  background: #fff8f0;
}

.allergen svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.allergen b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.allergen p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(153, 60, 29, 0.08);
  background: rgba(255, 249, 245, 0.94);
}

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

.payment-body {
  padding: 14px 16px 18px;
}

.address-card,
.pay-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 22px rgba(90, 40, 28, 0.06);
}

.address-card.compact {
  margin: 0 0 14px;
  text-align: left;
}

.address-icon,
.pay-icon {
  display: grid;
  width: 42px;
  height: 42px;
  color: #fff;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8fab, #d4537e);
}

.pay-icon {
  background: linear-gradient(135deg, #81c784, #43a047);
}

.address-icon svg,
.pay-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-card strong,
.pay-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.address-card p,
.pay-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pay-card {
  grid-template-columns: auto 1fr auto;
  margin-top: 14px;
}

.pay-card b {
  color: var(--pink-deep);
  font-size: 20px;
}

.cart-list {
  display: grid;
  gap: 12px;
  padding: 14px 16px 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(153, 60, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 15px;
}

.cart-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.qty-stepper button {
  display: grid;
  width: 25px;
  height: 25px;
  color: var(--pink-deep);
  place-items: center;
  border-radius: 50%;
  background: #fff0f5;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}

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

.cart-total b {
  color: var(--pink-deep);
  font-size: 24px;
}

.success-card {
  position: relative;
  width: min(calc(100% - 28px), 402px);
  max-height: 92vh;
  padding: 20px 18px 18px;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(180deg, #e8f5e9 0%, #fff 36%);
  box-shadow: 0 24px 70px rgba(44, 24, 18, 0.28);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 4px auto 12px;
  color: #fff;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #81c784, #43a047);
  box-shadow: 0 14px 28px rgba(76, 175, 80, 0.22);
}

.success-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.success-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.verify-card {
  position: relative;
  overflow: hidden;
  padding: 18px 14px 14px;
  border: 1px solid rgba(76, 175, 80, 0.18);
  border-radius: 22px;
  background: #fff;
}

.verify-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, #81c784, #42a5f5);
}

.payment-mark {
  display: grid;
  width: 176px;
  height: 176px;
  margin: 4px auto 14px;
  place-items: center;
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 26px 30px, rgba(255, 143, 171, 0.22) 0 12px, transparent 13px),
    radial-gradient(circle at 144px 130px, rgba(66, 165, 245, 0.18) 0 18px, transparent 19px),
    linear-gradient(135deg, #fff9f5, #e8f5e9);
  animation: pop 0.28s ease both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.payment-mark span {
  display: grid;
  width: 74px;
  height: 74px;
  color: #fff;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #81c784, #43a047);
  box-shadow: 0 12px 26px rgba(76, 175, 80, 0.2);
}

.payment-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-code {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  border-radius: 14px;
  background: #e8f5e9;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
}

.success-summary {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  padding: 10px;
  border-radius: 18px;
  background: #fff9f5;
  text-align: left;
}

.success-summary img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 15px;
}

.success-summary h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.success-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.toast {
  position: fixed;
  right: 50%;
  bottom: calc(var(--tab-height) + 22px + env(safe-area-inset-bottom));
  z-index: 90;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 14px;
  color: #fff;
  pointer-events: none;
  transform: translateX(50%) translateY(12px);
  opacity: 0;
  border-radius: 999px;
  background: rgba(51, 35, 31, 0.9);
  box-shadow: 0 14px 28px rgba(44, 24, 18, 0.18);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  transform: translateX(50%) translateY(0);
  opacity: 1;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--caramel);
  border-radius: 999px;
  background: #fff3e0;
  font-size: 11px;
  font-weight: 800;
}

@media (hover: hover) {
  .round-icon:hover,
  .product-card:hover,
  .category-tile:hover,
  .tab-item:hover {
    transform: translateY(-1px);
  }

  .product-card:hover,
  .category-tile:hover {
    box-shadow: 0 16px 34px rgba(90, 40, 28, 0.12);
  }
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 12px;
  }

  .profile-hero,
  .chip-row,
  .featured-strip {
    margin-inline: -12px;
  }

  .chip-row,
  .featured-strip {
    padding-inline: 12px;
  }

  .hero {
    padding: 16px 14px 12px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-photo {
    width: 158px;
    height: 158px;
  }

  .product-media {
    height: 136px;
  }

  .category-grid {
    gap: 8px;
  }
}
