html.m-app-root,
body.m-app-body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
  font-family: var(--font-sans);
  color: var(--mall-ink);
  background: var(--mall-page);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: auto;
}

/* Auth 부트 구간 — 빈 베이지 화면 대신 로딩 표시 */
.m-boot-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f3f2ef;
}
html.auth-boot-resolving .m-boot-loader {
  display: flex;
}
.m-boot-loader[hidden] {
  display: none !important;
}
.m-boot-loader__ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(42, 47, 54, 0.12);
  border-top-color: var(--mall-ink, #2a2f36);
  border-radius: 50%;
  animation: m-boot-spin 0.75s linear infinite;
}
.m-boot-loader__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mall-muted, #6b7280);
  letter-spacing: -0.02em;
}
@keyframes m-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.m-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.m-views {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.m-view {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--mall-page);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), opacity 220ms ease;
  min-width: 0;
  max-width: 100%;
}

.m-view--checkout-wizard,
.m-view[data-view="checkout"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.m-view[data-view="checkout"] > .m-header,
.m-view[data-view="checkout"] > .m-checkout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.m-view[data-view="checkout"] > .m-checkout {
  flex: 1;
  min-height: 0;
}

.m-view.is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.m-view.is-under {
  transform: translateX(-12%);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

/* 뒤로가기 진입 뷰: 왼쪽 오프스크린 초기 배치 (transition: none으로 즉시) */
.m-view.is-offscreen-left {
  transform: translateX(-100%) !important;
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .m-view {
    transition: none !important;
  }
}

/* 인증 — 아이보리 배경 (프로필·주문 전 배송지 입력은 장바구니·마이페이지와 동일 화이트 — mall-editorial.css) */
.m-view[data-view="login"],
.m-view[data-view="signup"],
.m-view[data-view="verify"] {
  background: var(--mall-gradient-brand);
}

.m-view[data-view="login"] .m-view__scroll,
.m-view[data-view="signup"] .m-view__scroll,
.m-view[data-view="verify"] .m-view__scroll {
  min-height: 100%;
}

.m-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: calc(var(--m-header-h) + var(--m-safe-top));
  padding: calc(6px + var(--m-safe-top)) max(14px, env(safe-area-inset-right, 0px)) 8px
    max(14px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  max-width: 100%;
  background: rgba(255, 252, 250, 0.98);
  border-bottom: 1px solid var(--mall-line);
}

.m-header--glass-dark {
  background: rgba(15, 74, 26, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.m-header--glass-dark .m-header__title,
.m-header--glass-dark .m-icon-btn {
  color: #fff;
}

.m-header--glass-dark .m-icon-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.m-header__brand {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 38%;
  gap: 1px;
  align-items: flex-start;
}

/* 카탈로그 툴바 — 1줄: 메뉴+로고+Members | 이름 | 버튼 */
.m-header--catalog {
  display: block;
  min-height: 0;
  padding: calc(8px + var(--m-safe-top)) 14px 8px;
  background: rgba(255, 252, 250, 0.94);
  border-bottom-color: var(--mall-line);
}

.m-header--catalog .m-toolbar {
  display: block;
  width: 100%;
  min-width: 0;
}

.m-header--catalog .m-toolbar__row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.m-header--catalog .m-toolbar__menu {
  flex: 0 0 auto;
}

.m-header--catalog .m-toolbar__brand {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  padding-bottom: 1px;
}

.m-header--catalog .m-toolbar__logo {
  display: block;
  flex: 0 0 auto;
  height: 22px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  object-position: left center;
}

.m-header--catalog .m-toolbar__site-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 3px 0 0;
  line-height: 1.15;
}

.m-header--catalog .m-toolbar__site {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
  white-space: nowrap;
}

.m-header--catalog .m-toolbar__site-sep {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mall-muted);
  opacity: 0.45;
  line-height: 1;
}

.m-header--catalog .m-toolbar__user-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mall-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-header--catalog .m-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 햄버거 · 검색 · 로그아웃 — 배경 없음(고스트) */
.m-header--catalog .m-icon-btn--toolbar {
  flex-shrink: 0;
}

/* 서브 헤더·기타 뷰용 협력사 로고 (카탈로그 외) */
.m-partner-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.m-partner-logo[hidden] {
  display: none;
}

.m-header__member-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mall-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-header__logo,
.m-auth__logo {
  display: block;
  width: auto;
  max-width: 168px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.m-header__logo {
  max-height: 22px;
}

.m-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mall-ink);
}

.m-header__sub {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mall-muted);
}

.m-header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.m-header--sub {
  gap: 4px;
}

.m-header--sub .m-header__title {
  flex: 1;
  min-width: 0;
}

.m-header__title--truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-bottom-nav .m-nav-label {
  line-height: 1.1;
}

.m-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--mall-ink);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s ease, opacity 0.18s ease;
}

.m-icon-btn:active {
  transform: scale(0.96);
  background: rgba(42, 47, 53, 0.06);
}

@media (hover: hover) {
  .m-icon-btn:hover {
    background: rgba(42, 47, 53, 0.05);
  }
}

.m-icon-btn:focus-visible {
  outline: 2px solid var(--mall-focus-ring);
  outline-offset: 2px;
}

.m-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 카탈로그 툴바 — 평소 완전 투명, 탭할 때만 살짝 */
.m-icon-btn--toolbar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}

.m-icon-btn--toolbar:active {
  background: rgba(42, 47, 53, 0.07);
}

@media (hover: hover) {
  .m-icon-btn--toolbar:hover {
    background: rgba(42, 47, 53, 0.05);
  }
}

.m-icon-btn--cart {
  overflow: visible;
}

.m-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #e53935);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.45);
}

.m-badge.is-zero {
  display: none;
}

/* body 직속 — viewport 하단 고정 (m/index.html 구조) */
body.m-app-body > .m-bottom-nav,
body.m-app-body > #mBottomNav.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: 120px;
  z-index: 50;
  margin: 0;
  inset-inline: 0;
}

.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: 120px;
  z-index: 50;
  display: flex;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 56px;
  padding: 6px 10px calc(6px + var(--m-safe-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--mall-line);
  box-shadow: 0 -2px 16px rgba(42, 47, 53, 0.06);
  transform: none;
}

.m-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mall-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.m-bottom-nav .m-nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-bottom-nav button .m-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.m-bottom-nav .m-nav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #e53935);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
  pointer-events: none;
  z-index: 1;
}

.m-bottom-nav .m-nav-badge.is-zero {
  display: none;
}

/* 하단 탭 — 플레인 숫자 배지 (찜·장바구니 공통) */
.m-bottom-nav .m-nav-badge--plain {
  top: -2px;
  right: -10px;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--mall-ink, #2a2f36);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.m-bottom-nav button[data-nav="wishlist"].has-wishlist:not(.is-active) .m-nav-icon {
  color: #e11d48;
}

.m-bottom-nav button.is-active {
  color: var(--mall-ink);
  font-weight: 700;
}

.m-bottom-nav button.is-active .m-nav-icon {
  background: rgba(42, 47, 53, 0.07);
  color: var(--mall-ink);
}

/* 활성 탭 — 얇은 잉크 라인 (그린 강조 제거) */
.m-bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 4);
  height: 2px;
  background: var(--mall-ink);
  border-radius: 0 0 2px 2px;
  opacity: 0.88;
  transform: translateX(calc(var(--m-active-tab, 0) * 100%));
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .m-bottom-nav::before {
    transition: none;
  }
}

/* 하단 탭 + CTA 바 겹침 방지 — nav 실측 높이에 safe-area padding 포함, 이중 합산 금지 */
.m-app--has-nav,
html.m-app-root.m-app--has-nav {
  --m-nav-offset: var(--m-bottom-nav-h, calc(62px + var(--m-safe-bottom)));
}

/* 필터 시트: body overflow 대신 활성 뷰만 스크롤 잠금 (iOS fixed 탭 튐 방지) */
html.m-sheet-open .m-view.is-active.m-view--sheet-lock {
  overflow: hidden !important;
}

.m-app--has-cta,
html.m-app-root.m-app--has-cta {
  --m-cta-stack: calc(var(--m-cta-h, 56px) + 12px);
}

/* CTA — body 직속 #mCtaDock: viewport 하단·탭 바로 위 고정 */
body.m-app-body > .m-cta-bar--dock,
body.m-app-body > #mCtaDock.m-cta-bar--dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: 140px;
  z-index: 55;
  margin: 0;
  inset-inline: 0;
}

.m-cta-bar,
.m-cta-bar--dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: 140px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 8px 14px calc(8px + var(--m-safe-bottom));
  transform: none;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--mall-line);
  box-shadow: 0 -4px 20px rgba(42, 47, 53, 0.08);
}

.m-app--has-nav .m-cta-bar--dock,
html.m-app-root.m-app--has-nav .m-cta-bar--dock,
html.m-app-root.m-app--has-nav #mCtaDock.m-cta-bar--dock {
  bottom: var(--m-nav-offset);
  padding-bottom: 8px;
}

/* 장바구니·상세 CTA — 주문/담기 버튼이 탭에 가리지 않도록 */
#mCtaDock.m-cta-bar--dock .m-btn--primary {
  flex-shrink: 0;
  min-width: 96px;
}

.m-cta-bar__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  min-width: 0;
}

.m-cta-bar__actions .m-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.m-cta-bar__actions .m-btn--ghost {
  border: 1px solid var(--mall-line);
  background: var(--mall-surface-elevated, #fff);
  color: var(--mall-ink);
}

.m-cta-bar__actions .m-btn.is-await-option:not(:disabled) {
  opacity: 0.78;
}

.m-cta-bar__price {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mall-muted);
  line-height: 1.3;
}

.m-cta-bar__price span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-cta-bar__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--mall-accent-deal);
  margin-bottom: 1px;
  min-height: 1.05em;
}

/* 할인 문구 없을 때도 CTA 높이 유지 — 수량 변경 시 뚝 늘어남 방지 */
.m-cta-bar__sub--reserve:empty {
  visibility: hidden;
}

#mCtaDock.m-cta-bar--dock:not(.is-hidden) {
  min-height: 68px;
  align-items: center;
}

.m-cta-bar__price strong {
  display: block;
  margin-top: 1px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-cta-bar .m-btn--primary {
  flex-shrink: 0;
  min-width: 96px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 11px;
}

.m-cta-bar__price strong em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mall-accent-deal);
}

.m-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 16, 28, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.m-sheet-backdrop.is-open {
  z-index: var(--m-z-overlay);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 0s;
}

.m-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--m-nav-offset, 0px);
  z-index: 40;
  max-height: min(88dvh, 640px);
  overflow: auto;
  padding: 8px 18px calc(20px + var(--m-safe-bottom));
  border-radius: var(--m-sheet-radius) var(--m-sheet-radius) 0 0;
  background: var(--mall-surface-elevated);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 320ms;
  box-shadow: var(--mall-shadow-lg);
}

.m-sheet.is-open {
  z-index: var(--m-z-sheet);
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s;
}

.m-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(20, 24, 22, 0.12);
}

.m-sheet__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
}

/* —— 브랜드 드로어 (햄버거) —— */
.m-brand-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 16, 28, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.m-brand-drawer-backdrop.is-open {
  z-index: var(--m-z-overlay);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 0s;
}

.m-brand-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: min(88vw, 320px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(10px + var(--m-safe-top)) 16px calc(16px + var(--m-safe-bottom));
  background: linear-gradient(180deg, #fffcfa 0%, #f5f2ec 100%);
  border-right: 1px solid var(--mall-card-border);
  box-shadow: 8px 0 32px rgba(20, 24, 22, 0.12);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-104%);
  transition:
    transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 280ms;
}

.m-brand-drawer.is-open {
  z-index: var(--m-z-sheet);
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s;
}

.m-brand-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.m-brand-drawer__eyebrow {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mall-stone);
}

.m-brand-drawer__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mall-ink);
}

.m-brand-drawer__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(20, 24, 22, 0.06);
  color: var(--mall-ink);
}

.m-brand-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.m-brand-drawer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.m-brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 14px 12px;
  border: 1px solid var(--mall-card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  color: var(--mall-ink);
  box-shadow: 0 2px 10px rgba(20, 24, 22, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.m-brand-card:active {
  transform: scale(0.99);
}

.m-brand-card.is-active {
  border-color: var(--mall-card-border-hover);
  background: linear-gradient(145deg, var(--mall-warm) 0%, rgba(255, 255, 255, 0.98) 72%);
  box-shadow: var(--mall-card-shadow);
}

.m-brand-card__logo {
  display: block;
  max-width: 88px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}

.m-brand-card--logo-fallback .m-brand-card__logo {
  display: none;
}

.m-brand-card__logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(20, 24, 22, 0.06);
  font-size: 1rem;
  font-weight: 800;
  color: var(--mall-charcoal);
  margin-bottom: 2px;
}

.m-brand-card--logo-fallback .m-brand-card__logo-fallback {
  display: inline-flex;
}

.m-brand-card__name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: keep-all;
}

.m-brand-card__tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mall-muted);
  line-height: 1.35;
}

.m-brand-drawer__empty {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--mall-muted);
  text-align: center;
}

html.m-brand-drawer-open .m-view.is-active.m-view--sheet-lock {
  overflow: hidden;
}

.m-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--m-nav-offset) + var(--m-cta-stack) + 12px);
  z-index: var(--m-z-toast);
  max-width: min(92vw, 360px);
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(42, 47, 53, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--mall-shadow-md);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.m-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.m-footer-link {
  display: block;
  margin: 20px 0 4px;
  padding: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mall-muted);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.m-view[data-view="login"] .m-footer-link,
.m-view[data-view="signup"] .m-footer-link {
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .m-view,
  .m-sheet,
  .m-sheet-backdrop,
  .m-toast,
  .m-icon-btn,
  .m-btn {
    transition: none !important;
  }
}
