:root {
  --mf-rice-white: #fcf9f4;
  --mf-bg: #f7f2ea;
  --mf-card: #fffdf9;
  --mf-card-warm: #fff8ed;
  --mf-card-2: var(--mf-card-warm);
  --mf-ink: #2a2119;
  --mf-text: var(--mf-ink);
  --mf-muted: #786c5d;
  --mf-text-muted: var(--mf-muted);
  --mf-line: #eadfce;
  --mf-border: var(--mf-line);
  --mf-accent: #e8a536;
  --mf-accent-soft: #fff0d0;
  --mf-accent-warm: #ffe2ae;
  --mf-accent-dark: #9a6417;
  --mf-brown: #5a3b22;
  --mf-success: #4d8b64;
  --mf-warning: #b87920;
  --mf-sold-out: #a45b45;
  --mf-green: var(--mf-success);
  --mf-red: var(--mf-sold-out);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 14px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font-xs: 11px;
  --font-sm: 12px;
  --font-md: 13px;
  --font-base: 14px;
  --font-lg: 18px;
  --font-xl: 22px;
  --line-tight: 1.15;
  --line-normal: 1.45;
  --shadow-sm: 0 8px 20px rgba(68, 48, 25, 0.06);
  --shadow-md: 0 12px 30px rgba(68, 48, 25, 0.1);
  --shadow-lg: 0 16px 44px rgba(68, 48, 25, 0.1);
  --mf-shadow: var(--shadow-lg);
  --z-page: 1;
  --z-bottom-nav: 50;
  --z-memory-jar: 40;
  --z-header: 30;
  --z-search: 28;
  --z-detail-bottom: 45;
  --app-height: 100dvh;
  --app-max-width: 430px;
  --top-header-base-height: 72px;
  --top-header-height: calc(var(--top-header-base-height) + env(safe-area-inset-top));
  --search-height: 48px;
  --bottom-nav-height: 64px;
  --memory-jar-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-top: env(safe-area-inset-top);
  --content-x-padding: var(--space-5);
  --content-top-padding: calc(var(--top-header-height) + var(--space-3));
  --content-bottom-padding: calc(var(--memory-jar-height) + var(--bottom-nav-height) + var(--safe-bottom) + var(--space-8));
  --page-bottom-padding: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-8));
  --card-padding: var(--space-4);
  --button-height-sm: 34px;
  --button-height-md: 38px;
  --button-height-lg: 44px;
}

html:has(.mf-app),
body:has(.mf-app) {
  background: var(--mf-bg);
  overflow: hidden;
  margin: 0;
  height: 100%;
}

.mf-app {
  height: var(--app-height);
  background: var(--mf-bg);
  color: var(--mf-ink);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

.mf-shell {
  position: relative;
  width: min(100%, var(--app-max-width));
  height: var(--app-height);
  margin: 0 auto;
  overflow: hidden;
  background: var(--mf-bg);
}

.mf-phone {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--content-top-padding) var(--content-x-padding) var(--page-bottom-padding);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mf-phone::-webkit-scrollbar {
  display: none;
}

.mf-phone:has(.mf-order-page) {
  padding: 0;
}

.mf-order-page {
  min-height: var(--app-height);
  height: var(--app-height);
  overflow: hidden;
  background: var(--mf-rice-white);
}

.mf-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: var(--z-header);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  width: min(100%, var(--app-max-width));
  min-height: var(--top-header-height);
  transform: translateX(-50%);
  padding: calc(var(--space-3) + var(--safe-top)) var(--content-x-padding) var(--space-3);
  border-bottom: 1px solid color-mix(in srgb, var(--mf-border) 72%, transparent);
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(14px);
}

.mf-brand strong {
  display: block;
  color: var(--mf-brown);
  font-size: var(--font-xl);
  line-height: var(--line-tight);
}

.mf-brand span {
  display: block;
  margin-top: 3px;
  color: var(--mf-muted);
  font-size: var(--font-sm);
}

.mf-status {
  min-width: 112px;
  border: 1px solid var(--mf-line);
  border-radius: var(--radius-lg);
  background: var(--mf-card);
  padding: var(--space-2) var(--space-3);
  text-align: right;
  box-shadow: var(--shadow-sm);
}

.mf-status b {
  display: block;
  color: var(--mf-green);
  font-size: var(--font-md);
}

.mf-status span {
  display: block;
  margin-top: 2px;
  color: var(--mf-muted);
  font-size: var(--font-xs);
}

.mf-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff3d8, #f2d6a4);
  box-shadow: var(--mf-shadow);
}

.mf-hero-copy {
  padding: 16px 14px;
}

.mf-hero h1 {
  margin: 0;
  color: var(--mf-brown);
  font-size: 22px;
  line-height: 1.15;
}

.mf-hero p {
  margin: 9px 0 0;
  color: var(--mf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mf-hero strong {
  display: block;
  margin-top: 10px;
  color: var(--mf-accent-dark);
  font-size: 18px;
}

.mf-hero img,
.mf-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mf-hero-media {
  min-width: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 249, 0.34);
}

.mf-btn,
.mf-icon-btn {
  min-height: var(--button-height-md);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--mf-accent);
  color: #fff;
  font-weight: 850;
  padding: 0 var(--space-6);
}

.mf-icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--button-height-md);
  min-width: var(--button-height-md);
  height: var(--button-height-md);
  min-height: var(--button-height-md);
  padding: 0;
  background: var(--mf-accent-soft);
  color: var(--mf-accent-dark);
  box-shadow: inset 0 0 0 1px rgba(154, 100, 23, 0.1);
}

.mf-btn.secondary {
  border: 1px solid var(--mf-line);
  background: var(--mf-card);
  color: var(--mf-brown);
}

.mf-btn:disabled,
.mf-icon-btn:disabled {
  opacity: 0.5;
}

.mf-notice,
.mf-card,
.mf-strip,
.mf-jar-bar,
.mf-payment-card {
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: var(--mf-card);
  box-shadow: 0 8px 24px rgba(68, 48, 25, 0.06);
}

.mf-strip {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--mf-muted);
  font-size: 13px;
  line-height: 1.4;
}

.mf-notice {
  margin-top: 12px;
  padding: 12px;
  background: #fff7e7;
}

.mf-notice b {
  color: var(--mf-brown);
}

.mf-section {
  margin-top: 14px;
}

.mf-muted {
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mf-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.mf-section-head span {
  color: var(--mf-muted);
  font-size: 12px;
}

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

.mf-product-card,
.mf-list-row {
  min-width: 0;
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  background: var(--mf-card);
  box-shadow: var(--shadow-sm);
}

.mf-product-card {
  overflow: hidden;
}

.mf-product-card.sold-out,
.mf-list-row.sold-out {
  filter: grayscale(0.9);
  opacity: 0.68;
}

.mf-product-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(255, 235, 191, 0.52), rgba(255, 248, 237, 0.92)),
    var(--mf-card-warm);
}

.mf-product-body {
  display: grid;
  gap: var(--space-2);
  padding: var(--card-padding);
}

.mf-card-featured,
.mf-feature-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.mf-card-featured .mf-product-media,
.mf-feature-card .mf-product-media {
  height: clamp(104px, 30vw, 120px);
}

.mf-card-compact .mf-product-media {
  height: 96px;
}

.mf-card-featured h3,
.mf-feature-card h3 {
  font-size: var(--font-lg);
  line-height: var(--line-tight);
}

.mf-product-body h3 {
  margin: 0;
  color: var(--mf-brown);
  font-size: var(--font-base);
  line-height: var(--line-tight);
}

.mf-product-body p {
  min-height: 32px;
  margin: 0;
  color: var(--mf-muted);
  font-size: var(--font-sm);
  line-height: var(--line-normal);
}

.mf-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.mf-price {
  color: var(--mf-accent-dark);
  font-size: var(--font-base);
  font-weight: 900;
}

.mf-product-placeholder {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--mf-muted);
  font-size: var(--font-sm);
  font-weight: 850;
}

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

.mf-quick button,
.mf-payment-card,
.mf-order-card,
.mf-memory-card {
  text-align: left;
}

.mf-quick button {
  min-height: 82px;
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: var(--mf-card);
  color: var(--mf-brown);
  padding: 12px;
  font-weight: 850;
}

.mf-quick span {
  display: block;
  margin-top: 5px;
  color: var(--mf-muted);
  font-size: 11px;
  font-weight: 600;
}

.mf-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--safe-bottom);
  z-index: var(--z-bottom-nav);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, var(--app-max-width));
  height: var(--bottom-nav-height);
  transform: translateX(-50%);
  border-top: 1px solid var(--mf-line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  padding: var(--space-2);
}

.mf-bottom-nav a {
  color: var(--mf-muted);
  font-size: var(--font-sm);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mf-bottom-nav a.active {
  color: var(--mf-brown);
}

.mf-menu-search {
  position: fixed;
  top: var(--top-header-height);
  left: 50%;
  z-index: var(--z-search);
  width: min(100%, var(--app-max-width));
  height: var(--search-height);
  transform: translateX(-50%);
  padding: var(--space-1) var(--content-x-padding) 6px;
  background: rgba(252, 249, 244, 0.96);
  backdrop-filter: blur(14px);
}

.mf-menu-search .mf-search {
  height: var(--button-height-md);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-6);
}

.mf-menu-layout {
  position: fixed;
  top: calc(var(--top-header-height) + var(--search-height));
  left: 50%;
  bottom: 0;
  z-index: var(--z-page);
  display: flex;
  gap: 0;
  width: min(100%, var(--app-max-width));
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.mf-side-cats {
  width: 88px;
  flex: 0 0 88px;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  overflow-y: auto;
  padding: var(--space-4) var(--space-2) var(--content-bottom-padding);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.mf-side-cats::-webkit-scrollbar {
  display: none;
}

.mf-side-cats button {
  min-height: 62px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #f4eddf;
  color: var(--mf-muted);
  font-size: var(--font-sm);
  font-weight: 800;
  line-height: 1.18;
  padding: var(--space-2) var(--radius-xs);
}

.mf-side-cats button.active {
  background: var(--mf-accent-warm);
  color: var(--mf-brown);
  box-shadow: inset 0 0 0 1px rgba(154, 100, 23, 0.14);
}

.mf-side-cats button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.8);
  color: var(--mf-accent-dark);
  font-size: var(--font-sm);
}

.mf-list {
  flex: 1;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--space-3);
  overflow-y: auto;
  padding: var(--space-4) var(--content-x-padding) var(--content-bottom-padding) var(--space-1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mf-list::-webkit-scrollbar {
  display: none;
}

.mf-list-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2);
}

.mf-card-medium,
.mf-medium-row {
  grid-template-columns: 92px 1fr 42px;
  min-height: 108px;
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.mf-card-medium .mf-product-media,
.mf-medium-row .mf-product-media {
  height: 88px;
  border-radius: var(--radius-md);
}

.mf-card-medium .mf-product-img,
.mf-medium-row .mf-product-img {
  border-radius: var(--radius-md);
}

.mf-list-row > img {
  width: 74px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--mf-card-warm);
}

.mf-list-row .mf-product-media {
  width: 74px;
  height: 64px;
  border-radius: var(--radius-md);
}

.mf-list-row .mf-product-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.mf-card-medium .mf-product-media {
  width: 92px;
}

.mf-list-row h3 {
  margin: 0;
  font-size: var(--font-base);
  color: var(--mf-brown);
  line-height: var(--line-tight);
}

.mf-list-row p {
  margin: var(--space-1) 0 0;
  color: var(--mf-muted);
  font-size: var(--font-sm);
  line-height: var(--line-normal);
}

.mf-list-row b {
  display: inline-block;
  margin-top: var(--space-1);
  color: var(--mf-accent-dark);
  font-size: var(--font-base);
}

.mf-jar-bar {
  position: fixed;
  left: max(var(--space-6), calc((100vw - var(--app-max-width)) / 2 + var(--space-6)));
  right: max(var(--space-6), calc((100vw - var(--app-max-width)) / 2 + var(--space-6)));
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px);
  z-index: var(--z-memory-jar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--memory-jar-height);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--mf-card-warm);
  box-shadow: var(--shadow-md);
}

.mf-jar-icon,
.mf-mini-jar i {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #f4e6ce;
  color: var(--mf-brown);
  font-style: normal;
  font-weight: 900;
}

.mf-jar-icon span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  border: 2px solid var(--mf-card);
  border-radius: var(--radius-pill);
  background: var(--mf-accent);
  color: #fff;
  font-size: var(--font-xs);
  line-height: 15px;
  text-align: center;
}

.mf-jar-summary {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-2);
}

.mf-jar-summary b,
.mf-jar-summary span {
  display: block;
}

.mf-jar-summary span {
  color: var(--mf-muted);
  font-size: var(--font-sm);
}

.mf-detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
  background: #f1e3cf;
}

.mf-detail-page {
  padding-bottom: var(--content-bottom-padding);
}

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

.mf-chip {
  min-height: 36px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: var(--mf-card);
  color: var(--mf-brown);
  padding: 0 12px;
  font-weight: 850;
}

.mf-chip.selected {
  border-color: #efbf63;
  background: #fff2d3;
}

.mf-chip.dashed {
  border-style: dashed;
}

.mf-popover {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  background: var(--mf-card);
  padding: 12px;
  box-shadow: var(--mf-shadow);
}

.mf-popover span {
  color: var(--mf-muted);
  font-size: 12px;
  font-weight: 800;
}

.mf-popover button {
  min-height: 34px;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  background: var(--mf-card-2);
  color: var(--mf-brown);
  font-weight: 800;
}

.mf-detail-bottom {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  z-index: var(--z-detail-bottom);
  width: min(100%, var(--app-max-width));
  transform: translateX(-50%);
  border-top: 1px solid var(--mf-line);
  background: rgba(255, 253, 249, 0.98);
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 -10px 24px rgba(68, 48, 25, 0.08);
}

.mf-detail-inputs {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 8px;
  align-items: stretch;
}

.mf-detail-inputs textarea {
  min-height: 44px;
  max-height: 44px;
  resize: none;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  background: var(--mf-card);
  padding: 9px;
}

.mf-qty {
  display: grid;
  grid-template-columns: 1fr 28px 28px 28px;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  background: var(--mf-card);
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 850;
}

.mf-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--mf-accent);
  color: #fff;
  font-weight: 900;
}

.mf-detail-action {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.mf-detail-action > div {
  min-height: 44px;
  border: 1px solid var(--mf-line);
  border-radius: 13px;
  background: var(--mf-card-2);
  padding: 7px 9px;
}

.mf-detail-action .mf-mini-jar {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 5px 8px;
}

.mf-detail-action .mf-mini-jar i {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: 12px;
}

.mf-detail-action b,
.mf-detail-action span {
  display: block;
}

.mf-detail-action span {
  color: var(--mf-muted);
  font-size: 11px;
}

.mf-option-list,
.mf-payment-list,
.mf-order-list,
.mf-memory-stack {
  display: grid;
  gap: 10px;
}

.mf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  background: var(--mf-card);
  padding: 11px 12px;
}

.mf-option.selected,
.mf-payment-card.selected {
  border-color: #efbf63;
  background: #fff6e2;
}

.mf-form {
  display: grid;
  gap: 10px;
}

.mf-form input,
.mf-form textarea,
.mf-form select,
.mf-search {
  width: 100%;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: var(--mf-card);
  padding: 12px;
  color: var(--mf-ink);
  outline: none;
}

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

.mf-whatsapp-preview {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--mf-ink);
  padding: 12px;
  resize: vertical;
}

.mf-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mf-qty-count {
  display: inline-grid;
  min-width: 24px;
  place-items: center;
  color: var(--mf-brown);
  font-weight: 900;
}

.mf-price-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: var(--mf-card-2);
  padding: 12px;
}

.mf-mini {
  min-height: 28px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: var(--mf-card-2);
  color: var(--mf-brown);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.mf-mini.danger {
  background: #fff1ed;
  color: var(--mf-red);
}

.mf-payment-card,
.mf-order-card,
.mf-memory-card {
  padding: 14px;
}

.mf-memory-layout {
  display: grid;
  gap: 12px;
}

.mf-memory-hero,
.mf-memory-seed,
.mf-memory-panel {
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: var(--mf-card);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(68, 48, 25, 0.06);
}

.mf-memory-hero span,
.mf-memory-seed span {
  color: var(--mf-muted);
  font-size: 12px;
  font-weight: 850;
}

.mf-memory-hero h2 {
  margin: 5px 0;
}

.mf-memory-seed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mf-memory-seed p,
.mf-progress {
  grid-column: 1 / -1;
}

.mf-memory-seed strong {
  display: block;
  color: var(--mf-brown);
  font-size: 22px;
}

.mf-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e2cc;
}

.mf-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mf-accent);
}

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

.mf-badge-row span {
  border-radius: 999px;
  background: #fff2d3;
  color: var(--mf-brown);
  padding: 7px 10px;
  font-weight: 850;
}

.mf-qr {
  display: block;
  width: min(250px, 100%);
  margin: 12px auto;
  border-radius: 18px;
  background: #fff;
}

.mf-empty {
  padding: 24px 14px;
  color: var(--mf-muted);
  text-align: center;
}

.mf-loading-page {
  min-height: 100%;
  background: var(--mf-rice-white);
  padding: var(--space-6) 0 var(--page-bottom-padding);
}

.mf-loading-title {
  margin: var(--space-4) 0 var(--space-5);
  color: var(--mf-brown);
}

.mf-loading-title b {
  display: block;
  font-size: var(--font-lg);
}

.mf-loading-title span {
  display: block;
  margin-top: var(--space-1);
  color: var(--mf-muted);
  font-size: var(--font-md);
}

.mf-skeleton-list {
  display: grid;
  gap: var(--space-4);
}

.mf-skeleton-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-4);
  min-height: 106px;
  border: 1px solid var(--mf-border);
  border-radius: var(--radius-lg);
  background: var(--mf-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.mf-skeleton-card.featured {
  grid-template-columns: 1fr;
}

.mf-skeleton-card.featured .mf-skeleton-img {
  height: 104px;
}

.mf-skeleton-img,
.mf-skeleton-copy span {
  display: block;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #f3eadb 0%, #fff8ed 48%, #f3eadb 100%);
  background-size: 180% 100%;
  animation: mf-skeleton-pulse 1.4s ease-in-out infinite;
}

.mf-skeleton-img {
  min-height: 82px;
}

.mf-skeleton-copy {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.mf-skeleton-copy span {
  height: 12px;
}

.mf-skeleton-copy span:first-child {
  width: 72%;
  height: 16px;
}

.mf-skeleton-copy span:nth-child(2) {
  width: 92%;
}

.mf-skeleton-copy span:nth-child(3) {
  width: 42%;
}

@keyframes mf-skeleton-pulse {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

.mf-error {
  border: 1px solid #ebc6bc;
  border-radius: 16px;
  background: #fff1ed;
  color: var(--mf-red);
  padding: 12px;
  font-size: 13px;
}

@media (max-width: 360px) {
  .mf-grid-3,
  .mf-quick {
    gap: 7px;
  }

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