/* =========================================================
   GRUPO MERCADO (Colmado, Farmacia, Ferretería, Boutique, Gas) · 25-nov-2026
   Modelo: la tienda en las apps de supermercado (Instacart) +
   lo que recomienda Baymard: cabecera corta (se va directo a
   comprar), buscador grande pegado arriba, pasillos en chips y
   tarjetas compactas con precio grande y «Agregar» visible.
   ========================================================= */
/* Cabecera corta: banda con la foto a la derecha */
html body.es-mercado .vt-hero { padding: 22px 0 !important; min-height: 0 !important; background: var(--vt-s, #FFF6EC) !important; }
html body.es-mercado .vt-hero .vt-hero-g { display: grid !important; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; max-width: 1180px !important; margin: 0 auto; }
html body.es-mercado .vt-hero-vis { height: 190px; }
html body.es-mercado .vt-portada { position: relative !important; width: 100% !important; height: 190px !important; margin: 0 !important; padding: 0 !important; transform: none !important; border: 0 !important; border-radius: 22px !important; overflow: hidden; box-shadow: none !important; }
html body.es-mercado .vt-portada img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
html body.es-mercado .vt-pie-foto { display: none !important; }
html body.es-mercado .vt-hero-tx { padding: 0 !important; background: none !important; box-shadow: none !important; }
html body.es-mercado .vt-nombre { font-size: clamp(26px, 2.8vw, 38px) !important; margin: 8px 0 6px !important; }
html body.es-mercado .vt-logo { border-radius: 50% !important; background: var(--es-a) !important; }
html body.es-mercado .vt-logo b { color: #fff !important; }
html body.es-mercado .vt-letrero { position: static !important; transform: none !important; display: inline-flex !important; gap: 6px; margin-left: 8px; padding: 5px 12px !important; border-radius: 999px !important; box-shadow: none !important; border: 0 !important; background: #DCFCE7 !important; color: #166534 !important; }
html body.es-mercado .vt-letrero.cerrado { background: #FEE2E2 !important; color: #991B1B !important; }
html body.es-mercado .vt-letrero :is(b, small) { font-size: 12px !important; }
html body.es-mercado .vt-letrero-hilo { display: none !important; }
html body.es-mercado .vt-botones { margin-top: 14px !important; }

/* Buscador grande y pasillos, pegados arriba */
html body.es-mercado #productos .pr-filtros { position: sticky; top: 64px; z-index: 20; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px; width: 100%; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--es-b); }
html body.es-mercado #productos .seccion-cabecera { display: block !important; }
html body.es-mercado #productos .pr-buscar { display: flex !important; align-items: center; gap: 10px; width: 100% !important; max-width: none !important; height: 54px; padding: 0 20px !important; border-radius: 999px !important; background: #F5F5F4 !important; border: 1.5px solid transparent !important; }
html body.es-mercado #productos .pr-buscar:focus-within { border-color: var(--es-a) !important; background: #fff !important; }
html body.es-mercado #productos .pr-buscar input { flex: 1; font-size: 16px !important; background: none !important; border: 0 !important; outline: 0; }
html body.es-mercado #productos .pr-pildoras-cat { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
html body.es-mercado #productos .pr-pildoras-cat::-webkit-scrollbar { display: none; }
html body.es-mercado .pr-filtro { flex: none; height: 38px; padding: 0 16px !important; border-radius: 999px !important; font-weight: 700; }
html body.es-mercado .pr-filtro.on { background: var(--es-t) !important; color: #fff !important; border-color: var(--es-t) !important; }
html body.es-mercado #productos .pr-mas { display: none !important; }

/* Tarjetas compactas: 5 por fila en PC */
html body.es-mercado #productos .pr-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 14px !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto { display: flex !important; flex-direction: column; padding: 10px !important; border: 1px solid var(--es-b) !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; transform: none !important; min-height: 0 !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto[hidden] { display: none !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-imagen { position: relative; aspect-ratio: 1 !important; height: auto !important; margin: 0 0 8px !important; padding: 0 !important; border-radius: 12px !important; background: #F5F5F4 !important; overflow: hidden; }
html body.es-mercado #productos .pr-grid article.producto .producto-imagen > img:not(#es-a):not(#es-b) { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 8px !important; mix-blend-mode: multiply; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-sin-imagen { height: 100% !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-info { display: flex !important; flex-direction: column; flex: 1; padding: 0 !important; text-align: left !important; align-items: stretch !important; }
/* Precio grande primero, luego el nombre (como en las apps de supermercado) */
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-precio { order: -1; position: static !important; padding: 0 !important; background: none !important; box-shadow: none !important; color: var(--es-t) !important; font-size: 17px !important; font-weight: 800 !important; margin: 0 0 2px !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-info h3 { font-size: 13.5px !important; font-weight: 600 !important; margin: 0 0 8px !important; color: var(--es-t); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-info p,
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .disponibilidad.disponible,
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-destacado { display: none !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-boton { margin-top: auto !important; width: 100% !important; height: 38px !important; min-height: 0 !important; border-radius: 999px !important; background: var(--es-a) !important; color: #fff !important; border: 0 !important; font-size: 13.5px !important; font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-boton:is(.agotado, .cerrado) { background: #F5F5F4 !important; color: #A8A29E !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .favorito-btn { top: 6px !important; right: 6px !important; }

@media (max-width: 1100px) { html body.es-mercado #productos .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) {
    html body.es-mercado .vt-hero .vt-hero-g { grid-template-columns: 1fr; gap: 14px; }
    html body.es-mercado .vt-hero-vis, html body.es-mercado .vt-portada { height: 140px !important; }
    html body.es-mercado .vt-hero-vis { order: -1; }
    html body.es-mercado #productos .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    html body.es-mercado #productos .pr-filtros { top: 56px; }
}
html body.es.es-mercado .vt-logo { margin-top: 0 !important; width: 52px !important; height: 52px !important; border-width: 3px !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-precio { text-align: left !important; align-self: flex-start !important; justify-content: flex-start !important; }
html body.es-mercado #productos .seccion-cabecera > div:first-child { margin-bottom: 10px; }
html body.es-mercado #productos .seccion-linea { display: none !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-imagen > img:not(#es-a):not(#es-b) { position: absolute !important; inset: 0 !important; }
html body.es-mercado.pagina-negocio #productos .pr-grid article.producto .producto-boton::after { content: none !important; display: none !important; }
