/* =====================================================
   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: #0033C6;
    --l3-blue-dark: #00278F;
    --l3-blue-bg: #E8ECFB;
}

.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); }
@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); }
.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); } }

/* ---------- 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-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: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow-y: auto; }
.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); }

/* 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); }

.l3p-seller { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.l3p-seller a { color: var(--l3-blue); text-decoration: none; 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-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); }

.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-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-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 { font-size: 1.05rem; line-height: 1.3; flex-shrink: 0; }
.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 { text-align: center; color: #6b7280; font-size: .8rem; line-height: 1.6; padding-bottom: 20px; }
.l3-footer-info strong { color: #374151; }

.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; }
}

/* 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; }
    .l3-footer-info { padding: 0 16px 18px; }
}

@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-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; }

.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; }
.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%; }
}
