/* ==========================================================================
   Vitrine pública
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .hide-sm { display: none; }
@media (min-width: 720px) { .topbar .hide-sm { display: inline-flex; } }
@media (max-width: 430px) { .topbar .hide-xs { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 8px; overflow: hidden; }
.hero .wrap { display: grid; gap: 22px; align-items: end; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; gap: 40px; padding-top: 16px; padding-bottom: 12px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-text); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(34px, 7.4vw, 64px); font-weight: 900; letter-spacing: -.045em; margin: 14px 0 12px; line-height: .98; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .26em; z-index: -1;
  background: var(--brand); border-radius: 4px; transform: skewX(-12deg);
}
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.meter { position: relative; padding: 20px; border-radius: 20px; background: var(--ink); color: var(--bg); overflow: hidden; box-shadow: var(--shadow-lg); }
.meter::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.meter-num { font-size: 40px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.meter-num small { font-size: 18px; opacity: .6; font-weight: 800; }
.meter-label { font-size: 13px; opacity: .75; font-weight: 600; }
.meter-bar { margin: 14px 0 12px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
:root[data-theme="dark"] .meter { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .meter-bar { background: rgba(255,255,255,.08); }
.meter-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(.2,.8,.2,1); background-size: 34px 34px; }
.meter-fill.stripes { background: repeating-linear-gradient(-45deg, var(--brand) 0 10px, color-mix(in srgb, var(--brand) 82%, #fff) 10px 20px); animation: stripes-move 1.6s linear infinite; }
@keyframes stripes-move { to { background-position: 28px 0; } }
.meter-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 600; opacity: .9; }
.meter-foot span { display: inline-flex; align-items: center; gap: 6px; }
.meter-foot svg { width: 15px; height: 15px; }

.hero .notice { margin-top: 18px; }

/* ---------- filtros ---------- */
.filters { position: sticky; top: 64px; z-index: 40; padding: 12px 0 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.search-row { display: grid; gap: 8px; grid-template-columns: 1fr auto; }
@media (min-width: 760px) { .search-row { grid-template-columns: 1fr 200px 170px auto; } }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-box .input { padding-left: 44px; border-radius: 999px; min-height: 50px; }
.filters select.input { border-radius: 999px; min-height: 50px; }
.filters .more-filters { display: none; }
@media (min-width: 760px) { .filters .more-filters { display: block; } .filters .toggle-filters { display: none; } }
.filters.open .more-filters { display: block; grid-column: 1 / -1; }
.mode-row { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.mode-row::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2);
  transition: all .15s;
}
.chip svg { width: 17px; height: 17px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.m-venda[aria-pressed="true"] { background: var(--sale); border-color: var(--sale); color: #fff; }
.chip.m-troca[aria-pressed="true"] { background: var(--trade); border-color: var(--trade); color: #fff; }
.chip.m-doacao[aria-pressed="true"] { background: var(--donate); border-color: var(--donate); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.chips { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.result-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.result-info button { background: none; border: 0; color: var(--brand-text); font-weight: 800; cursor: pointer; }

/* ---------- carrossel capa (hero banners) ---------- */
.hb { position: relative; margin: 6px 0 4px; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 1; box-shadow: var(--shadow); }
.hb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; height: 100%; }
.hb-slide img { width: 100%; height: 100%; object-fit: cover; }
.hb-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hb-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: width .2s; }
.hb-dots button[aria-current="true"] { width: 22px; background: #fff; }
.ad-tag { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }

/* ---------- grade ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease; animation: card-in .35s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-acts { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; gap: 6px; }
.card-btn {
  width: 36px; height: 36px; border-radius: 99px; border: 0; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); transition: background .15s, transform .15s;
}
.card-btn:hover { background: var(--wa); transform: scale(1.06); }
.card-btn svg { width: 17px; height: 17px; }
.card-btn.fav:hover { background: #e11d48; }
[data-fav][aria-pressed="true"] svg { fill: currentColor; }
.card-btn.fav[aria-pressed="true"] { background: #e11d48; }
[data-fav].pop svg { animation: fav-pop .35s ease; }
@keyframes fav-pop { 40% { transform: scale(1.35); } }
.card-views { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); flex: none; }
.card-meta .card-views { overflow: visible; }
.card-views svg { width: 13px !important; height: 13px !important; }

/* 1 card por linha no celular (escolha do admin ou do visitante) */
@media (max-width: 719px) {
  .grid.one-col { grid-template-columns: minmax(0, 1fr); }
  .grid.one-col .card-body h3 { font-size: 17px; min-height: 0; }
}
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); margin-left: auto; }
.view-toggle button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.view-toggle button svg { width: 17px; height: 17px; }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (min-width: 720px) { .view-toggle { display: none; } }

/* chips extras: Salvos e Fretes */
.chip.m-fav[aria-pressed="true"] { background: #e11d48; border-color: #e11d48; color: #fff; }
.chip.m-fav svg { color: #e11d48; }
.chip.m-fav[aria-pressed="true"] svg { color: #fff; fill: #fff; }
.chip-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e11d48; color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.chip.m-fav[aria-pressed="true"] .chip-n { background: #fff; color: #e11d48; }
a.chip.m-frete { text-decoration: none; background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
a.chip.m-frete:hover { background: #1e40af; }

/* botão principal de anunciar */
.btn-cta {
  --b: var(--brand); --c: var(--brand-ink); --bd: transparent;
  font-weight: 850; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 80%, transparent), inset 0 -2px 0 rgba(0,0,0,.12);
  position: relative; overflow: hidden;
}
.btn-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: cta-shine 4s ease-in-out infinite 1.5s; }
@keyframes cta-shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-cta:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn-cta::after { animation: none; } }

/* faixas arrastáveis */
.chips, .mode-row { cursor: grab; }
.chips.dragging, .mode-row.dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
.chips.dragging .chip, .mode-row.dragging .chip { pointer-events: none; }
.chips-wrap { position: relative; }
.chips-wrap::before, .chips-wrap::after { content: ""; position: absolute; top: 8px; bottom: 2px; width: 40px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.chips-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.chips-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.chips-wrap:has(.can-left)::before, .chips-wrap:has(.can-right)::after { opacity: 1; }
.chips-arrow { display: none; }
@media (hover: hover) and (min-width: 760px) {
  .chips-arrow {
    display: grid; place-items: center; position: absolute; top: calc(50% + 3px); transform: translateY(-50%); z-index: 2;
    width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .chips-arrow svg { width: 16px; height: 16px; }
  .chips-arrow.l { left: -6px; } .chips-arrow.r { right: -6px; }
  .chips-wrap:has(.can-left) .chips-arrow.l, .chips-wrap:has(.can-right) .chips-arrow.r { opacity: 1; pointer-events: auto; }
}

/* CTA "vitrine na sua cidade" */
.city-cta { margin-top: 18px; display: grid; gap: 16px; align-items: center; padding: 22px; border-radius: 20px; background: var(--surface); border: 2px dashed color-mix(in srgb, var(--brand) 60%, var(--line)); }
@media (min-width: 800px) { .city-cta { grid-template-columns: auto 1fr auto; } }
.city-cta-art { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.city-cta-art svg { width: 34px; height: 34px; }
.city-cta h3 { font-size: 21px; margin: 8px 0 4px; }
.city-cta p { color: var(--ink-2); font-size: 14.5px; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .exp { right: 8px; }
.card-media .badge { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.card-media .badge.price { font-size: 14px; padding: 5px 11px; }
.exp { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; display: inline-flex; gap: 4px; align-items: center; backdrop-filter: blur(4px); }
.exp svg { width: 12px; height: 12px; }
.exp.soon { background: var(--danger); }
.card-body { padding: 10px 12px 12px; display: grid; gap: 5px; }
.card-body h3 { font-size: 15px; font-weight: 750; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; letter-spacing: -.01em; }
.card-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; min-width: 0; }
.card-meta svg { width: 14px; height: 14px; flex: none; }
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-trade { font-size: 12.5px; color: var(--trade); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 720px) { .card-body { padding: 12px 14px 14px; } .card-body h3 { font-size: 16px; } }

/* patrocinado: a arte ocupa o card inteiro e acompanha a altura dos vizinhos */
.card-ad { min-height: 240px; border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--ink); }
.card-ad > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-ad:hover > img { transform: scale(1.03); }
.card-ad-cta { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.grid.one-col .card-ad { min-height: 0; aspect-ratio: 3 / 4; }

.skel-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.skel-card .skel:first-child { aspect-ratio: 4/3; border-radius: 0; }

.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty > svg, .empty .empty-ic { width: 64px; height: 64px; color: var(--ink-3); margin: 0 auto 12px; display: block; }
.empty .btn svg { width: 20px; height: 20px; }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.load-more { display: flex; justify-content: center; margin: 22px 0 8px; }

/* ---------- parceiros ---------- */
.section { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; }
.section-head p { color: var(--ink-2); font-size: 14.5px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { flex: none; width: 132px; display: grid; gap: 8px; justify-items: center; text-decoration: none; text-align: center; }
.partner .logo-box { width: 132px; height: 132px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; transition: transform .2s; }
.partner:hover .logo-box { transform: translateY(-3px); }
.partner .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.partner span { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }

/* ---------- como funciona ---------- */
.steps { display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

.cta-shop { margin-top: 18px; display: grid; gap: 14px; align-items: center; padding: 22px; border-radius: 20px; background: var(--ink); color: var(--bg); }
.cta-shop h3 { font-size: 20px; }
.cta-shop p { opacity: .8; font-size: 14.5px; }
:root[data-theme="dark"] .cta-shop { background: var(--surface-2); color: var(--ink); }
@media (min-width: 800px) { .cta-shop { grid-template-columns: 1fr auto; } }

/* ---------- rodapé ---------- */
.site-foot {
  margin-top: 56px; padding: 0 0 96px; color: #cbd5e1; font-size: 14.5px; background: #0f172a; position: relative;
}
.site-foot::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--brand), var(--amber)); }
.foot-grid { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.4fr .9fr 1.1fr 1.4fr; } }
.site-foot h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.site-foot h4 svg { width: 18px; height: 18px; color: var(--brand); }
.site-foot a { color: #d9d4c7; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; color: #fff !important; }
.foot-logo .logo-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.foot-logo .logo-mark svg { width: 22px; height: 22px; }
.foot-logo .logo-mark.has-img { background: #fff; padding: 2px; }
.foot-brand p { margin-top: 12px; line-height: 1.55; color: #b9b3a5; max-width: 36ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.soc { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .15s, transform .15s; }
.soc:hover { background: var(--brand); color: var(--brand-ink) !important; transform: translateY(-2px); }
.soc svg { width: 20px; height: 20px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-col a svg { width: 16px; height: 16px; opacity: .8; }
.foot-wa { color: #fff !important; font-weight: 800 !important; font-size: 16px; }
.foot-wa svg { color: var(--wa); opacity: 1 !important; width: 18px !important; height: 18px !important; }
.foot-safe { padding: 16px 18px; border-radius: 16px; background: rgba(255,194,14,.08); border: 1px solid rgba(255,194,14,.28); }
.foot-safe ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; color: #d9d4c7; }
.foot-safe p { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 13.5px; }
.foot-safe p svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #fca5a5; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; color: #8f897c; }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.stripe-line { height: 6px; }

.footer-bar {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 60; width: min(calc(100% - 20px), 720px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toast-in .4s ease both;
}
.footer-bar img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.footer-bar a.fb-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.footer-bar .fb-text { min-width: 0; }
.footer-bar strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-bar small { display: block; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-bar .btn { flex: none; }
.footer-bar .x { flex: none; width: 34px; height: 34px; }

/* ==========================================================================
   Página do anúncio
   ========================================================================== */
.item { padding-top: 18px; padding-bottom: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs svg { width: 16px; height: 16px; }
.item-grid { display: grid; gap: 22px; }
@media (min-width: 940px) { .item-grid { grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; } .item-side { position: sticky; top: 84px; } }
.gallery { border-radius: 18px; overflow: hidden; background: var(--surface-2); position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: center; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 700; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 76px; aspect-ratio: 4/3; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin: 10px 0 6px; }
.item-price { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--sale); }
.item-price.troca { color: var(--trade); font-size: 22px; }
.item-price.doacao { color: var(--donate); font-size: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.fact { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fact small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--ink-3); }
.fact b { font-size: 14.5px; }
.desc { white-space: pre-line; color: var(--ink); font-size: 15.5px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.actions { display: grid; gap: 10px; margin: 18px 0; }
.detail-ad { display: block; margin: 6px 0 18px; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4/1; background: var(--surface-2); }
.detail-ad img { width: 100%; height: 100%; object-fit: cover; }
.safety { padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); font-size: 14px; color: var(--ink); }
.safety h3 { font-size: 15px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.safety h3 svg { width: 18px; height: 18px; }
.safety ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.report-link { margin-top: 14px; background: none; border: 0; color: var(--ink-3); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.gone { text-align: center; padding: 60px 16px; }

/* ---------- páginas de texto ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 30px var(--gutter) 40px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; }
.prose .updated { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }


/* ---------- fretes ---------- */
.fretes-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; scroll-snap-type: x mandatory; cursor: grab; }
.fretes-strip::-webkit-scrollbar { display: none; }
.fretes-strip > .card { scroll-snap-align: start; }
.fretes-strip.dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.fretes-strip.dragging .card { pointer-events: none; }
.frete .card-body { gap: 8px; }
.frete .card-body h3 { min-height: 0; }
.frete-desc { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.frete .btn-wa { margin-top: 4px; }
.frete-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #0f2a6b); color: #fff; }
.frete-ph svg { width: 64px; height: 64px; }
.fretes-page { padding-top: 18px; padding-bottom: 12px; }
.fretes-hero { display: flex; gap: 16px; align-items: center; margin: 8px 0 22px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #1d4ed8, #0f2a6b); color: #fff; }
.fretes-hero h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.02em; }
.fretes-hero p { color: #dbe6ff; margin-top: 6px; max-width: 60ch; }
.fretes-hero-ic { width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.fretes-hero-ic svg { width: 36px; height: 36px; }
@media (max-width: 719px) { .fretes-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- página do anúncio ---------- */
.item-sub-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fav-btn[aria-pressed="true"] { --b: #e11d48; --c: #fff; --bd: #e11d48; }
.fav-btn[aria-pressed="true"] span::after { content: "o"; }

/* ---------- assistente ---------- */
.chat-fab {
  position: fixed; right: 14px; bottom: 86px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); transition: transform .15s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 24px; height: 24px; color: var(--brand); }
@media (max-width: 480px) { .chat-fab span { display: none; } .chat-fab { width: 52px; padding: 0; justify-content: center; } }
.chat {
  position: fixed; z-index: 90; right: 14px; bottom: 14px; width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 28px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: toast-in .25s ease both;
}
@media (max-width: 560px) { .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; } }
.chat header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--ink); color: var(--bg); }
.chat header b { display: block; font-size: 15.5px; }
.chat header small { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 12px; }
.chat header .icon-btn { margin-left: auto; background: transparent; color: var(--bg); border-color: transparent; }
.chat-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; }
.chat-av svg { width: 22px; height: 22px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; font-weight: 600; }
.msg.typing { color: var(--ink-3); font-style: italic; }
.chat-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-sug button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chat-sug button:hover { border-color: var(--brand); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); max-height: 120px; }
.chat-form .btn { width: 48px; padding: 0; }
.chat-form .btn svg { width: 20px; height: 20px; }
.chat-human { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 13px; font-weight: 700; color: var(--wa); text-decoration: none; border-top: 1px solid var(--line); background: var(--surface); }
.chat-human svg { width: 16px; height: 16px; }

/* ---------- aviso de cookies ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14px;
}
.consent p { flex: 1 1 260px; }
.consent a { color: var(--brand); }
.consent div { display: flex; gap: 8px; }

/* ---------- parceiros: carrossel que anda sozinho e pode ser puxado ---------- */
.marquee { overflow-x: auto; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { animation: none; padding: 4px 0; }
.marquee.dragging { cursor: grabbing; user-select: none; }
.marquee.dragging .partner { pointer-events: none; }
.partner img { -webkit-user-drag: none; user-select: none; }

/* ---------- fretes: selo e convite ---------- */
.frete .ad-tag { top: auto; bottom: 8px; right: 8px; }
.frete-invite .frete-ph { display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; padding: 12px; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px); }
.frete-invite .frete-ph svg, .frete-invite .frete-ph b, .frete-invite .frete-ph small { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 4px 10px; }
.frete-invite .frete-ph svg { width: 56px; height: 56px; padding: 8px; border-radius: 14px; }
.frete-invite .frete-ph b { font-size: 20px; font-weight: 900; }
.frete-invite .frete-ph small { font-size: 12px; }
.frete-invite .card-body { display: grid; gap: 8px; }
.frete-invite:hover { transform: translateY(-2px); }

/* ---------- página "Anuncie aqui" ---------- */
.ads-hero { padding: 26px 22px; border-radius: 22px; background: var(--ink); color: var(--bg); display: grid; gap: 12px; position: relative; overflow: hidden; }
.ads-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--brand), var(--amber)); }
:root[data-theme="dark"] .ads-hero { background: var(--surface-2); color: var(--ink); }
.ads-hero h1 { font-size: clamp(28px, 5.5vw, 44px); letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; }
.ads-hero p { opacity: .85; max-width: 62ch; }
.pill-tag { justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pill-tag svg { width: 15px; height: 15px; }
.ads-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ads-guide { background: transparent; color: inherit; border-color: currentColor; }
.ads-free { font-size: 14px; margin-bottom: 8px; }
.ads-free a { color: var(--brand); font-weight: 800; }
.ads-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ad-space { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .3s; }
.ad-space.flash { box-shadow: 0 0 0 4px var(--brand), var(--shadow); }
.ad-space-body { padding: 16px; display: grid; gap: 10px; align-content: start; }
.ad-space h3 { font-size: 18px; }
.ad-space p { color: var(--ink-2); font-size: 14px; }
.ad-meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ad-meter i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.ad-space.full .ad-meter i { background: var(--danger); }
.ad-avail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.ad-avail svg { color: var(--ok); }
.ad-space.full .ad-avail svg { color: var(--danger); }
.ad-avail small { margin-left: auto; color: var(--ink-3); }
.ad-mock { height: 120px; padding: 14px 18%; background: var(--surface-2); display: grid; gap: 7px; align-content: center; }
.ad-mock i { display: flex; gap: 6px; height: 14px; border-radius: 5px; background: var(--line); }
.ad-mock i b { flex: 1; border-radius: 5px; background: var(--line); }
.ad-mock .m-row { background: none; height: 30px; }
.ad-mock .m-dots { background: none; height: 22px; }
.ad-mock .m-dots b { border-radius: 50%; flex: 0 0 22px; }
.ad-mock .m-hl, .ad-mock i.m-hl, .ad-mock b.m-hl { background: var(--brand) !important; box-shadow: 0 0 0 2px var(--brand-soft); }
.ad-mock i.m-hl:not(.m-bar) { height: 34px; }
.ad-mock .m-photo { height: 40px; }
.ad-mock .m-btn { height: 12px; width: 60%; background: var(--wa); }
.ad-mock .m-foot { height: 12px; margin-top: 6px; }

/* ---------- segurança antes de chamar no WhatsApp ---------- */
.safety-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.safety-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }
.safety-list svg { color: var(--danger); margin-top: 2px; }
.safe-skip { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.safe-skip input { width: 18px; height: 18px; }
.seller-since { font-size: 13px; color: var(--ink-3); }

/* ---------- cartão do anunciante ---------- */
[data-seller]:empty { display: none; }
[data-seller] { display: grid; gap: 6px; }
.seller { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.seller-av { width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.seller-av img { width: 100%; height: 100%; object-fit: cover; }
.seller-av svg { width: 28px; height: 28px; }
.seller-av svg.av-std { width: 100%; height: 100%; }
.seller-info { display: grid; gap: 2px; min-width: 0; }
.seller-info b { font-size: 16px; }
.seller-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.seller-tags i, .seller-tags a { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.seller-tags a { background: var(--brand-soft); color: var(--brand-text); }
.seller-tags svg { width: 14px; height: 14px; }
.seller-note { font-size: 12px; color: var(--ink-3); }

/* ---------- capa: setas e arraste ---------- */
.hb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1b1a17; box-shadow: var(--shadow); cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s; }
.hb-arrow:hover { opacity: 1; }
.hb-arrow svg { width: 20px; height: 20px; }
.hb-arrow.l { left: 10px; }
.hb-arrow.r { right: 10px; }
.hb-arrow.r svg { transform: scaleX(-1); }
@media (max-width: 600px) { .hb-arrow { width: 30px; height: 30px; } .hb-arrow svg { width: 16px; height: 16px; } }
.hb-track { cursor: grab; }
.hb-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.hb-track.dragging a { pointer-events: none; }
.hb-slide img { -webkit-user-drag: none; user-select: none; }

/* ---------- negócios realizados ---------- */
.meter-deals { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; display: grid; }
.meter-deals b { font-size: 22px; color: var(--brand); }
.meter-deals small { opacity: .7; font-size: 12px; }

/* ---------- robô: foto e sem cobrir o rodapé ---------- */
.chat-fab .bot-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-fab.has-face { padding-left: 9px; }
.chat-av:has(img) { background: none; padding: 0; overflow: hidden; border-radius: 50%; }
.chat-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.foot-bottom { padding-bottom: 84px; }
@media (min-width: 720px) { .foot-bottom .wrap { padding-right: 170px; } .foot-bottom { padding-bottom: 16px; } }
.seller-tags i.seal { background: #dcfce7; color: #166534; }
:root[data-theme="dark"] .seller-tags i.seal { background: #12351f; color: #86efac; }

/* ---------- filtro: limpar ---------- */
.chip.chip-clear { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.chip-clear svg { width: 14px; height: 14px; }

/* ---------- vídeo do anúncio ---------- */
.card-video { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 800; }
.card-video svg { width: 11px; height: 11px; fill: currentColor; }
@media (max-width: 480px) { .card-video { font-size: 0; gap: 0; padding: 5px; } }
.pill-video { background: #fee2e2; color: #991b1b; }
.pill-video svg, .seal-v svg { fill: currentColor; }
:root[data-theme="dark"] .pill-video { background: #3b1515; color: #fca5a5; }
.video-card { margin-top: 16px; display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.video-card h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.video-card h2 small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.video-card h2 svg { fill: currentColor; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #111; }
.video-frame.vert { aspect-ratio: 9/14; max-width: 320px; margin: 0 auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; font: inherit; background: radial-gradient(circle at 50% 40%, #3a3832, #111); }
.video-facade b { font-size: 17px; }
.video-facade small { opacity: .7; font-size: 12px; max-width: 260px; text-align: center; }
.video-play { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); transition: transform .15s; }
.video-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video-facade:hover .video-play { transform: scale(1.08); }
.seller-tags i.seal-v { background: #fee2e2; color: #991b1b; }
:root[data-theme="dark"] .seller-tags i.seal-v { background: #3b1515; color: #fca5a5; }

/* ---------- guia dentro do anúncio ---------- */
.guide-ad { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); }
.guide-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.guide-tx { display: grid; gap: 2px; flex: 1; min-width: 0; }
.guide-tx small { color: var(--ink-2); font-size: 13px; }
.guide-go { font-weight: 800; font-size: 13px; white-space: nowrap; padding: 8px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); }
@media (max-width: 420px) { .guide-go { display: none; } }
.item-side .guide-ad { margin: 0 0 14px; }
.item-side .detail-ad + .guide-ad { margin-top: -4px; }
.item-extra .guide-ad { margin-top: 16px; padding: 18px 20px; }
.item-extra .guide-tx b { font-size: 17px; }
.item-extra .guide-tx small { font-size: 14px; }
.guide-d { display: none !important; }
@media (min-width: 940px) { .guide-d { display: flex !important; } .guide-m { display: none !important; } }
.guide-sub { display: block; text-align: center; font-size: 12px; color: var(--ink-3); margin: -6px 0 14px; }

/* ---------- /anuncie: vagas por categoria ---------- */
.cat-avail { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: 13px; }
.cat-avail li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.cat-avail b { color: #15803d; font-size: 12px; }
.cat-avail li.full b { color: var(--ink-3); }

/* ---------- reserva: convite para anunciar ---------- */
.ad-free { display: flex; gap: 10px; align-items: center; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--brand); background: var(--brand-soft); color: var(--ink); text-decoration: none; font-size: 13px; }
.ad-free > svg { flex: none; width: 22px; height: 22px; }
.ad-free span { display: grid; gap: 2px; }
.ad-free small { color: var(--ink-2); font-size: 12px; }
.ad-free em { font-style: normal; color: var(--ink-2); font-size: 12.5px; }
.ad-free b { font-size: 14px; }
.ad-free:hover { border-style: solid; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.rules > div { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rules b { font-size: 15px; }
.rules p { margin-top: 6px; color: var(--ink-2); font-size: 14px; }

/* ---------- denúncia ---------- */
.rep-modal { max-width: 620px; }
.rep-modal h2 { display: flex; gap: 8px; align-items: center; }
.rep-body { display: grid; gap: 14px; }
.rep-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.rep-item img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; }
.rep-item div { display: grid; gap: 2px; min-width: 0; }
.rep-item small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-intro { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rep-intro svg { flex: none; color: #15803d; }
.rep-reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.rep-reasons legend { font-weight: 800; margin-bottom: 6px; }
.rep-reasons label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rep-reasons label:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.rep-reasons input { margin-top: 3px; accent-color: var(--ink); }
.rep-reasons span { display: grid; gap: 2px; }
.rep-reasons small { color: var(--ink-3); font-size: 12.5px; }
.rep-body .field em, .rep-who em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.rep-files { display: flex; gap: 8px; flex-wrap: wrap; }
.rep-file { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.rep-file img { width: 100%; height: 100%; object-fit: cover; }
.rep-file span { position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: rgba(255,255,255,.9); color: #1b1a17; padding: 1px 5px; border-radius: 5px; }
.rep-file button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rep-file button svg { width: 14px; height: 14px; }
.rep-file.add { border: 2px dashed var(--line); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; color: var(--ink-2); gap: 2px; align-content: center; }
.rep-who { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rep-who summary { cursor: pointer; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.rep-who[open] { display: grid; gap: 10px; }
.rep-who small { color: var(--ink-3); font-size: 12px; }
.rep-law { padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13px; color: #7c2d12; }
.rep-law > b { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.rep-law ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
:root[data-theme="dark"] .rep-law { background: #2a1a0e; border-color: #7c2d12; color: #fed7aa; }
.rep-agree { font-weight: 700; }
.rep-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.rep-done > svg { width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.rep-bo { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }

/* ---------- faixa "vitrine na sua cidade" e outras cidades ---------- */
.cta-shop.cta-city { background: var(--brand); color: var(--brand-ink); }
.cta-shop.cta-city p { opacity: .85; }
:root[data-theme="dark"] .cta-shop.cta-city { background: var(--brand); color: var(--brand-ink); }
.city-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; }
.city-chips b, .city-chips a { padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.12); color: inherit; text-decoration: none; font-weight: 700; }
.city-chips b { background: rgba(0,0,0,.8); color: #fff; }
.foot-cities { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-cities span { display: inline-flex; gap: 6px; align-items: center; opacity: .8; }
.foot-cities b, .foot-cities a { padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); color: inherit; text-decoration: none; }
.foot-cities b { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.admin-as { display: flex; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.admin-as > svg { flex: none; color: var(--brand-strong, #b45309); }
.admin-as p { margin: 4px 0 10px; font-size: 14px; color: var(--ink-2); }
.admin-as-row { display: grid; gap: 8px; }

/* ---------- botão de vídeo do anúncio ---------- */
.video-btn { margin-top: 12px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.video-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.video-btn .vb-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #1b1a17; }
.video-btn .vb-ic svg { width: 24px; height: 24px; }
.video-btn.vb-youtube .vb-ic { background: #ff0033; }
.video-btn.vb-instagram .vb-ic { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.video-btn.vb-facebook .vb-ic { background: #1877f2; }
.video-btn.vb-tiktok .vb-ic { background: #111; }
.video-btn.vb-kwai .vb-ic { background: #ff7a00; }
.video-btn .vb-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.video-btn .vb-txt b { font-size: 15.5px; }
.video-btn .vb-txt small { font-size: 12.5px; color: var(--ink-3); }
.video-btn .vb-play { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.video-modal { width: min(720px, calc(100vw - 24px)); }
.video-modal .video-frame { border-radius: 12px; margin: 0 16px; width: auto; }
.video-modal.vert { width: min(420px, calc(100vw - 24px)); }
.video-modal.vert .video-frame { aspect-ratio: 9 / 15; max-width: none; max-height: 70vh; }
.video-modal .modal-foot { justify-content: space-between; flex-wrap: wrap; }
.video-btn .vb-play.is-play svg, .video-modal h2 svg { fill: currentColor; }
.video-modal.vert .video-frame { margin: 0 auto; height: min(70vh, 640px); width: auto; max-width: calc(100% - 32px); }

/* ---------- coluna extra do anúncio (fretes) ---------- */
@media (min-width: 940px) {
  .item-grid > :first-child { grid-column: 1; grid-row: 1; }
  .item-grid > .item-side { grid-column: 2; grid-row: 1 / span 2; }
  .item-grid > .item-extra { grid-column: 1; grid-row: 2; }
}
.fr-box { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 16px; display: grid; gap: 10px; }
.fr-head { display: flex; gap: 12px; align-items: center; }
.fr-head h2 { font-size: 17px; margin: 0; }
.fr-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.fr-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1d4ed8; color: #fff; }
.fr-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.fr-row img, .fr-ph { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); }
.fr-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fr-tx b { font-size: 15px; }
.fr-tx small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-tx .fr-open { color: #15803d; display: flex; gap: 4px; align-items: center; }
.fr-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.fr-foot a { color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.frete-hours.open { color: #15803d; }
.fr-tx .fr-off { color: var(--danger); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.frete-hours.closed { color: var(--danger); }
.frete-hours.closed b { color: var(--danger); }
.fr-ask { display: grid; gap: 14px; }
.fr-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.fr-item img, .fr-item .fr-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--bg); }
.fr-item div { display: grid; gap: 2px; min-width: 0; }
.fr-item small { color: var(--ink-3); font-size: 13px; }
.fr-closed, .fr-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.fr-closed { background: var(--brand-soft); color: var(--ink); }
.fr-tip { background: var(--surface-2); color: var(--ink-2); }
.fr-closed svg, .fr-tip svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.fr-ctx { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--brand); background: var(--brand-soft); }
.fr-ctx[hidden] { display: none; }
.fr-ctx img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.fr-ctx > div:first-of-type { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.fr-ctx small { color: var(--ink-2); font-size: 13px; }
.fr-ctx-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 940px) { .item-grid { grid-template-rows: auto 1fr; } .item-grid > .item-extra { align-self: start; } }
@media (max-width: 600px) { .fr-tx small { white-space: normal; } .fr-row { align-items: flex-start; } .fr-row .btn { align-self: center; } }

/* Foto de capa atrás do topo (configurada no admin) */
.hero.has-img { background: var(--hero-img) center / cover no-repeat; padding-bottom: 28px; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 45%, color-mix(in srgb, var(--bg) 25%, transparent) 100%); pointer-events: none; }
.hero.has-img > .wrap { position: relative; isolation: isolate; }
.hero.has-img .notice { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); }
@media (max-width: 899px) {
  .hero.has-img::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 38%, var(--bg) 100%); }
}
