/* Estrutura pública compartilhada; o painel administrativo mantém seu próprio cabeçalho. */
body.loja-layout {margin:0;padding:0;min-height:100vh;display:flex;flex-direction:column;}
.loja-layout > main {flex:1;}
.loja-layout > main:not(#acesso) {box-sizing:border-box;width:min(var(--largura-site,1480px),calc(100% - 40px));max-width:none;margin-left:auto;margin-right:auto;}
.cabecalho {background:var(--degrade-marca);color:white;box-shadow:0 9px 24px #52349626;}
.cabecalho .cabecalho-conteudo {box-sizing:border-box;width:min(var(--largura-site, 1480px),calc(100% - 40px));min-height:94px;margin:auto;padding:0;display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,640px) minmax(220px,1fr);align-items:center;gap:24px;position:relative;}
.cabecalho .cabecalho-conteudo::after {display:none;}
.cabecalho .cabecalho-conteudo > .marca {grid-column:1;grid-row:1;min-width:0;margin:0;justify-self:start;}
.cabecalho .cabecalho-conteudo > :is(.busca-cabecalho,.busca-produto) {grid-column:2;grid-row:1;position:relative;left:auto;transform:none;width:100%;max-width:640px;min-width:0;margin:0;justify-self:center;order:initial;}
.cabecalho .cabecalho-conteudo > .cabecalho-atalhos {grid-column:3;grid-row:1;display:flex;align-items:center;flex-wrap:nowrap;margin:0;order:initial;}
.cabecalho a {text-decoration:none;color:white;padding:0;background:transparent;}
.cabecalho .marca {display:inline-flex;align-items:center;}
.cabecalho .marca img {display:block;width:220px;max-width:100%;height:auto;max-height:80px;object-fit:contain;padding:0;margin:0;background:transparent;border-radius:0;}
.cabecalho .cabecalho-atalhos {gap:8px;}
.cabecalho .cabecalho-conteudo > .cabecalho-atalhos {width:100%;min-width:0;justify-self:stretch;justify-content:flex-end;}
.cabecalho .cabecalho-atalhos :is(.acesso-painel,.carrinho-acesso) {position:relative;top:auto;right:auto;transform:none;display:grid;place-items:center;width:40px;height:40px;flex:none;padding:0;margin:0;border:1px solid #ffffffa6;border-radius:12px;background:#ffffff1f;color:white;cursor:pointer;}
.cabecalho .cabecalho-atalhos svg {width:22px;height:22px;}
/* O espaço de 24px dos dois lados centraliza a saudação entre busca e logout. */
.cabecalho .cliente-saudacao {display:flex;flex:1 1 0;flex-direction:column;justify-content:center;text-align:center;max-width:none;line-height:1.35;font-size:14px;min-width:0;margin-right:16px;}
.cabecalho .cliente-saudacao strong {display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cabecalho .cliente-saudacao[hidden] {display:none;}
.cabecalho .login-balao {position:absolute;z-index:20;top:calc(100% + 8px);right:0;padding:7px 10px;border-radius:7px;background:var(--pal-35235f, #35235f);color:white;box-shadow:0 8px 24px #140d3555;font-size:12px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;}
.cabecalho a:hover .login-balao,.cabecalho button:hover .login-balao,.cabecalho :focus-visible .login-balao {opacity:1;visibility:visible;}
.cabecalho .favoritos-acesso.aviso-login-visivel .login-balao {opacity:1;visibility:visible;white-space:normal;width:max-content;max-width:calc(100vw - 32px);text-align:center;}
.cabecalho .busca-lupa,.cabecalho .busca-limpar {position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--pal-f6efff, #f6efff);cursor:pointer;}
.cabecalho .busca-limpar {right:43px;width:28px;font-size:20px;}
.cabecalho .busca-lupa svg {width:18px;height:18px;}
.cabecalho .busca-visual [hidden] {display:none!important;}
.cabecalho .busca-cabecalho {z-index:5;}
.rodape {background:var(--degrade-marca);color:var(--pal-e8dff1, #e8dff1);padding:30px 0;margin-top:40px;font-size:12px;}
.rodape .rodape-conteudo {width:min(var(--largura-site, 1480px),calc(100% - 40px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;}
.rodape .logo-branca-rodape {display:block;width:150px;max-width:100%;height:auto;margin:0;padding:0;background:transparent;border-radius:0;}
.rodape a {background:transparent;padding:0;border-radius:0;}
.loja-layout #acesso {width:min(420px,calc(100% - 40px));margin:32px auto;}
.loja-layout #conta {width:min(var(--largura-site, 1480px),calc(100% - 40px));margin:28px auto;}
.loja-layout > .voltar {margin:20px;}
@media(max-width:1100px){
 .cabecalho .cabecalho-conteudo {grid-template-columns:minmax(0,1fr) auto;gap:16px 20px;padding:18px 0;}
 .cabecalho .cabecalho-conteudo > .cabecalho-atalhos {grid-column:2;}
 .cabecalho .cabecalho-conteudo > :is(.busca-cabecalho,.busca-produto) {grid-column:1 / -1;grid-row:2;}
 .cabecalho .cabecalho-conteudo > .cabecalho-atalhos {width:auto;justify-self:end;}
 .cabecalho .cliente-saudacao {flex:0 1 120px;max-width:120px;margin-right:8px;}
}
@media(max-width:600px){
 .cabecalho .cabecalho-atalhos {gap:5px;}
 .cabecalho .cabecalho-atalhos :is(.acesso-painel,.carrinho-acesso) {width:32px;height:36px;border-radius:10px;}
 .cabecalho .cliente-saudacao {flex-basis:90px;max-width:90px;margin-right:3px;font-size:12px;}
 .cabecalho .cliente-saudacao strong {font-size:14px;}
 .rodape .rodape-conteudo {flex-wrap:wrap;}
}

#form-perfil .acoes-perfil {justify-content:space-between;align-items:flex-start;}
#form-perfil .acoes-promocoes {display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:0 1 290px;max-width:100%;margin-left:auto;}
#form-perfil .acoes-promocoes #status-emails-promocoes {margin:0;text-align:center;}
#form-perfil #status-emails-promocoes {margin:10px 0 0;}

.cabecalho,.rodape {width:100%;}
.titulo-acessivel {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
#conta > .conta-grade {margin-top:0;}
.cabecalho .busca-sugestoes {position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:30;max-height:min(420px,70vh);overflow-y:auto;padding:6px;border:1px solid var(--pal-e8e1ef, #e8e1ef);border-radius:14px;background:#fff;box-shadow:0 16px 38px #140d3555,0 3px 10px #0002;}
.cabecalho .busca-sugestoes[hidden] {display:none;}
.cabecalho .busca-sugestao {display:flex;align-items:center;gap:12px;padding:9px;margin:0;border-radius:10px;background:transparent;color:var(--pal-2c2437, #2c2437);text-decoration:none;}
.cabecalho .busca-sugestao:is(:hover,:focus-visible,[aria-selected="true"]) {outline:none;background:var(--pal-f6f1fa, #f6f1fa);}
.cabecalho .busca-sugestao img {display:block;width:48px;height:48px;max-width:48px;flex:0 0 48px;object-fit:cover;border-radius:8px;background:var(--pal-f1edf5, #f1edf5);padding:0;margin:0;}
.cabecalho .busca-sugestao-texto {min-width:0;display:grid;gap:4px;}
.cabecalho .busca-sugestao-nome {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;}
.cabecalho .busca-sugestao-preco {color:var(--pal-6c587c, #6c587c);font-size:13px;}
.cabecalho .busca-sugestoes-vazia {margin:0;padding:12px;color:#746d7d;font-size:14px;}

/* Acesso à conta envolvendo a saudação e o nome do cliente. */
.cabecalho a.cliente-saudacao {box-sizing:border-box;min-height:68px;padding:8px 10px;gap:2px;border:1px solid #ffffff80;border-radius:12px;background:#ffffff14;color:white;text-decoration:none;transition:background-color .2s,border-color .2s;}
.cabecalho a.cliente-saudacao:hover {background:#ffffff2b;border-color:#ffffffc9;}
.cabecalho a.cliente-saudacao:focus-visible {outline:2px solid white;outline-offset:3px;}
.cliente-saudacao .cliente-acesso-titulo {font-size:12px;font-weight:600;line-height:1.3;}
.cliente-saudacao .cliente-acesso-boas-vindas {font-size:11px;line-height:1.3;opacity:.85;}
@media(max-width:600px){.cabecalho a.cliente-saudacao{padding:6px;min-height:64px;}.cliente-saudacao .cliente-acesso-titulo{font-size:10px;}.cliente-saudacao .cliente-acesso-boas-vindas{font-size:10px;}}
@media(prefers-reduced-motion:reduce){.cabecalho a.cliente-saudacao{transition:none;}}

/* Cabeçalho e rodapé compartilham a mesma paleta em todos os temas. */
.cabecalho,.rodape {background:var(--degrade-marca);color:white;}
.rodape .rodape-colunas {width:min(var(--largura-site,1480px),calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:1.2fr 1.1fr 1.1fr 1fr 1fr;gap:30px;}
.rodape .rodape-coluna[hidden] {display:none;}
.rodape .rodape-coluna {min-width:0;}
.rodape .rodape-coluna h2 {margin:0 0 18px;font-size:15px;line-height:1.4;font-weight:600;color:white;}
.rodape .rodape-links {display:flex;flex-direction:column;gap:12px;font-size:13px;line-height:1.6;}
.rodape .rodape-coluna a,.rodape .rodape-legais a {color:white;text-decoration:none;overflow-wrap:anywhere;}
.rodape .rodape-coluna a:hover,.rodape .rodape-legais a:hover {text-decoration:underline;}
.rodape a:focus-visible {outline:2px solid white;outline-offset:4px;border-radius:4px;}
.rodape .rodape-coluna .dados-empresa-rodape {width:100%;margin:0;padding:0;border:0;color:white;}
.rodape .contato-item {color:white;align-items:flex-start;line-height:1.6;}
.rodape .contato-item>span:last-child {white-space:pre-line;}
.rodape .rodape-base {width:min(var(--largura-site,1480px),calc(100% - 40px));margin:26px auto 0;padding-top:22px;border-top:1px solid #ffffff40;display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;}
.rodape .rodape-redes,.rodape .rodape-legais,.rodape .rodape-pagamentos {display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.rodape .rodape-conteudo {margin-top:24px;padding-top:20px;border-top:1px solid #ffffff40;color:white;}
.rodape .rodape-pagamentos[hidden],.rodape .rodape-redes[hidden] {display:none;}
@media(max-width:1200px){.rodape .rodape-colunas{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}}
@media(max-width:1000px){.rodape .rodape-colunas{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;}}
@media(max-width:550px){.rodape .rodape-colunas{grid-template-columns:1fr;}.rodape .rodape-base{flex-direction:column;}}

/* Logo circular do atelier: remove apenas o espaço transparente do formato padrão. */
.cabecalho .marca img {width:80px;height:80px;object-fit:cover;max-width:none;}
.rodape .logo-branca-rodape {width:112px;height:112px;object-fit:cover;}
