/* =========================================
   PREÇOAÍ — HOME
   Motoya Studios | Versão Beta
========================================= */

:root {
  --vermelho: #F20D18;
  --vermelho-hover: #D80B15;
  --amarelo: #FFD21C;
  --creme: #FFFBEF;
  --grafite: #292929;
  --cinza: #F4F4F4;
  --branco: #FFFFFF;

  --borda: #E5E5E5;
  --texto2: #777777;
  --ph: #E5E5E5;
  --ph-borda: #C5C5C5;

  --sombra: 0 3px 12px rgba(0, 0, 0, .05);
  --sombra-card: 0 5px 16px rgba(0, 0, 0, .07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Tira o retângulo azul/cinza que o navegador do celular desenha ao tocar */
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;
  background: #EEEEEE;
  color: var(--grafite);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

/* Comportamento de aplicativo: toque limpo, sem seleção azul nem menu de pressionar e segurar */
button,
a,
summary,
label,
select,
[role="button"] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation; /* sem atraso de 300 ms e sem zoom por toque duplo */
}

img,
svg {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Campos de texto continuam selecionáveis */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* O contorno de foco só aparece para quem usa teclado, não ao tocar */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--grafite);
  outline-offset: 3px;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 18px 18px 110px;
  background: var(--cinza);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
}

/* PLACEHOLDERS */

.ph {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ph);
  border: 1px solid var(--ph-borda);
  flex-shrink: 0;
}

.ph.sm {
  width: 22px;
  height: 22px;
}

.ph.big {
  width: 60px;
  height: 60px;
}

.img {
  position: relative;
  background:
    linear-gradient(to top right, transparent calc(50% - .7px), #BDBDBD 50%, transparent calc(50% + .7px)),
    linear-gradient(to top left, transparent calc(50% - .7px), #BDBDBD 50%, transparent calc(50% + .7px)),
    #EEEEEE;
  border: 1px solid var(--borda);
  border-radius: 12px;
  overflow: hidden;
}

/* BOTÕES */

.btn-sq,
.btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--branco);
  border: 1px solid var(--borda);
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .2s;
}

.btn-sq {
  border-radius: 12px;
}

.btn-circle {
  border-radius: 50%;
}

.btn-sq:hover,
.btn-circle:hover {
  background: var(--creme);
  border-color: var(--grafite);
}

.btn-sq svg {
  width: 23px;
  height: 23px;
}

.btn-amarelo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--amarelo);
  color: var(--grafite);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 11px;
  transition: .2s ease;
}

.btn-amarelo:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.btn-add {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--vermelho);
  color: white;
  font-size: 24px;
  font-weight: 400;
  transition: .2s ease;
  flex-shrink: 0;
}

.btn-add:hover {
  background: var(--vermelho-hover);
  transform: scale(1.04);
}

.btn-add.on {
  background: var(--grafite);
}

/* CABEÇALHO */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
    width: 122px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* LOCALIZAÇÃO */

.pill {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 999px;
  font-size: 14px;
  text-align: left;
  transition: border-color .2s;
}

.pill:hover {
  border-color: #AAAAAA;
}

.location {
  margin-top: 20px;
}

.location strong {
  font-weight: 800;
}

/* BUSCA */

.search {
  margin-top: 20px;
  height: 52px;
  background: var(--branco);
  cursor: text;
  box-shadow: var(--sombra);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--grafite);
}

.search input::placeholder {
  color: var(--texto2);
}

.search:focus-within {
  border-color: var(--vermelho);
  outline: 2px solid rgba(242, 13, 24, .12);
  outline-offset: 1px;
}

/* BANNER */

.banner {
  position: relative;
  margin-top: 22px;
  height: 193px;
  border-radius: 22px;
  background: var(--vermelho);
  color: white;
  overflow: hidden;
  box-shadow: var(--sombra-card);
}

.track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 21px 0;
}

.slide-text {
  max-width: 210px;
}

.slide h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.4px;
  margin-bottom: 7px;
}

.slide p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.slide-circle {
  width: 96px;
  height: 96px;
  margin-top: 35px;
  border-radius: 50%;
  background: var(--amarelo);
  flex-shrink: 0;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
  transition: width .2s, background .2s;
  padding: 0;
}

.dot.active {
  width: 22px;
  background: var(--amarelo);
}

/* SEÇÕES */

.section {
  margin-top: 30px;
}

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sub {
  font-size: 13px;
  color: var(--texto2);
  margin-top: 4px;
}

.ver-todas {
  font-size: 13px;
  font-weight: 800;
  color: var(--vermelho);
  text-decoration: none;
  white-space: nowrap;
}

.ver-todas:hover {
  text-decoration: underline;
}

.meta {
  font-size: 13px;
  color: var(--texto2);
  margin-top: 4px;
}

.price {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.3px;
  color: var(--vermelho);
}

/* CATEGORIAS */

.cats {
  display: flex;
  gap: 16px;
  margin: 0 -18px;
  padding: 3px 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 17px;
  background: var(--branco);
  border: 1px solid var(--borda);
  transition: .2s ease;
}

.cat-icon::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ph);
  border: 1px solid var(--ph-borda);
}

.cat.active {
  font-weight: 800;
}

.cat.active .cat-icon {
  background: var(--vermelho);
  border-color: var(--vermelho);
}

.cat.active .cat-icon::after {
  width: 9px;
  height: 9px;
  background: var(--creme);
  border: 0;
}

/* CESTA RÁPIDA */

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.card {
  padding: 10px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 16px;
  box-shadow: var(--sombra);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-card);
}

.card .img {
  height: 123px;
  margin-bottom: 12px;
}

.card .meta {
  margin-bottom: 12px;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: var(--amarelo);
  color: var(--grafite);
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* MAIS BUSCADOS */

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  margin-top: 12px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 16px;
  box-shadow: var(--sombra);
}

.row .img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  flex-shrink: 0;
}

.row-info {
  flex: 1;
  min-width: 0;
}

.row-info .meta {
  margin-bottom: 6px;
}

.row-info .price {
  font-size: 16px;
}

/* NAVEGAÇÃO INFERIOR */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  padding: 11px 4px 16px;
  background: var(--creme);
  border-top: 1px solid var(--borda);
  z-index: 10;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--texto2);
  white-space: nowrap;
}

.nav-item .ph {
  width: 27px;
  height: 27px;
}

.nav-item.active {
  font-weight: 800;
  color: var(--vermelho);
}

.nav-item.active .ph {
  background: var(--vermelho);
  border-color: var(--vermelho);
}

.badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vermelho);
  color: white;
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
}

.badge:empty {
  display: none;
}

/* MENU LATERAL */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(41, 41, 41, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: max(0px, calc(50% - 215px));
    width: min(82%, 340px);
    display: flex;
    flex-direction: column;
    background: var(--branco);
    z-index: 30;
    transform: translateX(-105%);
    transition: transform .12s ease-out;
    visibility: hidden;
    box-shadow: 8px 0 30px rgba(0, 0, 0, .12);
}
.drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--borda);
  background: var(--creme);
}

.drawer-user {
  flex: 1;
  min-width: 0;
}

.drawer-user strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.drawer-user span {
  font-size: 13px;
  color: var(--texto2);
}

.drawer-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 9px 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 53px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.drawer-nav a::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ph);
  border: 1px solid var(--ph-borda);
  flex-shrink: 0;
}

.drawer-nav a:hover {
  background: var(--creme);
  color: var(--vermelho);
}

.drawer-nav hr {
  border: 0;
  border-top: 1px solid var(--borda);
  margin: 8px 18px;
}

/* RODAPÉ DO MENU */

.drawer-foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--borda);
}

.btn-out {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    background: var(--creme);
    border: 1px solid var(--borda);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    transition: background .1s, border-color .1s;
}

.btn-out:hover {
  border-color: var(--grafite);
  background: var(--cinza);
}

.drawer-credit {
  text-align: center;
  padding: 12px 10px 17px;
  font-size: 11px;
  color: #888;
  border-top: 1px solid var(--borda);
  background: var(--branco);
}

.drawer-credit strong {
  color: var(--grafite);
  font-weight: 800;
}

.drawer-credit span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
}

/* AVISOS */

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translate(-50%, 12px);
  padding: 11px 16px;
  background: var(--grafite);
  color: white;
  font-size: 13px;
  border-radius: 11px;
  box-shadow: var(--sombra-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 40;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TELAS PEQUENAS */

@media (max-width: 360px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cats {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .card {
    padding: 8px;
  }

  .card .img {
    height: 105px;
  }

  .price {
    font-size: 16px;
  }

  .slide h1 {
    font-size: 20px;
  }
}

/* MOVIMENTAÇÃO REDUZIDA */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===== AJUSTES: estados do banco, categorias do JSON e logo ===== */
.estado { grid-column: 1 / -1; padding: 18px 8px; text-align: center; font-size: 14px; color: var(--texto2); line-height: 1.5; }
.estado .btn-amarelo { margin-top: 10px; }
.cat { width: 76px; text-align: center; line-height: 1.2; }
.cat-icon { flex-shrink: 0; }
.logo-texto { font-size: 20px; font-weight: 900; color: var(--vermelho); letter-spacing: -.5px; }


/* Localização e busca por proximidade */
.location { cursor: pointer; }
.location:disabled { opacity: .65; cursor: wait; }
.location #location-label { line-height: 1.35; }

/* ajustes: elementos escondidos e lista "Mais buscados" */
[hidden] { display: none !important; }
.estado .btn-amarelo { border: 0; cursor: pointer; }

/* seletor de bairro */
.bairro select { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; outline: none; }

/* marca/descrição da nota nos cards e página do produto */
.marca { margin: -6px 0 6px; font-size: 12px; line-height: 1.3; color: var(--grafite); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-info .marca { margin: 0 0 4px; }
.voltar { display: inline-block; margin: 14px 0 4px; color: var(--vermelho, #F20D18); font-weight: 700; text-decoration: none; }
.sem-tamanho { opacity: .85; }
.aviso-tam { font-size: 12px; color: var(--texto2); margin: 2px 0 10px; }

/* =========================================
   REDESIGN — ícones conectados (fiel ao wireframe)
========================================= */
.i { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; background: currentColor;
  -webkit-mask-image: var(--ic); mask-image: var(--ic);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.i-ajuda { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1.1 16h-2.2v-2.2h2.2zm1.6-6.1c-.9.9-1.5 1.3-1.5 2.4h-2.2c0-1.8.9-2.6 1.7-3.4.6-.6 1-.9 1-1.5 0-.8-.6-1.3-1.5-1.3s-1.5.5-1.6 1.4H8.3C8.5 7.5 10 6.2 12 6.2c2 0 3.6 1.1 3.6 2.9 0 1.2-.5 1.9-.9 2.8z'/></svg>"); }
.i-config { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19.4 13a7.6 7.6 0 000-2l2.1-1.6-2-3.5-2.5 1a7.6 7.6 0 00-1.7-1L15 3h-4l-.4 2.9a7.6 7.6 0 00-1.7 1l-2.5-1-2 3.5L6.6 11a7.6 7.6 0 000 2l-2.1 1.6 2 3.5 2.5-1c.5.4 1.1.7 1.7 1L11 21h4l.4-2.9c.6-.3 1.2-.6 1.7-1l2.5 1 2-3.5zM13 15.5a3.5 3.5 0 110-7 3.5 3.5 0 010 7z'/></svg>"); }
.i-lua { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 14.5A9 9 0 119.5 3a7 7 0 0011.5 11.5z'/></svg>"); }

.logo-texto { font-size: 24px; font-weight: 900; letter-spacing: -.8px; color: var(--vermelho); }
.logo-texto span { color: var(--grafite); background: var(--amarelo); border-radius: 6px; padding: 0 4px; margin-left: 2px; }

.btn-sq .i { width: 22px; height: 22px; }
.pill .i { width: 22px; height: 22px; color: var(--vermelho); }
.search .i { color: var(--grafite); }
.slide-circle { display: flex; align-items: center; justify-content: center; color: var(--grafite); }
.slide-circle .i { width: 52px; height: 52px; }

.cat-icon { color: var(--grafite); }
.cat-icon::after { display: none; }
.cat-icon .i { width: 32px; height: 32px; }
.cat.active .cat-icon { color: var(--branco); }
.cat:hover .cat-icon { border-color: var(--vermelho); }

.img { display: flex; align-items: center; justify-content: center; background: var(--creme); color: var(--vermelho); }
.img .i { width: 56px; height: 56px; opacity: .9; }
.row .img .i { width: 40px; height: 40px; }
.card .img .tag { top: 8px; left: 8px; }

.nav-item .ico { position: relative; display: block; width: 26px; height: 26px; }
.nav-item .i { width: 26px; height: 26px; }
.nav-item.active .i { color: var(--vermelho); }

.avatar { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--branco); border: 2px solid var(--vermelho); color: var(--grafite); flex-shrink: 0; }
.avatar .i { width: 30px; height: 30px; }
.drawer-nav a::before { content: none; }
.drawer-nav a .i { width: 26px; height: 26px; color: var(--vermelho); }
.btn-out .i { width: 20px; height: 20px; }
.btn-out[data-soon]:last-child { background: var(--vermelho); border-color: var(--vermelho); color: var(--branco); }

/* ---------- Tela do produto ---------- */
.app-produto { padding-bottom: 120px; }
.prod-head h1 { flex: 1; min-width: 0; text-align: center; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.btn-sq { text-decoration: none; color: inherit; }
.btn-sq.on { background: var(--creme); border-color: var(--vermelho); color: var(--vermelho); }
.hero { height: 190px; margin-top: 18px; border-radius: 18px; }
.hero .i { width: 92px; height: 92px; }
.prod-nome { margin-top: 20px; font-size: 22px; }
.best { margin-top: 16px; padding: 18px; background: var(--branco); border: 1px solid var(--borda); border-radius: 18px; box-shadow: var(--sombra); }
.best .tag { position: static; display: inline-block; }
.best .big { display: block; margin: 10px 0 6px; font-size: 32px; font-weight: 900; letter-spacing: -.8px; color: var(--vermelho); }
.btn-filtro { min-height: 40px; padding: 0 16px; background: var(--branco); border: 1px solid var(--borda); border-radius: 11px; font-weight: 700; font-size: 14px; }
.btn-filtro:hover { border-color: var(--grafite); }
.cmp { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 10px; background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; }
.cmp.first { border: 2px solid var(--vermelho); }
.cmp-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--creme); color: var(--vermelho); flex-shrink: 0; }
.cmp-info { flex: 1; min-width: 0; }
.cmp-info .meta { margin-top: 2px; }
.cmp .price { font-size: 17px; white-space: nowrap; }
.chart { padding: 12px; background: var(--branco); border: 1px solid var(--borda); border-radius: 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .estado { padding: 10px 4px; }
.action-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; display: flex; gap: 10px;
  padding: 12px 18px 18px; background: var(--creme); border-top: 1px solid var(--borda); z-index: 10; }
.action-bar > * { min-height: 48px; font-size: 15px; font-weight: 800; border-radius: 12px; }
.btn-vermelho { flex: 1.2; background: var(--vermelho); color: var(--branco); transition: background .2s; }
.btn-vermelho:hover { background: var(--vermelho-hover); }
.btn-vermelho.on { background: var(--grafite); }
.action-bar .btn-out { text-decoration: none; color: inherit; }

/* Como chegar (link para o Google Maps) e botão de localização com texto longo */
.cmp-info .rota { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--vermelho); text-decoration: none; }
.cmp-info .rota:hover, .cmp-info .rota:focus-visible { text-decoration: underline; }
.btn-filtro { white-space: nowrap; }
.location { min-height: 48px; height: auto; padding-top: 10px; padding-bottom: 10px; }

/* ===== Card: nome + marca em cima, tamanho embaixo ===== */
.card-titulo { margin: 0 0 3px; font-size: 15px; line-height: 1.25; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-tamanho { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--texto2); }
.card .meta { margin-top: 0; }
.row-info .card-titulo { margin-bottom: 2px; }
.row-info .card-tamanho { margin-bottom: 4px; }
.card .btn-add + *, .card .price { min-width: 0; }

/* ===== Anúncios (300x100 e 970x90) ===== */
.anuncio { grid-column: 1 / -1; width: 100%; max-width: calc(var(--aw) * 1px); margin: 4px auto; aspect-ratio: var(--aw) / var(--ah);
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: var(--branco); border: 1px dashed var(--ph-borda); }
.anuncio a, .anuncio img { display: block; width: 100%; height: 100%; object-fit: cover; }
.anuncio-vazio { font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--texto2); text-transform: uppercase; }
.anuncio-970x90 .anuncio-vazio { font-size: 10px; }
.filtro-anuncios { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.filtro-anuncios span { margin-right: 2px; font-size: 13px; font-weight: 700; color: var(--texto2); }
.filtro-anuncios button { min-height: 34px; padding: 0 12px; background: var(--branco); border: 1px solid var(--borda); border-radius: 999px; font-size: 13px; font-weight: 700; }
.filtro-anuncios button.on { background: var(--grafite); border-color: var(--grafite); color: var(--branco); }
.filtro-anuncios button:hover { border-color: var(--grafite); }
.chip-local { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; background: var(--creme); border: 1px solid var(--borda); border-radius: 999px; font-size: 13px; font-weight: 700; }

/* ===== Página de Busca ===== */
.app-busca { padding-bottom: 110px; }
.busca-caixa { position: relative; }
.busca-caixa .search { margin-top: 18px; }
.sugestoes { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px;
  background: var(--branco); border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra-card); max-height: 60vh; overflow-y: auto; }
.sugestao { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.sugestao:hover, .sugestao.ativa { background: var(--creme); }
.sug-texto { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sug-tipo { flex-shrink: 0; padding: 3px 8px; background: var(--cinza); border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--texto2); text-transform: uppercase; letter-spacing: .3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { min-height: 38px; padding: 0 14px; background: var(--branco); border: 1px solid var(--borda); border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--grafite); }
.card .price { font-size: 17px; white-space: nowrap; }
.card.esqueleto { height: 250px; background: linear-gradient(90deg, #ececec 25%, #f6f6f6 50%, #ececec 75%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; box-shadow: none; }
@keyframes brilho { to { background-position: -200% 0; } }
