/* =====================================================
   Layout 3 — marketplace denso (busca grande, CEP, departamentos).
   Carregado só quando active_layout() === 'layout3'.
   Sobrepõe o style.css base apenas na APARÊNCIA.
   ===================================================== */
:root {
    --l3-blue: #0032C5;
    --l3-blue-dark: #00278F;
    --l3-blue-bg: #E8ECFB;
}

/* O tema personalizado da loja (Configurações → cores) repinta --primary e,
   por tabela, --blue/--orange — que valem para TODA a vitrine. O Layout 3 tem
   identidade azul própria, então neutralizamos essas variáveis aqui: sem isso,
   preços, botões, ícones e links herdam a cor do tema (ex.: o amarelo #f5b324)
   dentro de um layout que é azul.
   Declarar no <body> vence o :root por HERANÇA (o body é descendente do html),
   mesmo o tema sendo injetado depois no <head> — não depende de especificidade. */
body.layout-layout3 {
    --primary: #0032C5;
    --primary-dark: #00278F;
    --blue: #0032C5;
    --blue-dark: #00278F;
}

.l3p.container, .l3-header-row.container, .l3-header-row2.container, .l3-deptnav-inner.container {
    max-width: 1320px;
}

body.layout-layout3 { background: #ffffff; overflow-x: hidden; }

/* ---------- Topo / header ---------- */
.l3-topline { height: 4px; background: linear-gradient(90deg, var(--l3-blue), var(--green)); }
.l3-sticky { position: sticky; top: 0; z-index: 80; background: #f7f7f7; box-shadow: 0 1px 0 var(--border); }
.l3-header { background: #f7f7f7; }
.l3-header-row { display: flex; align-items: center; gap: 18px; padding: 14px 20px; }
.l3-burger { display: none; background: none; border: 0; color: var(--l3-blue); cursor: pointer; padding: 6px; }
.l3-logo { flex-shrink: 0; display: flex; align-items: center; }
.l3-logo img { height: 44px; display: block; }
.l3-logo-text { font-weight: 800; font-size: 1.25rem; color: var(--l3-blue-dark); }
/* Logo desktop x mobile: ".l3-logo .l3-logo-x" (2 classes) tem mais
   especificidade que ".l3-logo img" acima (1 classe + elemento) — sem isso,
   o display:none nunca vence e as duas logos aparecem juntas sempre. */
.l3-logo .l3-logo-m { display: none; }
@media (max-width: 767px) {
    .l3-logo .l3-logo-d { display: none; }
    .l3-logo .l3-logo-m { display: block; }
}

.l3-search { flex: 1; display: flex; align-items: center; max-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.l3-search input { flex: 1; border: 0; padding: 13px 16px; outline: none; color: var(--text); background: transparent; }
.l3-search button { background: none; color: var(--muted); border: 0; padding: 0 16px; align-self: stretch; cursor: pointer; display: flex; align-items: center; }
.l3-search button:hover { color: var(--l3-blue); }

.l3-checkout-secure { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }

.l3-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.l3-ico { position: relative; display: flex; align-items: center; justify-content: center; color: var(--l3-blue); text-decoration: none; background: none; border: 0; padding: 2px; cursor: pointer; }
.l3-ico:hover { color: var(--l3-blue-dark); }
.l3-cart-badge { position: absolute; top: -6px; right: -10px; background: var(--green); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center; }

.l3-header-row2 { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.l3-cep-trigger { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--l3-blue); font-weight: 600; font-size: .92rem; cursor: pointer; }
.l3-cep-trigger:hover { color: var(--l3-blue-dark); }
.l3-a11y { background: none; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--l3-blue); cursor: pointer; }

.l3-deptnav { background: var(--l3-blue); }
.l3-deptnav-inner { display: flex; align-items: center; gap: 22px; padding: 10px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.l3-deptnav-inner::-webkit-scrollbar { display: none; }
.l3-deptbtn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 0; border-radius: 6px; padding: 7px 12px; color: #fff; font-weight: 700; font-size: .88rem; white-space: nowrap; cursor: pointer; }
.l3-deptnav-inner a { color: #fff; text-decoration: none; font-size: .86rem; white-space: nowrap; opacity: .92; }
.l3-deptnav-inner a:hover { opacity: 1; text-decoration: underline; }

/* ---------- CEP bottom-sheet ---------- */
.l3-cep-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.l3-cep-overlay.is-open { opacity: 1; pointer-events: auto; }
.l3-cep-modal { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 420px; background: #fff; border-radius: 16px 16px 0 0; z-index: 201; padding: 22px 22px 26px; transition: transform .25s ease; box-shadow: 0 -10px 40px rgba(16,24,40,.2); pointer-events: none; }
@media (min-width: 641px) { .l3-cep-modal { border-radius: 16px; bottom: 50%; transform: translate(-50%, 50%) scale(.96); opacity: 0; } .l3-cep-modal.is-open { transform: translate(-50%, 50%) scale(1); opacity: 1; } }
.l3-cep-modal.is-open { transform: translate(-50%, 0); pointer-events: auto; }
.l3-cep-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.l3-cep-title { display: block; font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }
.l3-cep-sub { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.l3-cep-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
#l3-cep-input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 13px 14px; font-size: 1rem; letter-spacing: .5px; margin-bottom: 8px; }
.l3-cep-nao { display: inline-block; color: var(--l3-blue); font-size: .85rem; text-decoration: none; margin-bottom: 16px; }
.l3-cep-result { min-height: 20px; font-size: .88rem; margin-bottom: 14px; }
.l3-cep-result .is-ok { color: var(--green); font-weight: 700; }
.l3-cep-result .is-err { color: #c0392b; }
.l3-cep-confirm { width: 100%; background: var(--l3-blue); color: #fff; border: 0; border-radius: 8px; padding: 13px; font-weight: 700; cursor: pointer; }
.l3-cep-confirm:hover { background: var(--l3-blue-dark); }

/* ---------- Menu lateral ---------- */
.l3-menu-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.l3-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.l3-menu { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 84vw; background: #fff; z-index: 201; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
.l3-menu.is-open { transform: translateX(0); }
.l3-menu-head { display: flex; align-items: center; justify-content: space-between; background: var(--l3-blue); color: #fff; padding: 18px 20px; font-weight: 700; }
.l3-menu-head button { background: none; border: 0; color: #fff; cursor: pointer; }
.l3-menu-cats, .l3-menu-inst { display: flex; flex-direction: column; padding: 8px 0; }
.l3-menu-cats a, .l3-menu-inst a { padding: 12px 20px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.l3-menu-divider { height: 8px; background: var(--bg); }

body.l3-menu-lock { overflow: hidden; }

/* ---------- Loader (mesmo espírito do L2, cores próprias) ---------- */
.l3-loader { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 300; pointer-events: none; opacity: 0; }
.l3-loader.is-active { opacity: 1; }
.l3-loader-ring { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--l3-blue); animation: l3-spin .8s linear infinite; }
@keyframes l3-spin { to { transform: rotate(360deg); } }

/* ---------- Loader do envio do checkout (gerando o PIX) ---------- */
.l3c-loading { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 900; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(255, 255, 255, .94); }
.l3c-loading.is-on { display: flex; }
.l3c-loading-ring { width: 58px; height: 58px; border-radius: 50%; border: 5px solid var(--border); border-top-color: var(--l3-blue); animation: l3-spin .8s linear infinite; }
.l3c-loading-t { font-size: 1.06rem; font-weight: 700; color: var(--text); margin: 4px 0 0; }
.l3c-loading-s { font-size: .9rem; color: var(--muted); max-width: 300px; margin: 0; }
body.l3c-loading-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .l3c-loading-ring { animation-duration: 2.4s; } }

/* ---------- Breadcrumb / título ---------- */
.l3p-crumb { padding: 14px 0 0; font-size: .82rem; color: var(--muted); }
.l3p-crumb a { color: var(--muted); text-decoration: none; }
.l3p-crumb a:hover { color: var(--l3-blue); }
.l3p-crumb span { color: var(--text); }

.l3p-titleblock { padding: 12px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.l3p-title { font-size: 1.55rem; line-height: 1.3; color: #4b5563; font-weight: 400; margin-bottom: 8px; }
.l3p-titlemeta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.l3p-sku { font-size: .78rem; }
.l3p-ratelink { display: flex; align-items: center; gap: 4px; color: var(--l3-blue); text-decoration: none; font-weight: 600; }
.l3p-ratelink-star { color: #f5a623; }
.l3p-ratelink-count { color: var(--muted); font-weight: 400; }

/* ---------- Grid principal ---------- */
.l3p-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 40px; }

/* Galeria */
.l3p-gallery { position: sticky; top: 100px; }
.l3p-frame { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.l3p-disc { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--green); color: #fff; font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 6px; }
.l3p-fabtns { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.l3p-fab { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--l3-blue); cursor: pointer; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.l3p-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.l3p-slides::-webkit-scrollbar { display: none; }
.l3p-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #fff; }
.l3p-slide img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 30px; }
.l3p-video-wrap { width: 100%; height: 100%; background: #000; }
.l3p-video-wrap iframe, .l3p-video-wrap video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.l3p-thumb-play { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #14181f; color: #fff; border-radius: 4px; font-size: 1rem; }
.l3p-count { position: absolute; bottom: 12px; right: 14px; background: rgba(15,23,42,.65); color: #fff; font-size: .74rem; padding: 3px 9px; border-radius: 999px; }

.l3p-thumbs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.l3p-thumb { width: 58px; height: 58px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; padding: 4px; flex-shrink: 0; }
.l3p-thumb.is-active { border-color: var(--l3-blue); }
.l3p-thumb img { width: 100%; height: 100%; object-fit: contain; }
.l3p-dots { display: none; justify-content: center; gap: 8px; margin-top: 12px; }
.l3p-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: var(--border); cursor: pointer; }
.l3p-dot.is-active { background: var(--l3-blue); transform: scale(1.35); }

/* Banner da promoção de prêmios. Existe duas vezes no HTML e só uma aparece:
   --desk embaixo da foto (aproveita o espaço morto da coluna esquerda, onde
   ele sai quase com o dobro da largura), --buy no topo da caixa de compra,
   logo acima do preço, que é o caminho que o dedo faz no celular.
   A borda fina evita que a arte se dissolva no fundo branco da página quando
   ela própria tiver as bordas claras. */
.l3p-premios { margin-top: 14px; }
.l3p-premios img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.l3p-premios--buy { display: none; }

/* Coluna de compra */
.l3p-buy { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
/* Caixa minimalista de descrição resumida (com fade + "Ver mais informações") */
.l3p-descbox { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.l3p-descbox-head { display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 15px 18px; font-size: .98rem; font-weight: 600; color: #4b5563; }
.l3p-descbox-body { position: relative; padding: 14px 18px 0; max-height: 128px; overflow: hidden; }
.l3p-descbox-body.is-expanded { max-height: none; }
.l3p-descbox-body p { font-size: .88rem; line-height: 1.65; color: var(--text); white-space: pre-line; }
.l3p-descbox-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); pointer-events: none; }
.l3p-descbox-body.is-expanded .l3p-descbox-fade { display: none; }
.l3p-descbox-more { display: block; margin: -8px auto 18px; background: #fff; border: 1.5px solid var(--l3-blue); color: var(--l3-blue); border-radius: 8px; padding: 10px 22px; font-weight: 700; font-size: .84rem; cursor: pointer; position: relative; z-index: 1; }
.l3p-descbox-more:hover { background: var(--l3-blue-bg); }

/* Selo pequeno no topo da coluna de compra — ocupa o lugar que era do
   "Vendido e entregue por". Retangular: a altura manda, a largura acompanha. */
/* O selo saiu do topo da caixa de compra — aquele lugar é do banner da
   promoção agora — e passou a viver na linha do código do item. Por isso
   perdeu a margem de baixo e virou inline: ali ele é mais um item da linha,
   ao lado do "Cód. Item" e da nota. 16px em vez de 18px para não dominar um
   texto de 12,5px. */
.l3p-badge { line-height: 0; display: inline-flex; align-items: center; }
.l3p-badge img { height: 16px; width: auto; max-width: 100%; display: block; }

/* "Vendido e entregue por" desceu para logo abaixo do botão Comprar.
   Alinhado pelo TOPO, e não pelo centro: com a transportadora configurada a
   frase fica em duas linhas no celular, e centralizado o ícone flutuaria no
   meio delas. O respiro de 2px recentraliza ele na primeira linha. */
.l3p-seller { display: flex; align-items: flex-start; gap: 6px; font-size: .86rem; color: var(--muted); margin: 0 0 16px; }
.l3p-seller svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; }
.l3p-seller a { color: var(--l3-blue); text-decoration: none; font-weight: 600; }
/* A transportadora não é link (não é página nossa), mas precisa ter o mesmo
   peso visual do nome da loja — é a outra metade da informação. */
.l3p-seller strong { color: var(--text); font-weight: 600; }

.l3p-pricebox { margin-bottom: 16px; }
.l3p-compare { color: var(--muted); text-decoration: line-through; font-size: .92rem; }
.l3p-price { font-size: 2rem; font-weight: 800; color: var(--l3-blue); line-height: 1.2; font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif; }
.l3p-install { color: var(--muted); font-size: .88rem; margin-top: 4px; }

.l3p-buyform { margin-bottom: 18px; }
.l3p-btn-buy { display: block; width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 8px; padding: 15px; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.l3p-btn-buy:hover { filter: brightness(.94); }

.l3p-outstock { background: #fdecea; border: 1px solid #f5c6c0; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.l3p-outstock strong { display: block; color: #c0392b; margin-bottom: 4px; }
.l3p-outstock span { font-size: .84rem; color: var(--muted); }

.l3p-shipbox { background: #E8EFFC; border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.l3p-shipbox strong { display: block; font-size: 1.02rem; font-weight: 700; color: var(--l3-blue); margin-bottom: 14px; }
.l3p-cep-input { display: block; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 13px 14px; font-size: .95rem; margin-bottom: 12px; }
.l3p-cep-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--l3-blue); color: #fff; border: 0; border-radius: 8px; padding: 14px; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .3px; cursor: pointer; }
.l3p-cep-btn:hover { background: var(--l3-blue-dark); }
.l3p-cep-msg { font-size: .8rem; margin-top: 8px; }
.l3p-cep-msg.is-err { color: #c0392b; }
.l3p-shipresult { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d3ddf5; }
.l3p-ship-addr { display: flex; align-items: flex-start; gap: 8px; color: var(--l3-blue); font-weight: 600; font-size: .88rem; line-height: 1.4; margin-bottom: 16px; }
.l3p-ship-addr svg { flex-shrink: 0; margin-top: 2px; }
.l3p-ship-heading { display: block; color: var(--l3-blue); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.l3p-ship-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.l3p-ship-type { color: var(--muted); font-size: .86rem; flex-basis: 100%; }
.l3p-ship-date { color: var(--l3-blue); font-size: .9rem; }
.l3p-ship-cutoff { margin: 4px 0 0; font-size: .72rem; color: #B45300; font-weight: 600; }
.l3p-ship-price { color: var(--l3-blue); font-weight: 700; font-size: .95rem; margin-left: auto; }

/* ---------- Carrossel de relacionados ---------- */
.l3p-section-title { font-size: 1.2rem; color: var(--l3-blue); margin-bottom: 16px; }
.l3p-carousel { margin-bottom: 40px; }
.l3p-carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -ms-overflow-style: none; scrollbar-width: none; }
.l3p-carousel-track::-webkit-scrollbar { display: none; }
.l3p-carousel-track > * { flex: 0 0 200px; scroll-snap-align: start; }

/* Card de produto L3 (usado no carrossel e em listagens) */
.l3-pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 100%; }
.l3-pcard-img { position: relative; display: block; height: 170px; background: #fff; display: flex; align-items: center; justify-content: center; }
.l3-pcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 14px; }
.l3-pcard-disc { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.l3-pcard-fav { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--l3-blue); cursor: pointer; }
.l3-pcard-body { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; }
.l3-pcard-title { color: var(--text); text-decoration: none; font-size: .84rem; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l3-pcard-rating { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.l3-pcard-stars { color: #f5a623; }
.l3-pcard-outstock { color: var(--muted); font-size: .8rem; margin-top: auto; }
.l3-pcard-compare { color: var(--muted); text-decoration: line-through; font-size: .76rem; }
.l3-pcard-price { font-weight: 800; color: var(--l3-blue); font-size: 1.05rem; margin-top: 2px; }
.l3-pcard-install { color: var(--l3-blue); font-size: .74rem; margin-top: 3px; }

/* ---------- Accordion (descrição/especificações) ---------- */
.l3p-accordion { margin-bottom: 40px; }
.l3p-acc-item { border-top: 1px solid var(--border); }
.l3p-acc-item:last-child { border-bottom: 1px solid var(--border); }
.l3p-acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 16px 4px; font-size: 1rem; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.l3p-acc-chev { color: var(--muted); transition: transform .2s ease; flex-shrink: 0; }
.l3p-acc-item.is-open .l3p-acc-chev { transform: rotate(180deg); }
.l3p-acc-body { display: none; padding: 0 4px 20px; color: var(--text); font-size: .92rem; line-height: 1.6; }
.l3p-acc-item.is-open .l3p-acc-body { display: block; }
.l3p-spectable { width: 100%; border-collapse: collapse; }
.l3p-spectable tr:nth-child(odd) { background: var(--bg); }
.l3p-spectable td { padding: 10px 12px; font-size: .88rem; }
.l3p-spectable td:first-child { color: var(--muted); width: 42%; }
.l3p-spectable td:last-child { color: var(--text); font-weight: 600; }

/* ---------- Avaliações ---------- */
.l3p-reviews { margin-bottom: 60px; }
.l3p-rv-empty { color: var(--muted); font-size: .92rem; }
.l3p-rv-summary { display: flex; gap: 40px; flex-wrap: wrap; padding: 20px; background: var(--bg); border-radius: 10px; margin-bottom: 24px; }
.l3p-rv-avgbox { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 140px; }
.l3p-rv-avgnum { font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.l3p-rv-avgstar { color: #f5a623; font-size: 1.3rem; }
.l3p-rv-avgcount { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.l3p-rv-bars { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.l3p-rv-barrow { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.l3p-rv-barlabel { width: 32px; flex-shrink: 0; }
.l3p-rv-bartrack { flex: 1; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.l3p-rv-barfill { display: block; height: 100%; background: #f5a623; border-radius: 999px; }
.l3p-rv-barcount { width: 26px; text-align: right; flex-shrink: 0; }

.l3p-rv-list { display: flex; flex-direction: column; gap: 20px; }
.l3p-review { border-top: 1px solid var(--border); padding-top: 18px; }
.l3p-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.l3p-review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--l3-blue-bg); color: var(--l3-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.l3p-review-head strong { display: block; font-size: .88rem; color: var(--text); }
.l3p-review-stars { color: #f5a623; font-size: .8rem; }
.l3p-review-time { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.l3p-review-comment { font-size: .9rem; color: var(--text); line-height: 1.55; margin-bottom: 8px; }
.l3p-review-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- Barra fixa mobile ---------- */
.l3p-stickybuy { display: none; }

/* ---------- Footer (mesma estrutura do L2, paleta do L3) ---------- */
.l3-footer { position: relative; background: #f7f7f7; border-top: 1px solid var(--border); color: #374151; padding: 30px 0 0; margin-top: 40px; }

/* Aba lateral esquerda que expande o resto do rodapé */
.l3-footer-tab { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px; background: var(--l3-blue); color: #fff; border: 0; border-radius: 0 0 8px 0; padding: 8px 14px; font-size: .78rem; font-weight: 700; cursor: pointer; z-index: 1; }
.l3-footer-tab:hover { background: var(--l3-blue-dark); }
.l3-footer-tab-chev { transition: transform .2s ease; }
.l3-footer.is-open .l3-footer-tab-chev { transform: rotate(180deg); }

.l3-footer-badges { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 12px 0 22px; }
.l3-footer-badgecol { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.l3-footer-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--l3-blue); }
.l3-footer .badges-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.l3-footer .pay-badge { width: 50px; height: 32px; background: #fff; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 3px; box-shadow: none; }
.l3-footer .pay-badge svg { width: 100%; height: 100%; }
.l3-sec-badge { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: .72rem; color: #374151; line-height: 1.3; }
.l3-sec-badge small { color: #6b7280; }
.l3-social { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #374151; }
.l3-social:hover { color: var(--l3-blue); }

/* =====================================================
   Layout 3 — Checkout em etapas (mesmo comportamento do Layout 2,
   sem a fitinha colorida, com a paleta azul #0033C6)
   ===================================================== */
.l3c-steps { display: flex; justify-content: center; align-items: flex-start; max-width: 620px; margin: 22px auto 6px; padding: 0 12px; }
.l3c-stepi { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.l3c-stepi:not(:first-child)::before { content: ''; position: absolute; top: 27px; left: -50%; width: 100%; height: 3px; background: #c9ced6; z-index: 0; }
.l3c-stepi-ic { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #c9ced6; color: #c9ced6; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.l3c-stepi-lb { margin-top: 8px; font-size: .95rem; font-weight: 600; color: #9aa1ac; }
.l3c-stepi.is-done .l3c-stepi-ic { border-color: #2ecc40; color: #2ecc40; }
.l3c-stepi.is-done .l3c-stepi-lb { color: #2ecc40; }
.l3c-stepi.is-done:not(:first-child)::before { background: #2ecc40; }
.l3c-stepi.is-active .l3c-stepi-ic { border-color: var(--l3-blue); color: var(--l3-blue); }
.l3c-stepi.is-active .l3c-stepi-lb { color: var(--l3-blue); }
.l3c-stepi.is-active:not(:first-child)::before { background: var(--l3-blue); }

.l3c-layout { display: block; max-width: 620px; margin: 0 auto; }
.l3c-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.l3c-step.is-hidden { display: none; }
.l3c-section-hint { font-size: 1.05rem; color: #9aa1ac; font-weight: 600; margin-bottom: 16px; }
.l3c-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.l3c-fields .full { grid-column: 1 / -1; }
.l3c-fields label { display: block; font-size: .85rem; color: #4b5563; font-weight: 600; margin-bottom: 5px; }
.l3c-fields input, .l3c-fields select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 1rem; background: #fff; }
.l3c-fields input:focus, .l3c-fields select:focus { outline: none; border-color: var(--l3-blue); }
.l3c-invalid { border-color: #c0392b !important; }

.l3c-next, .l3c-pay-btn { display: block; width: 100%; margin-top: 20px; background: var(--l3-blue); color: #fff; border: 0; border-radius: 8px; padding: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.l3c-pay-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 20px; font-size: 1.15rem; letter-spacing: .2px; border-radius: 12px; box-shadow: 0 6px 18px rgba(46,204,64,.35); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.l3c-pay-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.l3c-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(46,204,64,.42); filter: brightness(1.03); }
.l3c-pay-btn:active { transform: translateY(0); }
.l3c-next:hover { background: var(--l3-blue-dark); }
.l3c-pay-btn { background: var(--green); }
.l3c-pay-btn:hover { filter: brightness(.95); }
.l3c-nav { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.l3c-nav .l3c-next, .l3c-nav .l3c-pay-btn { margin-top: 0; flex: 1; }
.l3c-back { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; padding: 14px 8px; flex-shrink: 0; }
.l3c-back:hover { color: var(--text); }

/* Banner da promoção no checkout, logo acima de "Escolha como pagar".
   Mesmo tratamento do banner da página do produto: largura toda, borda fina
   para a arte não se dissolver no fundo, e nada de sombra — no checkout
   qualquer peso visual extra compete com o botão de pagar. */
.l3c-promo { margin-bottom: 16px; }
.l3c-promo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

.l3c-pays { display: flex; flex-direction: column; gap: 12px; }
.l3c-pay { display: flex; align-items: center; gap: 14px; border: 2px solid var(--border); border-radius: 10px; padding: 16px; cursor: pointer; position: relative; background: #fff; }
.l3c-pay.is-selected { border-color: var(--l3-blue); box-shadow: 0 0 0 1px var(--l3-blue); }
.l3c-pay input { position: absolute; opacity: 0; pointer-events: none; }
.l3c-pay-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.l3c-pay-body { display: flex; flex-direction: column; flex: 1; }
.l3c-pay-body strong { font-size: 1rem; color: var(--text); }
.l3c-pay-body small { font-size: .82rem; color: var(--muted); }
.l3c-pay-badge { background: #e8f5ec; color: var(--green); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.l3c-pay-processor { position: absolute; bottom: 8px; right: 10px; width: 52px; height: auto; opacity: .85; border-radius: 4px; }

.l3c-terms-note { font-size: .82rem; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.l3c-terms-note a { color: var(--l3-blue); }
.l3c-pay-note { font-size: .8rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.l3c-summary { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: sticky; top: 90px; }
.l3c-summary h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--text); }
.l3c-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 6px 0; color: var(--muted); }
.l3c-sum-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.l3c-sum-item { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; font-size: .85rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.l3c-sum-item-name { color: var(--text); grid-column: 1 / -1; }
.l3c-sum-item-stepper { display: flex; align-items: center; gap: 6px; }
.l3c-qty-btn { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: .95rem; line-height: 1; cursor: pointer; color: var(--l3-blue); }
.l3c-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.l3c-qty-val { min-width: 16px; text-align: center; font-weight: 700; color: var(--text); }
.l3c-sum-item-total { font-weight: 700; color: var(--text); white-space: nowrap; }
.l3c-sum-item-remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.l3c-sum-item-remove:hover { color: #c0392b; }
.l3c-sum-total { font-size: 1.1rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

.l3c-back-solo { display: block; width: 100%; margin-top: 12px; text-align: center; font-size: .92rem; padding: 8px; }
.l3c-summary-inline { position: static; top: auto; margin-top: 22px; background: #fafbfc; }
.l3c-trust-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.l3c-trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.l3c-trust-ic { display: flex; align-items: center; flex-shrink: 0; color: var(--l3-blue); margin-top: 2px; }
/* Cada desenho do icon() vem com o tamanho dele (14, 16, 18...), e numa lista
   em coluna o desalinhamento aparece. Aqui todos valem o mesmo. */
.l3c-trust-ic svg, .l3o-dv-ic svg { width: 16px; height: 16px; }
.l3c-trust-tx { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.l3c-trust-tx strong { display: block; color: var(--text); font-size: .82rem; margin-bottom: 1px; }

@media (max-width: 640px) {
    .l3c-layout { grid-template-columns: 1fr; }
    .l3c-summary { position: static; margin-top: 16px; }
    .l3c-fields { grid-template-columns: 1fr; }
    .l3c-form { padding: 18px 16px; }
    .l3c-stepi-ic { width: 46px; height: 46px; }
    .l3c-stepi-ic svg { width: 22px; height: 22px; }
    .l3c-stepi:not(:first-child)::before { top: 23px; }
    .l3c-stepi-lb { font-size: .82rem; }
}

/* Bloco extra: escondido até clicar na aba */
.l3-footer-expand { display: none; border-top: 1px solid var(--border); }
.l3-footer.is-open .l3-footer-expand { display: block; }
.l3-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 20px 0; }
.l3-footer-links a { color: #374151; font-size: .85rem; text-decoration: none; }
.l3-footer-links a:hover { color: var(--l3-blue); }
/* .l3-footer-info saiu junto com o bloco de dados legais do rodapé
   (themes/layout3/footer.php). A aba "Mais informações" abre só com os links. */

.l3-footer-bottom { background: var(--l3-blue); color: #fff; text-align: center; font-size: .78rem; padding: 14px 0; margin-top: 8px; }

/* =====================================================
   Responsivo — 4 faixas: até 480, 481-767, 768-1023, 1024+
   ===================================================== */

/* Tablet: 2 colunas mantidas, galeria mais estreita.
   minmax(0, 1fr) é essencial aqui — um "1fr" puro deixa a coluna crescer
   até caber o conteúdo interno (ex.: a fileira de miniaturas), estourando
   a largura da tela inteira pro lado. */
@media (max-width: 1023px) {
    .l3p-main { grid-template-columns: minmax(0, 1fr); }
    .l3p-gallery { position: static; min-width: 0; }
    .l3-header-row2, .l3-deptnav { display: none; }
    /* Coluna única: some o espaço morto embaixo da foto que justificava o
       banner ali. Vale a cópia de dentro da caixa de compra, que fica entre a
       foto e o preço — sem margem no topo, porque a caixa já tem recuo. */
    .l3p-premios--desk { display: none; }
    .l3p-premios--buy { display: block; margin: 0 0 14px; }
}

/* Mobile largo/compacto: tudo empilhado */
@media (max-width: 767px) {
    .l3-burger { display: block; }
    .l3-header-row { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .l3-logo { order: 2; flex: 1; }
    .l3-logo img { height: 26px; }
    .l3-logo-text { font-size: 1rem; }
    .l3-header-row.is-checkout .l3-logo { flex: none; }
    .l3-actions { order: 3; gap: 14px; }
    .l3-search { order: 4; flex-basis: 100%; max-width: none; }
    .l3-header-row2 { display: flex; padding: 0 14px 10px; }
    .l3-deptnav { display: none; }

    .l3p.container { padding-left: 0; padding-right: 0; }
    .l3p-crumb { display: none; }
    .l3p-titleblock { padding: 14px 16px 16px; }
    .l3p-title { font-size: 1.2rem; }

    .l3p-frame { border-radius: 0; border-left: 0; border-right: 0; }
    .l3p-slide { aspect-ratio: auto; height: 46vh; max-height: 340px; min-height: 220px; }
    /* Miniaturas em linha única, com rolagem horizontal — nunca quebram
       linha nem estouram a largura da tela, não importa quantas fotos. */
    .l3p-thumbs { flex-direction: row; flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: visible; padding: 0 16px; -ms-overflow-style: none; scrollbar-width: none; }
    .l3p-thumbs::-webkit-scrollbar { display: none; }
    .l3p-thumb { width: 62px; height: 62px; }
    .l3p-dots { display: none; }

    .l3p-buy { border: 0; border-radius: 0; border-top: 8px solid var(--bg); padding: 18px 16px; }
    .l3p-price { font-size: 1.7rem; }

    .l3p-carousel, .l3p-accordion, .l3p-reviews { padding: 0 16px; }
    .l3p-carousel-track > * { flex-basis: 46vw; }

    .l3p-rv-summary { flex-direction: column; gap: 18px; }

    /* Barra fixa de compra: visível por padrão, some enquanto os botões
       nativos (#l3p-buyform) estão na tela — ver layout3.js */
    .l3p-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(16,24,40,.12); padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); transform: translateY(0); transition: transform .25s ease; }
    .l3p-stickybuy.is-hidden { transform: translateY(120%); }
    .l3p-stickybuy-img { width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; background: #fff; }
    .l3p-stickybuy-priceblock { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .l3p-stickybuy-price { font-weight: 800; font-size: 1.2rem; color: var(--l3-blue); white-space: nowrap; }
    .l3p-stickybuy-pix { font-weight: 700; font-size: .82rem; color: var(--l3-blue); opacity: .75; white-space: nowrap; }
    .l3p-stickybuy-btn { flex-shrink: 0; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 13px 22px; font-weight: 700; font-size: 1rem; cursor: pointer; }

    /* Rodapé precisa de folga extra: a barra fixa de compra fica por cima */
    .l3-footer { padding-top: 34px; }
    .l3-footer-bottom { padding-bottom: 76px; }
    .l3-footer-badges { gap: 20px; }
    .l3-footer-links { padding: 16px; }
}

@media (max-width: 480px) {
    .l3p-price { font-size: 1.5rem; }
    .l3p-carousel-track > * { flex-basis: 66vw; }
}

/* =====================================================
   Layout 3 — Home (idêntica ao Layout 2, paleta #0033C6)
   ===================================================== */
.l3h-hero { background: linear-gradient(120deg, var(--l3-blue), #0a4fe0); background-size: cover; background-position: center; color: #fff; padding: 46px 16px 58px; }
.l3h-hero-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.l3h-hero-text { flex: 1; min-width: 0; }
.l3h-eyebrow { display: inline-block; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.l3h-hero h1 { font-size: 2.15rem; line-height: 1.14; max-width: 620px; margin-bottom: 12px; }
.l3h-hero p { font-size: 1.05rem; opacity: .93; max-width: 560px; line-height: 1.5; margin-bottom: 24px; }
.l3h-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.l3h-btn, .l3h-btn-ghost { padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; }
.l3h-btn { background: #fff; color: var(--l3-blue); }
.l3h-btn:hover { filter: brightness(.96); }
.l3h-btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.l3h-btn-ghost:hover { background: rgba(255,255,255,.12); }
.l3h-badges { display: flex; gap: 20px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; }
.l3h-badges span { display: inline-flex; align-items: center; gap: 6px; }
.l3h-badges svg { width: 16px; height: 16px; flex-shrink: 0; }
.l3h-hero-card { flex-shrink: 0; width: 260px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); position: relative; }
.l3h-hero-card img { width: 100%; height: 210px; object-fit: contain; }
.l3h-hero-card-tag { position: absolute; left: 16px; bottom: 16px; background: #f5a623; color: #1a1a1a; font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 8px; }

/* Vitrine de categorias no topo (estilo cards com imagem/SVG) */
.l3h-catshow-wrap { background: #fff; padding: 14px 0 6px; border-bottom: 1px solid var(--border); }
.l3h-catshow-wrap .container { max-width: 1080px; }
.l3h-catshow { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.l3h-catshow::-webkit-scrollbar { height: 6px; }
.l3h-catshow::-webkit-scrollbar-thumb { background: var(--l3-blue-bg); border-radius: 999px; }
.l3h-catcard { flex: 0 0 auto; width: 104px; text-align: center; text-decoration: none; }
.l3h-catcard-img { width: 104px; height: 104px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.l3h-catcard-img:has(svg) { background: var(--l3-blue); border-color: transparent; }
.l3h-catcard:hover .l3h-catcard-img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,51,198,.22); }
.l3h-catcard-img img { width: 100%; height: 100%; object-fit: cover; }
.l3h-catcard-img svg { width: 46px; height: 46px; color: #fff; }
.l3h-catcard-name { display: block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--l3-blue-dark); line-height: 1.2; }

/* Grade de produtos 2 por linha na página inicial */
.l3h-grid2 { grid-template-columns: repeat(2, 1fr); }

.l3h-section { max-width: 1080px; margin: 40px auto 0; padding: 0 16px; }
.l3h-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.l3h-sechead h2 { font-size: 1.5rem; color: var(--l3-blue); }
.l3h-sechead p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.l3h-sechead a { color: var(--l3-blue); font-weight: 700; white-space: nowrap; flex-shrink: 0; }

.l3h-benefits { max-width: 1080px; margin: 44px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.l3h-benefit { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.l3h-benefit span { font-size: 1.9rem; display: inline-flex; color: var(--l3-blue); }
.l3h-benefit span svg { width: 30px; height: 30px; }
.l3h-benefit h3 { font-size: 1rem; color: var(--text); margin: 8px 0 6px; }
.l3h-benefit p { font-size: .85rem; color: var(--muted); line-height: 1.5; }

.l3h-about { max-width: 1080px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.l3h-about h2 { font-size: 1.3rem; color: var(--l3-blue); margin-bottom: 10px; }
.l3h-about p { color: var(--text); line-height: 1.7; font-size: .95rem; }

@media (max-width: 900px) {
    .l3h-hero-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
    .l3h-hero h1 { font-size: 1.7rem; }
    .l3h-hero-card { width: 100%; }
    .l3h-hero-card img { height: 180px; }
    .l3h-benefits { grid-template-columns: 1fr 1fr; }
    .l3h-sechead h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .l3h-benefits { grid-template-columns: 1fr; }
}

/* Banner de imagem da home: duas versões (desktop/mobile), especificidade
   alta pra garantir que a versão certa apareça em cada tela. */
.l3h-banner { display: block; }
.l3h-banner img { display: block; width: 100%; height: auto; }
.l3h-banner img.l3h-banner-d { display: block; }
.l3h-banner img.l3h-banner-m { display: none; }
@media (max-width: 640px) {
    .l3h-banner img.l3h-banner-d { display: none; }
    .l3h-banner img.l3h-banner-m { display: block; }
}

.l3h-picks { max-width: 1080px; margin: 24px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 16px; }
.l3h-pick { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; height: 100%; transition: box-shadow .15s, transform .15s; }
.l3h-pick:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.l3h-pick-eyebrow { font-size: .76rem; color: var(--l3-blue); font-weight: 700; margin-bottom: 10px; }
.l3h-pick-img { display: flex; align-items: center; justify-content: center; height: 160px; margin-bottom: 10px; flex-shrink: 0; }
.l3h-pick-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.l3h-pick-title { color: #4b4b4b; font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; min-height: 2.3em; }
.l3h-pick-price { font-size: 1.1rem; font-weight: 700; color: var(--l3-blue); }
.l3h-pick-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.l3h-pick-score { font-size: .78rem; color: var(--text); font-weight: 600; }
.l3h-pick-stars { color: var(--l3-blue); font-size: .78rem; letter-spacing: 1px; }
.l3h-pick-ship { font-size: .78rem; color: var(--l3-blue); font-weight: 600; margin-top: 6px; }
.l3h-pick-ship.is-free { color: var(--green); }

@media (max-width: 700px) {
    .l3h-picks { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .l3h-picks::-webkit-scrollbar { display: none; }
    .l3h-pick { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 420px) {
    .l3h-pick { flex-basis: 72%; }
}

/* ===== Layout 3 — Página de pedido (Pix / status) ===== */
.l3o { padding: 24px 0 40px; }
.l3o-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 10px 32px rgba(0,51,198,.10); text-align: center; }
.l3o-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.l3o-code { font-weight: 700; color: var(--muted); font-size: .95rem; }
.l3o-title { font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.l3o-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; line-height: 1.5; }

.l3o-pixlogo { margin-bottom: 8px; }
.l3o-pixtitle { font-size: 1.55rem; font-weight: 800; color: var(--l3-blue); margin-bottom: 10px; }
/* Banner do topo da tela do PIX. No desktop não aparece — lá o cartão abre
   com o logo do Pix e o título. É peça de celular, ligada no @media de 600px
   lá embaixo, onde ele substitui esses dois. */
.l3o-topbanner { display: none; }
.l3o-pixstatus { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.l3o-pixstatus-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF7A00; box-shadow: 0 0 0 0 rgba(255,122,0,.55); animation: l3o-pulse 1.4s ease-out infinite; flex-shrink: 0; }
.l3o-pixstatus-text { font-weight: 800; color: #C2540A; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; }
@keyframes l3o-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,122,0,.55); }
    70%  { box-shadow: 0 0 0 10px rgba(255,122,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,122,0,0); }
}
.l3o .alert svg { vertical-align: -3px; margin-right: 4px; }
.l3o-pixsub { color: #4b5563; font-size: 1rem; line-height: 1.55; margin-bottom: 24px; }

.l3o-pixlabel { font-size: .78rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; text-align: left; margin: 0 0 6px; }
.l3o-pixcode { border: 1.5px dashed var(--l3-blue); background: var(--l3-blue-bg); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--l3-blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; margin-bottom: 14px; font-family: monospace; }
.l3o-pixbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: linear-gradient(180deg, #1c47e0, var(--l3-blue)); color: #fff; border: 0; border-radius: 12px; padding: 18px; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(0,51,198,.35); transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.l3o-pixbtn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,51,198,.42); }
.l3o-pixbtn:active { transform: translateY(0); }
/* Cor do anel do pulso (ver .pix-pulsa no style.css): o azul do próprio
   botão, para o halo parecer a luz dele e não uma sombra colada por cima. */
.l3o-pixbtn.pix-pulsa { --pix-halo: rgba(0, 51, 198, .40); }
.l3o-pixbtn.is-copied { background: #1a9e4a; box-shadow: 0 8px 20px rgba(26,158,74,.35); }
.l3o-pixvalid { font-weight: 700; color: #6b7280; font-size: .9rem; margin: 16px 0 24px; }

.l3o-pixqr { background: var(--l3-blue-bg); border-radius: 14px; padding: 22px; display: inline-block; margin-bottom: 22px; }
.l3o-pixqr img, .l3o-pixqr #qr-canvas { display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: 8px; }

.l3o-trustbox { text-align: left; background: #fafbff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: grid; gap: 14px; margin-bottom: 20px; }
.l3o-trust-row { display: flex; gap: 12px; align-items: flex-start; }
.l3o-trust-ic { display: flex; align-items: center; flex-shrink: 0; color: var(--l3-blue); margin-top: 2px; }
.l3o-trust-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.l3o-trust-txt strong { font-size: .82rem; color: var(--text); }
.l3o-trust-txt span { font-size: .82rem; color: var(--muted); }

.l3o-pixcancel { font-weight: 600; color: #9aa1ac; font-size: .86rem; margin-top: 8px; line-height: 1.5; }

.l3o-spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--l3-blue); border-radius: 50%; margin: 20px auto; animation: l3o-spin .9s linear infinite; }
@keyframes l3o-spin { to { transform: rotate(360deg); } }

.l3o-success-ic { width: 64px; height: 64px; border-radius: 50%; background: #1a9e4a; color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

.l3o-success-steps { display: flex; margin: 22px 0; }
.l3o-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.l3o-step::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.l3o-step:first-child::before { display: none; }
.l3o-step.is-done::before { background: #1a9e4a; }
.l3o-step-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: .95rem; position: relative; z-index: 1; }
.l3o-step.is-done .l3o-step-ic { background: #1a9e4a; color: #fff; }
.l3o-step.is-current .l3o-step-ic { background: var(--l3-blue); color: #fff; }
.l3o-step-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.l3o-step-txt strong { font-size: .72rem; color: var(--text); }
.l3o-step-txt small { font-size: .66rem; color: var(--muted); }

.l3o-tracking { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--l3-blue-bg); border: 1px solid #d4e2ff; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .88rem; text-align: left; }
.l3o-tracking strong { color: var(--l3-blue-dark); }

.l3o-success-btn { display: block; width: 100%; background: var(--l3-blue); color: #fff; text-decoration: none; border-radius: 10px; padding: 14px; font-weight: 700; font-size: 1rem; margin-bottom: 14px; box-sizing: border-box; }
.l3o-success-btn:hover { filter: brightness(1.08); }
.l3o-success-help { font-size: .85rem; color: var(--muted); }

.l3o-summary { text-align: left; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; }
.l3o-summary h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--text); }
.l3o-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.l3o-item-img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; flex-shrink: 0; }
.l3o-item-info { flex: 1; min-width: 0; }
.l3o-item-name { display: block; font-size: .88rem; color: var(--text); line-height: 1.35; }
.l3o-item-qty { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.l3o-item-total { font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; }
.l3o-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 5px 0; color: var(--muted); }
.l3o-sum-row.l3o-sum-first { margin-top: 12px; }
.l3o-sum-total { font-size: 1.05rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

.l3o-deliver { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 12px; }
.l3o-dv { display: flex; gap: 10px; align-items: flex-start; }
.l3o-dv-ic { display: flex; align-items: center; flex-shrink: 0; color: var(--l3-blue); margin-top: 2px; }
.l3o-dv-txt { font-size: .85rem; line-height: 1.45; }
.l3o-dv-txt strong { display: block; color: var(--text); font-size: .82rem; margin-bottom: 1px; }
.l3o-dv-txt span { color: var(--muted); }
.l3o-help { font-size: .85rem; color: var(--muted); margin-top: 18px; }

@media (max-width: 600px) {
    .l3o-card { border-radius: 0; padding: 22px 16px; }
    .l3o-pixlogo, .l3o-pixtitle { display: none; }

    /* GRUDADO NO HEADER, SEM ESPAÇOS.
       São quatro folgas a matar, e cada linha aqui mata uma:

       line-height/font-size zerados — um <img> é inline, e a linha de texto
       que o abriga reserva alguns pixels embaixo dele. É o espaço branco
       clássico que ninguém acha no CSS até desenhar a caixa.

       display:block na imagem — mesma folga, atacada pelo outro lado. Os
       dois juntos garantem em qualquer navegador.

       padding-top zerado no .l3o — os 24px que separavam o header do
       conteúdo. Quem encosta no header agora é o banner, então esse respiro
       deixa de existir aqui; o cartão logo abaixo já tem o seu por dentro.

       Sem border-radius e sem margem: cantos arredondados deixariam o fundo
       aparecer nos quatro cantos, que também é espaço.

       O fundo cinza igual ao do header é a rede de segurança: se a imagem
       demorar ou falhar, a faixa continua parecendo parte do header em vez
       de virar um bloco branco. */
    .l3o-topbanner { display: block; line-height: 0; font-size: 0; background: #f7f7f7; }
    .l3o-topbanner img { display: block; width: 100%; height: auto; }
    .l3o { padding-top: 0; }
}

/* ---------- Pagamento com cartão dentro do Layout 3 ----------
   A página de cartão (.ckp-*) é compartilhada por todos os layouts, com um
   visual neutro. Aqui ela recebe a MESMA identidade da tela de PIX do Layout 3
   (.l3o-*): sombra azulada, título azul, blocos com fundo #fafbff e o mesmo
   comportamento de tela cheia no celular — pra experiência não "trocar de
   layout" no meio do pagamento. */
body.layout-layout3 .ckp { padding: 24px 0 40px; }
body.layout-layout3 .ckp-card { max-width: 560px; padding: 28px; box-shadow: 0 10px 32px rgba(0, 50, 197, .10); }
body.layout-layout3 .ckp-title { font-size: 1.55rem; font-weight: 800; color: var(--l3-blue); }
body.layout-layout3 .ckp-head-ic { background: var(--l3-blue-bg); color: var(--l3-blue); }
body.layout-layout3 .ckp-order { background: #fafbff; border-radius: 12px; }
body.layout-layout3 .ckp-order-total strong { color: var(--l3-blue); }
body.layout-layout3 .ckp-trust { background: #fafbff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-top: 20px; }
body.layout-layout3 .ckp-trust-ic { color: var(--l3-blue); }
body.layout-layout3 .ckp-pay { border-radius: 10px; background: var(--l3-blue); }
body.layout-layout3 .ckp-field input:focus,
body.layout-layout3 .ckp-field select:focus { border-color: var(--l3-blue); box-shadow: 0 0 0 3px rgba(0, 50, 197, .12); }
body.layout-layout3 .ckp-links a { color: var(--l3-blue); }

@media (max-width: 600px) {
    body.layout-layout3 .ckp { padding: 0 0 32px; }
    body.layout-layout3 .ckp-card { border-radius: 0; padding: 22px 16px; box-shadow: none; }
}




