/* Black Week e Black Friday da Light4You (Leonardo, 23/11/2026, mock aprovado). Só carrega com NEXT_PUBLIC_CAMPANHA_DA_LOJA=black
   na loja de estilo fit, depois do estilo-fit.css: o layout troca a estilo-black.css (a da Santo) por esta folha.
   Preto com verde: topo e rodapé pretos, logo negativo (4 e & no laranja), barra de anúncio verde como hoje, "Ofertas" e o traço
   da busca no verde, lupa no laranja de hoje, subtítulos em preto o selo da Black Week no card (ProductCard, seloBlack) e os ícones em grafite.
   Miolo branco, fotos, preço e botão verdes não mudam; o topo do checkout também fica como está.
   Cores: preto #0F0F0F e branco #F9F7EE (estilos [LY] do Figma da Sprint 4), verde #70B125 e laranja #F0994D (os do logo).
   Letra do selo: Playpen Sans, a dos títulos dos banners da campanha (o layout carrega). Para desligar: tirar a variável e publicar. */
:root:root:root:root:root {
  --bw-preto: #0F0F0F;
  --bw-branco: #F9F7EE;
  --bw-laranja: #F0994D;
  --bw-verde: #70B125;
  --bw-fio: rgb(249 247 238 / .18);
  /* subtítulos das seções, título da categoria e os da página do produto */
  --fit-mao-cor: var(--bw-preto);
  --fit-mao-cor-cat: var(--bw-preto);
}

/* ── Topo preto, logo negativo ── */
/* sem o fio verde no pé do topo da loja (o do checkout lê a mesma variável e fica) */
:root:root:root header.sticky { --topo-pe: transparent; }
:root:root:root body header:has(input),
:root:root:root body header:has(input) > *:not(.mao-barra),
:root:root:root body header:has(input) header,
:root:root:root body header:has(input) header > div,
:root:root:root body header:has(input) div[class*="md:block"] { background-color: var(--bw-preto) !important; }
/* O logo vem do banco e também vai para o e-mail e o checkout: aqui ele só é coberto pelo negativo, sem trocar o cadastro.
   O menu do celular (role=dialog) tem fundo branco e fica com o logo de sempre. */
:root:root:root header.sticky > header span:has(> img[alt="Light4You"]):not([role="dialog"] *) { background: url("/black/light4you-logo.webp") center / contain no-repeat; }
:root:root:root header.sticky > header span:has(> img[alt="Light4You"]):not([role="dialog"] *) > img { opacity: 0; }
/* régua: só os links de cima (regua-link); o submenu é branco e fica com a tinta dele */
:root:root:root header nav[aria-label="Categorias"] a.regua-link { color: var(--bw-branco) !important; }
:root:root:root header nav[aria-label="Categorias"] a[href="/ofertas"] { color: var(--bw-verde) !important;
  --ofertas-marca: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%2016'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M3%2011C46%204%20118%203%20197%207'%20fill%3D'none'%20stroke%3D'%2370B125'%20stroke-width%3D'3'%20stroke-linecap%3D'round'%20vector-effect%3D'non-scaling-stroke'%2F%3E%3C%2Fsvg%3E"); }
/* ícones do topo em branco; os do menu do celular (fundo branco) seguem no verde do estilo fit */
:root:root:root header.sticky :is(a, button):not(.mao-campo):not([role="dialog"] *) svg { color: var(--bw-branco) !important; }
:root:root:root header.sticky .mao-botao svg { color: #FFFFFF !important; }
/* busca: o campo é transparente, então fica no preto do topo com o traço verde; a lupa segue no laranja de hoje */

/* ── Subtítulos em preto (o --secao-cor também vem no próprio h2) ── */
:root:root:root main h2[style*="--secao-cor"] { --secao-cor: var(--bw-preto); }

/* ── Rodapé preto com os títulos no verde ── */
:root:root:root footer:not([class*="Depoimentos"]) { background: var(--bw-preto) !important; color: var(--bw-branco) !important; }
:root:root:root footer:not([class*="Depoimentos"]) :is(p, a, button, span, small, li, svg):not(footer > .text-center *) { color: var(--bw-branco) !important; }
:root:root:root footer:not([class*="Depoimentos"]) h3 { color: var(--bw-verde) !important; }
:root:root:root footer:not([class*="Depoimentos"]) [class*="pt-6"] { border-top-color: var(--bw-fio) !important; }

/* ── Ícones em grafite (Leonardo, 23/11/2026: "Tudo em preto"): faixa e categorias da home, produto, checkout e aviso de entrega ──
   Nas ilustrações o verde vira cinza no mesmo claro-escuro (o traço fica quase preto); laranja, creme e comida ficam.
   O <img> continua com o arquivo de hoje; a arte da campanha (public/black/l4y-*) entra como fundo e a original sai da caixa
   por object-position, como na Santo. Faixa e categorias vêm do banco pelo next/image: a regra casa pelo nome no src.
   Todas são quadradas em caixa quadrada: o fundo em 100% acompanha o cover/contain e o zoom (scale) de cada uma. */
:root:root:root img[src*="light4you-faixa-pix-512"],
:root:root:root img[src*="light4you-faixa-cupom-creme-512"],
:root:root:root img[src*="light4you-faixa-entrega-512"],
:root:root:root img[src*="light4you-faixa-dieta-creme-512"],
:root:root:root img[src*="light4you-categoria-refeicoes."],
:root:root:root img[src*="light4you-categoria-sopas-e-cremes."],
:root:root:root img[src*="light4you-categoria-porcoes."],
:root:root:root img[src*="light4you-categoria-lanches."],
:root:root:root img[src*="light4you-categoria-doces."],
:root:root:root img[src*="light4you-categoria-dia-a-dia."],
:root:root:root img[src$="/fit/prazo-e-frete.webp"],
:root:root:root img[src$="/fit/whatsapp.webp"],
:root:root:root img[src$="/fit/preparo-microondas.webp"],
:root:root:root img[src$="/fit/preparo-forno.webp"],
:root:root:root img[src$="/fit/preparo-banho-maria.webp"],
:root:root:root img[src$="/fit/preparo-airfryer.webp"],
:root:root:root img[src$="/fit/pagamento-pix.webp"],
:root:root:root img[src$="/fit/pagamento-cartao.webp"],
:root:root:root img[src$="/fit/pagamento-vale.webp"],
:root:root:root img[src$="/faixa/entrega.webp"] { object-position: -99999px 0; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
:root:root:root img[src*="light4you-faixa-pix-512"] { background-image: url("/black/l4y-faixa-pix.webp"); }
:root:root:root img[src*="light4you-faixa-cupom-creme-512"] { background-image: url("/black/l4y-faixa-cupom.webp"); }
:root:root:root img[src*="light4you-faixa-entrega-512"] { background-image: url("/black/l4y-faixa-entrega.webp"); }
:root:root:root img[src*="light4you-faixa-dieta-creme-512"] { background-image: url("/black/l4y-faixa-dieta.webp"); }
:root:root:root img[src*="light4you-categoria-refeicoes."] { background-image: url("/black/l4y-categoria-refeicoes.webp"); }
:root:root:root img[src*="light4you-categoria-sopas-e-cremes."] { background-image: url("/black/l4y-categoria-sopas-e-cremes.webp"); }
:root:root:root img[src*="light4you-categoria-porcoes."] { background-image: url("/black/l4y-categoria-porcoes.webp"); }
:root:root:root img[src*="light4you-categoria-lanches."] { background-image: url("/black/l4y-categoria-lanches.webp"); }
:root:root:root img[src*="light4you-categoria-doces."] { background-image: url("/black/l4y-categoria-doces.webp"); }
:root:root:root img[src*="light4you-categoria-dia-a-dia."] { background-image: url("/black/l4y-categoria-dia-a-dia.webp"); }
:root:root:root img[src$="/fit/prazo-e-frete.webp"] { background-image: url("/black/l4y-fit-prazo-e-frete.webp"); }
:root:root:root img[src$="/fit/whatsapp.webp"] { background-image: url("/black/l4y-fit-whatsapp.webp"); }
:root:root:root img[src$="/fit/preparo-microondas.webp"] { background-image: url("/black/l4y-fit-preparo-microondas.webp"); }
:root:root:root img[src$="/fit/preparo-forno.webp"] { background-image: url("/black/l4y-fit-preparo-forno.webp"); }
:root:root:root img[src$="/fit/preparo-banho-maria.webp"] { background-image: url("/black/l4y-fit-preparo-banho-maria.webp"); }
:root:root:root img[src$="/fit/preparo-airfryer.webp"] { background-image: url("/black/l4y-fit-preparo-airfryer.webp"); }
:root:root:root img[src$="/fit/pagamento-pix.webp"] { background-image: url("/black/l4y-fit-pagamento-pix.webp"); }
:root:root:root img[src$="/fit/pagamento-cartao.webp"] { background-image: url("/black/l4y-fit-pagamento-cartao.webp"); }
:root:root:root img[src$="/fit/pagamento-vale.webp"] { background-image: url("/black/l4y-fit-pagamento-vale.webp"); }
:root:root:root img[src$="/faixa/entrega.webp"] { background-image: url("/black/l4y-entrega-modal.webp"); }

/* ── Selo da Black Week no card (ProductCard, seloBlack): etiqueta preta de cantos retos no lugar do "Baixou x%" ──
   "black WEEK" na letra da campanha, um fio, e o desconto: número e % no laranja, OFF no branco.
   O HTML é o mesmo da Santo (desconto antes do nome); aqui o nome vem primeiro pelo order. */
.bw-selo { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px;
  background: var(--bw-preto); border-radius: 2px; line-height: 1; white-space: nowrap; pointer-events: none; font-family: var(--fit-texto, Inter), sans-serif; }
.bw-selo-nome { order: -1; display: inline-flex; align-items: baseline; gap: .22em; font-family: "Playpen Sans", var(--fit-texto, Inter), sans-serif; font-size: 15px; letter-spacing: -.02em; }
.bw-selo-nome > span:first-child { font-weight: 300; color: var(--bw-branco); }
.bw-selo-nome > span:last-child { font-weight: 800; color: var(--bw-laranja); }
.bw-selo-off { display: inline-flex; align-items: baseline; padding-left: 9px; border-left: 1px solid var(--bw-fio); font-weight: 800; }
.bw-selo-off > span:last-child { display: contents; }
.bw-selo-off > span:first-child, .bw-selo-off > span:last-child > span:first-child { font-size: 15px; letter-spacing: -.02em; color: var(--bw-laranja); }
.bw-selo-off > span:last-child > span:last-child { margin-left: 3px; font-size: 11px; letter-spacing: .02em; color: var(--bw-branco); }
/* celular, tablet e computador pequeno (cards até ~230 px, onde o selo grande encosta no coração) e card compacto */
@media (max-width: 1279px) {
  .bw-selo { height: 26px; padding: 0 7px; gap: 6px; }
  .bw-selo-nome, .bw-selo-off > span:first-child, .bw-selo-off > span:last-child > span:first-child { font-size: 12px; }
  .bw-selo-off { padding-left: 6px; }
  .bw-selo-off > span:last-child > span:last-child { font-size: 9px; }
}
@media (min-width: 768px) { .bw-selo:not(.bw-selo-compacto) { top: 12px; left: 12px; } }
/* tablet (foto de 152 a 215 px, coração a ~110 px da borda): o selo vai em duas linhas, a marca em cima do desconto */
@media (min-width: 768px) and (max-width: 1023px) {
  .bw-selo:not(.bw-selo-compacto) { flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 6px 8px 7px; }
  .bw-selo:not(.bw-selo-compacto) .bw-selo-off { padding-left: 0; border-left: 0; }
} /* a 12 px da foto, onde ficava o "Baixou" */
.bw-selo-compacto { height: 26px; padding: 0 7px; gap: 6px; }
.bw-selo-compacto .bw-selo-nome, .bw-selo-compacto .bw-selo-off > span:first-child, .bw-selo-compacto .bw-selo-off > span:last-child > span:first-child { font-size: 12px; }
.bw-selo-compacto .bw-selo-off { padding-left: 6px; }
.bw-selo-compacto .bw-selo-off > span:last-child > span:last-child { font-size: 9px; }
