/* FLAMA-WEB-21 · Ajustes posteriores a la validación responsive.
   Se aplican solo a la tienda pública; no modifican administración ni repartidor.
   Debe cargarse después de store-mobile-20.css. */
@media (max-width: 991.98px) {
  /* El área de navegación inferior siempre cubre hasta el borde físico de la vista. */
  body[data-scope="store"] .store-app-dock.mobile-dock {
    bottom: 0 !important;
    border-radius: 15px 15px 0 0 !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: max(9px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(9px, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
  }
  body[data-scope="store"] .store-app-dock.mobile-dock a {
    min-height: 52px;
    min-width: 0;
  }
  body[data-scope="store"] .store-app-dock.mobile-dock a:focus-visible {
    outline: 3px solid #e97b4b;
    outline-offset: -2px;
  }
  body[data-scope="store"] .store-app-dock.mobile-dock .store-app-tab-label {
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  body[data-scope="store"] .store-app-brand-name { min-width: 0; }
  body[data-scope="store"] .store-app-address { min-width: 0; }
  body[data-scope="store"] .store-app-address > span { min-width: 0; }
  /* Evitar zoom de iOS por campos de texto con fuente inferior a 16px. */
  body[data-scope="store"] :is(input.form-control, input.form-select, select.form-select, textarea.form-control) {
    font-size: 16px !important;
  }
  body[data-scope="store"] :is(input, select, textarea, button) { scroll-margin-bottom: 96px; }
  body[data-scope="store"].fl20-keyboard-open #screen { padding-bottom: 16px !important; }
  body[data-scope="store"] .fl6-filter-chips { max-width: 100%; }
  body[data-scope="store"] #cartDrawer { overscroll-behavior: contain; }
  body[data-scope="store"] #cartDrawer .offcanvas-body { -webkit-overflow-scrolling: touch; }
  /* Mantener el botón de compra por encima de la zona segura del dispositivo. */
  body[data-scope="store"] #cartDrawer .offcanvas-body > .border-top {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 359.98px) {
  /* Teléfonos estrechos (320px): evitar que controles y tarjetas salgan de su columna. */
  body[data-scope="store"] .store-app-header { padding-left: 10px; padding-right: 10px; }
  body[data-scope="store"] .fl6-catalog-controls { grid-template-columns: minmax(0, 1fr); }
  body[data-scope="store"] .fl6-catalog-controls > * { width: 100%; min-width: 0; }
  body[data-scope="store"] .fl6-catalog .product-card .card-body { padding: 9px; }
  body[data-scope="store"] .fl6-catalog .product-price { font-size: 16px; }
  body[data-scope="store"] .store-app-dock.mobile-dock { gap: 0; padding-left: 5px !important; padding-right: 5px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-scope="store"] .store-app-dock.mobile-dock { transition: none !important; }
}
