/* Achei Útil · estilos. Cores e fontes ficam nas variáveis abaixo.
   Paleta laranja próxima da Shopee, mas com nome e símbolo próprios. */
:root {
  --page: #F6F4F2;        /* fundo da página */
  --bg: #FFFFFF;          /* cards e barras */
  --fg: #222222; --muted: #595959; --line: #ECE4DF;
  --brand: #EE5A2A;       /* laranja da marca: símbolo e faixa de abertura */
  --brand-deep: #C2410C;  /* botões e textos em laranja (melhor leitura) */
  --brand-soft: #FFF1EA;  /* realce suave */
  --on-brand: #FFFFFF;
  --photo: #FBEDE6; --photo-fg: #A8441F;
  --note-bg: #FFF6E0; --note-fg: #6B3A00;
  --foot-bg: #2B211D; --foot-fg: #F4ECE8;
  --input-line: #E3D4CC; --placeholder: #6B6B6B; --danger-bg: #FDE8E8; --danger-fg: #7A1C1C;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; }
a { color: var(--brand-deep); }
button { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; background: var(--brand-deep); color: var(--on-brand); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.pular:focus { top: 8px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Topo: marca */
.topo { background: var(--bg); }
.topo__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.marca { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.marca svg { flex: none; }
.marca__nome { display: block; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.marca__nome b { color: var(--brand-deep); font-weight: 800; }
.marca__lema { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.topo__links { display: flex; gap: 20px; font-weight: 600; }
.topo__links a { color: var(--fg); text-decoration: none; }
.topo__links a:hover { color: var(--brand-deep); text-decoration: underline; }

/* Barra de categorias (uma linha só; no celular desliza para o lado) */
.menu { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu__lista { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.menu__item { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--fg); font-weight: 600; cursor: pointer; }
.menu__item svg { color: var(--brand-deep); flex: none; }
.menu__item:hover { color: var(--brand-deep); background: var(--brand-soft); }
.menu__item[aria-pressed="true"] { color: var(--brand-deep); background: var(--brand-soft); border-bottom-color: var(--brand); font-weight: 800; }

/* Faixa de abertura com a busca */
.hero { background: var(--brand); color: var(--on-brand); }
.hero__in { padding-block: 32px 36px; }
.hero h1 { margin: 0 0 6px; max-width: 24ch; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.hero p { margin: 0 0 20px; font-size: 19px; font-weight: 700; }
.busca { display: flex; max-width: 760px; min-width: 0; background: var(--bg); border-radius: 12px; padding: 5px; box-shadow: 0 6px 18px rgba(80, 25, 5, 0.18); }
.busca input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 17px; }
.busca input:focus { outline: none; }
.busca:focus-within { outline: 3px solid var(--fg); outline-offset: 2px; }
.busca input::placeholder { color: var(--placeholder); }
.busca button { height: 48px; padding: 0 24px; border: 0; border-radius: 9px; background: var(--brand-deep); color: var(--on-brand); font-weight: 700; cursor: pointer; }

/* Achados */
.sec-achados { padding-top: 28px; padding-bottom: 8px; }
.achados__topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.achados__topo h2 { margin: 0; font-size: 28px; font-weight: 800; }
.achados__topo p { margin: 0; color: var(--muted); }
.link { background: none; border: 0; padding: 8px 0; color: var(--brand-deep); font-weight: 700; text-decoration: underline; cursor: pointer; }
.nota { margin: 0 0 18px; background: var(--note-bg); color: var(--note-fg); padding: 16px 20px; border-radius: 12px; line-height: 1.5; }
.erro { margin: 0 0 18px; background: var(--danger-bg); color: var(--danger-fg); padding: 16px 20px; border-radius: 12px; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.card:hover { border-color: var(--brand); }
.card__foto { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--photo); color: var(--photo-fg); display: flex; align-items: center; justify-content: center; }
.card__foto img { width: 100%; height: 100%; object-fit: contain; display: block; background: #FFFFFF; }
.card__selo { position: absolute; top: 10px; left: 10px; background: var(--note-bg); color: var(--note-fg); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.card__corpo { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: 12px; font-weight: 700; color: var(--brand-deep); }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.card__corpo h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__desc { margin: 0; color: var(--muted); font-size: 14px; }
.card__preco { margin-top: auto; font-size: 20px; font-weight: 800; color: var(--brand-deep); }
.card__preco small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.card__preco--sem { font-size: 15px; font-weight: 700; color: var(--fg); }
.btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--brand-deep); color: var(--on-brand); font-weight: 700; border: 0; border-radius: 9px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #A8370A; }
.btn--video { gap: 6px; background: transparent; color: var(--brand-deep); border: 2px solid var(--brand-deep); min-height: 40px; }
.btn--video:hover { background: var(--brand-soft); }
.btn--off, .btn--off:hover { background: var(--page); color: var(--muted); border: 1px dashed var(--input-line); cursor: default; }
.vazio { text-align: center; padding: 40px 16px; border: 1px dashed var(--input-line); border-radius: 16px; background: var(--bg); }
.vazio p { margin: 0 0 16px; }
.vazio .btn { display: inline-flex; }
.sec-aviso { padding-top: 24px; padding-bottom: 32px; }
.sec-aviso .nota { margin: 0; }

/* Páginas de texto */
.texto { padding-block: 40px 56px; }
.texto > div { max-width: 70ch; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; }
.texto h1 { margin: 0 0 16px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.texto h2 { margin: 28px 0 8px; font-size: 22px; font-weight: 800; }
.texto ul { padding-left: 22px; }
.texto small { color: var(--muted); }

/* Rodapé */
.rodape { margin-top: auto; background: var(--foot-bg); color: var(--foot-fg); }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px; }
.rodape a { color: var(--foot-fg); }
.rodape nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.rodape .insta { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
  .marca__nome { font-size: 22px; }
  .marca__lema, .topo__links { display: none; }
  .menu__item { padding: 0 12px; min-height: 48px; }
  .hero__in { padding-block: 24px 26px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 19px; margin-bottom: 16px; }
  .busca button { padding: 0 16px; }
  .achados__topo h2 { font-size: 24px; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__corpo { padding: 12px; }
  .card h3 { font-size: 15px; }
  .texto > div { padding: 22px 18px; }
  .texto h1 { font-size: 28px; }
}
/* ===================== EFEITOS ===================== */

/* 1. Cabeçalho inteiro (marca, links e categorias) fixo ao rolar; a marca encolhe */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 11; }
#sentinela { height: 1px; margin-bottom: -1px; }
.barra-topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); transition: box-shadow .2s ease; }
.barra-topo--fixo { box-shadow: 0 6px 16px rgba(60, 25, 10, 0.12); }
.topo__in { transition: padding .2s ease; }
.marca svg { width: 44px; height: 44px; transition: width .2s ease, height .2s ease; }
.marca__nome { transition: font-size .2s ease; }
.barra-topo--fixo .topo__in { padding-block: 8px; }
.barra-topo--fixo .marca svg { width: 34px; height: 34px; }
.barra-topo--fixo .marca__nome { font-size: 22px; }
.barra-topo--fixo .marca__lema { display: none; }
#achados { scroll-margin-top: 92px; }
@media (max-width: 600px) {
  .marca svg { width: 38px; height: 38px; }
  .barra-topo--fixo .topo__in { padding-block: 6px; }
  .barra-topo--fixo .marca svg { width: 30px; height: 30px; }
  .barra-topo--fixo .marca__nome { font-size: 19px; }
  #achados { scroll-margin-top: 84px; }
}

/* 2. Card sobe ao passar o mouse */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card__foto img, .card__foto > svg { transition: transform .35s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(60, 25, 10, 0.12); }
  .card:hover .card__foto img { transform: scale(1.05); }
  .card:hover .card__foto > svg { transform: scale(1.15); }
}
.card__foto { overflow: hidden; }

/* 3. Produtos entram suavemente */
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card--entra { animation: entra .35s ease both; }

/* 4. Brilho da lupa */
@keyframes brilha { 0% { transform: scale(1) rotate(0); } 45% { transform: scale(1.55) rotate(45deg); opacity: .75; } 100% { transform: scale(1) rotate(90deg); } }
.brilho { transform-box: fill-box; transform-origin: center; }
.brilho--anima { animation: brilha .9s ease .15s 1 both; }

/* 6. Botão voltar ao topo */
.topo-btn { position: fixed; z-index: 12; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand-deep); color: var(--on-brand); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(60, 25, 10, 0.25); animation: entra .25s ease both; }
.topo-btn:hover { background: #A8370A; }

/* Quem pediu "reduzir movimento" no aparelho vê tudo parado */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== FOTO AMPLIADA ===== */
.card__foto--zoom { cursor: zoom-in; }
.card__foto--zoom:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: -3px; }
.card__lupa { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(43, 33, 29, 0.72); color: #FFFFFF; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(20, 14, 12, 0.88); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: entra .2s ease both; }
.zoom__caixa { position: relative; background: #FFFFFF; border-radius: 18px; width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.zoom__foto { background: #FFFFFF; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1 1 auto; }
.zoom__foto img { width: 100%; height: auto; max-height: 68vh; object-fit: contain; display: block; }
.zoom__info { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.zoom__info h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; color: var(--fg); }
.zoom__info .card__preco { margin: 0 0 12px; }
.zoom__fechar { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(43, 33, 29, 0.78); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zoom__fechar:hover { background: #2B211D; }
body.zoom-aberto { overflow: hidden; }
