/* Joey's Pizza — Favoritos del visitante (Nov 22 2026).
   Additive only — every rule is scoped to the new fav-* elements,
   plus .fav-host (position:relative on a card that carries a
   heart) and one tightening rule for the bottom bar, which gained
   the «Favoritos» button beside «Loadout» (owner ruling: favorites
   live in their own window, not a Home strip). Colors follow the
   app's own tokens (--lime, --card, --ink, --line, --tomato) with
   literal fallbacks, so the layer reads correctly in light and
   dark mode. */

/* ---------- ♥ toggle ---------- */
.fav-host { position: relative; }
.fav-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 9px #00000047;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b6252;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.fav-heart svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linejoin: round;
  pointer-events: none;
}
.fav-heart.on { color: var(--tomato, #d63d1e); }
.fav-heart.on svg { fill: var(--tomato, #d63d1e); stroke: var(--tomato, #d63d1e); }
.fav-heart:active { transform: scale(0.9); }
.fav-heart:focus-visible { outline: 3px solid var(--lime-deep, #4d7c0f); outline-offset: 2px; }
/* Inline variant: a flex item inside rows / whole-tile buttons
   (Bebidas rows, Ofertas rows, fiesta tiles) instead of an
   overlay, so it never covers a price or the Ordenar button. */
.fav-heart-inline {
  position: static;
  flex: none;
  width: 38px;
  height: 38px;
  box-shadow: 0 1px 5px #0000002b;
  border: 1.5px solid var(--line, #e9e0cf);
}
.fav-heart-sm { width: 34px; height: 34px; top: 6px; right: 6px; }
.fav-heart-sm svg { width: 18px; height: 18px; }

/* ---------- «Favoritos» window (its own screen, beside
   Loadout in the bottom bar) ---------- */
/* The bar was tuned for seven buttons; with «Favoritos» beside
   «Loadout» there can be eight, so the labels give up half a
   point and a breath of tracking to keep every label whole at
   phone widths. Scoped to the bar only. */
.nd-bottomnav .nd-nav-btn span[data-nd-nav-label] {
  font-size: 10px;
  letter-spacing: -0.02em;
}
.fav-win-title-heart {
  width: 21px;
  height: 21px;
  fill: var(--tomato, #d63d1e);
  stroke: var(--tomato, #d63d1e);
  stroke-width: 2.1;
  stroke-linejoin: round;
  vertical-align: -3px;
  margin-right: 7px;
}
.fav-win-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.fav-win-grid[hidden] { display: none; }
@media (min-width: 720px) {
  .fav-win-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.fav-win-grid .fav-card-img { height: 108px; }
.fav-win-empty {
  margin-top: 26px;
  text-align: center;
  padding: 30px 22px 34px;
  background: var(--card, #fff);
  border: 1.5px dashed var(--line, #e9e0cf);
  border-radius: 18px;
}
.fav-win-empty[hidden] { display: none; }
.fav-win-empty-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--tomato-soft, #fdeee9);
  margin-bottom: 12px;
}
.fav-win-empty-heart svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--tomato, #d63d1e);
  stroke-width: 2.1;
  stroke-linejoin: round;
}
.fav-win-empty-title {
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink, #241d12);
}
.fav-win-empty-txt {
  margin: 0 auto;
  max-width: 300px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft, #6b5f4c);
}
.fav-card {
  position: relative;
  background: var(--card, #fff);
  border: 1.5px solid var(--line, #e9e0cf);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px #00000012;
}
.fav-card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fav-card-main:active { background: #84cc1614; }
.fav-card-img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #fdfdf8;
  pointer-events: none;
  flex: none;
}
.fav-card-dotwrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-card-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--line, #e9e0cf);
}
.fav-card-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  padding: 8px 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card-price {
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: 14.5px;
  color: var(--lime-ink, #3f6212);
  padding: 3px 10px 0;
}
.fav-card-price small {
  display: block;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-soft, #6b5f4c);
}
.fav-card-cta {
  margin: auto 10px 10px;
  margin-top: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--lime, #84cc16);
  color: var(--lime-ink, #1c2b05);
  font-size: 13.5px;
  font-weight: 800;
  padding: 5px 10px;
}

@media (prefers-color-scheme: dark) {
  .fav-card-img { background: #171a10; }
  .fav-card-price { color: var(--lime-bright, #bef264); }
}
