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

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

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

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

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

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

.l4-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.l4-ico { position: relative; display: flex; align-items: center; justify-content: center; color: var(--l4-blue); text-decoration: none; background: none; border: 0; padding: 2px; cursor: pointer; }
.l4-ico:hover { color: var(--l4-blue-dark); }
.l4-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; }

.l4-header-row2 { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.l4-cep-trigger { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--l4-blue); font-weight: 600; font-size: .92rem; cursor: pointer; }
.l4-cep-trigger:hover { color: var(--l4-blue-dark); }
.l4-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(--l4-blue); cursor: pointer; }

.l4-deptnav { background: var(--l4-blue); }
.l4-deptnav-inner { display: flex; align-items: center; gap: 22px; padding: 10px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.l4-deptnav-inner::-webkit-scrollbar { display: none; }
.l4-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; }
.l4-deptnav-inner a { color: #fff; text-decoration: none; font-size: .86rem; white-space: nowrap; opacity: .92; }
.l4-deptnav-inner a:hover { opacity: 1; text-decoration: underline; }

/* ---------- CEP bottom-sheet ---------- */
.l4-cep-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.l4-cep-overlay.is-open { opacity: 1; pointer-events: auto; }
.l4-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) { .l4-cep-modal { border-radius: 16px; bottom: 50%; transform: translate(-50%, 50%) scale(.96); opacity: 0; } .l4-cep-modal.is-open { transform: translate(-50%, 50%) scale(1); opacity: 1; } }
.l4-cep-modal.is-open { transform: translate(-50%, 0); }
.l4-cep-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.l4-cep-title { display: block; font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }
.l4-cep-sub { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.l4-cep-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
#l4-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; }
.l4-cep-nao { display: inline-block; color: var(--l4-blue); font-size: .85rem; text-decoration: none; margin-bottom: 16px; }
.l4-cep-result { min-height: 20px; font-size: .88rem; margin-bottom: 14px; }
.l4-cep-result .is-ok { color: var(--green); font-weight: 700; }
.l4-cep-result .is-err { color: #c0392b; }
.l4-cep-confirm { width: 100%; background: var(--l4-blue); color: #fff; border: 0; border-radius: 8px; padding: 13px; font-weight: 700; cursor: pointer; }
.l4-cep-confirm:hover { background: var(--l4-blue-dark); }

/* ---------- Menu lateral ---------- */
.l4-menu-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.l4-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.l4-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; }
.l4-menu.is-open { transform: translateX(0); }
.l4-menu-head { display: flex; align-items: center; justify-content: space-between; background: var(--l4-blue); color: #fff; padding: 18px 20px; font-weight: 700; }
.l4-menu-head button { background: none; border: 0; color: #fff; cursor: pointer; }
.l4-menu-cats, .l4-menu-inst { display: flex; flex-direction: column; padding: 8px 0; }
.l4-menu-cats a, .l4-menu-inst a { padding: 12px 20px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.l4-menu-divider { height: 8px; background: var(--bg); }

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

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

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

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

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

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

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

/* Coluna de compra */
.l4p-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") */
.l4p-descbox { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.l4p-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; }
.l4p-descbox-body { position: relative; padding: 14px 18px 0; max-height: 128px; overflow: hidden; }
.l4p-descbox-body.is-expanded { max-height: none; }
.l4p-descbox-body p { font-size: .88rem; line-height: 1.65; color: var(--text); white-space: pre-line; }
.l4p-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; }
.l4p-descbox-body.is-expanded .l4p-descbox-fade { display: none; }
.l4p-descbox-more { display: block; margin: -8px auto 18px; background: #fff; border: 1.5px solid var(--l4-blue); color: var(--l4-blue); border-radius: 8px; padding: 10px 22px; font-weight: 700; font-size: .84rem; cursor: pointer; position: relative; z-index: 1; }
.l4p-descbox-more:hover { background: var(--l4-blue-bg); }

.l4p-seller { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.l4p-seller a { color: var(--l4-blue); text-decoration: none; font-weight: 600; }

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

.l4p-buyform { margin-bottom: 18px; }
.l4p-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; }
.l4p-btn-buy:hover { filter: brightness(.94); }

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

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

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

/* Card de produto L3 (usado no carrossel e em listagens) */
.l4-pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 100%; }
.l4-pcard-img { position: relative; display: block; height: 170px; background: #fff; display: flex; align-items: center; justify-content: center; }
.l4-pcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 14px; }
.l4-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; }
.l4-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(--l4-blue); cursor: pointer; }
.l4-pcard-body { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; }
.l4-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; }
.l4-pcard-rating { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.l4-pcard-stars { color: #f5a623; }
.l4-pcard-outstock { color: var(--muted); font-size: .8rem; margin-top: auto; }
.l4-pcard-compare { color: var(--muted); text-decoration: line-through; font-size: .76rem; }
.l4-pcard-price { font-weight: 800; color: var(--l4-blue); font-size: 1.05rem; margin-top: 2px; }
.l4-pcard-install { color: var(--l4-blue); font-size: .74rem; margin-top: 3px; }

/* ---------- Accordion (descrição/especificações) ---------- */
.l4p-accordion { margin-bottom: 40px; }
.l4p-acc-item { border-top: 1px solid var(--border); }
.l4p-acc-item:last-child { border-bottom: 1px solid var(--border); }
.l4p-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; }
.l4p-acc-chev { color: var(--muted); transition: transform .2s ease; flex-shrink: 0; }
.l4p-acc-item.is-open .l4p-acc-chev { transform: rotate(180deg); }
.l4p-acc-body { display: none; padding: 0 4px 20px; color: var(--text); font-size: .92rem; line-height: 1.6; }
.l4p-acc-item.is-open .l4p-acc-body { display: block; }
.l4p-spectable { width: 100%; border-collapse: collapse; }
.l4p-spectable tr:nth-child(odd) { background: var(--bg); }
.l4p-spectable td { padding: 10px 12px; font-size: .88rem; }
.l4p-spectable td:first-child { color: var(--muted); width: 42%; }
.l4p-spectable td:last-child { color: var(--text); font-weight: 600; }

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

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

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

/* ---------- Footer (mesma estrutura do L2, paleta do L3) ---------- */
.l4-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é */
.l4-footer-tab { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px; background: var(--l4-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; }
.l4-footer-tab:hover { background: var(--l4-blue-dark); }
.l4-footer-tab-chev { transition: transform .2s ease; }
.l4-footer.is-open .l4-footer-tab-chev { transform: rotate(180deg); }

.l4-footer-badges { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 12px 0 22px; }
.l4-footer-badgecol { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.l4-footer-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--l4-blue); }
.l4-footer .badges-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.l4-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; }
.l4-footer .pay-badge svg { width: 100%; height: 100%; }
.l4-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; }
.l4-sec-badge small { color: #6b7280; }
.l4-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; }
.l4-social:hover { color: var(--l4-blue); }

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

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

.l4c-next, .l4c-pay-btn { display: block; width: 100%; margin-top: 20px; background: var(--l4-blue); color: #fff; border: 0; border-radius: 8px; padding: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.l4c-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; }
.l4c-pay-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.l4c-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(46,204,64,.42); filter: brightness(1.03); }
.l4c-pay-btn:active { transform: translateY(0); }
.l4c-next:hover { background: var(--l4-blue-dark); }
.l4c-pay-btn { background: var(--green); }
.l4c-pay-btn:hover { filter: brightness(.95); }
.l4c-nav { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.l4c-nav .l4c-next, .l4c-nav .l4c-pay-btn { margin-top: 0; flex: 1; }
.l4c-back { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; padding: 14px 8px; flex-shrink: 0; }
.l4c-back:hover { color: var(--text); }

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

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

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

.l4c-back-solo { display: block; width: 100%; margin-top: 12px; text-align: center; font-size: .92rem; padding: 8px; }
.l4c-summary-inline { position: static; top: auto; margin-top: 22px; background: #fafbfc; }
.l4c-trust-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.l4c-trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.l4c-trust-ic { display: flex; align-items: center; flex-shrink: 0; color: var(--l4-blue); margin-top: 2px; }
.l4c-trust-tx { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.l4c-trust-tx strong { display: block; color: var(--text); font-size: .82rem; margin-bottom: 1px; }

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

/* Bloco extra: escondido até clicar na aba */
.l4-footer-expand { display: none; border-top: 1px solid var(--border); }
.l4-footer.is-open .l4-footer-expand { display: block; }
.l4-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 20px 0; }
.l4-footer-links a { color: #374151; font-size: .85rem; text-decoration: none; }
.l4-footer-links a:hover { color: var(--l4-blue); }
.l4-footer-info { text-align: center; color: #6b7280; font-size: .8rem; line-height: 1.6; padding-bottom: 20px; }
.l4-footer-info strong { color: #374151; }

.l4-footer-bottom { background: var(--l4-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) {
    .l4p-main { grid-template-columns: minmax(0, 1fr); }
    .l4p-gallery { position: static; min-width: 0; }
    .l4-header-row2, .l4-deptnav { display: none; }
}

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

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

    .l4p-frame { border-radius: 0; border-left: 0; border-right: 0; }
    .l4p-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. */
    .l4p-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; }
    .l4p-thumbs::-webkit-scrollbar { display: none; }
    .l4p-thumb { width: 62px; height: 62px; }
    .l4p-dots { display: none; }

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

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

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

    /* Barra fixa de compra: visível por padrão, some enquanto os botões
       nativos (#l4p-buyform) estão na tela — ver layout4.js */
    .l4p-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; }
    .l4p-stickybuy.is-hidden { transform: translateY(120%); }
    .l4p-stickybuy-img { width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; background: #fff; }
    .l4p-stickybuy-priceblock { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .l4p-stickybuy-price { font-weight: 800; font-size: 1.2rem; color: var(--l4-blue); white-space: nowrap; }
    .l4p-stickybuy-pix { font-weight: 700; font-size: .82rem; color: var(--l4-blue); opacity: .75; white-space: nowrap; }
    .l4p-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 */
    .l4-footer { padding-top: 34px; }
    .l4-footer-bottom { padding-bottom: 76px; }
    .l4-footer-badges { gap: 20px; }
    .l4-footer-links { padding: 16px; }
    .l4-footer-info { padding: 0 16px 18px; }
}

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

/* =====================================================
   Layout 4 — Home (idêntica ao Layout 2, paleta #0033C6)
   ===================================================== */
.l4h-hero { background: linear-gradient(120deg, var(--l4-blue), #0a4fe0); background-size: cover; background-position: center; color: #fff; padding: 46px 16px 58px; }
.l4h-hero-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.l4h-hero-text { flex: 1; min-width: 0; }
.l4h-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; }
.l4h-hero h1 { font-size: 2.15rem; line-height: 1.14; max-width: 620px; margin-bottom: 12px; }
.l4h-hero p { font-size: 1.05rem; opacity: .93; max-width: 560px; line-height: 1.5; margin-bottom: 24px; }
.l4h-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.l4h-btn, .l4h-btn-ghost { padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; }
.l4h-btn { background: #fff; color: var(--l4-blue); }
.l4h-btn:hover { filter: brightness(.96); }
.l4h-btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.l4h-btn-ghost:hover { background: rgba(255,255,255,.12); }
.l4h-badges { display: flex; gap: 20px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; }
.l4h-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; }
.l4h-hero-card img { width: 100%; height: 210px; object-fit: contain; }
.l4h-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; }

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

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

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

@media (max-width: 900px) {
    .l4h-hero-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
    .l4h-hero h1 { font-size: 1.7rem; }
    .l4h-hero-card { width: 100%; }
    .l4h-hero-card img { height: 180px; }
    .l4h-benefits { grid-template-columns: 1fr 1fr; }
    .l4h-sechead h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
    .l4h-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. */
.l4h-banner { display: block; }
.l4h-banner img { display: block; width: 100%; height: auto; }
.l4h-banner img.l4h-banner-d { display: block; }
.l4h-banner img.l4h-banner-m { display: none; }
@media (max-width: 640px) {
    .l4h-banner img.l4h-banner-d { display: none; }
    .l4h-banner img.l4h-banner-m { display: block; }
}

.l4h-picks { max-width: 1080px; margin: 24px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 16px; }
.l4h-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; }
.l4h-pick:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.l4h-pick-eyebrow { font-size: .76rem; color: var(--l4-blue); font-weight: 700; margin-bottom: 10px; }
.l4h-pick-img { display: flex; align-items: center; justify-content: center; height: 160px; margin-bottom: 10px; flex-shrink: 0; }
.l4h-pick-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.l4h-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; }
.l4h-pick-price { font-size: 1.1rem; font-weight: 700; color: var(--l4-blue); }
.l4h-pick-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.l4h-pick-score { font-size: .78rem; color: var(--text); font-weight: 600; }
.l4h-pick-stars { color: var(--l4-blue); font-size: .78rem; letter-spacing: 1px; }
.l4h-pick-ship { font-size: .78rem; color: var(--l4-blue); font-weight: 600; margin-top: 6px; }
.l4h-pick-ship.is-free { color: var(--green); }

@media (max-width: 700px) {
    .l4h-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; }
    .l4h-picks::-webkit-scrollbar { display: none; }
    .l4h-pick { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 420px) {
    .l4h-pick { flex-basis: 72%; }
}

/* ===== Layout 4 — Página de pedido (Pix / status) ===== */
.l4o { padding: 24px 0 40px; }
.l4o-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; }
.l4o-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.l4o-code { font-weight: 700; color: var(--muted); font-size: .95rem; }
.l4o-title { font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.l4o-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; line-height: 1.5; }

.l4o-pixlogo { margin-bottom: 8px; }
.l4o-pixtitle { font-size: 1.55rem; font-weight: 800; color: var(--l4-blue); margin-bottom: 10px; }
.l4o-pixbanner { display: none; }
.l4o-pixstatus { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.l4o-pixstatus-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF7A00; box-shadow: 0 0 0 0 rgba(255,122,0,.55); animation: l4o-pulse 1.4s ease-out infinite; flex-shrink: 0; }
.l4o-pixstatus-text { font-weight: 800; color: #C2540A; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; }
@keyframes l4o-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); }
}
.l4o .alert svg { vertical-align: -3px; margin-right: 4px; }
.l4o-pixsub { color: #4b5563; font-size: 1rem; line-height: 1.55; margin-bottom: 24px; }

.l4o-pixlabel { font-size: .78rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; text-align: left; margin: 0 0 6px; }
.l4o-pixcode { border: 1.5px dashed var(--l4-blue); background: var(--l4-blue-bg); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--l4-blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; margin-bottom: 14px; font-family: monospace; }
.l4o-pixbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: linear-gradient(180deg, #1c47e0, var(--l4-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; }
.l4o-pixbtn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,51,198,.42); }
.l4o-pixbtn:active { transform: translateY(0); }
.l4o-pixbtn.is-copied { background: #1a9e4a; box-shadow: 0 8px 20px rgba(26,158,74,.35); }
.l4o-pixvalid { font-weight: 700; color: #6b7280; font-size: .9rem; margin: 16px 0 24px; }

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

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

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

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

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

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

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

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

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

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

@media (max-width: 600px) {
    .l4o-card { border-radius: 0; padding: 22px 16px; }
    .l4o-pixlogo, .l4o-pixtitle { display: none; }
    .l4o-pixbanner { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 16px; }
}

/* =====================================================
   Layout 4 — diferenças em relação ao Layout 3.
   Tudo abaixo sobrescreve as regras equivalentes acima.
   ===================================================== */
:root {
    --l4-header-blue: #0c3bdd;
}

/* --- Cabeçalho inteiro azul, com os ícones/botões em branco --- */
.l4-sticky { background: var(--l4-header-blue); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.l4-header { background: var(--l4-header-blue); }
.l4-burger { color: #fff; }
.l4-logo-text { color: #fff; }
.l4-ico { color: #fff; }
.l4-ico:hover { color: rgba(255,255,255,.75); }
.l4-checkout-secure { color: #fff; }
.l4-a11y { color: #fff; border-color: rgba(255,255,255,.45); }
.l4-a11y:hover { background: rgba(255,255,255,.12); }
.l4-deptnav { background: var(--l4-header-blue); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
/* Sem a busca na linha do topo, os ícones precisam ser empurrados pra direita. */
.l4-actions { margin-left: auto; }

/* "Digite seu CEP": discreto, menor e em cinza claro sobre o azul. */
.l4-cep-trigger { color: rgba(255,255,255,.72); font-weight: 500; font-size: .78rem; gap: 6px; }
.l4-cep-trigger:hover { color: #fff; }
.l4-cep-trigger svg { width: 15px; height: 15px; }

/* --- Busca: normal e sempre visível no desktop, entre a logo e os ícones.
   A lupa de alternar só existe (via JS/HTML) e só aparece no mobile. --- */
.l4-search-toggle { display: none; }
.l4-search-toggle[aria-expanded="true"] { color: rgba(255,255,255,.75); }

/* --- Galeria: tracinhos no lugar das miniaturas --- */
.l4p-thumbs { display: none; }
.l4p-dots { display: flex; gap: 6px; margin-top: 14px; padding: 0 4px; }
.l4p-dot {
    flex: 1 1 0;
    height: 3px;
    max-width: 64px;
    border-radius: 2px;
    background: #B9CCFA;      /* azul claro = imagem não exibida */
    transform: none;
}
.l4p-dot.is-active { background: var(--l4-header-blue); transform: none; }

/* --- Fundo geral da página --- */
body.layout-layout4 { background: #f3f8ff; }

/* --- Preço: preto e um pouco maior; valor do cartão riscado acima dele --- */
.l4p-price { color: #111827; font-size: 2.3rem; }
.l4p-cardprice { color: #c7ccd6; font-size: .82rem; text-decoration: line-through; line-height: 1.3; }

/* --- Botão de comprar em azul --- */
.l4p-btn-buy { background: var(--l4-header-blue); }
.l4p-btn-buy:hover { background: #0a31bb; filter: none; }

/* --- Título "Forma de entrega", acima do cálculo de frete --- */
.l4p-delivery-title { text-align: left; color: var(--l4-header-blue); font-size: 1rem; font-weight: 700; margin: 0 0 10px; }

/* --- Caixa de frete discreta, sem cara de destaque --- */
.l4p-shipbox { background: transparent; border: 1px solid var(--border); padding: 16px; }
.l4p-shipbox-title { display: block; font-size: .9rem; font-weight: 400; color: #4b5563; margin-bottom: 10px; }

/* CEP + "Calcular" dentro do mesmo campo (o "Calcular" é só texto, não botão). */
.l4p-cep-field { display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.l4p-cep-input { flex: 1; width: auto; border: 0; border-radius: 0; margin-bottom: 0; background: transparent; }
.l4p-cep-input:focus { outline: none; }
.l4p-cep-btn {
    width: auto;
    flex-shrink: 0;
    background: none;
    color: var(--l4-header-blue);
    border: 0;
    padding: 0 14px;
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    align-self: stretch;
}
.l4p-cep-btn:hover { background: none; text-decoration: underline; }

@media (max-width: 767px) {
    /* No mobile os tracinhos continuam valendo (o Layout 3 escondia aqui). */
    .l4p-dots { display: flex; }
    .l4p-thumbs { display: none; }

    /* Busca recolhida no mobile: some por padrão e a lupa aparece pra abrir.
       Precisa ficar DEPOIS do ".l4-search-toggle { display:none }" acima —
       mesma especificidade, então quem vence é a última regra do arquivo. */
    .l4-search { display: none; }
    .l4-search.is-open { display: flex; }
    .l4-search-toggle { display: flex; }
}
