/* MarketCosto Marketplace — estilos propios sobre Bootstrap 5.3 */
:root {
  --mk-primary: #0f3d5e;      /* azul profundo institucional */
  --mk-primary-2: #145a86;
  --mk-accent: #ffc107;       /* ámbar (CTA) */
  --mk-success: #1b8a5a;
  --mk-radius: .75rem;
  --bs-primary: var(--mk-primary);
  --bs-primary-rgb: 15, 61, 94;
  --bs-link-color: var(--mk-primary-2);
  --bs-link-hover-color: var(--mk-primary);
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.mk-main { flex: 1 0 auto; }
.bg-mk { background: linear-gradient(90deg, var(--mk-primary) 0%, var(--mk-primary-2) 100%) !important; }
.btn-primary { --bs-btn-bg: var(--mk-primary); --bs-btn-border-color: var(--mk-primary); --bs-btn-hover-bg: var(--mk-primary-2); --bs-btn-hover-border-color: var(--mk-primary-2); --bs-btn-active-bg: var(--mk-primary-2); }
.btn-outline-primary { --bs-btn-color: var(--mk-primary); --bs-btn-border-color: var(--mk-primary); --bs-btn-hover-bg: var(--mk-primary); --bs-btn-hover-border-color: var(--mk-primary); --bs-btn-active-bg: var(--mk-primary); }
.text-primary { color: var(--mk-primary) !important; }
.bg-primary { background-color: var(--mk-primary) !important; }
.badge.text-bg-primary { background-color: var(--mk-primary) !important; }
.form-control:focus, .form-select:focus { border-color: var(--mk-primary-2); box-shadow: 0 0 0 .2rem rgba(20, 90, 134, .2); }
.card { border: 0; border-radius: var(--mk-radius); box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f4; font-weight: 600; }

/* Header */
.mk-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mk-accent); color: #1a1a1a; font-size: 1.15rem; }
.mk-buscador { max-width: 640px; }
.mk-buscador .form-control { border: 0; }
.mk-subnav { font-size: .9rem; }
.mk-subnav .container { height: 40px; }
.mk-subnav a:hover { color: var(--mk-primary) !important; }
.mk-megamenu { width: min(900px, 95vw); }
.mk-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mk-accent); color: #1a1a1a; font-size: .8rem; font-weight: 700; }
.mk-avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }

/* Hero */
.mk-hero { background: radial-gradient(1200px 400px at 10% -10%, rgba(255, 193, 7, .25), transparent), linear-gradient(135deg, var(--mk-primary), var(--mk-primary-2)); color: #fff; border-radius: 1rem; }
.mk-hero .form-control { height: 52px; border: 0; }
.mk-hero .btn { height: 52px; }
.mk-stat { background: rgba(255, 255, 255, .1); border-radius: .75rem; padding: .75rem 1rem; }

/* Tarjetas de producto */
.mk-card-producto { transition: transform .15s ease, box-shadow .15s ease; height: 100%; position: relative; overflow: hidden; }
.mk-card-producto:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 24, 40, .12); }
.mk-card-producto .mk-img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: #f3f5f7; border-radius: var(--mk-radius) var(--mk-radius) 0 0; }
.mk-card-producto .mk-nombre { font-size: .95rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.mk-card-producto .mk-precio { font-size: 1.15rem; font-weight: 700; color: var(--mk-primary); white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
/* Pesos colombianos: "$ 99.999.999" debe caber en una sola línea incluso en tarjetas de 2 columnas en móvil. */
@media (max-width: 575.98px) { .mk-card-producto .mk-precio { font-size: clamp(.95rem, 4.6vw, 1.15rem); } .mk-card-producto .card-body { padding: .75rem !important; } }
.mk-precio, .mk-precio-grande, .mk-precio-antes { white-space: nowrap; }
.mk-card-producto .mk-precio-antes { text-decoration: line-through; color: #98a2b3; font-size: .85rem; }
.mk-card-producto .mk-tienda { font-size: .8rem; color: #667085; }
.mk-badge-oferta { position: absolute; top: 10px; left: 10px; z-index: 2; }
.mk-btn-fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #e4e7ec; display: grid; place-items: center; color: #98a2b3; }
.mk-btn-fav.activo, .mk-btn-fav:hover { color: #e11d48; }
.mk-agotado { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); display: grid; justify-items: center; align-content: start; padding-top: calc(50% - .75em); font-weight: 700; color: #475467; z-index: 1; pointer-events: none; }

/* Tarjeta de tienda */
.mk-card-tienda .mk-banner { height: 90px; background: linear-gradient(135deg, #dbe7f0, #f5f7fa); background-size: cover; background-position: center; border-radius: var(--mk-radius) var(--mk-radius) 0 0; }
.mk-card-tienda .mk-logo-tienda { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; border: 3px solid #fff; margin-top: -32px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }

/* Perfil de tienda */
.mk-tienda-banner { height: 220px; background: linear-gradient(135deg, var(--mk-primary), var(--mk-primary-2)); background-size: cover; background-position: center; border-radius: 1rem; }
.mk-tienda-logo { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; background: #fff; border: 4px solid #fff; margin-top: -55px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }

/* Galería producto */
/* Galería de la ficha (estilo Mercado Libre): miniaturas al pasar el mouse, deslizar, lupa y visor */
.mk-galeria { position: relative; display: flex; gap: .75rem; align-items: flex-start; }
.mk-galeria-thumbs { display: flex; flex-direction: column; gap: .5rem; flex: 0 0 60px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.mk-galeria-thumbs::-webkit-scrollbar { display: none; }
.mk-thumb { width: 56px; height: 56px; padding: 2px; border-radius: .5rem; border: 1px solid #d0d5dd; background: #fff; cursor: pointer; flex: 0 0 auto; transition: border-color .12s; }
.mk-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: .35rem; pointer-events: none; }
.mk-thumb.activo { border: 2px solid var(--mk-primary); padding: 1px; }
.mk-thumb:hover { border-color: var(--mk-primary); }
.mk-galeria-escenario { position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--mk-radius); border: 1px solid #eef1f4; overflow: hidden; }
.mk-galeria-pista { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.mk-galeria-pista::-webkit-scrollbar { display: none; }
.mk-galeria-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.mk-galeria-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.mk-galeria-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(16,24,40,.18); color: #344054; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; z-index: 3; }
.mk-galeria-flecha.prev { left: .5rem; } .mk-galeria-flecha.next { right: .5rem; }
.mk-galeria-escenario:hover .mk-galeria-flecha, .mk-galeria-flecha:focus-visible { opacity: 1; }
.mk-galeria-contador { position: absolute; top: .6rem; left: .6rem; background: rgba(16,24,40,.06); color: #344054; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; z-index: 2; pointer-events: none; }
.mk-galeria-puntos { position: absolute; bottom: .6rem; left: 0; right: 0; display: none; justify-content: center; gap: .35rem; pointer-events: none; z-index: 2; }
.mk-galeria-puntos span { width: .45rem; height: .45rem; border-radius: 50%; background: #d0d5dd; transition: all .15s; }
.mk-galeria-puntos span.activo { background: var(--mk-primary); width: 1rem; border-radius: 999px; }
.mk-galeria-ayuda { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); font-size: .72rem; color: #667085; background: rgba(255,255,255,.9); padding: .1rem .6rem; border-radius: 999px; pointer-events: none; white-space: nowrap; transition: opacity .2s; }
.mk-galeria-escenario.zoom-activo .mk-galeria-ayuda, .mk-galeria-escenario.zoom-activo .mk-galeria-flecha { opacity: 0; }
.mk-lupa { position: absolute; z-index: 4; pointer-events: none; border: 1px solid rgba(52,64,84,.35); background-color: rgba(52,64,84,.28); background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 4px 4px; }
.mk-zoom-panel { position: absolute; top: 0; z-index: 30; background: #fff no-repeat; border: 1px solid #e4e7ec; border-radius: var(--mk-radius); box-shadow: 0 12px 32px rgba(16,24,40,.18); pointer-events: none; }
@media (max-width: 767.98px) {
  .mk-galeria { flex-direction: column-reverse; }
  .mk-galeria-thumbs { display: none; }
  .mk-galeria-escenario { width: 100%; border-radius: .75rem; }
  .mk-galeria-puntos { display: flex; }
  .mk-galeria-flecha { display: none; }
}
@media (hover: none) { .mk-galeria-flecha { display: none; } }

/* Visor a pantalla completa */
.mk-visor { position: fixed; inset: 0; z-index: 2000; background: #0b0f14; color: #fff; display: flex; flex-direction: column; }
.mk-visor[hidden] { display: none; }
.mk-visor-barra { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); }
.mk-visor-titulo { flex: 1; font-size: .9rem; opacity: .8; }
.mk-visor-contador { font-size: .85rem; font-weight: 600; opacity: .9; }
.mk-visor-cerrar { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.1rem; }
.mk-visor-pista { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.mk-visor-pista::-webkit-scrollbar { display: none; }
.mk-visor-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-x pinch-zoom; }
.mk-visor-slide img { max-width: 96%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s ease; user-select: none; }
.mk-visor-slide.ampliada { touch-action: none; }
.mk-visor-slide.ampliada img { cursor: zoom-out; transition: none; }
.mk-visor-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; z-index: 2; }
.mk-visor-flecha.prev { left: 1rem; } .mk-visor-flecha.next { right: 1rem; }
.mk-visor-thumbs { display: flex; gap: .5rem; justify-content: center; padding: .6rem; overflow-x: auto; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
.mk-visor-thumbs button { flex: 0 0 52px; height: 52px; border: 2px solid transparent; border-radius: .4rem; padding: 0; background: #fff; opacity: .6; }
.mk-visor-thumbs button.activo { border-color: #ffc107; opacity: 1; }
.mk-visor-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.mk-visor-ayuda { text-align: center; font-size: .75rem; opacity: .55; padding-bottom: .4rem; }
@media (max-width: 767.98px) { .mk-visor-flecha { display: none; } .mk-visor-thumbs { display: none; } }
body.mk-visor-abierto { overflow: hidden; }

/* Fotos en las tarjetas: pasar el mouse recorre las fotos; en el celular, deslizar */
.mk-card-fotos { position: relative; display: block; }
.mk-card-fotos .mk-card-segmentos { position: absolute; left: .5rem; right: .5rem; bottom: .4rem; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.mk-card-fotos .mk-card-segmentos span { flex: 1; height: 3px; border-radius: 2px; background: rgba(16,24,40,.18); }
.mk-card-fotos .mk-card-segmentos span.activo { background: var(--mk-primary); }
.mk-card-producto:hover .mk-card-segmentos, .mk-card-fotos.tocada .mk-card-segmentos { opacity: 1; }
@media (hover: none) { .mk-card-fotos .mk-card-segmentos { opacity: 1; } }
.mk-precio-grande { font-size: 2rem; font-weight: 800; color: var(--mk-primary); letter-spacing: -.02em; }

/* Filtros */
.mk-filtros .form-check-label { font-size: .9rem; }
.mk-filtros .list-group-item { border: 0; padding: .25rem 0; }

/* Timeline */
.mk-timeline { list-style: none; padding-left: 0; margin: 0; position: relative; }
.mk-timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: #e4e7ec; }
.mk-timeline li { position: relative; padding-left: 44px; padding-bottom: 1rem; }
.mk-timeline .mk-dot { position: absolute; left: 4px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: #fff; border: 2px solid #cfd4dc; color: #667085; }
.mk-timeline li.done .mk-dot { background: var(--mk-success); border-color: var(--mk-success); color: #fff; }
.mk-timeline li.actual .mk-dot { background: var(--mk-primary); border-color: var(--mk-primary); color: #fff; box-shadow: 0 0 0 4px rgba(15, 61, 94, .15); }
.mk-timeline li.cancel .mk-dot { background: #dc3545; border-color: #dc3545; color: #fff; }

/* Stepper horizontal de estado */
.mk-stepper { display: flex; gap: 0; counter-reset: paso; overflow-x: auto; }
.mk-stepper .paso { flex: 1; min-width: 90px; text-align: center; position: relative; font-size: .8rem; color: #98a2b3; }
.mk-stepper .paso::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #e4e7ec; z-index: 0; }
.mk-stepper .paso:first-child::before { display: none; }
.mk-stepper .paso .ic { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #e4e7ec; display: inline-grid; place-items: center; color: #667085; margin-bottom: .25rem; }
.mk-stepper .paso.done .ic, .mk-stepper .paso.done::before { background: var(--mk-success); color: #fff; }
.mk-stepper .paso.actual .ic { background: var(--mk-primary); color: #fff; box-shadow: 0 0 0 4px rgba(15, 61, 94, .15); }
.mk-stepper .paso.actual { color: var(--mk-primary); font-weight: 600; }

/* Chat */
.mk-chat { max-height: 420px; overflow-y: auto; background: #f7f9fb; border-radius: var(--mk-radius); padding: 1rem; }
.mk-burbuja { max-width: 80%; padding: .5rem .85rem; border-radius: 1rem; margin-bottom: .5rem; font-size: .92rem; background: #fff; border: 1px solid #e4e7ec; }
.mk-burbuja.mia { margin-left: auto; background: var(--mk-primary); color: #fff; border-color: var(--mk-primary); }
.mk-burbuja.interna { background: #fff8e1; border-color: #ffe08a; }
.mk-burbuja small { display: block; opacity: .7; font-size: .72rem; margin-top: .15rem; }

/* Panel vendedor */
.mk-sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.mk-side-link { display: flex; align-items: center; padding: .6rem 1rem; color: #344054; text-decoration: none; border-left: 3px solid transparent; }
.mk-side-link:hover { background: #f5f7fa; color: var(--mk-primary); }
.mk-side-link.active { background: #eaf2f8; color: var(--mk-primary); border-left-color: var(--mk-primary); font-weight: 600; }
.mk-kpi { border-radius: var(--mk-radius); padding: 1rem 1.25rem; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); height: 100%; }
.mk-kpi .valor { font-size: 1.6rem; font-weight: 800; color: var(--mk-primary); }
.mk-kpi .etq { font-size: .8rem; color: #667085; text-transform: uppercase; letter-spacing: .04em; }
.mk-kpi .ic { font-size: 1.6rem; opacity: .35; }

/* Auth */
.mk-auth { max-width: 460px; margin: 0 auto; }
.mk-codigo { letter-spacing: .5em; font-size: 1.6rem; text-align: center; font-weight: 700; }

/* Utilidades */
.text-mk { color: var(--mk-primary) !important; }
.mk-cursor { cursor: pointer; }
.mk-sticky { position: sticky; top: 110px; }
.table > :not(caption) > * > * { vertical-align: middle; }
.mk-rating .bi { cursor: pointer; font-size: 1.6rem; color: #d0d5dd; }
.mk-rating .bi.on { color: #ffc107; }
.mk-cuenta-nav .list-group-item { border: 0; }
.mk-cuenta-nav .list-group-item.active { background: #eaf2f8; color: var(--mk-primary); font-weight: 600; }
.mk-toc a { display: block; padding: .25rem 0; }
@media (max-width: 991.98px) { .mk-sticky { position: static; } }
@media print { header, footer, .btn, form { display: none !important; } }

/* =====================================================================
   Móvil / app instalable (PWA)
   ===================================================================== */
:root { --mk-navmovil-alto: 60px; }

/* Barra inferior tipo app (solo < lg) */
.mk-navmovil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -4px 16px rgba(15,61,94,.06);
}
.mk-navmovil-item {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #6c757d; text-decoration: none; font-size: .68rem; font-weight: 500; min-width: 0;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.mk-navmovil-item i { font-size: 1.35rem; line-height: 1; }
.mk-navmovil-item.active { color: var(--mk-primary, #0f3d5e); }
.mk-navmovil-item.active i { transform: translateY(-1px); }
.mk-navmovil-badge {
  position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #dc3545; color: #fff; font-size: .62rem; font-weight: 700; line-height: 18px; text-align: center;
}
@media (max-width: 991.98px) {
  body.mk-con-navmovil { padding-bottom: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom)); }
  body.mk-con-navmovil #mk-toasts { bottom: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom)) !important; }
  .mk-header .navbar { padding-top: calc(.5rem + env(safe-area-inset-top)); }
  /* Objetivos táctiles cómodos y sin zoom automático en iOS */
  .btn, .form-control, .form-select, .nav-link, .dropdown-item, .page-link { min-height: 44px; }
  .form-control, .form-select { font-size: 16px; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .mk-sidebar { display: none !important; }
}
/* Modo instalado (standalone): sin barra del navegador, la app se siente nativa */
@media (display-mode: standalone), (display-mode: window-controls-overlay) {
  body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: contain; }
  input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
  .mk-header { padding-top: env(safe-area-inset-top); }
  a[href^="http"]:not([href*="127.0.0.1"]) { -webkit-touch-callout: none; }
}

/* Aviso "Instalar app" */
.mk-instalar {
  position: fixed; left: 12px; right: 12px; z-index: 1040;
  bottom: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom) + 12px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.06);
  animation: mk-subir .25s ease-out;
}
@media (min-width: 992px) { .mk-instalar { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }
.mk-instalar[hidden] { display: none; }
@keyframes mk-subir { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Aviso "Hay una versión nueva" */
.mk-actualizar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 1045; top: calc(12px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: #0f3d5e; color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.mk-actualizar[hidden] { display: none; }

/* Carrito: filas en grilla; en móvil la cantidad y el subtotal bajan a una segunda línea (los precios de millones caben). */
.mk-carrito-item { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: .5rem .75rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #eef1f4; }
.mk-carrito-cant .input-group { width: 128px; }
.mk-carrito-cant input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.mk-carrito-cant input::-webkit-outer-spin-button, .mk-carrito-cant input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-carrito-subtotal { white-space: nowrap; text-align: right; min-width: 120px; font-variant-numeric: tabular-nums; }
.mk-carrito-total { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; white-space: nowrap; }
.mk-carrito-nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767.98px) {
  .mk-carrito-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info quitar" "cant cant sub"; padding: .75rem; }
  .mk-carrito-img { grid-area: img; } .mk-carrito-info { grid-area: info; min-width: 0; } .mk-carrito-quitar { grid-area: quitar; }
  .mk-carrito-cant { grid-area: cant; } .mk-carrito-subtotal { grid-area: sub; min-width: 0; font-size: 1.05rem; color: var(--mk-primary); }
}

/* Mi ubicación ("Entregar en…") */
.mk-ubicacion-btn { display: inline-flex; align-items: center; gap: .45rem; background: transparent; border: 1px solid #dfe3e8; border-radius: 999px; padding: .2rem .7rem .2rem .55rem; color: #344054; line-height: 1.1; text-align: left; max-width: 100%; min-height: 36px; }
.mk-ubicacion-btn:hover { background: #f4f6f8; border-color: #c9d1da; }
.mk-ubicacion-btn > .bi-geo-alt-fill { color: var(--mk-primary); font-size: 1.05rem; }
.mk-ubicacion-txt { display: flex; flex-direction: column; min-width: 0; }
.mk-ubicacion-txt small { font-size: .62rem; color: #667085; text-transform: uppercase; letter-spacing: .03em; }
.mk-ubicacion-txt strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.mk-barra-movil .mk-ubicacion-btn { border: 0; padding-left: .25rem; }
.mk-ubic-lista { z-index: 1060; max-height: 240px; overflow: auto; top: 100%; }
.mk-aviso-cerca { background: #eef5fa; border: 1px solid #d6e6f2; border-radius: 10px; padding: .5rem .75rem; }

/* Botones flotantes Ventas / Soporte */
.mk-fab-contacto { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1035; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mk-fab { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .6rem 1rem; font-weight: 600; font-size: .9rem; color: #fff; box-shadow: 0 8px 22px rgba(15, 61, 94, .28); transition: transform .15s ease, box-shadow .15s ease; min-height: 46px; }
.mk-fab:hover, .mk-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 61, 94, .34); }
.mk-fab i { font-size: 1.15rem; line-height: 1; }
.mk-fab-ventas { background: #1b8a5a; }
.mk-fab-soporte { background: var(--mk-primary, #0f3d5e); }
.mk-fab-menu { width: min(320px, calc(100vw - 32px)); border: 0; border-radius: 14px; }
@media (max-width: 991.98px) {
  body.mk-con-navmovil .mk-fab-contacto { bottom: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom) + 12px); right: 12px; gap: 8px; }
  .mk-fab { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .mk-fab .mk-fab-txt { display: none; }
  .mk-fab i { font-size: 1.3rem; }
}
@media print { .mk-fab-contacto { display: none; } }

/* Compartir */
.mk-cmp-redes { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.mk-cmp-red { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; padding: 6px 2px; border-radius: 12px; font-size: .75rem; color: #344054; }
.mk-cmp-red:hover, .mk-cmp-red:focus-visible { background: #f2f4f7; }
.mk-cmp-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.35rem; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.mk-cmp-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.mk-cmp-preview img { flex: 0 0 64px; }
.min-w-0 { min-width: 0; }
.mk-burbuja.mediacion { background: #eaf2f8 !important; border: 1px solid #b9d3e6; margin-left: auto; margin-right: auto; max-width: 92%; }
.mk-legal-dl dt { font-weight: 500; color: #667085; }
.mk-legal-dl dd { margin-bottom: .25rem; }

/* Avisos legales (términos / cookies) */
.mk-aviso-legal { position: fixed; left: 16px; bottom: 16px; z-index: 1050; max-width: 440px; background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(0,0,0,.06); }
@media (max-width: 991.98px) { body.mk-con-navmovil .mk-aviso-legal { left: 12px; right: 12px; max-width: none; bottom: calc(var(--mk-navmovil-alto) + env(safe-area-inset-bottom) + 12px); } }

/* Sugerencias: carrusel deslizable con el dedo en celular, cuadrícula en computador */
.mk-carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mk-carrusel-item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .mk-carrusel { grid-auto-columns: calc((100% - 36px) / 4); } }
@media (min-width: 1200px) { .mk-carrusel { grid-auto-columns: calc((100% - 48px) / 5); } }
.col-lg-4 .mk-carrusel { grid-auto-columns: 46%; }

/* Autocompletado del buscador */
.mk-autocompletar { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1060; background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); max-height: min(70vh, 460px); overflow-y: auto; padding: 6px 0; text-align: left; }
.mk-ac-tit { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #98a2b3; padding: 8px 14px 4px; }
.mk-ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: #1f2933; text-decoration: none; font-size: .92rem; min-height: 44px; }
.mk-ac-item:hover, .mk-ac-item.activo { background: #f2f4f7; color: #1f2933; }
.mk-ac-prod img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: #f3f5f7; flex: 0 0 40px; }

/* Títulos de los bloques de sugerencias: compactos en el celular. */
.mk-sugerencias h2 { font-size: 1.05rem; line-height: 1.3; }
@media (min-width: 768px) { .mk-sugerencias h2 { font-size: 1.25rem; } }

/* Pedido → ERP (panel del vendedor) */
.mk-erp-pasos { position: relative; }
.mk-erp-paso { display: flex; gap: .65rem; padding: .35rem 0; position: relative; }
.mk-erp-paso:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: -6px; width: 2px; background: #e4e7ec; }
.mk-erp-paso.hecho:not(:last-child)::after { background: #a6d8b8; }
.mk-erp-ico { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f2f4f7; color: #667085; font-size: .9rem; z-index: 1; }
.mk-erp-paso.hecho .mk-erp-ico { background: #d1fadf; color: #067647; }
.mk-factura-cufe { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; word-break: break-all; }

/* Cotizaciones B2B */
.mk-chat-sistema { text-align: center; font-size: .78rem; color: #475467; background: #f2f4f7; border-radius: 999px; padding: .3rem .8rem; margin: .5rem auto; max-width: 92%; width: fit-content; }
.mk-chat-sistema small { color: #98a2b3; margin-left: .25rem; }
.mk-tabla-cotizacion td, .mk-tabla-cotizacion th { padding-left: .75rem; padding-right: .75rem; }
.mk-escalas { border: 1px dashed #a6d8b8; background: #f6fef9; border-radius: .6rem; }
.mk-escalas .activa { font-weight: 700; color: #067647; }
@media (max-width: 575.98px) {
  .mk-tabla-cotizacion { font-size: .78rem; }
  .mk-tabla-cotizacion td, .mk-tabla-cotizacion th { padding-left: .35rem; padding-right: .35rem; }
  .mk-tabla-cotizacion .text-muted.small { display: block; }
}

/* Búsqueda: corrección y facetas */
.mk-correccion { background: #fffaeb; border: 1px solid #fedf89; border-radius: .6rem; padding: .55rem .85rem; font-size: .92rem; }
.mk-facetas-marca { max-height: 220px; overflow: auto; }

/* Variantes */
.mk-chip-var { min-width: 2.6rem; }
.mk-chip-var.mk-chip-agotado:not(.active) { text-decoration: line-through; opacity: .55; }

/* Avisos push */
.mk-push-ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff4d6; color: #b54708; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: 0 0 auto; }
.mk-push[data-estado="activo"] .mk-push-ico { background: #dcfae6; color: #067647; }
.mk-push[data-estado="bloqueado"] .mk-push-ico { background: #fee4e2; color: #b42318; }
.mk-push-compacto { background: linear-gradient(90deg, #fffaeb, #fff); border: 1px solid #fedf89; border-radius: .75rem; padding: .85rem 1rem; }
.mk-push .min-w-0 { min-width: 0; }
@media (max-width: 575.98px) { .mk-push [data-push-activar] { flex: 1 1 100%; } }

/* Opiniones */
.mk-op-promedio { font-size: 3rem; font-weight: 800; line-height: 1; color: #101828; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-op-barra { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; padding: .15rem 0; font-size: .82rem; color: #475467; border-radius: .4rem; }
.mk-op-barra:not(:disabled):hover { color: var(--mk-primary); }
.mk-op-barra:not(:disabled):hover .mk-op-barra-fondo span { background: #f59e0b; }
.mk-op-barra:disabled { opacity: .55; }
.mk-op-barra-et { width: 2.4rem; text-align: left; white-space: nowrap; }
.mk-op-barra-et i { color: #f5a623; font-size: .7rem; }
.mk-op-barra-fondo { flex: 1; height: .45rem; background: #eaecf0; border-radius: 999px; overflow: hidden; }
.mk-op-barra-fondo span { display: block; height: 100%; background: #fbbf24; border-radius: 999px; }
.mk-op-barra-n { width: 2rem; text-align: right; font-variant-numeric: tabular-nums; }
.mk-opinion { padding: 1rem 0; border-bottom: 1px solid #eef1f4; scroll-margin-top: 90px; }
.mk-opinion:last-child { border-bottom: 0; }
.mk-opinion:target { background: #fffbeb; border-radius: .6rem; padding-left: .75rem; padding-right: .75rem; }
.mk-opinion-texto { white-space: normal; overflow-wrap: anywhere; color: #344054; }
.mk-opinion-fotos { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.mk-opinion-foto { width: 72px; height: 72px; padding: 0; border: 1px solid #e4e7ec; border-radius: .5rem; overflow: hidden; background: #f9fafb; cursor: zoom-in; }
.mk-opinion-foto img { width: 100%; height: 100%; object-fit: cover; }
.mk-opinion-respuesta { background: #f2f6fa; border-left: 3px solid var(--mk-primary); border-radius: .5rem; padding: .55rem .8rem; margin-top: .5rem; }
.mk-util.active { background: #ecfdf3; border-color: #abefc6; color: #067647; opacity: 1; }
.mk-opiniones .cargando { opacity: .5; pointer-events: none; transition: opacity .15s; }
/* Formulario de calificar */
.mk-estrellas-input { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.mk-estrella { background: none; border: 0; padding: .1rem .15rem; font-size: 2rem; line-height: 1; color: #d0d5dd; transition: transform .1s, color .1s; }
.mk-estrella.on, .mk-estrellas-input.hover .mk-estrella.pre { color: #f5a623; }
.mk-estrellas-input.hover .mk-estrella:not(.pre) { color: #d0d5dd; }
.mk-estrella:hover { transform: scale(1.12); }
.mk-estrella:focus-visible { outline: 2px solid var(--mk-primary); border-radius: .3rem; }
@media (max-width: 575.98px) { .mk-estrella { font-size: 2rem; padding: .1rem .15rem; } .mk-estrella-txt { flex-basis: 100%; margin-left: .2rem !important; } }
.mk-op-foto-add, .mk-op-foto-prev { width: 76px; height: 76px; border: 1px dashed #98a2b3; border-radius: .6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: #475467; cursor: pointer; position: relative; overflow: hidden; margin: 0; }
.mk-op-foto-add:hover { border-color: var(--mk-primary); color: var(--mk-primary); }
.mk-op-foto-add i { font-size: 1.3rem; }
.mk-op-foto-prev { border-style: solid; }
.mk-op-foto-prev img, .mk-op-foto-nueva img { width: 100%; height: 100%; object-fit: cover; }
.mk-op-foto-prev input { position: absolute; top: 4px; right: 4px; margin: 0; }
.mk-op-foto-prev span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(16,24,40,.6); color: #fff; text-align: center; font-size: .65rem; }
.mk-op-foto-prev:has(input:checked) img { opacity: .35; }
.mk-op-foto-nueva { width: 76px; height: 76px; border-radius: .6rem; overflow: hidden; border: 1px solid #d0d5dd; position: relative; }
.mk-op-foto-nueva button { position: absolute; top: 2px; right: 2px; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 0; background: rgba(16,24,40,.7); color: #fff; font-size: .7rem; line-height: 1; padding: 0; }
