/* ============================================================
   MEGAFEAST — main.css v2
   Identidad: Tambo-style (blanco, negro, rojo)
   - Claro, comercial, alto contraste
   - Cards de producto blancas con borde sutil
   - Categorías como círculos con color de fondo
   - Tipografía grotesca moderna
   ============================================================ */

:root {
  /* Paleta */
  --mf-red: #ff3131;
  --mf-red-2: #d92525;
  --mf-red-3: #ffe5e5;
  --mf-ink: #1a1a1a;
  --mf-ink-2: #4a4a4a;
  --mf-mute: #8a8a8a;
  --mf-line: #ececec;
  --mf-line-2: #d4d4d4;
  --mf-bg: #ffffff;
  --mf-bg-2: #fafafa;
  --mf-bg-3: #f4f4f4;
  --mf-yellow: var(--mf-red);
  --mf-discount: #ff3b6b;
  --mf-success: #1ba672;

  /* Tipografía */
  --mf-sans: 'Geologica', 'Lexend', system-ui, -apple-system, sans-serif;
  --mf-display: 'Geologica', 'Lexend', system-ui, sans-serif;
  --mf-mono: 'Red Hat Mono', 'IBM Plex Mono', monospace;

  --mf-radius: 8px;
  --mf-radius-lg: 12px;
  --mf-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --mf-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--mf-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mf-ink);
  background: var(--mf-bg);
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
}
.mf-main-content {
  flex: 1 0 auto;
}
mf-header, mf-footer {
  display: block;
}
body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--mf-red); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mf-red); color: white; }

/* ===========================
   Top bar promocional
   =========================== */
.mf-topbar {
  background: var(--mf-red);
  color: white;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 13px;
  font-weight: 500;
}

/* ===========================
   Header
   =========================== */
.mf-header {
  background: white;
  border-bottom: 1px solid var(--mf-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mf-header__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.mf-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--mf-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mf-ink);
  white-space: nowrap;
}

.mf-logo__img {
  height: 38px;
  width: auto;
  display: block;
}

.mf-logo__mark {
  color: var(--mf-red);
  margin-right: 0.15rem;
}

.mf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--mf-line-2);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: var(--mf-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mf-pill:hover { border-color: var(--mf-red); color: var(--mf-red); }
.mf-pill--solid { background: var(--mf-ink); color: white; border-color: var(--mf-ink); }
.mf-pill--solid:hover { background: var(--mf-red); border-color: var(--mf-red); color: white; }

.mf-pill__icon { width: 16px; height: 16px; display: inline-flex; }

.mf-header__spacer { flex: 1; }

.mf-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mf-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mf-ink);
  transition: all 0.15s ease;
  position: relative;
}

.mf-icon-btn:hover { background: var(--mf-bg-3); color: var(--mf-red); }

.mf-icon-btn__count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--mf-red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 880px) {
  .mf-pill--label { display: none; }
  .mf-header__bar { padding: 0.7rem 1rem; gap: 0.6rem; }
}

/* ===========================
   Hero banner
   =========================== */
.mf-hero {
  background: var(--mf-bg-3);
  position: relative;
  overflow: hidden;
}

.mf-hero__track {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Slide: solo reserva el espacio (aspect-ratio) y muestra la imagen */
.mf-hero__slide {
  position: relative;
  width: 100%;
  display: none;
  overflow: hidden;
  aspect-ratio: 1280 / 360;
  background: var(--mf-bg-2);
  animation: mf-hero-in 0.45s ease;
}
.mf-hero__slide.is-active { display: block; }

@keyframes mf-hero-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mf-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mf-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dots */
.mf-hero__dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.45rem;
  z-index: 4;
}
.mf-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, width 0.2s ease;
}
.mf-hero__dot:hover { background: rgba(0, 0, 0, 0.6); }
.mf-hero__dot.is-active {
  background: white;
  width: 26px;
  border-radius: 6px;
}

/* ============== Responsive ============== */
@media (max-width: 1024px) and (min-width: 721px) {
  .mf-hero__slide { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .mf-hero__slide { aspect-ratio: 5 / 3; }
  .mf-hero__dots { bottom: 0.6rem; }
}

/* ===========================
   Categorías circulares
   =========================== */
.mf-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ===========================
   Categorías (burbujas con color)
   =========================== */
.mf-cats {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1.5rem 0 2.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mf-red) var(--mf-bg-3);
  -webkit-mask-image: linear-gradient(90deg,
    #000 0%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    #000 0%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
}
.mf-cats::-webkit-scrollbar {
  height: 8px;
  display: block;
}
.mf-cats::-webkit-scrollbar-track {
  background: var(--mf-bg-3);
  border-radius: 99px;
}
.mf-cats::-webkit-scrollbar-thumb {
  background: var(--mf-red);
  border-radius: 99px;
}
.mf-cats::-webkit-scrollbar-thumb:hover {
  background: var(--mf-red-2);
}
.mf-cats.is-scrolled {
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
}
.mf-cats.is-end {
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 100%);
}

.mf-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  text-align: center;
  flex: 0 0 auto;
  width: 96px;
  transition: transform 0.2s ease;
}
.mf-cat:hover { transform: translateY(-2px); }
.mf-cat:hover .mf-cat__name { color: var(--mf-red); }

.mf-cat__bubble {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #f4d9c4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mf-cat:hover .mf-cat__bubble {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mf-cat__bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-cat__initial {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  user-select: none;
}

.mf-cat__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--mf-ink);
  line-height: 1.25;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

/* Tintes por categoría (paleta Tambo) */
.mf-cat__bubble--cervezas   { background-color: #f4d9c4; }
.mf-cat__bubble--bebidas    { background-color: #2dd4bf; }
.mf-cat__bubble--piscos     { background-color: #c4b5fd; }
.mf-cat__bubble--rones      { background-color: #fb923c; }
.mf-cat__bubble--vinos      { background-color: #f9a8d4; }
.mf-cat__bubble--whiskys    { background-color: #fcd34d; }
.mf-cat__bubble--vodkas     { background-color: #93c5fd; }
.mf-cat__bubble--tequilas   { background-color: #86efac; }
.mf-cat__bubble--espumantes { background-color: #fde68a; }
.mf-cat__bubble--snacks     { background-color: #fca5a5; }
.mf-cat__bubble--comidas    { background-color: #fdba74; }

@media (max-width: 720px) {
  .mf-cats { gap: 1rem; }
  .mf-cat { width: 80px; }
  .mf-cat__bubble { width: 64px; height: 64px; }
  .mf-cat__name { font-size: 12px; }
}

/* ===========================
   Section head
   =========================== */
.mf-section__head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 0 0.5rem;
}

.mf-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mf-ink);
}

.mf-section__more {
  font-size: 13px;
  font-weight: 500;
  color: var(--mf-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--mf-ink);
  padding-bottom: 1px;
}

.mf-section__more:hover { color: var(--mf-red); border-color: var(--mf-red); }

/* ===========================
   Catálogo / productos (estilo Tambo)
   =========================== */
.mf-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

@media (max-width: 720px)  { .mf-products { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }
@media (min-width: 721px) and (max-width: 1100px) { .mf-products { grid-template-columns: repeat(5, 1fr); } }

/* Home: cada sección de categoría muestra una sola fila con scroll horizontal */
#mf-sections .mf-products, #mf-promos.mf-products {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mf-red) var(--mf-bg-3);
  -webkit-mask-image: linear-gradient(90deg,
    #000 0%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    #000 0%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
}
#mf-sections .mf-products::-webkit-scrollbar, #mf-promos.mf-products::-webkit-scrollbar {
  height: 8px;
  display: block;
}
#mf-sections .mf-products::-webkit-scrollbar-track, #mf-promos.mf-products::-webkit-scrollbar-track {
  background: var(--mf-bg-3);
  border-radius: 99px;
}
#mf-sections .mf-products::-webkit-scrollbar-thumb, #mf-promos.mf-products::-webkit-scrollbar-thumb {
  background: var(--mf-red);
  border-radius: 99px;
}
#mf-sections .mf-products::-webkit-scrollbar-thumb:hover, #mf-promos.mf-products::-webkit-scrollbar-thumb:hover {
  background: var(--mf-red-2);
}
#mf-sections .mf-products .mf-card, #mf-promos.mf-products .mf-card {
  flex: 0 0 calc((100% - 0.8rem * 5) / 6);
  min-width: 0;
}
/* Cuando ya se hizo scroll, mostrar también el degradado izquierdo */
#mf-sections .mf-products.is-scrolled, #mf-promos.mf-products.is-scrolled {
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 88%,
    rgba(0, 0, 0, 0.6) 94%,
    transparent 100%);
}
/* Cuando se llegó al final, ocultar el degradado derecho */
#mf-sections .mf-products.is-end, #mf-promos.mf-products.is-end {
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 6%,
    #000 12%,
    #000 100%);
}
@media (max-width: 1100px) {
  #mf-sections .mf-products .mf-card, #mf-promos.mf-products .mf-card { flex: 0 0 calc((100% - 0.8rem * 3) / 4); }
}
@media (max-width: 720px) {
  #mf-sections .mf-products, #mf-promos.mf-products { gap: 0.6rem; }
  #mf-sections .mf-products .mf-card, #mf-promos.mf-products .mf-card { flex: 0 0 calc((100% - 0.6rem) / 2); }
  #mf-sections .mf-products, #mf-promos.mf-products { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0,0,0,0.55) 92%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0,0,0,0.55) 92%, transparent 100%); }
  #mf-sections .mf-products.is-scrolled, #mf-promos.mf-products.is-scrolled { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 16%, #000 84%, rgba(0,0,0,0.55) 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 16%, #000 84%, rgba(0,0,0,0.55) 92%, transparent 100%); }
  #mf-sections .mf-products.is-end, #mf-promos.mf-products.is-end { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 16%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 8%, #000 16%, #000 100%); }
}


.mf-card {
  background: white;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 0.7rem 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}
.mf-card a, .mf-card img {
  -webkit-user-drag: none;
}

.mf-card:hover {
  box-shadow: var(--mf-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--mf-line-2);
}

.mf-card__media {
  position: relative;
  aspect-ratio: 1/1;
  margin: -0.7rem -0.7rem 0.5rem;
  background: #ffffff;
  border-radius: var(--mf-radius) var(--mf-radius) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.mf-card:hover .mf-card__media img { transform: scale(1.05); }

/* Tags (izquierda) */
.mf-card__tags {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 2;
}

.mf-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: white;
  background: var(--mf-ink);
}

.mf-tag--prime   { background: var(--mf-yellow); color: var(--mf-ink); }
.mf-tag--fresh   { background: var(--mf-success); }
.mf-tag--delivery{ background: var(--mf-ink); }
.mf-tag--top     { background: #6b21a8; }
.mf-tag--nuevo   { background: var(--mf-yellow); color: var(--mf-ink); }

/* Badge descuento (esquina superior izquierda en estilo Tambo) */
.mf-card__discount {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--mf-red);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 0.35rem 0.55rem 0.4rem;
  border-radius: var(--mf-radius) 0 var(--mf-radius) 0;
  line-height: 1;
  letter-spacing: -0.01em;
}

.mf-card__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mf-ink);
  line-height: 1.3;
  margin: 0.4rem 0 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.mf-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.mf-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1;
}

.mf-card__price-now {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mf-red);
  line-height: 1;
  letter-spacing: -0.01em;
}

.mf-card__price-now span {
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 1px;
}

.mf-card__price-old {
  font-size: 11.5px;
  color: var(--mf-red-2);
  text-decoration: line-through;
  line-height: 1;
  font-weight: 400;
}

.mf-card__add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mf-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s ease;
  line-height: 1;
}

.mf-card__add:hover { background: var(--mf-red-2); transform: scale(1.08); }
.mf-card__add[disabled] { background: var(--mf-mute); cursor: not-allowed; }

/* Tarjeta especial "Ver más" */
.mf-card--more {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--mf-line);
  cursor: pointer;
}
.mf-card--more .mf-card__media {
  background: var(--mf-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.mf-card__more-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--mf-red);
  text-align: center;
}
.mf-card__more-count {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.mf-card__more-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mf-mute);
  letter-spacing: 0.06em;
}
.mf-card--more .mf-card__name {
  font-weight: 600;
  text-align: center;
  margin: 0.6rem 0.4rem;
  font-size: 13px;
  color: var(--mf-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-card--more .mf-card__foot {
  width: 100%;
  margin-top: auto;
  padding-top: 0.2rem;
}
.mf-card--more .mf-btn {
  width: 100%;
  font-size: 12.5px;
  padding: 0.65rem 1rem;
}

/* ===========================
   Categoría rail (sección de fila)
   =========================== */
.mf-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.mf-rail::-webkit-scrollbar { height: 4px; }
.mf-rail::-webkit-scrollbar-thumb { background: var(--mf-line-2); border-radius: 2px; }

.mf-rail > * { scroll-snap-align: start; flex: 0 0 180px; }

@media (max-width: 720px) { .mf-rail > * { flex: 0 0 140px; } }

/* ===========================
   Footer
   =========================== */
.mf-footer {
  background: var(--mf-ink);
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.mf-footer__grid {
  max-width: 1280px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.mf-footer h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

.mf-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mf-footer a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.mf-footer a:hover { color: var(--mf-red); }

.mf-footer__brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 0.8rem;
}

.mf-footer__brand span { color: var(--mf-red); }

.mf-footer__brand-img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 0.8rem;
}

.mf-footer__lead {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  max-width: 30ch;
  margin-bottom: 1.2rem;
}

.mf-social {
  display: flex;
  gap: 0.6rem;
}

.mf-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.15s ease;
}

.mf-social a:hover { background: var(--mf-red); color: white; }

.mf-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 880px) {
  .mf-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ===========================
   Producto / Detalle
   =========================== */
.mf-pd {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}

.mf-pd__media {
  background: var(--mf-bg-3);
  border-radius: var(--mf-radius-lg);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mf-pd__media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.mf-pd__cat {
  font-size: 12px;
  font-weight: 500;
  color: var(--mf-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.mf-pd__name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.mf-pd__desc {
  color: var(--mf-ink-2);
  line-height: 1.6;
  margin: 1rem 0;
}

.mf-pd__price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1.2rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
}

.mf-pd__price-now {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mf-ink);
}

.mf-pd__price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--mf-mute);
}

.mf-pd__add {
  background: var(--mf-red);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  margin-top: 0.5rem;
}

.mf-pd__add:hover { background: var(--mf-red-2); }

.mf-pd__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mf-line-2);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 0.5rem;
}

.mf-pd__qty button {
  width: 40px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--mf-ink);
}

.mf-pd__qty button:hover { background: var(--mf-bg-3); color: var(--mf-red); }

.mf-pd__qty input {
  width: 50px;
  height: 44px;
  text-align: center;
  background: transparent;
  border: 0;
  font-weight: 600;
  border-left: 1px solid var(--mf-line);
  border-right: 1px solid var(--mf-line);
}

.mf-pd__buy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 880px) {
  .mf-pd { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; }
}

/* ===========================
   Carrito / Checkout
   =========================== */
.mf-cart {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.mf-cart__items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mf-cart__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: white;
  align-items: center;
}

.mf-cart__item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mf-bg-3);
}

.mf-cart__item-name { font-size: 14px; font-weight: 500; }
.mf-cart__item-price { font-size: 13px; color: var(--mf-mute); }

.mf-cart__item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.mf-cart__item-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--mf-ink);
}

.mf-qty-sm {
  display: inline-flex;
  border: 1px solid var(--mf-line-2);
  border-radius: 999px;
  overflow: hidden;
}

.mf-qty-sm button {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

.mf-qty-sm input {
  width: 32px;
  height: 26px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--mf-line);
  border-right: 1px solid var(--mf-line);
  font-size: 12px;
  background: transparent;
  font-weight: 600;
}

.mf-summary {
  background: white;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  align-self: start;
}

.mf-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--mf-line);
}

.mf-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 14px;
}

.mf-summary__row--total {
  border-top: 1px solid var(--mf-line);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.mf-summary__row--total span:last-child { color: var(--mf-red); }

.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.mf-btn--primary {
  background: var(--mf-red);
  color: white;
}

.mf-btn--primary:hover { background: var(--mf-red-2); }

.mf-btn--block { display: flex; width: 100%; }

.mf-btn--ghost {
  background: white;
  color: var(--mf-ink);
  border: 1px solid var(--mf-line-2);
}

.mf-btn--ghost:hover { border-color: var(--mf-red); color: var(--mf-red); }

.mf-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.mf-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--mf-bg-2);
  border-radius: var(--mf-radius);
  color: var(--mf-mute);
}

.mf-empty a { color: var(--mf-red); font-weight: 600; }

@media (max-width: 880px) {
  .mf-cart { grid-template-columns: 1fr; padding: 1rem; }
  .mf-summary { position: relative; top: 0; }
}

/* ===========================
   Formularios
   =========================== */
.mf-form {
  max-width: 440px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius-lg);
  box-shadow: var(--mf-shadow);
}

.mf-form h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.mf-form__sub {
  color: var(--mf-mute);
  font-size: 13px;
  margin-bottom: 1.5rem;
}

.mf-field { margin-bottom: 1rem; }

.mf-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mf-ink-2);
  margin-bottom: 0.4rem;
}

.mf-field input, .mf-field select, .mf-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: white;
  border: 1px solid var(--mf-line-2);
  border-radius: var(--mf-radius);
  color: var(--mf-ink);
  font-size: 14px;
  transition: border-color 0.15s ease;
}

.mf-field input:focus, .mf-field select:focus, .mf-field textarea:focus {
  outline: 0;
  border-color: var(--mf-red);
  box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.1);
}

.mf-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.mf-alert {
  padding: 0.7rem 0.9rem;
  border-radius: var(--mf-radius);
  background: var(--mf-red-3);
  color: var(--mf-red-2);
  font-size: 13px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--mf-red);
}

.mf-alert--success {
  background: #e6f7f0;
  color: #0d6b4a;
  border-left-color: var(--mf-success);
}

.mf-loc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: #fafafa;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
}
.mf-loc-summary__addr {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--mf-ink);
}
.mf-loc-summary__addr svg {
  color: var(--mf-red);
  flex-shrink: 0;
  margin-top: 2px;
}
.mf-loc-summary__main {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.mf-loc-summary__sub {
  font-size: 12px;
  color: var(--mf-mute);
  margin-top: 0.15rem;
}
.mf-loc-summary__btn {
  background: white;
  color: var(--mf-ink-2);
  border: 1px solid var(--mf-line-2);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.mf-loc-summary__btn:hover { border-color: var(--mf-red); color: var(--mf-red); }

.mf-loc-empty {
  padding: 1rem;
  background: #fafafa;
  border: 1px dashed var(--mf-line-2);
  border-radius: var(--mf-radius);
  text-align: center;
}
.mf-loc-empty p {
  margin: 0 0 0.7rem;
  font-size: 13px;
  color: var(--mf-mute);
}
.mf-btn--sm { padding: 0.45rem 0.9rem !important; font-size: 12.5px !important; }

.mf-form__foot {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--mf-line);
  font-size: 13px;
  text-align: center;
  color: var(--mf-mute);
}

.mf-form__foot a { color: var(--mf-red); font-weight: 600; }

/* ===========================
   Drag-to-scroll utility
   =========================== */
.is-dragging {
  cursor: grabbing !important;
  user-select: none;
}
.is-dragging * {
  user-select: none;
  pointer-events: none !important;
}

/* ===========================
   Toasts
   =========================== */
#mf-toast-host {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mf-toast {
  background: var(--mf-ink);
  color: white;
  padding: 0.8rem 1.1rem;
  font-size: 13px;
  min-width: 240px;
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow-hover);
  animation: mf-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-toast--success { background: var(--mf-success); }
.mf-toast--error   { background: var(--mf-red); }

@keyframes mf-toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ===========================
   Vista de categoría (index.html?cat=...)
   =========================== */
.mf-catview {
  background: white;
  padding: 1rem 0 2.5rem;
}
.mf-catview__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.mf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12.5px;
  color: var(--mf-mute);
  padding: 0.4rem 0 0.6rem;
}
.mf-breadcrumb a {
  color: var(--mf-mute);
  text-decoration: none;
}
.mf-breadcrumb a:hover { color: var(--mf-red); }
.mf-breadcrumb__sep { color: var(--mf-line-2); font-size: 14px; }
.mf-breadcrumb span[aria-current] { color: var(--mf-ink); font-weight: 500; }
.mf-catview__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--mf-ink);
  margin: 0.2rem 0 1.2rem;
  letter-spacing: -0.01em;
}
#mf-catview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 721px) and (max-width: 1100px) { #mf-catview-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1101px) { #mf-catview-grid { grid-template-columns: repeat(6, 1fr); gap: 0.8rem; } }

/* ===========================
   Misc
   =========================== */
.mf-page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.mf-page-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.mf-orders { max-width: 900px; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }

.mf-order {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
}

.mf-order__num { font-family: var(--mf-mono); font-size: 12px; color: var(--mf-mute); }
.mf-order__total { font-size: 1.1rem; font-weight: 700; text-align: right; }

.mf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--mf-bg-3);
  color: var(--mf-ink-2);
}

.mf-status--pendiente  { background: #fff4e6; color: #b8730d; }
.mf-status--preparacion{ background: #e6f0ff; color: #1a5fb4; }
.mf-status--camino     { background: #f3e8ff; color: #6b21a8; }
.mf-status--entregado  { background: #e6f7f0; color: var(--mf-success); }
.mf-status--cancelado  { background: #ffebeb; color: #c62828; }

/* ===========================
   Auth Pages (Login / Registro)
   =========================== */
.mf-auth-body {
  background-color: white;
  font-family: var(--mf-font, "Geologica", sans-serif);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mf-auth-container {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.mf-auth-card {
  display: grid;
  grid-template-columns: 40% 60%;
  width: 100vw;
  min-height: 100vh;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Panel Visual (Izquierda) - Split Screen Completo */
.mf-auth-visual {
  background: radial-gradient(circle at 20% 30%, #ff3131 0%, #7c0d0d 50%, #0c0908 100%);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
}

.mf-auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, rgba(255, 49, 49, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.mf-auth-visual__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

.mf-auth-visual__brand-logo {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  object-fit: contain;
}

.mf-auth-visual__bottom {
  color: white;
  z-index: 1;
}

.mf-auth-visual__eyebrow {
  font-family: var(--mf-font-heading, "Lexend", sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.8rem;
}

.mf-auth-visual__tagline {
  font-family: var(--mf-font-heading, "Lexend", sans-serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: white;
  letter-spacing: -0.02em;
}

.mf-auth-visual__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Formulario (Derecha) - Split Screen Completo */
.mf-auth-form-side {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  box-sizing: border-box;
  min-height: 100vh;
}

.mf-auth-form {
  width: 100%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-sizing: border-box;
}

.mf-auth-form__logo-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.mf-auth-form__logo-img {
  height: 40px;
  object-fit: contain;
}

.mf-auth-form__title {
  font-family: var(--mf-font-heading, "Lexend", sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--mf-ink, #0c0908);
  margin: 0;
  letter-spacing: -0.01em;
}

.mf-auth-form__subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mf-mute, #686868);
  margin: 0 0 0.5rem;
}

/* Inputs Premium */
.mf-field__label {
  font-family: var(--mf-font-heading, "Lexend", sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mf-ink, #0c0908);
  margin-bottom: 0.4rem;
  display: block;
}

.mf-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mf-input-text {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 13.5px;
  font-family: var(--mf-font, sans-serif);
  border: 1.5px solid var(--mf-line, #e2e2e2);
  border-radius: 12px;
  background: #fbfbfb;
  color: var(--mf-ink, #0c0908);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mf-input-text:focus {
  outline: none;
  border-color: var(--mf-red, #ff3131);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 49, 49, 0.08);
}

.mf-input-toggle-pw {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--mf-mute, #686868);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.mf-input-toggle-pw:hover {
  color: var(--mf-red, #ff3131);
}

.mf-eye-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mf-input-toggle-pw.is-visible {
  color: var(--mf-red, #ff3131);
}

.mf-btn--large {
  padding: 0.95rem 1.5rem !important;
  font-size: 14px !important;
}

.mf-auth-form__foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--mf-mute, #686868);
  margin-top: 1rem;
}

.mf-auth-form__foot a {
  color: var(--mf-red, #ff3131);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.mf-auth-form__foot a:hover {
  opacity: 0.85;
}

/* ===========================
   Auth Responsivo
   =========================== */
@media (max-width: 840px) {
  .mf-auth-card {
    grid-template-columns: 1fr;
    width: 100vw;
    min-height: 100vh;
  }
  
  .mf-auth-visual {
    display: none;
  }
  
  .mf-auth-form-side {
    padding: 3rem 1.5rem;
    min-height: 100vh;
    width: 100%;
  }

  .mf-auth-form {
    max-width: 440px;
    margin: auto;
  }

  .mf-auth-form__logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .mf-auth-form__logo-img {
    height: 38px;
  }

  .mf-auth-form__title {
    text-align: center;
  }

  .mf-auth-form__subtitle {
    text-align: center;
  }
}

/* ============================================================
   QR Code Display and Modal for Yape/Plin Payments
   ============================================================ */
.mf-qr-card {
  background: white;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius-lg);
  padding: 2rem;
  max-width: 500px;
  margin: 1.5rem auto;
  box-shadow: var(--mf-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.mf-qr-title {
  font-family: var(--mf-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mf-ink);
  margin-bottom: 0.2rem;
}

.mf-qr-instructions {
  font-size: 0.88rem;
  color: var(--mf-ink-2);
  line-height: 1.4;
}

.mf-qr-code-wrapper {
  background: var(--mf-bg-2);
  padding: 1.2rem;
  border-radius: var(--mf-radius-lg);
  border: 2px dashed var(--mf-line-2);
  display: inline-block;
  margin: 0.5rem 0;
  animation: mf-pulse-border 2.5s infinite ease-in-out;
}

.mf-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
}

.mf-qr-payment-code-label {
  font-size: 0.82rem;
  color: var(--mf-mute);
  margin-top: 0.5rem;
}

.mf-qr-payment-code {
  font-family: var(--mf-mono);
  font-size: 1.15rem;
  background: var(--mf-bg-3);
  padding: 0.5rem 1rem;
  border-radius: var(--mf-radius);
  color: var(--mf-ink);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.2rem;
  display: inline-block;
}

.mf-qr-actions {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.8rem;
}

.mf-qr-actions .mf-btn {
  flex: 1;
}

@keyframes mf-pulse-border {
  0% { border-color: var(--mf-line-2); box-shadow: 0 0 0 0 rgba(255, 49, 49, 0); }
  50% { border-color: var(--mf-red); box-shadow: 0 0 12px 2px rgba(255, 49, 49, 0.15); }
  100% { border-color: var(--mf-line-2); box-shadow: 0 0 0 0 rgba(255, 49, 49, 0); }
}

/* Modal styling for "Mis Pedidos" */
.mf-qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mf-qr-modal {
  background: white;
  border-radius: var(--mf-radius-lg);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  animation: mf-modal-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mf-qr-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
  color: var(--mf-mute);
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.mf-qr-modal__close:hover {
  background: var(--mf-bg-3);
  color: var(--mf-ink);
}

@keyframes mf-modal-pop {
  from { transform: scale(0.9) translateY(15px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
