/* Aldo feed · bottom nav (Inicio · Favoritos · Carrito) + favorites/recent screen + heart on each piece.
 * Black + cream #FAF7F2. The cart button lives in this bar (removed from the header). */
:root { --aldo-nav-h: 58px; --aldo-red: #D93025; }
.ac-cart-btn { display: none !important; }                       /* moved to the bottom nav */
.aldo-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(var(--aldo-nav-h) + var(--safe-bottom));
  padding: 0 6px var(--safe-bottom); background: #000; border-top: 1px solid rgba(250,247,242,.16);
  display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--font); }
.aldo-nav button { position: relative; border: 0; background: none; color: rgba(250,247,242,.62); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font: 600 11px/1 var(--font); letter-spacing: .04em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.aldo-nav button svg { width: 24px; height: 24px; }
.aldo-nav button.on { color: var(--ivory); }
.aldo-nav button.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--ivory); }
.aldo-nav .ic { position: relative; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 999px; }
.aldo-nav .bd { position: absolute; top: -3px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ivory); color: #000; font: 800 10.5px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px #000; }
.aldo-nav .bd[hidden] { display: none; }
/* cart pending checkout → red badge + gentle red pulse every ~2 s */
.aldo-nav .pending .bd { background: var(--aldo-red); color: #fff; }
.aldo-nav .pending .ic { animation: aldoPulse 2s ease-out infinite; }
.aldo-nav .pending { color: #FF6B5E; }
@keyframes aldoPulse { 0% { box-shadow: 0 0 0 0 rgba(217,48,37,.65); background: rgba(217,48,37,.28); }
  60% { box-shadow: 0 0 0 10px rgba(217,48,37,0); background: rgba(217,48,37,0); } 100% { box-shadow: 0 0 0 0 rgba(217,48,37,0); background: rgba(217,48,37,0); } }
@media (prefers-reduced-motion: reduce) { .aldo-nav .pending .ic { animation: none; } }
/* the price/Comprar bar sits above the nav; overlays stop at the nav so it stays visible */
.feed-card .card-body { padding-bottom: calc(var(--aldo-nav-h) + var(--safe-bottom) + 10px) !important; }
.ac-view { bottom: calc(var(--aldo-nav-h) + var(--safe-bottom)) !important; }
.ac-toast { bottom: calc(var(--aldo-nav-h) + var(--safe-bottom) + 96px) !important; }
/* heart on each piece */
.af-heart { position: absolute; right: 12px; top: calc(var(--header-h) + var(--chips-h) + var(--safe-top) + 10px); z-index: 6; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(250,247,242,.35); background: rgba(0,0,0,.42); color: var(--ivory); display: grid; place-items: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.af-heart svg { width: 22px; height: 22px; }
.af-heart.on { background: var(--ivory); border-color: var(--ivory); color: #000; }
.af-heart.on svg path { fill: #000; }
.af-heart:active { transform: scale(.92); }
/* favorites / recently viewed screen */
.af-view .af-tabs { display: flex; gap: 6px; padding: 12px 16px 0; position: sticky; top: calc(56px + var(--safe-top)); background: var(--ivory); z-index: 1; }
.af-view .af-tabs button { flex: 1; border: 1.5px solid #000; background: transparent; color: #000; border-radius: 999px; padding: 9px 10px; font: 700 .86rem var(--font); cursor: pointer; }
.af-view .af-tabs button.on { background: #000; color: var(--ivory); }
.af-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 24px; }
.af-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; background: #FFFDF9; border: 1px solid #F1EBE0; border-radius: 16px; padding: 8px; }
.af-card .af-open { display: contents; cursor: pointer; }
.af-card img, .af-card .af-ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #F1EBE0; }
.af-card .af-t { min-width: 0; }
.af-card .af-t b { display: block; font: 600 .95rem var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card .af-t .af-p { font: 400 1.25rem var(--serif); }
.af-card .af-t small { display: block; color: rgba(0,0,0,.6); font-size: .78rem; }
.af-card .af-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.af-card .af-act button { flex: 1; border-radius: 999px; padding: 9px 10px; font: 700 .84rem var(--font); cursor: pointer; border: 1.5px solid #000; background: transparent; color: #000; }
.af-card .af-act button.k { background: #000; color: var(--ivory); }
.af-card .af-act button:disabled { opacity: .45; cursor: default; }
.af-card.off img { filter: grayscale(.6); opacity: .7; }
.af-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #000; color: var(--ivory); font: 800 .66rem var(--font); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.af-empty { text-align: center; color: rgba(0,0,0,.6); padding: 40px 20px; }
.af-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 0; font-size: .82rem; color: rgba(0,0,0,.6); }
.af-bar button { background: none; border: 0; color: #000; font: 700 .85rem var(--font); text-decoration: underline; cursor: pointer; }
.ac-home { width: 44px; height: 44px; border: 0; background: none; color: var(--ivory); display: grid; place-items: center; cursor: pointer; }
/* account + key modal */
.af-acc { padding: 18px 18px 30px; }
.af-eyebrow { margin: 0; font: 700 .72rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(0,0,0,.55); }
.af-h { margin: 4px 0 6px; font: 400 2rem/1.1 var(--serif); }
.af-sub { margin: 0 0 16px; color: rgba(0,0,0,.65); }
.af-seg { display: flex; gap: 6px; margin: 10px 0 14px; }
.af-seg button { flex: 1; border: 1.5px solid #000; background: transparent; color: #000; border-radius: 999px; padding: 9px 8px; font: 700 .85rem var(--font); cursor: pointer; }
.af-seg button.on { background: #000; color: var(--ivory); }
.af-l { display: block; margin: 12px 0 5px; font: 700 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.af-in { width: 100%; box-sizing: border-box; font: 16px var(--font); color: #000; background: #FFFDF9; border: 1.5px solid #E6DCCB; border-radius: 12px; padding: 12px; }
.af-in:focus { outline: none; border-color: #000; }
.af-btn { display: block; width: 100%; box-sizing: border-box; margin-top: 14px; border: 0; border-radius: 999px; background: #000; color: var(--ivory); padding: 14px; font: 700 1rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.af-btn.ghost { background: transparent; color: #000; border: 1.5px solid #000; }
.af-link { display: inline-block; margin-top: 14px; background: none; border: 0; color: #000; font: 700 .9rem var(--font); text-decoration: underline; cursor: pointer; }
.af-err { min-height: 1em; margin: 8px 0 0; color: #B3261E; font: 600 .85rem var(--font); }
.af-demo { background: #FFFDF9; border: 1px dashed #DDD0BB; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin: 6px 0 4px; }
.af-fine { font-size: .78rem; color: rgba(0,0,0,.55); margin-top: 16px; }
.af-menu { margin: 16px 0 6px; border-top: 1px solid #F1EBE0; }
.af-menu > * { display: flex; justify-content: space-between; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid #F1EBE0; background: none; color: #000; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.af-menu span { color: rgba(0,0,0,.55); }
.af-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.af-modal-in { width: 100%; max-width: 380px; background: var(--ivory); color: #000; border-radius: 20px; padding: 22px 20px; font-family: var(--font); }
.af-modal-in h2 { margin: 0 0 6px; font: 400 1.6rem var(--serif); }
.af-key { margin: 12px 0; padding: 14px; border-radius: 12px; background: #000; color: var(--ivory); font: 700 1.02rem/1.6 ui-monospace, Menlo, monospace; letter-spacing: .06em; word-break: break-all; text-align: center; }
.af-row { display: flex; gap: 8px; } .af-row .af-btn { margin-top: 0; padding: 11px; font-size: .9rem; }
.af-ok { min-height: 1em; font-size: .85rem; font-weight: 600; margin: 8px 0 0; }

/* 5th tab: WhatsApp 'Te cotizamos' (green circle mark) */
.aldo-nav button { min-width: 0; white-space: nowrap; }
.aldo-nav button.wa { color: #E8FBEF; font-size: 10px; letter-spacing: 0; }
.aldo-nav button.wa img { display: block; width: 28px; height: 28px; }
.aldo-nav button.ayuda { color: #F3E6C4; }
@media (max-width: 360px) { .aldo-nav button { font-size: 9.5px; letter-spacing: 0; } }
.af-wa { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.af-wa[hidden] { display: none; }
.af-wa-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.af-wa-card { position: relative; width: 100%; max-width: 480px; background: #FAF7F2; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); font-family: var(--font, system-ui); color: #000; }
.af-wa-card > b { font-size: 1.05rem; } .af-wa-card > p { margin: 4px 0 12px; font-size: .85rem; color: rgba(0,0,0,.6); }
.af-wa-opt { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border: 1px solid #F1EBE0; border-radius: 14px; background: #FFFDF9; color: #000; text-decoration: none; }
.af-wa-opt img { display: block; } .af-wa-opt span { flex: 1; display: flex; flex-direction: column; } .af-wa-opt small { color: rgba(0,0,0,.6); } .af-wa-opt i { font-style: normal; font-size: 1.3rem; }
.af-wa-x { width: 100%; padding: 12px; border: 1px solid #000; border-radius: 999px; background: none; font: 700 .95rem var(--font, system-ui); cursor: pointer; }
