/* Layout: cabeçalho amarelo fixo (estilo marketplace) → stories de lojas → vitrine em grade → barra flutuante inferior (estilo app). */
:root {
  --sun: #FFE600;          /* amarelo principal da marca */
  --sun-soft: #FFF27A;     /* amarelo claro (tom suave do principal) */
  --navy: #001A53;         /* azul-marinho da logomarca */
  --navy-2: #0B2A73;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F6F7FB;
  --ink: #1E2638;
  --muted: #5B6480;
  --line: #E2E5EE;
  --ok: #00A650;
  --danger: #D93025;
  --accent-ink: #001A53;
  --header-bg: var(--sun);
  --header-fg: var(--navy);
  --bar-bg: rgba(255, 255, 255, .92);
  --shadow: 0 10px 30px rgba(0, 26, 83, .10), 0 2px 6px rgba(0, 26, 83, .06);
  /* contorno dos stories: degradê com as cores da plataforma — amarelo no alto, azul-marinho à direita, azul claro embaixo e à esquerda (em teste) */
  --ring-new: conic-gradient(#FFE600 0deg, #001A53 100deg, #00FFFF 175deg, #00FFFF 275deg, #FFE600 360deg);
  --ring-seen: #D5D9E2;  /* story já visto: contorno cinza claro */

  --font-display: "Outfit", "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* rolagem sem barra visível (como no app) */
html, .sheet { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .sheet::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--font-body);
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header-bg); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; border-radius: 6px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); color: var(--header-fg); box-shadow: 0 1px 0 rgba(0, 26, 83, .08); }
.header-row { display: flex; align-items: center; gap: 10px; padding-block: 10px 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #FFFFFF; background: var(--sun-soft); display: grid; place-items: center; flex: none; padding: 0; overflow: hidden; color: var(--navy); font: 700 15px var(--font-display); }
.avatar svg { width: 20px; height: 26px; fill: var(--navy); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-word { display: none; height: 30px; width: 137px; fill: var(--navy); flex: none; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #FFFFFF; color: #3A4466; border-radius: 999px; padding: 0 12px; height: 36px; box-shadow: 0 1px 3px rgba(0, 26, 83, .15); }
.search .icon { width: 17px; height: 17px; color: #6B7491; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #0E1630; font-size: 14px; line-height: 20px; height: 20px; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-decoration { -webkit-appearance: none; }
.search input::placeholder { color: #7C849E; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(0, 26, 83, .35); }
.h-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.h-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); }
.h-btn:hover { background: rgba(0, 26, 83, .08); }
.dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 800 10px/17px var(--font-body); text-align: center; border: 2px solid var(--header-bg); box-sizing: content-box; }
.h-btn .dot { top: 3px; right: 1px; min-width: 12px; height: 14px; padding: 0 3px; font-size: 9px; line-height: 14px; border-width: 1.5px; }
.login-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--navy); font: 700 14px var(--font-display); margin-left: 4px; box-shadow: 0 1px 3px rgba(0, 26, 83, .15); }
.login-btn .icon { width: 20px; height: 20px; }

/* Cabeçalho compacto ao rolar: foto + stories em loop + lupa */
.full-part { display: contents; }
.mini-part { display: none; flex: 1; min-width: 0; align-items: center; gap: 6px; }
.header.compact .full-part, .header.compact .cats { display: none; }
.header.compact .mini-part { display: flex; }
.mini-stories { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.mini-track { display: flex; gap: 10px; padding: 0 10px; will-change: transform; }
.mini-story { flex: none; width: 42px; height: 42px; border-radius: 50%; padding: 2px; border: 0; background: var(--ring-new); }
.mini-story span { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--header-bg); display: block; overflow: hidden; background: #FFFFFF; }
.header.compact .header-row { padding-block: 8px; }

/* Categorias (só as que possuem produtos) */
.cats { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-block: 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; position: relative; height: 30px; padding: 0 2px; margin-right: 10px; border: 0; background: none; color: var(--navy); opacity: .72; font: 400 14px var(--font-display); white-space: nowrap; }
.chip:hover { opacity: 1; }
.chip[aria-pressed="true"] { opacity: 1; }
.chip[aria-pressed="true"]::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--navy); }

/* ---------- Stories ---------- */
.section { padding-block: 18px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-stories { padding-top: 8px; }
.section-stories .sec-head { margin-bottom: 6px; }
.sec-head h2 { margin: 0; font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.sec-head a, .link { color: var(--accent-ink); font-weight: 700; font-size: 13px; text-decoration: none; background: none; border: 0; padding: 0; }
.stories { overflow: hidden; padding-bottom: 6px; margin-inline: -16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.stories, .mini-stories { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.stories.dragging, .mini-stories.dragging { cursor: grabbing; }
.stories img, .stories button, .mini-stories button { -webkit-user-drag: none; }
.stories-track { display: flex; gap: 14px; padding-inline: 16px; will-change: transform; }
.story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--ink); }
.story-ring { width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: var(--ring-new); }
.story.seen .story-ring, .mini-story.seen { background: var(--ring-seen); }
.story-img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); display: block; overflow: hidden; background: #FFFFFF; }
.story-img img, .mini-story img, .sv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; pointer-events: none; }
.story-name { font-size: 12px; line-height: 1.2; max-width: 76px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Banner ---------- */
/* Banners: 3 slides, 5 s cada, em loop */
.banners { position: relative; }
.banners { overflow: hidden; border-radius: var(--r-lg); }
.banner-track { display: flex; will-change: transform; touch-action: pan-y; }
.banner-track > .hero { flex: 0 0 100%; min-width: 0; }
.banner-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--line); transition: width .3s, background .3s; }
.banner-dots button[aria-selected="true"] { width: 22px; background: var(--navy); }
.hero.hero-sun { background: var(--sun-soft); border-color: transparent; }
.hero.hero-sky { background: #E9F0FF; border-color: transparent; }
.hero.hero-sun::after, .hero.hero-sky::after { background: #FFFFFF; opacity: .55; }
.hero-ico { width: 84px; height: 84px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.btn.btn-navy-line { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 22px 20px; min-height: 160px; }
.hero::after { content: ""; position: absolute; right: -70px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: var(--sun-soft); opacity: .45; }
.hero .hero-title { margin: 0 0 6px; font: 600 clamp(22px, 5vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; color: var(--navy); }
.hero p { margin: 0 0 14px; color: var(--muted); max-width: 40ch; }
.hero .pin { width: 84px; height: 110px; fill: var(--navy); position: relative; z-index: 1; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: 700 15px var(--font-display); }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-navy { background: var(--sun); color: var(--navy); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Atalhos */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.perk { background: var(--surface); border-radius: var(--r-md); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.perk .icon { color: var(--accent-ink); width: 26px; height: 26px; }
/* Cores só nos ícones dos destaques: verde (frete, igual ao "Frete grátis" dos produtos), azul-marinho da marca
   (segurança), azul-petróleo puxando para o azul claro da marca (parcelamento) e dourado, tom fechado do amarelo (lojas) */
.perk-ship .icon { color: #00A650; }
.perk-safe .icon { color: #001A53; }
.perk-inst .icon { color: #0891B2; }
.perk-cnpj .icon { color: #C99700; }

/* ---------- Produtos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { position: relative; background: var(--surface); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-img { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; font-size: 64px; }
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #3A4466; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.fav .icon { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: var(--danger); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.card-title { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.old { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { font: 400 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.price sup { font-size: 12px; }
.off { color: var(--ok); font-weight: 700; font-size: 13px; }
.inst { font-size: 12px; color: var(--ok); }
.inst-juros { font-size: 12px; color: var(--muted); }
.ship { font-size: 12px; font-weight: 700; color: var(--ok); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.buy-now { display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 34px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: var(--navy); color: #FFFFFF; font: 600 12px var(--font-display); white-space: nowrap; }
.buy-now .icon { width: 15px; height: 15px; fill: var(--sun); stroke: var(--sun); flex: none; }
.buy-now:hover { filter: brightness(1.2); }
/* No celular o botão mostra só "Comprar"; em telas maiores, "Comprar agora" */
.buy-now .bn-long { display: none; }
@media (min-width: 600px) { .buy-now .bn-long { display: inline; } .buy-now .bn-short { display: none; } }
.add-cart { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); display: grid; place-items: center; padding: 0; }
.add-cart .icon { width: 20px; height: 20px; }
.add-cart:hover { border-color: var(--sun); background: var(--sun-soft); }
.add-cart.added { background: var(--sun); border-color: var(--sun); }
.add-cart .qty { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: #FFFFFF; font: 800 10px/17px var(--font-body); text-align: center; }
.feed-end { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 22px 8px; color: var(--muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); background: var(--surface); border-radius: var(--r-md); }

/* Lojas */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.store-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; text-align: left; color: var(--ink); width: 100%; }
.store-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: none; }
.store-card b { display: block; font-family: var(--font-display); }
.store-card span { font-size: 12px; color: var(--muted); }

/* Faixa vender */
.sell { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sun-soft); color: var(--navy); border-radius: var(--r-lg); padding: 18px 20px; }
.sell h3 { margin: 0 0 4px; font: 800 20px var(--font-display); }
.sell p { margin: 0; font-size: 14px; max-width: 46ch; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding-block: 28px 8px; }
.footer svg { height: 22px; width: 100px; fill: currentColor; opacity: .7; display: block; margin: 0 auto 8px; }

/* ---------- Barra inferior flutuante ---------- */
.tabbar { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(460px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bar-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 2px 6px; }
.tab { position: relative; display: grid; place-items: center; height: 38px; padding: 0; border: 0; background: none; color: var(--muted); border-radius: 24px; }
.tab .icon { width: 26px; height: 26px; }
.tab { transition: background-color .15s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .tab:hover { background: rgba(30, 38, 56, .07); } }
.tab:active { background: rgba(30, 38, 56, .10); }
.tab[aria-current="page"] { color: var(--navy); }
.tab[aria-current="page"] .icon { stroke-width: 2.6; }
.tab[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--sun); }
.tab .dot { top: 0; right: calc(50% - 22px); border-color: var(--surface); }
.tab-login { color: var(--accent-ink); }

/* ---------- Painéis (bottom sheets) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0, 10, 35, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font: 700 20px var(--font-display); }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.x .icon { width: 20px; height: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 700; }
.field input { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 14px; color: var(--ink); }
.field input:focus { outline: 0; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(11, 42, 115, .18); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--danger); font-weight: 600; }
.social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px; font: 700 15px var(--font-display); width: 100%; }
.social-google { background: #FFFFFF; color: #1F1F1F; border: 1.5px solid #DADCE0; }
.social-apple { background: #000000; color: #FFFFFF; border: 1.5px solid #000000; }
.social svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.center { text-align: center; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code input { height: 54px; text-align: center; font: 700 22px var(--font-display); border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; min-width: 0; }
.code input:focus { outline: 0; border-color: var(--navy-2); }
.demo-note { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.demo-note b { color: var(--ink); letter-spacing: .15em; }
.list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; width: 100%; text-align: left; color: var(--ink); }
.row.sel { border-color: var(--navy-2); }
.row .icon { color: var(--muted); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 14px; }
.row-main span { display: block; font-size: 12px; color: var(--muted); }
.row-thumb { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; flex: none; }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; font: 700 18px var(--font-display); padding-block: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); border: 0; color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.cat-tile i { font-style: normal; font-size: 26px; }
.cat-tile small { color: var(--muted); font-weight: 600; }
.toast { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; animation: up .2s ease; }

/* ---------- Visualizador de stories ---------- */
.sv { position: fixed; inset: 0; z-index: 90; background: #000000; display: flex; justify-content: center; align-items: center; }
.sv-frame { position: relative; width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; gap: 12px; color: #FFFFFF; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)); user-select: none; -webkit-user-select: none; touch-action: none; overflow: hidden; }
@media (min-width: 600px) { .sv-frame { height: min(100%, 860px); border-radius: 16px; } }
.sv-bars { display: flex; gap: 3px; }
.sv-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.sv-bars i { display: block; height: 100%; width: 0; background: #FFFFFF; }
.sv-head { display: flex; align-items: center; gap: 10px; }
.sv-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1.5px solid #FFFFFF; flex: none; background: #FFFFFF; }
.sv-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sv-who b { font: 700 14px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-who small { font-size: 13px; opacity: .75; }
.sv-x { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; display: grid; place-items: center; }
.sv-x .icon { width: 26px; height: 26px; }
.sv-content { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.sv-caption h3 { margin: 0 0 2px; font: 800 26px/1.1 var(--font-display); text-wrap: balance; text-shadow: 0 1px 8px rgba(0, 0, 0, .2); }
.sv-caption p { margin: 0; font-size: 15px; opacity: .92; }
.sv-prod { background: #FFFFFF; color: #1E2638; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; min-height: 0; }
.sv-prod-img { flex: 1 1 auto; min-height: 120px; max-height: 38vh; aspect-ratio: 1.25; max-width: 100%; display: grid; place-items: center; font-size: clamp(64px, 18vh, 120px); }
.sv-prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.sv-prod-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-mini { background: #FFFFFF; color: #1E2638; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.sv-mini-img { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; font-size: 54px; }
.sv-mini-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sv-mini-title { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.sv-mini .price { font-size: 18px; }
.sv-mini .off { font-size: 11px; }
.sv-actions { display: flex; gap: 8px; }
.sv-actions .btn { height: 46px; }
.sv-actions .btn-sun { flex: 1; }
.sv-cart-btn { flex: 1; background: #FFFFFF; color: #001A53; }
.sv-cart-btn .icon { width: 20px; height: 20px; }
.sv-cart-btn.done { background: #FFF27A; }
.sv-actions.small { margin-top: 8px; gap: 6px; }
.sv-actions.small .btn { height: 34px; font-size: 12px; padding: 0 8px; }
.sv-actions.small .sv-cart-btn { flex: none; width: 34px; padding: 0; border: 1.5px solid #E2E5EE; }
.sv-store-btn { width: 100%; background: rgba(255, 255, 255, .18); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .5); }
.sv-foot { flex: none; }

/* ---------- Carrinho agrupado ---------- */
.cart-group { margin-bottom: 14px; }
.cart-store { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cart-store b { flex: 1; font-family: var(--font-display); }
.co-logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--line); background: #FFFFFF; }
.co-logo img { width: 100%; height: 100%; display: block; }

/* ---------- Checkout ---------- */
body.co-open { overflow: hidden; }
body.co-open .tabbar { display: none; }
.co { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; animation: fade .15s ease; }
.co-head { flex: none; background: var(--header-bg); color: var(--navy); padding-top: env(safe-area-inset-top, 0px); }
.co-head-in, .co-body, .co-bar-in { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.co-head-in { display: flex; align-items: center; gap: 6px; height: 56px; }
.co-head h1 { margin: 0; font: 700 18px var(--font-display); }
.co-back { width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); display: grid; place-items: center; }
.co-back:hover { background: rgba(0, 26, 83, .08); }
.co-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; }
.co-scroll::-webkit-scrollbar { display: none; }
.co-body { padding-block: 8px 24px; display: flex; flex-direction: column; gap: 4px; }
.co-sec { padding-block: 12px 4px; display: flex; flex-direction: column; gap: 10px; }
.co-sec-head { display: flex; align-items: baseline; justify-content: space-between; }
.co-sec-head h2 { margin: 0; font: 700 17px var(--font-display); }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.co-addr { display: flex; gap: 12px; align-items: flex-start; }
.co-addr .icon, .co-ship .icon, .co-note .icon, .co-gateway .icon { color: var(--navy); width: 20px; height: 20px; flex: none; margin-top: 1px; }
.row-main b { font-weight: 700; }
.co-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft); color: var(--navy); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.co-store { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.co-store-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.co-store-head .co-logo { width: 38px; height: 38px; }
.co-store-head .row-main span, .co-ship .row-main span { display: block; font-size: 12px; color: var(--muted); }
.co-items { list-style: none; margin: 0; padding: 0 14px; display: flex; flex-direction: column; gap: 12px; }
.co-item { display: flex; gap: 12px; align-items: flex-start; }
.co-item .row-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.co-item .co-item-top, .co-item .co-line-qty { color: var(--ink); font-size: 14px; }
.co-item .co-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.co-item-top b { font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; }
.co-trash { flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.co-trash:hover { background: var(--surface-2); color: var(--danger); }
.co-trash .icon { width: 18px; height: 18px; }
.co-item .co-line-qty { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.co-item .co-pricebox { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
.co-item .co-sep { display: inline; color: var(--line); font-size: 18px; line-height: 1; }
.co-item .co-price { display: inline; color: var(--ink); font: 400 15px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-item .co-unit { display: inline; font: 400 12px var(--font-body); color: var(--muted); white-space: nowrap; }
.co-item .co-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 30px; flex: none; }
.co-qty button { width: 28px; height: 28px; border: 0; background: none; color: var(--navy); font: 700 17px/1 var(--font-body); display: grid; place-items: center; border-radius: 999px; }
.co-qty button:hover:not(:disabled) { background: var(--surface-2); }
.co-qty button:disabled { color: var(--line); cursor: default; }
.co-qty output { min-width: 34px; text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ---------- Minha loja / produtos ---------- */
.prod-row .row-main b { font-size: 14px; }
.prod-thumb { overflow: hidden; background: var(--surface-2); color: var(--muted); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-ph { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.pd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-ph em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--sun); color: var(--navy); padding: 2px 6px; border-radius: 6px; }
.pd-cover { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; border: 0; border-radius: 6px; padding: 2px 6px; background: rgba(255,255,255,.9); color: var(--navy); }
.pd-rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #FFFFFF; display: grid; place-items: center; padding: 0; }
.pd-rm .icon { width: 14px; height: 14px; }
.pd-add { aspect-ratio: 1; max-width: 100%; border: 2px dashed var(--line); border-radius: 12px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; }
.pd-add:hover { border-color: var(--navy); color: var(--navy); }
.pd-free { align-self: end; padding-bottom: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 90px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; background: var(--surface); }
.seg input:checked + span { border-color: var(--navy); background: var(--sun-soft); color: var(--navy); }
.seg input:focus-visible + span { outline: 3px solid var(--navy-2); outline-offset: 2px; }
.field select { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 12px; color: var(--ink); font: inherit; }
.tag-def { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); background: var(--sun); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.addr-item { display: flex; flex-direction: column; gap: 4px; }
.addr-def { align-self: flex-end; font-size: 12px; padding: 0 4px; }
.pf-card { display: flex; flex-direction: column; gap: 8px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pf-row span { color: var(--muted); }
.pf-row b { text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pf-q { margin: 4px 0 0; font: 700 16px var(--font-display); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.btn .spinner { width: 16px; height: 16px; }
.co-gift { margin: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.co-check input { accent-color: #001A53; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.co-check .row-main b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.co-check .row-main b .icon { width: 18px; height: 18px; color: var(--navy); }
.co-check .row-main > span { display: block; font-size: 12px; color: var(--muted); }
.co-gift-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; margin-left: 28px; }
.co-gift-no { margin: 0; font-size: 12px; color: var(--muted); }
.co-gift-body textarea, .field textarea { border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 10px 12px; color: var(--ink); font: inherit; resize: vertical; min-height: 64px; }
.co-gift-done { display: flex; gap: 10px; align-items: flex-start; margin: 0 14px; font-size: 14px; }
.co-gift-done .icon { width: 20px; height: 20px; color: var(--navy); flex: none; }
.co-gift-done .row-main span { display: block; font-size: 13px; color: var(--muted); font-style: italic; }
.s-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.s-box legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.co-ship { display: flex; gap: 10px; align-items: flex-start; margin: 0 14px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.co-ship b { font-size: 14px; }
.co-hint { color: var(--navy) !important; }
.co-sub { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.co-sub b { font: 700 16px var(--font-display); font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); }
.co-radio-list { display: flex; flex-direction: column; gap: 8px; }
.co-radio { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.co-radio:has(input:checked) { border-color: var(--navy); }
.co-radio input { accent-color: #001A53; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.co-radio .row-main span { display: block; font-size: 13px; color: var(--muted); }
.tag-ok { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ok); background: rgba(0, 166, 80, .1); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.co-card-box { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 4px 34px; }
.co-card-box select { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 12px; color: var(--ink); font: inherit; }
.co-inst-label { font-size: 13px; font-weight: 700; }
.ci-list { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ci-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 8px 12px; border: 0; background: var(--surface); color: var(--ink); text-align: left; font: inherit; }
.ci-list .ci-opt + .ci-opt { border-top: 1px solid var(--line); }
.ci-opt:hover { background: var(--surface-2); }
.ci-opt.sel { background: var(--sun-soft); }
.ci-cur { border: 1.5px solid var(--line); border-radius: 12px; }
.ci-main { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-card-box .ci-opt .ci-free { color: var(--ok); font-weight: 800; font-size: 13px; margin-left: auto; }
.co-card-box .ci-opt .ci-juros { color: var(--muted); font-size: 12px; margin-left: auto; text-align: right; }
.ci-cur .ci-free, .ci-cur .ci-juros { margin-left: auto; }
.ci-caret { transform: rotate(-90deg); width: 18px; height: 18px; color: var(--muted); flex: none; }
.co-radio .row-main .ci-free-txt, .ci-free-txt { display: inline; color: var(--ok); font-weight: 700; }
.co-inst-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.co-inst-rules li { display: flex; align-items: center; gap: 8px; }
.co-inst-rules .co-logo { width: 24px; height: 24px; }
.co-hint-box { margin: 0; font-size: 12px; color: var(--navy); background: var(--sun-soft); border-radius: 10px; padding: 8px 10px; }
.co-gateway { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.co-sum { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.co-sum > div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.co-total { border-top: 1px solid var(--line); padding-top: 10px; font: 700 18px var(--font-display); }
.co-bar { flex: none; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 26, 83, .06); padding-bottom: env(safe-area-inset-bottom, 0px); }
.co-bar-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.co-bar-total { display: flex; flex-direction: column; flex: 1; }
.co-bar-total small { color: var(--muted); font-size: 12px; }
.co-bar-total b { font: 700 20px var(--font-display); font-variant-numeric: tabular-nums; }
.co-bar .btn { min-width: 170px; }
.co-bar-2 .btn { flex: 1; min-width: 0; }
.co-done { text-align: center; padding-block: 18px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #FFFFFF; display: grid; place-items: center; }
.co-done-ico .icon { width: 34px; height: 34px; stroke-width: 3; }
.co-done h2 { margin: 6px 0 0; font: 800 24px var(--font-display); }
.co-done p { margin: 0; color: var(--muted); }
.co-pix { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.co-pix p { margin: 0; font-size: 14px; }
.pix-qr { width: 180px; height: 180px; max-width: 100%; }
.pix-code { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; font: 12px monospace; color: var(--ink); text-overflow: ellipsis; }
.co-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co-line span:first-child { min-width: 0; }
.co-order { display: flex; flex-direction: column; gap: 6px; }
.co-order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co-order-store { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.co-order-store .row-main span { display: block; font-size: 12px; color: var(--muted); }
.pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--sun-soft); color: var(--navy); }
.pill.pago { background: rgba(0, 166, 80, .12); color: var(--ok); }

@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Telas maiores ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 30px 32px; }
  .hero .pin { width: 120px; height: 158px; }
  .hero-ico { width: 120px; height: 120px; }
}
@media (min-width: 860px) {
  .brand-word { display: block; }
  .header-row { gap: 16px; padding-block: 12px 10px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 24px; }
}
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Ficha do produto (toque no produto) ---------- */
button.card-img, button.sv-prod-img, button.sv-mini-img { border: 0; padding: 0; width: 100%; cursor: pointer; font-family: inherit; color: inherit; overflow: hidden; }
button.sv-prod-title, button.sv-mini-title { border: 0; padding: 0; background: none; color: inherit; text-align: left; cursor: pointer; font-family: inherit; width: 100%; }
.card[data-open] { cursor: pointer; }
.card-img img, .sv-prod-img img, .sv-mini-img img, .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-thumb { overflow: hidden; }
/* Página do produto: tela cheia com cabeçalho amarelo (como no Mercado Livre) */
.pp .co-head-in { gap: 8px; }
.pp-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: #FFFFFF; color: #7C849E; font-size: 14px; box-shadow: 0 1px 3px rgba(0, 26, 83, .15); text-align: left; }
.pp-search .icon { width: 17px; height: 17px; color: #6B7491; }
.pp-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-cart { position: relative; margin-left: 0; margin-right: -8px; }
.pp-cart .dot { top: -1px; right: -6px; }
.pp-body { gap: 10px; padding-top: 12px; }
.pp-title { margin: 0; font: 600 19px/1.3 var(--font-body); color: var(--ink); }
.pp-gallery { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); touch-action: pan-y; }
.pp-track { display: flex; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.pp-track img, .pp-ph { flex: 0 0 100%; width: 100%; aspect-ratio: 1; max-height: 52vh; object-fit: contain; background: var(--surface); }
.pp-ph { display: grid; place-items: center; font-size: clamp(90px, 28vw, 170px); }
.pp-count { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.pp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 24px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.pp-nav.prev { left: 8px; } .pp-nav.next { right: 8px; }
.pp-nav:disabled { opacity: 0; pointer-events: none; }
.pp-dots { display: flex; justify-content: center; gap: 6px; }
.pp-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.pp-dots button[aria-current="true"] { background: var(--navy); }
.pp-price { display: flex; flex-direction: column; gap: 2px; }
.pp-price s { color: var(--muted); font-size: 14px; }
.pp-price .price { font-size: 34px; }
.pp-price .price sup { font-size: 15px; }
.pp-price .off { font-size: 16px; }
.pp-price .inst, .pp-price .inst-juros { font-size: 15px; }
.pp-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pp-line .icon { width: 22px; height: 22px; color: var(--navy); flex: none; }
.pp-line small { display: block; color: var(--muted); font-size: 13px; }
.pp-line .ok { color: var(--ok); }
.pp-stock { margin: 4px 0 0; font-size: 14px; }
.pp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pp-actions .btn { height: 48px; font-size: 16px; }
.pp-actions .btn .icon { width: 20px; height: 20px; }
.pp-trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.pp-trust li { display: flex; gap: 10px; align-items: flex-start; }
.pp-trust .icon { width: 20px; height: 20px; color: var(--navy); flex: none; }
.pp-trust b { color: var(--ink); }
.pp-seller { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; margin-top: 6px; }
.pp-seller small { display: block; color: var(--muted); font-size: 12px; } .pp-seller b { display: block; }
.pp-seller .co-logo { width: 44px; height: 44px; }
.pi-go { margin-left: auto; color: var(--navy); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pp-h { margin: 16px 0 2px; font: 700 18px var(--font-display); }
.pp-desc { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.55; }
.pp-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; }
.pp-row::-webkit-scrollbar { display: none; }
.pp-mini { flex: 0 0 140px; display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pp-mini-img { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 48px; overflow: hidden; }
.pp-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-mini-t { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pp-mini s { font-size: 11px; color: var(--muted); }
.pp-mini b { font-size: 15px; font-weight: 400; }
@media (min-width: 860px) { .pp .co-head-in, .pp-body { max-width: 760px; } }
/* Banners do painel: azul-marinho e imagem */
.hero.hero-navy { background: var(--navy); border-color: transparent; }
.hero.hero-navy .hero-title { color: #fff; } .hero.hero-navy p { color: #C9D3EE; } .hero.hero-navy .pin { fill: var(--sun); }
.hero.hero-navy::after { background: var(--sun); opacity: .18; }
.hero-img { width: clamp(110px, 30vw, 200px); aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); position: relative; z-index: 1; }
.hero .btn { font-weight: 600; }   /* banners: negrito mais leve */

/* ---------- Carrinho em tela cheia ---------- */
.cp .co-head h1 { margin: 0; }
.cp .row-thumb { border: 0; padding: 0; cursor: pointer; }
.cp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 30px; padding: 40px 16px; }
.cp-empty .icon { width: 48px; height: 48px; color: var(--muted); }
.cp-empty b { color: var(--ink); font-size: 17px; }
.cp .co-sum .muted { font-size: 12px; }

/* ---------- Checkout: presente ---------- */
.co-sub { align-items: center; gap: 10px; flex-wrap: nowrap; }
.co-sub-r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; white-space: nowrap; }
.co-sub-r small { color: var(--muted); font-size: 12px; }
.co-sub .co-sep { color: var(--line); font-size: 18px; }
.co-gift-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }
.co-gift-toggle input { accent-color: #001A53; width: 17px; height: 17px; margin: 0; }
.co-gift-toggle .icon { width: 17px; height: 17px; }
.co-wrap-chk { flex: none; display: grid; place-items: center; width: 26px; height: 52px; cursor: pointer; }
.co-wrap-chk input { accent-color: #001A53; width: 19px; height: 19px; margin: 0; }
.co-gift-body { margin: 0 14px 14px; }
.co-gift-hint { margin: 0; display: flex; gap: 8px; font-size: 13px; color: var(--navy); background: var(--sun-soft); border-radius: 10px; padding: 8px 10px; }
.co-gift-hint .icon { width: 18px; height: 18px; flex: none; }
.co-gift-sec { margin: 4px 0 -4px; font: 700 14px var(--font-display); }
.co-gift-addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.co-gift-addr .icon { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 2px; }
.co-gift-to { font-style: normal !important; color: var(--ink) !important; }

/* ---------- Página do produto (padrão Mercado Livre) ---------- */
.pp-body { gap: 12px; }
.pp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pp-rate { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted); }
.pp-rate b { color: var(--ink); font-weight: 600; }
.st { font-style: normal; color: #D5D9E2; font-size: 13px; letter-spacing: -1px; }
.st.on { color: #2453C9; }
.st.half { background: linear-gradient(90deg, #2453C9 50%, #D5D9E2 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; }
.pp-tools .fav { position: static; }
.pp-pix { font-size: 14px; color: var(--ink); }
.pp-pix small { color: var(--muted); }
.pp-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: #2453C9; font-size: 14px; text-align: left; }
.pp-link .icon { width: 16px; height: 16px; }
.pp-ship { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pp-ship > .icon { width: 22px; height: 22px; color: var(--navy); flex: none; }
.pp-ship > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-ship b.ok { color: var(--ok); }
.pp-ship small { color: var(--muted); font-size: 13px; }
.pp-stock { margin: 2px 0 0; font-size: 15px; }
.pp-last { color: var(--danger); font-weight: 700; }
.pp-qty { display: flex; align-items: center; gap: 8px; font-size: 15px; flex-wrap: wrap; }
.pp-qty select { height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; font: 700 15px var(--font-body); color: var(--ink); }
.pp-qty small { color: var(--muted); font-size: 13px; }
.pp-add { background: #E7EEFF; color: #2453C9; }
.pp-soldby { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 14px; color: var(--muted); text-align: left; }
.pp-soldby b { color: #2453C9; font-weight: 600; }
.pp-soldby small { margin-left: 4px; }
.pp-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.pp-sec h2 { margin: 0; font: 600 18px var(--font-display); }
.pp-seller { display: flex; align-items: center; gap: 10px; }
.pp-seller b { display: block; } .pp-seller small { color: var(--muted); font-size: 13px; }
.pp-seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pp-seller-stats span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; }
.pp-seller-stats b { font-size: 14px; } .pp-seller-stats small { font-size: 11px; color: var(--muted); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; border-radius: 10px; overflow: hidden; }
.pp-table th, .pp-table td { text-align: left; padding: 10px 12px; }
.pp-table th { width: 44%; font-weight: 600; background: #EEF0F4; }
.pp-table tr:nth-child(odd) td { background: #F6F7FB; }
.pp-table tr:nth-child(even) th { background: #E4E7EE; }
.pp-ask { display: flex; gap: 8px; }
.pp-ask input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 12px; }
.pp-ask .btn { height: 44px; padding: 0 14px; font-size: 14px; }
.pp-h3 { margin: 4px 0 0; font: 600 14px var(--font-body); }
.pp-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-qs li { display: flex; flex-direction: column; font-size: 14px; }
.pp-qs small { color: var(--muted); }
.pp-rev { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.pp-rev-big { display: flex; flex-direction: column; align-items: center; }
.pp-rev-big b { font: 600 44px/1 var(--font-display); color: #2453C9; }
.pp-rev-big .st { font-size: 16px; }
.pp-rev-big small { color: var(--muted); font-size: 12px; }
.pp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-bars li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pp-bars i { height: 6px; border-radius: 3px; background: #E4E7EE; overflow: hidden; }
.pp-bars em { display: block; height: 100%; background: #8A93AD; border-radius: 3px; }
.pay-m { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-m b { display: flex; align-items: center; gap: 6px; } .pay-m .icon { width: 18px; height: 18px; color: var(--navy); }
.pay-m span { color: var(--muted); }
.pay-inst { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; }
.pay-inst li { display: flex; justify-content: space-between; gap: 6px; }
.pay-inst small { color: var(--muted); font-size: 11px; }
@media (min-width: 860px) { .pp-body { max-width: 760px; } }
