/*
 * 🌸 Banners do meio da home nova do tema padrão (02/12). CSS copiado dos artefatos aprovados
 * (`_artefatos/home-demo-florbase/3…6`), já com os "ajustes depois da 1ª foto" e a "2ª versão" de cada um aplicados.
 * Celular = as regras `.cel` dos artefatos, a partir de 760 px (mesmo corte do tema).
 * Prefixo `lj2b-`; tudo debaixo de `.lj` pra vencer as regras genéricas do `tema-padrao.css`.
 * Cor: `--lj-ac` (cor da loja) e `--lj-ac-tx` (a versão que dá leitura em texto). Tons do fundo: `.lj2b-tom--*`.
 * Troque `BANNERS_V2_CSS_V` (`home-v2/pecas-dos-banners.tsx`) ao mexer aqui.
 */

/* ── tons do fundo (a = começo do degradê, b = meio, c = fim, bola = enfeite do canto) ── */
.lj .lj2b-tom--rosa { --lj2b-a:#f9d3da; --lj2b-b:#fdecee; --lj2b-c:#fff7f5; --lj2b-bola:#f4bccb; }
.lj .lj2b-tom--lilas { --lj2b-a:#e3d9f6; --lj2b-b:#ece4f9; --lj2b-c:#f5f0fc; --lj2b-bola:#cdbdee; }
.lj .lj2b-tom--sol { --lj2b-a:#fae7a2; --lj2b-b:#fcefc4; --lj2b-c:#fdf6dc; --lj2b-bola:#f6d568; }
.lj .lj2b-tom--verde { --lj2b-a:#cdebd9; --lj2b-b:#e3f4ea; --lj2b-c:#f2faf5; --lj2b-bola:#b3dfc6; }
.lj .lj2b-tom--champ { --lj2b-a:#ebe1cf; --lj2b-b:#f1eadc; --lj2b-c:#f6f1e7; --lj2b-bola:#e0d2b6; }

/* O tema põe `content-box` em toda classe com "lj" (o artefato do tema padrão de 07/11 era assim); estes artefatos são
   `border-box`. Só nas peças daqui (os cards de produto dentro da fileira em pé seguem a regra deles). */
.lj [class*="lj2b-"] { box-sizing: border-box; }
.lj [class^="lj2b-"] a, .lj a[class^="lj2b-"] { color: inherit; text-decoration: none; }
.lj .lj2b-ban svg, .lj .lj2b-tri svg, .lj .lj2b-fx svg { flex: none; }

/* olho (texto pequeno acima do título) e botão verde */
.lj .lj2b-olho { display: block; font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--lj-ac-tx, var(--lj-ac)); text-transform: uppercase; margin: 0 0 6px; }
.lj .lj2b-cta { height: 46px; padding: 0 22px; border-radius: 999px; background: var(--lj-ac); color: #fff !important; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background-color .2s; }
.lj .lj2b-cta:hover, .lj .lj2b-ban__c:hover .lj2b-cta { background: color-mix(in srgb, var(--lj-ac) 82%, #000); }

/* ───────── 1 · banner largo "Amor em flores" (bigBannerA) ───────── */
.lj .lj2b-ban { padding: 30px 0 40px; }
.lj .lj2b-ban__c {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 520px; align-items: center; min-height: 264px;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(95deg, var(--lj2b-a) 0%, var(--lj2b-b) 38%, var(--lj2b-c) 100%);
}
.lj .lj2b-ban__c::before, .lj .lj2b-ban__c::after { content: ""; position: absolute; border-radius: 50%; background: var(--lj2b-bola); opacity: .75; pointer-events: none; }
.lj .lj2b-ban__c::before { width: 210px; height: 210px; left: -56px; top: -112px; }
.lj .lj2b-ban__c::after { width: 170px; height: 170px; left: 36%; bottom: -128px; }
.lj .lj2b-ban__t { position: relative; z-index: 2; padding: 26px 0 28px 44px; display: block; }
.lj .lj2b-ban__h { font-family: var(--font-fraunces), 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 48px; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 8px; color: #17322a; }
.lj .lj2b-ban__h em, .lj .lj2b-tb__h em, .lj .lj2b-ed__h em, .lj .lj2b-vb__h em { font-style: italic; font-weight: 500; color: var(--lj-ac-tx, var(--lj-ac)); }
.lj .lj2b-ban__p { display: block; margin: 0 0 16px; font-size: 15.5px; color: #49524c; }
.lj .lj2b-ban__a { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lj .lj2b-ban__d { position: relative; font-size: 13.5px; color: #49524c; font-weight: 600; font-variant-numeric: tabular-nums; }
.lj .lj2b-ban__d strong { color: var(--lj-tx, #1a211c); font-weight: 800; }
.lj .lj2b-ban__f { position: relative; align-self: stretch; min-height: 264px; }
/* Foto real (com fundo): enche o disco do artefato inteiro (416 px com o anel), cortado em cima e embaixo pelo banner.
   O zoom de 1.3 tira da vista a faixa borrada lateral que algumas fotos quadradas trazem. */
.lj .lj2b-disco { position: absolute; left: 50%; top: 50%; width: 384px; height: 384px; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: #fffdfb; }
.lj .lj2b-ban__f::before { content: ""; position: absolute; left: 50%; top: 50%; width: 416px; height: 416px; box-sizing: border-box; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--lj2b-bola); }
.lj .lj2b-disco img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.3); }

/* ───────── 2 · fileira de 3 banners de categoria (bannerDuoA) ───────── */
.lj .lj2b-tri { padding: 30px 0 40px; }
.lj .lj2b-tri__g { display: grid; grid-template-columns: repeat(var(--lj2b-n, 3), minmax(0, 1fr)); gap: 20px; }
.lj .lj2b-tb {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: center; min-height: 204px;
  border-radius: 20px; overflow: hidden; background: linear-gradient(100deg, var(--lj2b-a), var(--lj2b-c));
}
.lj .lj2b-tom--rosa.lj2b-tb { --lj2b-c: #fff3f2; }
.lj .lj2b-tb::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; left: -52px; top: -70px; opacity: .38; pointer-events: none; background: var(--lj2b-bola); }
.lj .lj2b-tb__t { position: relative; z-index: 2; padding: 20px 0 20px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.lj .lj2b-tb__h { font-family: var(--font-fraunces), 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 27px; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: #17322a; text-wrap: balance; }
.lj .lj2b-tb__d { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; font-size: 12.5px; color: #49524c; font-weight: 600; font-variant-numeric: tabular-nums; }
.lj .lj2b-tb__d strong { color: var(--lj-tx, #1a211c); font-weight: 800; }
.lj .lj2b-tb__de { white-space: nowrap; }
.lj .lj2b-tb__b { height: auto; padding: 0; background: none; color: var(--lj-ac-tx, var(--lj-ac)); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; white-space: nowrap; }
.lj .lj2b-tb__b svg, .lj .lj2b-vb__b svg { transition: transform .25s; }
.lj .lj2b-tb:hover .lj2b-tb__b svg, .lj .lj2b-vb:hover .lj2b-vb__b svg { transform: translateX(4px); }
/* Foto real enche o lado do cartão até a borda e some devagar pro lado do texto (e se mistura com a cor do fundo). */
.lj .lj2b-tb__f { position: relative; align-self: stretch; overflow: hidden; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
.lj .lj2b-tb__f img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.2); transition: transform .4s; }
.lj .lj2b-tb:hover .lj2b-tb__f img { transform: scale(1.24); }

/* ───────── 3 · banner editorial com 3 arcos (bigBannerB) ───────── */
.lj .lj2b-ed {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48%; align-items: center; min-height: 304px;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(100deg, var(--lj2b-ea, var(--lj2b-a)) 0%, var(--lj2b-eb, var(--lj2b-b)) 45%, var(--lj2b-ec, var(--lj2b-c)) 100%);
  --lj2b-arco-a: color-mix(in srgb, var(--lj2b-c) 60%, #fff); --lj2b-arco-b: color-mix(in srgb, var(--lj2b-c) 35%, #fff); --lj2b-arco-c: color-mix(in srgb, var(--lj2b-b) 60%, #fff);
}
.lj .lj2b-tom--verde.lj2b-ed { --lj2b-ea: #dbeadb; --lj2b-eb: #e6efe5; --lj2b-ec: #eef4ec; --lj2b-arco-a: #f0f5ee; --lj2b-arco-b: #f6f9f4; --lj2b-arco-c: #edf3ea; }
.lj .lj2b-ed__t { position: relative; z-index: 2; padding: 30px 0 30px 44px; display: block; }
.lj .lj2b-ed .lj2b-olho { margin-bottom: 10px; }
.lj .lj2b-ed__h { font-family: var(--font-fraunces), 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 43px; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; color: #19251e; text-wrap: balance; max-width: 13.5em; }
.lj .lj2b-cores { display: flex; align-items: center; gap: 8px; margin-top: 16px; position: relative; flex-wrap: wrap; }
.lj .lj2b-cores__l { font-size: 12.5px; font-weight: 700; color: #49524c; margin-right: 2px; }
.lj .lj2b-chip { height: 34px; padding: 0 12px 0 9px; border-radius: 999px; background: #fff; border: 1px solid #cfe3d6; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--lj-tx, #1a211c); white-space: nowrap; }
.lj .lj2b-chip:hover { border-color: var(--lj-ac); color: var(--lj-ac-tx, var(--lj-ac)); }
.lj .lj2b-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.lj .lj2b-chip b { font-weight: 600; color: var(--lj-mu, #5c665f); font-size: 12px; }
.lj .lj2b-ed__f { position: relative; z-index: 0; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 22px 36px 0 20px; }
.lj .lj2b-arco { flex: 1 1 0; max-width: 170px; border-radius: 999px 999px 0 0; overflow: hidden; display: block; position: relative; transition: transform .3s; }
.lj .lj2b-arco--a { background: var(--lj2b-arco-a); height: 204px; }
.lj .lj2b-arco--b { background: var(--lj2b-arco-b); height: 244px; }
.lj .lj2b-arco--c { background: var(--lj2b-arco-c); height: 204px; }
.lj .lj2b-arco img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: multiply; transform: scale(1.16); transition: transform .4s; }
.lj .lj2b-arco:hover { transform: translateY(-6px); }
.lj .lj2b-arco:hover img { transform: scale(1.2); }
.lj .lj2b-arco:focus-visible { outline: 2px solid var(--lj-ac); outline-offset: 3px; }

/* ───────── 4 · banner em pé + produtos da categoria (bannerDuoB) ───────── */
.lj .lj2b-fx { padding: 26px 0 14px; }
.lj .lj2b-fx + .lj2b-fx { padding-bottom: 40px; }
.lj .lj2b-fx__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; align-items: stretch; }
.lj .lj2b-fx--dir .lj2b-fx__g { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.lj .lj2b-fx--dir .lj2b-vb { order: 2; }
/* Coluna fixa: cada card é sempre 1/4 da fileira (nunca estica). */
.lj .lj2b-fx__g { grid-template-columns: minmax(0, calc((100% - 72px) / 4)) minmax(0, 1fr); }
.lj .lj2b-fx--dir .lj2b-fx__g { grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - 72px) / 4)); }
.lj .lj2b-fx__p { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lj .lj2b-fx__p > * { min-width: 0; }
.lj .lj2b-vb { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; min-height: 100%; background: linear-gradient(170deg, var(--lj2b-a), var(--lj2b-c)); }
.lj .lj2b-tom--sol.lj2b-vb { --lj2b-a: #f5e4ae; --lj2b-c: #fbf3d9; }
.lj .lj2b-vb__t { position: relative; z-index: 2; padding: 28px 22px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lj .lj2b-vb__h { font-family: var(--font-fraunces), 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 34px; line-height: 1.02; letter-spacing: -.02em; margin: 0; color: #17322a; }
.lj .lj2b-vb__h em { display: block; }
.lj .lj2b-tom--champ .lj2b-vb__h em { color: #8d7547; }
.lj .lj2b-vb__p { font-size: 13.5px; color: #49524c; line-height: 1.35; }
.lj .lj2b-vb__d { font-size: 12.5px; color: #49524c; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lj .lj2b-vb__d strong { color: var(--lj-tx, #1a211c); font-weight: 800; }
.lj .lj2b-vb__b { color: var(--lj-ac-tx, var(--lj-ac)); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.lj .lj2b-tom--champ .lj2b-vb__b { color: #6f5a30; }
/* A foto e cortada na propria caixa (nao sobe por cima do link/preco) e some devagar na borda de cima. */
.lj .lj2b-vb__f { position: relative; flex: 1; min-height: 300px; margin-top: 12px; overflow: hidden; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px); mask-image: linear-gradient(180deg, transparent 0, #000 110px); }
.lj .lj2b-vb__f img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.12); transition: transform .4s; }
.lj .lj2b-vb:hover .lj2b-vb__f img { transform: scale(1.16); }
/* A arte aparece INTEIRA (o texto desenhado nela nunca corta); centralizada na altura dos cards. */
.lj .lj2b-vb--arte { background: none; display: flex; align-items: center; }
.lj .lj2b-vb--arte img { position: static; width: 100%; height: auto; max-width: none; border-radius: 20px; }

@media (prefers-reduced-motion: reduce) {
  .lj .lj2b-tb__f img, .lj .lj2b-tb__b svg, .lj .lj2b-vb__b svg, .lj .lj2b-vb__f img, .lj .lj2b-arco, .lj .lj2b-arco img { transition: none; }
}

/* ───────── CELULAR (regras `.cel` dos artefatos) ───────── */
@media (max-width: 760px) {
  .lj .lj2b-olho { font-size: 10px; margin-bottom: 4px; }
  .lj .lj2b-cta { height: 38px; padding: 0 13px; font-size: 12.5px; gap: 6px; }
  .lj .lj2b-cta svg { width: 14px; height: 14px; }

  /* 1 · largo */
  .lj .lj2b-ban { padding: 20px 0 26px; }
  .lj .lj2b-ban__c { grid-template-columns: minmax(0, 1fr) 44%; min-height: 0; border-radius: 18px; }
  .lj .lj2b-ban__c::before { width: 120px; height: 120px; left: -44px; top: -70px; }
  .lj .lj2b-ban__c::after { display: none; }
  .lj .lj2b-ban__t { padding: 18px 0 18px 16px; }
  .lj .lj2b-ban__h { font-size: 29px; margin-bottom: 6px; }
  .lj .lj2b-ban__p { font-size: 13.5px; line-height: 1.35; margin-bottom: 12px; }
  .lj .lj2b-ban__a { gap: 8px; }
  .lj .lj2b-ban__d { font-size: 11.5px; flex-basis: 100%; }
  .lj .lj2b-ban__f { min-height: 0; align-self: stretch; }
  .lj .lj2b-disco { left: 4px; width: 208px; height: 208px; transform: translateY(-50%); }
  .lj .lj2b-ban__f::before { left: -5px; width: 226px; height: 226px; transform: translateY(-50%); }

  /* 2 · fileira de 3: um embaixo do outro, todos à vista */
  .lj .lj2b-tri { padding: 20px 0 26px; }
  .lj .lj2b-tri__g { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lj .lj2b-tb { min-height: 128px; grid-template-columns: minmax(0, 1fr) 40%; border-radius: 16px; }
  .lj .lj2b-tb::before { width: 90px; height: 90px; left: -40px; top: -56px; }
  .lj .lj2b-tb__t { padding: 14px 0 14px 16px; gap: 5px; }
  .lj .lj2b-tb__h { font-size: 21px; }
  .lj .lj2b-tb__d { font-size: 11.5px; }
  .lj .lj2b-tb__b { font-size: 12.5px; margin-top: 1px; }

  /* 3 · editorial: texto em cima, arcos embaixo */
  .lj .lj2b-ed { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 16px; }
  .lj .lj2b-ed__t { padding: 20px 16px 0; }
  .lj .lj2b-ed__h { font-size: 28px; margin-bottom: 14px; }
  .lj .lj2b-ed .lj2b-ban__a { gap: 8px 12px; }
  .lj .lj2b-ed .lj2b-ban__d { flex-basis: auto; white-space: nowrap; font-size: 11.5px; }
  .lj .lj2b-ed .lj2b-cta { height: 44px; }
  .lj .lj2b-ed .lj2b-cores { margin: 12px 0 0; gap: 6px; }
  .lj .lj2b-cores__l { display: none; }
  .lj .lj2b-chip { height: 44px; padding: 0 14px 0 11px; font-size: 12.5px; }
  .lj .lj2b-ed__f { padding: 10px 16px 0; gap: 8px; }
  .lj .lj2b-arco { max-width: none; }
  .lj .lj2b-arco--a, .lj .lj2b-arco--c { height: 112px; }
  .lj .lj2b-arco--b { height: 134px; }
  .lj .lj2b-arco:hover { transform: none; }

  /* 4 · em pé: faixa baixa em cima, produtos deslizando de lado */
  .lj .lj2b-fx { padding: 18px 0 10px; }
  .lj .lj2b-fx + .lj2b-fx { padding-bottom: 28px; }
  .lj .lj2b-fx .lj-in { padding-right: 0; }
  .lj .lj2b-fx__g, .lj .lj2b-fx--dir .lj2b-fx__g { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lj .lj2b-fx--dir .lj2b-vb { order: 0; }
  .lj .lj2b-vb { display: grid; grid-template-columns: minmax(0, 1fr) 44%; align-items: center; min-height: 140px; border-radius: 16px; margin-right: clamp(16px, 4vw, 40px); }
  .lj .lj2b-vb--arte { display: block; }
  .lj .lj2b-vb--arte img { position: static; height: auto; display: block; }
  .lj .lj2b-vb__t { padding: 14px 0 14px 16px; gap: 4px; }
  .lj .lj2b-vb__h { font-size: 21px; }
  .lj .lj2b-vb__h em { display: inline; }
  .lj .lj2b-vb__p { display: none; }
  .lj .lj2b-vb__d { font-size: 11.5px; }
  .lj .lj2b-vb__b { font-size: 12.5px; margin-top: 1px; }
  .lj .lj2b-vb__t { padding-right: 12px; }
  .lj .lj2b-vb__f { align-self: stretch; min-height: 0; margin-top: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
  .lj .lj2b-vb__f img { transform: scale(1.2); }
  .lj .lj2b-vb:hover .lj2b-vb__f img { transform: scale(1.2); }
  .lj .lj2b-fx__p { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: clamp(16px, 4vw, 40px); }
  .lj .lj2b-fx__p::-webkit-scrollbar { display: none; }
  /* mesma largura do card da grade de 2 e dos outros trilhos */
  .lj .lj2b-fx__p > * { flex: 0 0 calc((100% - 10px) / 2); scroll-snap-align: start; }
}
