/*
 * Ficha pública do produto (resources/views/produtos/public.blade.php) — o que o consumidor vê pelo QR code.
 * Saiu do <style> da view em 2026-11-05 sem mudar o resultado (A/B em pixels). As cores de cada produto
 * (--bg, --name, --inci, --icons) continuam definidas na view, porque são dado do produto.
 */
*{ box-sizing:border-box; }
  body{ margin:0; background:var(--bg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial; color:#111; }
  .wrap{ max-width:1200px; margin:0 auto; padding:24px 16px; text-align:center; }

  /* blocos (cada info em uma linha) */
  .block{ margin:18px 0; }
  .product-img img{ max-height:250px; width:auto; height:auto; display:inline-block; border-radius:8px; }

  .product-title{ color:var(--name); margin:6px 0 0; font-size: clamp(20px, 2.6vw, 30px); line-height:1.15; }

  .label{ color:var(--inci); font-weight:600; margin-top:8px; }
  .ingredients{ color:var(--inci); font-size:16px; line-height:1.7; max-width:900px; margin:10px auto 0; }
  /* PA-022: parágrafo do Markdown (linha em branco) ocupa o mesmo espaço da linha vazia do texto antigo */
  .ingredients p{ margin:0; }
  .ingredients p + p{ margin-top:1.7em; }

  .icons{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }
  .icons .icon{ width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; }
  .icons .icon svg{ width:36px; height:36px; display:block; }
  /* força cor nos shapes dos SVGs inline */
  
  /* cor de referência do ícone */
.icons .icon { --icon-color: var(--inci); }

/* nunca pinte defs/máscaras/clipPaths */
.icons .icon svg defs,
.icons .icon svg clipPath,
.icons .icon svg mask { all: unset; }

/* preserve transparências explícitas */
.icons .icon svg [fill="none"]    { fill: none !important; }
.icons .icon svg [stroke="none"]  { stroke: none !important; }

/* pinte apenas o que for “pintável” */
.icons .icon svg [fill]:not([fill="none"])     { fill: var(--icon-color) !important; }
.icons .icon svg [stroke]:not([stroke="none"]) { stroke: var(--icon-color) !important; }

/* Instagram (30px de espaçamento no topo + cor = título) */
.social{ display:flex; justify-content:center; align-items:center; gap:12px; margin-top:50px; }
.icon-social{ color: var(--name); width:42px; height:42px; display:inline-flex; line-height:0; }
.icon-social svg{ width:100%; height:100%; display:block; }
/* ícone de rede social por máscara: a forma vem do arquivo, a cor do título (currentColor) */
.rede-icone{ display:block; width:100%; height:100%; background-color:currentColor;
  -webkit-mask: var(--rede-icone) center / contain no-repeat; mask: var(--rede-icone) center / contain no-repeat; }
/* segurança extra caso o arquivo tenha fill/stroke setados */
.icon-social svg [fill]:not([fill="none"]){ fill: currentColor !important; }
.icon-social svg [stroke]:not([stroke="none"]){ stroke: currentColor !important; }

.brand img{
  max-width: 200px;   /* novo limite */
  max-height: 100px;   /* mantém o teto de altura */
  width: auto;
  height: auto;
  display: inline-block;
  object-fit: contain; /* garante que não deforma */
  vertical-align: middle;
}

/* CTA abaixo dos ícones, seguindo o estilo de textos */
.social-cta { margin-top: 50px; }
.social-cta a {
  color: var(--inci);
  font-size: 16px;
  line-height: 1.7;
  text-decoration: underline;
}
.social-cta a:hover { text-decoration: none; }
