/* Tema vermelho da página da casa de carne (carnes.html). Carregado só nessa página, depois do estilo.css.
   Tudo fica preso em body.tema-carne: a página principal não muda.
   Cores tiradas do painel da casa de carne no sistema: bordô no menu, vermelho vivo nos destaques, rosado nos fundos. */

body.tema-carne {
  --fundo: #faf5f5;
  --texto: #2a1013;
  --texto-2: #3b1a1e;
  --suave: #7a5f62;
  --borda: #f0e2e3;
  --azul: #d7141f;
  --azul-escuro: #a80f18;
  --azul-claro: #fde6e5;
  --ciano: #ff7a66;
  --marinho: #3a0407;
  --marinho-2: #6e0b13;
  --roxo: #8c1230;
  --sombra-cartao: 0 1px 2px rgb(58 10 14 / .04), 0 8px 24px -14px rgb(58 10 14 / .16);
  --anel: 0 0 0 1px rgb(58 10 14 / .07);
  --sombra-forte: 0 40px 80px -40px rgb(58 4 7 / .45), 0 12px 32px -18px rgb(58 4 7 / .25);
  --gradiente: linear-gradient(90deg, #c8101b 0%, #f0442a 100%);
}

/* Peças de texto e botões */
.tema-carne .botao--primario { box-shadow: 0 10px 24px -12px rgb(215 20 31 / .75); }
.tema-carne .destaque--claro { background: linear-gradient(90deg, #ff8a7a 0%, #ffc4b5 100%); -webkit-background-clip: text; background-clip: text; }
.tema-carne .rotulo::before { box-shadow: 0 0 12px rgb(255 90 70 / .7); }

/* Etiquetas de cor dos ícones */
.tema-carne .azul { background: rgb(215 20 31 / .09); color: var(--azul); }
.tema-carne .roxo { background: rgb(140 18 48 / .1); color: var(--roxo); }
.tema-carne .ciano { background: rgb(240 68 42 / .12); color: #c0391f; }

/* Topo */
.tema-carne .topo { background: rgb(250 245 245 / .8); }
.tema-carne .topo.rolou { box-shadow: 0 8px 24px -20px rgb(58 10 14 / .35); }
.tema-carne .topo__menu > a:hover { background: rgb(215 20 31 / .06); }
@media (max-width: 960px) {
  .tema-carne .topo__menu { box-shadow: 0 24px 40px -24px rgb(58 10 14 / .35); }
}

/* Abertura */
.tema-carne .abertura__fundo {
  background:
    radial-gradient(600px 340px at 85% 8%, rgb(255 90 70 / .16), transparent 70%),
    radial-gradient(700px 420px at 10% 0%, rgb(215 20 31 / .1), transparent 70%),
    linear-gradient(rgb(58 10 14 / .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgb(58 10 14 / .045) 1px, transparent 1px) 0 0 / 44px 44px;
}

/* Açougueiro na abertura: cartão bordô atrás dele, com o boné e o rosto saindo por cima do cartão.
   Os cortes da foto (braço, manga e avental) ficam exatamente nas bordas do cartão. */
.tema-carne .abertura__foto {
  position: relative; isolation: isolate; justify-self: center;
  width: min(100%, 330px);
}
.tema-carne .abertura__foto::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: 27%;
  border-radius: 28px;
  background:
    radial-gradient(75% 50% at 55% 18%, rgb(255 90 70 / .42), transparent 72%),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(160deg, var(--marinho-2) 0%, var(--marinho) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), var(--sombra-forte);
}
/* Faixa vermelha do tema no pé do cartão, como o vivo vermelho do avental. */
.tema-carne .abertura__foto::after {
  content: ""; position: absolute; z-index: 1; left: 22%; right: 22%; bottom: 0; height: 4px;
  border-radius: 4px 4px 0 0; background: var(--gradiente);
}
.tema-carne .abertura__foto img { width: 100%; height: auto; border-radius: 0 0 28px 28px; }
/* Celular e tablet: a foto vem depois dos botões, com folga antes do painel e dos avisos dele. */
@media (max-width: 959px) {
  .tema-carne .abertura__foto { margin: 8px 0 24px; }
}
.tema-carne .abertura__etiqueta {
  position: absolute; z-index: 2; left: 10px; bottom: 7%;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px);
  padding: 9px 12px 9px 9px; border-radius: 16px;
  background: rgb(255 255 255 / .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--anel), 0 24px 48px -20px rgb(58 4 7 / .55);
  font-size: 12.5px; line-height: 1.35; white-space: nowrap;
  animation: flutuar 6s ease-in-out infinite;
}
.tema-carne .abertura__etiqueta i { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: rgb(215 20 31 / .09); color: var(--azul); }
.tema-carne .abertura__etiqueta strong { display: block; font-size: 13px; }
.tema-carne .abertura__etiqueta span { color: var(--suave); font-size: 11.5px; }

/* Computador: título, texto e botões à esquerda (centralizados na altura da foto), açougueiro à direita. */
@media (min-width: 960px) {
  .tema-carne .abertura__grade {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 56px; row-gap: 0; align-items: start;
  }
  .tema-carne .abertura__grade > :first-child { grid-area: 2 / 1; }
  .tema-carne .abertura__lado { grid-area: 3 / 1; margin-top: 26px; }
  .tema-carne .abertura__foto {
    grid-area: 1 / 2 / 5 / 3;
    /* Cabe na tela: nunca mais alto que a janela, nem menor que 340 px de largura. */
    width: min(100%, clamp(340px, calc((100vh - 190px) * .72), 440px));
    width: min(100%, clamp(340px, calc((100svh - 190px) * .72), 440px));
  }
  .tema-carne .abertura__titulo { font-size: clamp(3rem, 4.8vw, 4.4rem); }
  .tema-carne .abertura__titulo .destaque { white-space: nowrap; }
  .tema-carne .abertura__etiqueta { left: -36px; bottom: 13%; padding: 12px 16px 12px 12px; gap: 12px; max-width: none; }
  .tema-carne .abertura__etiqueta i { width: 38px; height: 38px; border-radius: 12px; }
  .tema-carne .abertura__etiqueta strong { font-size: 13.5px; }
  .tema-carne .abertura__etiqueta span { font-size: 12.5px; }
}

/* Notebook (tela baixa, zoom 100%): a abertura inteira cabe na tela, com título, texto, botões e o açougueiro
   sem cortar (pedido do dono, 14/11). A foto acompanha a altura da janela. */
@media (min-width: 960px) and (max-height: 860px) {
  .tema-carne .abertura { padding: 24px 0 28px; }
  .tema-carne .abertura__titulo { margin-top: 12px; font-size: clamp(2.5rem, 8.4vh, 4.4rem); font-size: clamp(2.5rem, 8.4svh, 4.4rem); }
  .tema-carne .abertura__lado { margin-top: 14px; }
  .tema-carne .abertura__sub { font-size: 1rem; }
  .tema-carne .abertura__botoes { margin-top: 16px; }
  .tema-carne .abertura__garantias { margin-top: 14px; }
  .tema-carne .abertura__foto {
    width: min(100%, clamp(250px, calc((100vh - 150px) * .72), 440px));
    width: min(100%, clamp(250px, calc((100svh - 150px) * .72), 440px));
  }
}

/* Janela e painel de exemplo */
.tema-carne .janela__barra { background: #f6eded; }
.tema-carne .janela__bolinhas i { background: #ead9da; }
.tema-carne .sis__menu { background: linear-gradient(180deg, #560710 0%, #3e0407 100%); }
.tema-carne .sis__item.ativo { background: var(--azul); color: #fff; box-shadow: 0 8px 18px -8px rgb(229 21 39 / .8); }
.tema-carne .sis__item.ativo .icone { color: #fff; }
/* A foto da carne no pé do menu, como no sistema. */
.tema-carne .sis__foto {
  margin: auto -12px -16px; padding-top: 12px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
}
.tema-carne .sis__foto img { width: 100%; height: auto; }
.tema-carne .pilulas { background: #f8eded; }
.tema-carne .grafico__barras span { background: linear-gradient(180deg, #f59b98 0%, #fbd6d4 100%); }
.tema-carne .grafico__barras span.hoje { background: linear-gradient(180deg, #ff6b57 0%, var(--azul) 100%); box-shadow: 0 8px 20px -8px rgb(215 20 31 / .7); }
.tema-carne .rosca__trilho { stroke: #f6e9ea; }
.tema-carne .rosca__valor { stroke: var(--azul); }
.tema-carne .ia-quadro { background: linear-gradient(180deg, var(--marinho-2) 0%, #4a060c 55%, #2a0205 100%); box-shadow: 0 18px 40px -20px rgb(42 2 5 / .9); }
.tema-carne .ia-quadro::before { background: rgb(255 90 70 / .22); }
.tema-carne .ia-quadro__mic i { background: linear-gradient(90deg, transparent, rgb(255 122 102 / .6)); }
.tema-carne .ia-quadro__mic b { box-shadow: 0 0 30px rgb(255 90 70 / .55); animation-name: pulsar-carne; }
@keyframes pulsar-carne {
  0%, 100% { box-shadow: 0 0 22px rgb(255 90 70 / .45); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgb(255 90 70 / .75); transform: scale(1.05); }
}
.tema-carne .aviso { box-shadow: var(--anel), 0 24px 48px -20px rgb(58 4 7 / .45); }

/* Seções escuras e brilhos */
.tema-carne .secao--escura { background: radial-gradient(1200px 600px at 50% -10%, #7a0d16 0%, transparent 60%), var(--marinho); }
.tema-carne .brilho--1 { background: rgb(255 90 70 / .2); }
.tema-carne .brilho--2 { background: rgb(215 20 31 / .28); }
.tema-carne .brilho--3 { background: rgb(255 90 70 / .28); }

/* Antes e depois, ramos (sombra ao passar o mouse) */
.tema-carne .ad:hover, .tema-carne .ramo:hover { box-shadow: var(--anel), 0 24px 48px -28px rgb(58 10 14 / .35); }

/* Passos */
.tema-carne .passo__icone { box-shadow: 0 0 24px rgb(255 90 70 / .45); }
.tema-carne .passo__etiquetas b { background: rgb(255 122 102 / .14); color: #ffb9ad; }

/* Demonstração */
.tema-carne .demo__aba[aria-selected="true"] { box-shadow: 0 10px 24px -12px rgb(215 20 31 / .75); }
.tema-carne .lista-check li::before {
  background: var(--azul-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7141f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tema-carne .pdv__linha small { color: var(--azul); }
.tema-carne .rota { background: #f6e8e8; }
.tema-carne .rota__moto { filter: drop-shadow(0 0 6px rgb(255 90 70 / .9)); }
.tema-carne .quadro__coluna { background: #f6eded; }
.tema-carne .etiqueta { background: #f6eded; }
.tema-carne .etiqueta--azul { background: rgb(215 20 31 / .1); color: var(--azul); }
.tema-carne .tabela th { background: #fbf5f5; }
.tema-carne .cupom__total { border-top-color: #e4cfd1; }

/* IA */
.tema-carne .ia-chat { background: linear-gradient(180deg, var(--marinho-2) 0%, #4a060c 55%, #2a0205 100%); }
.tema-carne .ia-chat::before { background: rgb(255 90 70 / .2); }
.tema-carne .ia-chat__campo b { box-shadow: 0 0 20px rgb(255 90 70 / .5); }
.tema-carne .balao--ia strong { color: #ffb9ad; }
.tema-carne .conversa--zap .balao--ia strong { color: var(--texto); }
.tema-carne .ia-pontos i { background: rgb(255 122 102 / .12); box-shadow: inset 0 0 0 1px rgb(255 122 102 / .25); }

/* Ramos */
.tema-carne .ramo--destaque {
  background:
    radial-gradient(420px 300px at 90% 0%, rgb(255 90 70 / .3), transparent 70%),
    linear-gradient(160deg, var(--marinho-2) 0%, var(--marinho) 100%);
}
.tema-carne .ramo--destaque i { box-shadow: 0 0 32px rgb(255 90 70 / .5); }
.tema-carne .ramo--destaque > * { position: relative; z-index: 1; }
/* Foto da carne no canto do cartão em destaque. */
.tema-carne .ramo__foto {
  position: absolute; z-index: 0; top: 0; right: 0; width: min(62%, 360px); height: auto; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 62% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side at 62% 50%, #000 55%, transparent 100%);
  opacity: .9;
}
.tema-carne .ramo--destaque > .ramo__foto { position: absolute; z-index: 0; }
/* Cartão estreito (celular e tablet): o texto começa abaixo da foto. */
@media (max-width: 999px) {
  .tema-carne .ramo--destaque { padding-top: 150px; }
  .tema-carne .ramo__foto { width: min(66%, 300px); }
}
.tema-carne .ramo__etiquetas b { color: #ffb9ad; }
.tema-carne .ramo--outro { background: linear-gradient(120deg, #fdeceb 0%, #fdf5f4 50%, #fbdedd 100%); box-shadow: 0 0 0 1px rgb(215 20 31 / .12); }

/* Comparação e perguntas */
.tema-carne .comparar__cabeca { background: #fbf5f5; }
.tema-carne .comparar__linha:hover { background: rgb(215 20 31 / .03); }
@media (max-width: 680px) {
  .tema-carne .comparar__linha .nao::after { color: #a08a8c; }
}
.tema-carne .perguntas__lista details[open] { box-shadow: 0 0 0 1.5px rgb(215 20 31 / .35), var(--sombra-cartao); }

/* Convite final */
.tema-carne .convite {
  background: radial-gradient(800px 400px at 50% 120%, rgb(215 20 31 / .45), transparent 70%), linear-gradient(160deg, var(--marinho-2) 0%, var(--marinho) 70%);
}
.tema-carne .convite__icone { filter: drop-shadow(0 0 24px rgb(255 90 70 / .6)); }
