/* ═══════════════════════════════════════════════════════════════════════
   PLAN · FASE 6 — Tienda "Mercado fresco" (dirección visual aprobada)
   Capa que se carga DESPUÉS de los estilos actuales: no cambia identificadores
   ni textos editables, así que el editor de la tienda sigue funcionando.
   Colores: los de cada empresa (--g principal, --gs para botones con texto blanco,
   --gd oscuro, --gl claro), puestos por el servidor (core/Brand.php).
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --ink: #10241A; --ink2: #3B4A40; --line: #E3E8E1; --soft: #F3F6F1;
}
body { font-family: var(--font-body); color: var(--ink); }
h1, h2, h3, .sh2, .mtit, .dtit, .stag, .banner-textbox-v7 h1, .banner-textbox-v7 h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
.sh2 { font-weight: 800; }

/* Botones: relleno profundo con texto blanco (contraste ≥ 4.5:1) */
.nbtn-pill { background: var(--gs, #0e652a) !important; border-color: var(--gs, #0e652a) !important; color: #fff !important; font-family: var(--font-body); font-weight: 700; min-height: 44px; }
.banner-cta-v7 { background: var(--gs, #0e652a); color: #fff; min-height: 48px; border-radius: 14px; font-family: var(--font-body); }
.banner-cta-v7:hover { filter: brightness(1.08); }

/* Tarjetas de producto */
.pc { border-radius: 20px !important; border: 1px solid var(--line); background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.pc:hover { box-shadow: 0 10px 28px rgba(16,36,26,.09); transform: translateY(-1px); }
.pc .pim { border-radius: 14px; background: var(--soft); }
.pad { width: 44px !important; height: 44px !important; border-radius: 12px !important; background: var(--gs, #0e652a) !important; color: #fff !important; font-size: 22px !important; font-weight: 700; border: 0 !important; }
.pad:focus-visible, .qb:focus-visible, .chip-v7:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.qb { width: 40px !important; height: 40px !important; font-size: 18px !important; }

/* Categorías y búsqueda */
.chip-v7 { min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid #CDD6CB; color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.chip-v7.active, .chip-v7.on { background: var(--ink); border-color: var(--ink); color: #fff; }
#v7-csrch { height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); padding: 0 18px; font-family: var(--font-body); font-size: 15px; color: var(--ink); }
#v7-csrch:focus { outline: 3px solid var(--g); outline-offset: 1px; background: #fff; }

/* Formularios */
.mfi { font-family: var(--font-body); border-radius: 10px; min-height: 44px; }

/* Barra del carrito fija en el celular */
.mfs-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  height: 56px; border-radius: 16px; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: space-between;
  padding: 0 18px; font: 700 15px/1 var(--font-body); border: 0; box-shadow: 0 10px 30px rgba(16,36,26,.3); cursor: pointer; }
@media (max-width: 760px) { .mfs-cartbar.on { display: flex; } body.mfs-has-cartbar { padding-bottom: 80px; } }

/* PLAN · FASE 7: "Repite tu último pedido" */
.mfs-reorder { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0; padding: 16px 18px;
  border-radius: 18px; background: var(--gl, #e8f9ee); color: var(--ink); }
.mfs-reorder strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--gd, #0F5132); }
.mfs-reorder span { font-size: 14px; color: #2C3A31; }
.mfs-reorder button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--gs, #0e652a); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; }
.mfs-reorder button:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
