/* ============================================================
   POSBerry — Landing /order/
   Estilos dedicados (no contaminar common.css)
   Reutiliza tokens definidos en order-tokens.css
   ============================================================ */

/* Reset y base ---------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: #FAFAF8;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
.ng-cloak, [ng-cloak] { display: none !important; }

/* Navbar ----------------------------------------------------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.lp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-nav__brand img { height: 34px; width: auto; }
.lp-nav__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-d);
  color: var(--brand-f);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.lp-nav__loc--err {
  background: rgba(229, 50, 18, 0.1);
  color: var(--brand-c);
  cursor: pointer;
}

.lp-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
}
.lp-search__icon {
  font-size: 20px;
  color: var(--brand-e);
  flex-shrink: 0;
}
.lp-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 14px 4px;
  color: var(--text);
  min-width: 0;
}
.lp-search__input::placeholder { color: #9A918C; }
.lp-search__input::-webkit-search-cancel-button,
.lp-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.lp-search__clear {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-d);
  color: var(--brand-f);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.lp-search__clear:hover { background: #c8c1bd; }

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.lp-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #F2F0F8;
  color: #4A4A5A;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.lp-chip:hover { background: #E6E2F0; transform: translateY(-1px); }

/* Toolbar (toggle lista/mapa) -------------------------------- */
.lp-toolbar {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
}
.lp-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.lp-toggle__btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-e);
  transition: color var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-toggle__btn--active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 50, 18, 0.25);
}
.lp-toolbar__hint {
  font-size: 13px;
  color: var(--brand-e);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Content -------------------------------------------------- */
.lp-page-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.lp-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 60px;
  flex: 1 0 auto;
}
.lp-foot { flex-shrink: 0; }

/* Banner geo denegada -------------------------------------- */
.lp-geobanner {
  background: #fff;
  border: 1px solid rgba(229, 50, 18, 0.25);
  border-left: 4px solid var(--brand-c);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.lp-geobanner__text { flex: 1; min-width: 220px; font-size: 14px; color: var(--brand-f); }
.lp-geobanner__text strong { color: var(--brand-c); }
.lp-geobanner__actions { display: flex; gap: 8px; }

/* Section heading ------------------------------------------ */
.lp-section { margin-top: 8px; }
.lp-section + .lp-section { margin-top: 36px; }
.lp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lp-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-f);
  margin: 0;
  letter-spacing: -0.01em;
}
.lp-section__count {
  font-size: 13px;
  color: var(--brand-e);
  font-weight: 500;
}

/* Empty state --------------------------------------------- */
.lp-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--brand-e);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.lp-empty__icon { font-size: 36px; margin-bottom: 8px; }
.lp-empty__title { font-size: 15px; font-weight: 600; color: var(--brand-f); margin: 4px 0 4px; }
.lp-empty__text { font-size: 13px; margin: 0; }

/* Spinner ------------------------------------------------- */
.lp-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(235, 102, 8, 0.3);
  border-top-color: var(--brand-b);
  border-radius: 50%;
  animation: lp-spin 0.8s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Loading prominente al buscar ----------------------------- */
.lp-section__title--loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(110deg, var(--brand-e) 30%, var(--brand-c) 50%, var(--brand-e) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-shine 1.6s linear infinite;
}
.lp-search-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(229, 50, 18, 0.18);
  border-top-color: var(--brand-c);
  border-right-color: var(--brand-b);
  border-radius: 50%;
  animation: lp-spin 0.7s linear infinite;
  flex: 0 0 18px;
}
@keyframes lp-shine {
  0%   { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}

/* Skeleton cards ------------------------------------------- */
.lp-shops--loading { display: flex; flex-direction: column; gap: 10px; }
.lp-skel {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.lp-skel__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: 0 0 48px;
  background: linear-gradient(110deg, #ececef 25%, #f7f6f3 50%, #ececef 75%);
  background-size: 220% 100%;
  animation: lp-shimmer 1.4s linear infinite;
}
.lp-skel__lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-skel__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(110deg, #ececef 25%, #f7f6f3 50%, #ececef 75%);
  background-size: 220% 100%;
  animation: lp-shimmer 1.4s linear infinite;
}
.lp-skel__line--title { width: 55%; height: 14px; }
.lp-skel__line--sub   { width: 75%; }
.lp-skel__line--meta  { width: 35%; height: 10px; }
@keyframes lp-shimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}

/* Mapa ---------------------------------------------------- */
.lp-map {
  width: 100%;
  height: clamp(420px, 65vh, 720px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.lp-map .leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 16, 14, 0.18), 0 2px 6px rgba(20, 16, 14, 0.08);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 16, 14, 0.06);
}
.lp-map .leaflet-popup-content {
  margin: 0;
  font-family: var(--font);
  width: auto !important;
}
.lp-map .leaflet-popup-tip {
  box-shadow: 0 6px 14px rgba(20, 16, 14, 0.12);
}
.lp-map .leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 22px;
  color: var(--brand-e);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.15s, color 0.15s;
}
.lp-map .leaflet-popup-close-button:hover {
  background: #fff;
  color: var(--brand-c);
}

/* Popup card -------------------------------------------------- */
.lp-map__popup {
  --popup-accent: #8581BC;
  width: 260px;
  padding: 14px 14px 12px;
  background: #fff;
  position: relative;
}
.lp-map__popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--popup-accent);
}
.lp-map__popup-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding-right: 22px;
}
.lp-map__popup-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 42px;
  background: #f3f1ef;
  box-shadow: 0 2px 6px rgba(20, 16, 14, 0.1);
}
.lp-map__popup-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(20, 16, 14, 0.12);
}
.lp-map__popup-avatar--initials::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.lp-map__popup-avatar--initials > span { position: relative; z-index: 1; }
.lp-map__popup-titles { min-width: 0; flex: 1; }
.lp-map__popup-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--brand-e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-map__popup-addr {
  font-size: 12px;
  color: var(--brand-f);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-map__popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.lp-map__popup-dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-e);
  background: #f6f4f2;
  padding: 3px 8px;
  border-radius: 999px;
}
.lp-map__popup-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f4f2;
  color: var(--brand-f);
  letter-spacing: 0.2px;
}
.lp-map__popup-chip--open {
  background: rgba(34, 167, 93, 0.12);
  color: #1f7a47;
}
.lp-map__popup-chip--closed {
  background: rgba(229, 50, 18, 0.10);
  color: var(--brand-c);
}
.lp-map__popup-envio {
  font-size: 12px;
  color: var(--brand-f);
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #faf8f6;
  border-left: 3px solid var(--popup-accent);
  border-radius: 6px;
}
.lp-map__popup-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(229, 50, 18, 0.25);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.lp-map__popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 50, 18, 0.32);
  filter: brightness(1.05);
}
.lp-map__popup-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(229, 50, 18, 0.2);
}
.lp-map__popup-btn span { transition: transform 0.15s ease; }
.lp-map__popup-btn:hover span { transform: translateX(3px); }
.lp-map__popup-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-e);
  padding: 10px 14px;
}
.lp-pin-self {
  background: var(--brand-a);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(133, 129, 188, 0.35), 0 2px 6px rgba(0,0,0,0.25);
}
.lp-pin-shop { background: transparent; border: none; }
.lp-pin-shop__dot {
  display: block;
  width: 18px; height: 18px;
  background: #8581BC;
  border: 2.5px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-left: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Modal --------------------------------------------------- */
.lp-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  animation: lp-fadein 180ms ease;
}
@media (min-width: 640px) { .lp-modal__overlay { align-items: center; } }
.lp-modal {
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: lp-slideup 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}
@media (min-width: 640px) { .lp-modal { border-radius: var(--radius-lg); } }
.lp-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-f);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.lp-modal__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--brand-d);
}
.lp-modal__body { padding: 22px 22px 26px; }
.lp-modal__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lp-modal__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-c);
  margin-bottom: 14px;
}
.lp-modal__desc {
  font-size: 14px;
  color: var(--brand-e);
  line-height: 1.55;
  margin-bottom: 18px;
}
.lp-modal__shop {
  background: #FAFAF8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-modal__shop-name { font-size: 14px; font-weight: 700; color: var(--brand-f); }
.lp-modal__shop-meta { font-size: 13px; color: var(--brand-e); }
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: var(--brand-b);
  color: #fff;
  width: 100%;
  transition: background var(--transition), transform var(--transition);
}
.lp-btn:hover { background: var(--brand-c); }
.lp-btn:active { transform: scale(0.98); }
.lp-btn--ghost {
  background: transparent;
  color: var(--brand-c);
  border: 1px solid rgba(229, 50, 18, 0.25);
  width: auto;
  padding: 9px 18px;
  font-size: 13px;
}
.lp-btn--ghost:hover { background: rgba(229, 50, 18, 0.06); }

@keyframes lp-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-slideup { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Footer -------------------------------------------------- */
.lp-foot {
  margin-top: 48px;
  padding: 28px 20px;
  text-align: center;
  background: var(--brand-grad);
  color: #fff;
}
.lp-foot__logo { height: 36px; margin: 0 auto 8px; }
.lp-foot__copy { font-size: 13px; opacity: 0.9; margin: 0; }

/* Loading splash ------------------------------------------ */
.lp-splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--brand-grad);
  color: #fff;
  z-index: 9999;
}
.lp-splash__logo { height: 44px; }
.lp-splash__bar {
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}
.lp-splash__bar::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: #fff;
  border-radius: 999px;
  animation: lp-bar 1.1s ease-in-out infinite;
}
@keyframes lp-bar { to { left: 100%; } }

/* ============== Buscador sticky ============== */
.lp-searchbar {
  position: sticky;
  top: 56px; /* alto de .lp-nav */
  z-index: 40;
  background: var(--lp-bg, #FFFFFF);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px 10px;
}
.lp-searchbar__inner {
  max-width: 720px;
  margin: 0 auto;
}
/* Mantener .lp-search, .lp-search__input, .lp-search__icon, .lp-search__clear, .lp-chips, .lp-chip
   tal como están en este archivo (no se tocan). Solo cambiamos el contenedor padre. */

/* ============== Bloque de comercio ============== */
.lp-shops {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
}
.lp-shop-block {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid #8581BC; /* fallback; se sobreescribe con ng-style */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.lp-shop-block:active {
  transform: scale(0.99);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.lp-shop-block__header {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  align-items: flex-start;
}
.lp-shop-block__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: 0 0 48px;
  background: #F2F2F4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-shop-block__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-shop-block__logo--initials {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}
.lp-shop-block__logo--initials::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.lp-shop-block__logo--initials > span {
  position: relative;
  z-index: 1;
}
.lp-shop-block__info {
  flex: 1;
  min-width: 0;
}
.lp-shop-block__name {
  font-weight: 700;
  font-size: 15px;
  color: #1A1A2A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-shop-block__addr {
  font-size: 12.5px;
  color: #6A6A7A;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-shop-block__km {
  font-weight: 600;
  color: #4A4A5A;
}
.lp-shop-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #4A4A5A;
}
.lp-meta {
  white-space: nowrap;
}
.lp-meta--abierto { color: #1F8B3A; font-weight: 600; }
.lp-meta--cerrado { color: #B23A2C; font-weight: 600; }

/* ============== Carrusel horizontal de productos por comercio ============== */
.lp-prod-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 14px 14px;
  -webkit-overflow-scrolling: touch;
}
.lp-prod-carousel::-webkit-scrollbar { display: none; }

.lp-prod-card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lp-prod-card__img-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}
.lp-prod-card__img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  display: block;
  background: #F2F2F4;
}
.lp-prod-card__img--overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lp-prod-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, #fdfcfa 0%, rgba(253,252,250,0) 60%),
    linear-gradient(180deg, #f6f4f0 0%, #ecebe6 100%);
  position: relative;
  overflow: hidden;
}
.lp-prod-card__img--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.lp-prod-card__placeholder-icon {
  width: 40%;
  height: 40%;
  color: #c4c0b6;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}
.lp-prod-card__name {
  font-size: 11.5px;
  color: #2A2A38;
  padding: 10px 10px 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.lp-prod-card__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-c);
  padding: 0 10px 12px;
  letter-spacing: -0.2px;
}
.lp-prod-card--more {
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #8581BC;
  background: #F7F6FB;
  height: 132px;
  align-self: flex-start;
}

/* ============== Mini-mapa esquematico en sidebar del comercio ============== */
.lp-shop-block__minimap {
  display: none; /* mobile: oculto, no hay sidebar */
}
.lp-minimap__svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 16, 14, 0.06);
}

/* ============== Responsive shop block (tablet/desktop) ==============
   Mobile: header arriba, carrusel de productos abajo (default).
   ≥ 768px: header como sidebar a la izquierda, productos llenan el resto. */
@media (min-width: 768px) {
  .lp-shop-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
  }
  .lp-shop-block__header {
    border-right: 1px solid var(--border);
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #fff 0%, #fafaf8 100%);
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "logo info"
      "map  map";
    gap: 10px 12px;
    align-content: start;
  }
  .lp-shop-block__logo { grid-area: logo; }
  .lp-shop-block__info { grid-area: info; }
  .lp-shop-block__minimap {
    display: block;
    grid-area: map;
    margin-top: 8px;
    max-width: 220px;
  }
  .lp-shop-block__logo { width: 56px; height: 56px; flex-basis: 56px; border-radius: 12px; }
  .lp-shop-block__logo--initials { font-size: 19px; }
  .lp-shop-block__name { font-size: 16px; }
  .lp-shop-block__addr { font-size: 13px; }
  .lp-prod-carousel {
    padding: 16px;
    gap: 12px;
    align-items: flex-start;
  }
  .lp-prod-card { flex: 0 0 156px; border-radius: 12px; }
  .lp-prod-card__img-wrap { width: 156px; height: 156px; }
  .lp-prod-card__img { width: 156px; height: 156px; }
  .lp-prod-card__name { font-size: 13px; padding: 10px 10px 4px; }
  .lp-prod-card__price { font-size: 14px; padding: 0 10px 12px; }
  .lp-prod-card--more { height: 156px; flex: 0 0 130px; }
  .lp-prod-card__placeholder-text { font-size: 14px; -webkit-line-clamp: 5; }
}

@media (min-width: 1100px) {
  .lp-shop-block { grid-template-columns: 320px 1fr; }
  .lp-prod-card { flex: 0 0 172px; }
  .lp-prod-card__img-wrap { width: 172px; height: 172px; }
  .lp-prod-card__img { width: 172px; height: 172px; }
  .lp-prod-card--more { height: 172px; flex: 0 0 140px; }
}

/* ============== Variante "lista compacta" (default sin query) ==============
   Reset del grid sidebar+productos: vuelve a un row simple horizontal, sin
   minimapa, mas denso. Pensado para escaneo rapido cuando solo necesitamos
   los datos del comercio. */
.lp-shops--list { gap: 8px; }
.lp-shop-block--list { display: block; }
.lp-shop-block--list .lp-shop-block__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-right: none;
  grid-template-columns: none;
  grid-template-areas: none;
}
.lp-shop-block--list .lp-shop-block__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}
.lp-shop-block--list .lp-shop-block__logo--initials { font-size: 16px; }
.lp-shop-block--list .lp-shop-block__info { flex: 1; min-width: 0; }
.lp-shop-block--list .lp-shop-block__name { font-size: 14.5px; }
.lp-shop-block--list .lp-shop-block__addr { font-size: 12.5px; }
.lp-shop-block--list .lp-shop-block__meta { margin-top: 4px; font-size: 11.5px; }

@media (min-width: 768px) {
  .lp-shop-block--list .lp-shop-block__header {
    padding: 14px 20px;
    gap: 18px;
  }
  .lp-shop-block--list .lp-shop-block__logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

/* Hover sutil en desktop solamente (no afecta touch) */
@media (hover: hover) and (pointer: fine) {
  .lp-prod-card { transition: transform 140ms ease, box-shadow 140ms ease; }
  .lp-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 16, 14, 0.10);
  }
  .lp-shop-block { transition: box-shadow 140ms ease; }
  .lp-shop-block:hover { box-shadow: 0 6px 18px rgba(20, 16, 14, 0.08); }
}

/* ============== Bottom sheet del mapa ============== */
.lp-mapwrap {
  position: relative;
  height: calc(100vh - 56px - 60px); /* navbar + searchbar + toolbar aprox */
  min-height: 480px;
}
.lp-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Pill flotante "Buscando..." sobre el mapa --------------- */
.lp-map-search-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(20, 16, 14, 0.14), 0 1px 3px rgba(20, 16, 14, 0.06);
  border: 1px solid rgba(20, 16, 14, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-e);
  max-width: calc(100% - 28px);
  pointer-events: none;
  animation: lp-pill-in 200ms ease-out;
}
.lp-map-search-pill--loading {
  border-color: rgba(229, 50, 18, 0.30);
  box-shadow:
    0 6px 20px rgba(229, 50, 18, 0.18),
    0 0 0 4px rgba(229, 50, 18, 0.06);
}
.lp-map-search-pill__icon { font-size: 14px; line-height: 1; }
.lp-map-search-pill__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}
.lp-map-search-pill--loading .lp-map-search-pill__text {
  background: linear-gradient(110deg, var(--brand-e) 30%, var(--brand-c) 50%, var(--brand-e) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-shine 1.6s linear infinite;
}
@keyframes lp-pill-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Pins stale durante busqueda: se dimean para indicar "estos resultados van a cambiar" */
.lp-mapwrap--loading .leaflet-marker-icon,
.lp-mapwrap--loading .leaflet-marker-shadow {
  opacity: 0.32;
  transition: opacity 200ms ease;
  filter: grayscale(0.4);
}

/* Sheet head en estado loading: spinner + texto en gradiente shine */
.lp-sheet__head--loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(110deg, var(--brand-e) 30%, var(--brand-c) 50%, var(--brand-e) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-shine 1.6s linear infinite;
}
.lp-sheet__head--loading .lp-search-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}
.lp-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 240ms cubic-bezier(.2,.7,.2,1);
}
.lp-sheet--peek { height: 84px; }
.lp-sheet--mid  { height: 50%; }
.lp-sheet--full { height: 90%; }

.lp-sheet__handle {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  flex: 0 0 28px;
}
.lp-sheet__handle:active { cursor: grabbing; }
.lp-sheet__grip {
  width: 44px;
  height: 4px;
  background: #D6D6DE;
  border-radius: 2px;
}
.lp-sheet__head {
  padding: 4px 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4A4A5A;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}
.lp-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
