/* Estruturas mobile, isoladas dos temas anteriores e dos modais. */













body.tm-active #catalogPage .content{padding:0 12px!important;max-width:none!important;overflow:visible!important}
body.tm-active #produtos.tm-layout{display:block!important;padding:0!important;margin:0!important;max-width:none!important}

body.tm-active #paginaOfertasSections{margin-top:24px}
body.tm-active #publicBottomNav{background:#fff!important}
body.tm-active #publicBottomNav [hidden]{display:none!important}
body.tm-active #publicBottomNav button{border:0;background:none;cursor:pointer;font:inherit}
body.tm-active #cartBottom{border-radius:18px!important;background:var(--brand)!important;color:#fff!important;box-shadow:0 5px 18px #0002!important}
.tm-categorias{display:flex;gap:13px;overflow-x:auto;padding:12px 0 16px;scrollbar-width:none}
.tm-categorias button{border:0;background:none;flex:1 0 58px;padding:0;color:#222;font:inherit;font-size:11px;text-align:center;cursor:pointer}
.tm-categorias button>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;margin:0 auto 6px;background:#f8eeee;color:var(--brand);font-size:23px;border:2px solid transparent}
.tm-categorias button:nth-child(3n)>span{background:#f1f5f5}
.tm-categorias button.active>span{border-color:var(--brand)}
.tm-toolbar{display:flex;gap:8px;margin:10px 0}
.tm-toolbar>button,.tm-toolbar>label{width:50%;background:#fafafa;border:1px solid #e9e9e9;border-radius:9px;min-height:36px;text-align:left;font:inherit;font-size:12px;padding:7px}
.tm-toolbar select{width:100%;background:none;border:0;font:inherit}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tm-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}
.tm-section-head h2,.tm-catalogos h2{font-size:18px;margin:0;font-weight:800;line-height:1.25}
.tm-section-head button{border:0;background:none;color:var(--brand);font-size:12px}
body.tm-active #produtos .tm-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
body.tm-active #produtos .tm-grid .prod,body.tm-active #produtos .tm-destaque .prod{display:flex!important;flex-direction:column;position:relative!important;min-width:0!important;max-width:none!important;width:100%!important;margin:0!important;border:1px solid #eee!important;border-radius:12px!important;padding:8px!important;background:#fff!important;box-shadow:none!important;overflow:hidden;box-sizing:border-box}
body.tm-active #produtos .tm-grid .img{height:148px!important;min-height:0!important;width:100%!important;margin:0!important;background:#fafafa!important;border-radius:9px!important}
body.tm-active #produtos .tm-grid .img img{object-fit:contain!important;max-height:100%!important;width:100%!important}
body.tm-active #produtos .tm-grid .info,body.tm-active #produtos .tm-destaque .info{padding:8px 0 0!important;min-width:0!important;display:flex!important;flex-direction:column;flex:1}
body.tm-active #produtos .tm-grid .title,body.tm-active #produtos .tm-destaque .title{font-size:12px!important;font-weight:500!important;line-height:1.3!important;min-height:32px!important;margin-bottom:4px!important;white-space:normal!important;overflow-wrap:anywhere}
body.tm-active #produtos .tm-grid .meta{display:none!important}
body.tm-active #produtos .tm-grid .prod-actions{margin-top:auto!important;display:flex!important;justify-content:flex-end!important;padding-top:6px!important}
body.tm-active #produtos .tm-grid .add{position:static!important;border:0!important;border-radius:8px!important;min-width:32px!important;width:auto!important;min-height:32px!important;height:auto!important;background:var(--brand)!important;color:#fff!important;font-size:16px!important;padding:7px!important;box-shadow:none!important}
body.tm-active #produtos .tm-grid .scheduled-countdown{font-size:11px!important}
body.tm-active #produtos .tm-grid .prod-popularity-stars{font-size:11px!important}
body.tm-active .tm-editorial{display:flex;align-items:center;position:relative;isolation:isolate;overflow:hidden;min-height:168px;border-radius:14px;background:#f8e9df;margin:6px 0 12px;color:#761c0d}
.tm-editorial>div:first-child{position:relative;z-index:1;padding:18px;width:58%}
.tm-editorial h2{font:bold 26px/0.98 Georgia,serif;letter-spacing:-1px;margin:0 0 10px}
.tm-editorial p{font-size:12px;line-height:1.35;margin:0 0 12px;color:#41241c}
.tm-editorial button{border:0;border-radius:22px;background:var(--brand);color:#fff;font-size:11px;padding:10px 15px;cursor:pointer}
.tm-editorial>img{position:absolute;inset:0 0 0 auto;width:47%;height:100%;object-fit:cover;mask-image:linear-gradient(to right,transparent,#000 20%)}
.tm-editorial-art{position:absolute;right:0;width:45%;height:100%;display:flex;align-items:center;justify-content:center;gap:0;background:radial-gradient(ellipse,#eac2ad,transparent 70%);color:#bb8063;font-size:65px}
.tm-editorial-art i+i{font-size:40px;align-self:flex-end;margin-bottom:25px}
.tm-delivery-info{margin:0 auto 5px;border-radius:30px;background:#fff1f2;color:var(--brand);padding:9px 18px;font-size:12px;font-weight:700;text-align:center;width:fit-content}






body[data-tema-ofertas="delivery"] #produtos .tm-grid{grid-template-columns:1fr!important}
body[data-tema-ofertas="delivery"] #produtos .tm-grid .prod{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:12px;border-color:#f6f3f3!important;min-height:100px}
body[data-tema-ofertas="delivery"] #produtos .tm-grid .img{height:82px!important}
body[data-tema-ofertas="delivery"] #produtos .tm-grid .info{padding:2px 40px 0 0!important;position:relative}
body[data-tema-ofertas="delivery"] #produtos .tm-grid .prod-actions{position:absolute!important;right:0!important;bottom:12px!important}
body[data-tema-ofertas="delivery"] #produtos .tm-grid .prod-popularity-stars{display:none!important}



.tm-encarte-head{text-align:center;position:relative;isolation:isolate;padding:18px 4px 20px;color:#fff}
.tm-encarte-head h1{font-size:clamp(38px,11vw,66px);line-height:.95;letter-spacing:-1.5px;margin:0;font-weight:1000;transform:rotate(-2deg)}
.tm-encarte-head strong{display:block;color:#ffe333;font-size:.7em}
.tm-encarte-head p{display:inline-block;background:#ffe333;color:#332600;border-radius:12px;padding:10px 15px;font-size:12px;font-weight:700;transform:rotate(-3deg);margin-bottom:0}
.tm-encarte-head>span{position:absolute;left:0;top:90px;font-size:40px;font-weight:900;color:#ffe333;transform:rotate(-25deg);z-index:-1}
body.tm-active #produtos .tm-destaque .prod{display:grid!important;grid-template-columns:43% minmax(0,1fr)!important;gap:10px;border-radius:20px!important;padding:14px!important;color:#151515!important}
body.tm-active #produtos .tm-destaque .img{width:100%!important;height:205px!important;min-height:0!important;object-fit:contain}
body.tm-active #produtos .tm-destaque .img img{width:100%!important;height:100%!important;object-fit:contain!important}
body.tm-active #produtos .tm-destaque .title{font-size:16px!important;font-weight:700!important}
body.tm-active #produtos .tm-destaque .add{background:var(--brand)!important;border-radius:8px!important;color:white!important;padding:9px!important;border:0!important}
body[data-tema-ofertas="encarte"] .tm-section-head{color:white}
.tm-campanha{background:var(--brand);color:white;position:relative;overflow:hidden;margin:0 -12px;padding:24px 24px 32px}
.tm-campanha h1{font-size:40px;line-height:1;max-width:80%;margin:0 0 10px;font-weight:900;position:relative}
.tm-campanha p{font-size:14px;position:relative}
.tm-percent{position:absolute;right:10px;top:25px;font-size:85px;color:#ffe232;font-weight:900;transform:rotate(20deg)}
body[data-tema-ofertas="campanha"] .tm-destaque{margin-top:-12px;position:relative}
.tm-catalogos{padding-top:8px}
.tm-catalogos>p{font-size:13px;margin:5px 0 12px}
.tm-capas{display:grid;grid-template-columns:repeat(var(--tm-catalogo-colunas,2),minmax(0,1fr));gap:9px}
.tm-capa{position:relative;isolation:isolate;border:0;border-radius:13px;overflow:hidden;min-height:240px;display:flex;flex-direction:column;text-align:left;padding:15px 12px;color:#fff;background:#cb001c;cursor:pointer}
.tm-capa strong{font-size:24px;line-height:1.05;z-index:1}
.tm-capa small{font-size:11px;line-height:1.3;margin-top:7px;z-index:1}
.tm-capa>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.tm-capa:has(>img):after{content:'';position:absolute;inset:0;background:linear-gradient(#0007,transparent,#0004);z-index:-1}
.tm-capa-1{background:#f6c9cf;color:#780b0b}
.tm-capa-2{background:#d1e9f3;color:#133b4a}
.tm-capa-3{background:#baded8;color:#153b37}
.tm-capa:has(>img){color:white}
.tm-capa-cta{display:block;text-align:center;background:var(--brand);border:1px solid #fff7;border-radius:20px;color:#fff;padding:9px 7px;font-size:12px;margin-top:auto;z-index:1}
.tm-capa-produtos{display:flex;justify-content:center;flex:1;align-items:center;padding:10px 0}
.tm-capa-produtos img{width:36%;max-height:85px;object-fit:contain;mix-blend-mode:multiply}
.tm-capa-produtos img:nth-child(2){transform:scale(1.15)}
body[data-tema-ofertas="beleza"] .tm-editorial{border-radius:0;margin:0 -12px;min-height:245px}
body[data-tema-ofertas="beleza"] .tm-editorial h2{font-size:36px}
body[data-tema-ofertas="beleza"] .tm-editorial-footer{border-radius:14px;margin:14px 0;min-height:180px}
body[data-tema-ofertas="beleza"] .tm-editorial-footer h2{font-size:24px}
@media(min-width:700px){
body.tm-active #produtos .tm-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-tema-ofertas="delivery"] #produtos .tm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.tm-capas{grid-template-columns:repeat(var(--tm-catalogo-colunas,2),minmax(0,1fr))}
.tm-editorial{min-height:260px!important}
.tm-editorial h2{font-size:44px!important}
.tm-categorias{justify-content:center}
.tm-categorias button{flex:0 0 100px}
.tm-destaque{max-width:650px;margin:10px auto}
.tm-campanha h1{max-width:70%;font-size:54px}}
@media(max-width:359px){
body.tm-active #produtos .tm-grid .img{height:120px!important}
.tm-capa strong{font-size:20px}
.tm-capa{min-height:220px}
.tm-editorial h2{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){
body.tm-active #produtos *{scroll-behavior:auto!important;animation:none!important}}
body.tm-active #produtos .tm-grid .img-actions-left,body.tm-active #produtos .tm-destaque .img-actions-left{display:none!important}
body.tm-active #produtos .tm-grid .new{color:var(--brand)!important;font-size:19px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere}
body.tm-active #produtos .tm-grid .old{font-size:11px!important;height:auto!important;color:#777}
body.tm-active #produtos .tm-grid .prices{margin-top:4px!important}
body.tm-active #produtos .tm-grid .badge-row:empty,body.tm-active #produtos .tm-destaque .badge-row:empty{display:none!important}
body.tm-active #produtos .tm-grid .combo-stack img{width:76px!important}
body.tm-active #produtos .tm-destaque .new{font-size:32px!important;color:var(--brand)!important;white-space:normal!important;line-height:1.1!important}
.tm-desconto{position:absolute;right:8px;top:8px;border-radius:50%;width:44px;height:44px;background:#ffe42c;color:#171717;font-weight:900;font-size:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.tm-desconto small{font-size:9px;line-height:1.1}
.tm-destaque .tm-desconto{left:28%;top:145px;right:auto;width:55px;height:55px;font-size:19px}
body[data-tema-ofertas="campanha"] #produtos .tm-destaque .prod{padding-bottom:60px!important}
body[data-tema-ofertas="campanha"] #produtos .tm-destaque .prod-actions{position:absolute;bottom:12px;left:12px;right:12px}
body[data-tema-ofertas="campanha"] #produtos .tm-destaque .add{width:100%!important;min-height:38px;font-size:14px!important}
.tm-campanha .catalog-modern-countdown{display:flex!important;justify-content:center!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:12px 0 0!important;padding:0!important;color:inherit!important}
.tm-campanha .cmc-left{display:none!important}
.tm-campanha .cmc-time{color:white!important;background:#a0001444!important;padding:10px 20px!important;border-radius:10px!important}
.tm-campanha .cmc-time strong{color:white!important;font-size:28px!important}
.tm-editorial>img{object-position:50% 30%}
body.tm-active.show-catalog:not([data-tema-ofertas="delivery"]) #publicBottomNav{display:none!important}
body.tm-active.show-catalog:not([data-tema-ofertas="delivery"]) #cartBottom{bottom:calc(14px + env(safe-area-inset-bottom))!important}



body.tm-active #produtos .tm-grid .price-layout{display:block!important}
body.tm-active #produtos .tm-grid .combo-price{margin-top:6px!important}

/* O tema começa no conteúdo: cabeçalho, busca e loja usam os estilos originais. */
body.tm-active #catalogPage .content{background:#fff;color:#171717}
body[data-tema-ofertas="encarte"] #catalogPage .content{background:var(--brand);color:#fff}

.tm-toolbar>label:only-child{width:100%}
.tm-capas[style*="--tm-catalogo-colunas:1"] .tm-capa{width:100%;min-height:300px}

/* Proporções fixas, dimensões responsivas em todos os temas. */
#bannersProdutosPublicos.slider-mode .banner-produto-publico{
 position:relative!important;flex:0 0 100%!important;box-sizing:border-box!important;
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:1080 / 500!important;padding:0!important;border:0!important;overflow:hidden!important;
}
#bannersProdutosPublicos.slider-mode .banner-produto-publico img{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 min-height:0!important;max-height:none!important;object-fit:contain!important;display:block!important;
}
/* Capa: imagem, título e validade em blocos separados. */
#produtos .tm-capas .tm-capa{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 aspect-ratio:auto!important;height:auto!important;min-height:0!important;
 display:flex;flex-direction:column;gap:0!important;padding:0!important;
 background:#fff!important;color:#111827!important;border:0;border-radius:16px;
 overflow:hidden;align-self:start;text-align:left;box-shadow:none;
}
#produtos .tm-capas .tm-capa::after{content:none!important}
#produtos .tm-capa-imagem{display:block;position:relative;width:100%;aspect-ratio:1080 / 500;overflow:hidden;background:#f8fafc}
#produtos .tm-capa-imagem>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#produtos .tm-capa-info{display:flex;flex-direction:column;gap:2px;padding:5px 10px 8px;width:100%;box-sizing:border-box;background:#fff}
#produtos .tm-capa-info strong{display:block;margin:0;font-size:14px;line-height:1.25;font-weight:800;color:#111827;white-space:normal;overflow-wrap:anywhere}
#produtos .tm-capa-info small{display:block;margin:0;font-size:12px;line-height:1.35;font-weight:400;color:#808080;white-space:normal;overflow-wrap:anywhere}
#produtos .tm-capa-miniaturas{display:flex;align-items:center;justify-content:center;gap:6%;position:absolute;inset:10%;box-sizing:border-box}
#produtos .tm-capa-miniaturas img{width:28%;height:100%;object-fit:contain}
#produtos .tm-capa:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
#produtos .tm-capas[style*="--tm-catalogo-colunas:1"] .tm-capa-info{padding:5px 14px 8px}
#produtos .tm-capas[style*="--tm-catalogo-colunas:1"] .tm-capa-info strong{font-size:16px}
#produtos .tm-capas[style*="--tm-catalogo-colunas:1"] .tm-capa-info small{font-size:12px}

/* A área da imagem acompanha a altura real do slider, inclusive em duas colunas. */
#produtos .tm-capa-imagem{height:var(--tm-altura-slider,auto);flex-shrink:0}

/* Centraliza a imagem dentro de cada célula do catálogo. */
#produtos .tm-capa-imagem{align-self:center;margin-inline:auto}
#produtos .tm-capa-imagem>img{object-position:center center;margin-inline:auto}
#produtos .tm-capa-miniaturas img{object-position:center center}

/* Imagens centralizadas com o mesmo espaçamento nos quatro lados. */
#produtos .prod .img{padding:9px!important;box-sizing:border-box}
/* Rodapé no fim do documento, inclusive quando há pouco conteúdo. */
body.show-catalog #catalogPage.active{display:flex!important;flex-direction:column;min-height:100vh;min-height:100dvh}
body.show-catalog #catalogPage.active>header,
body.show-catalog #catalogPage.active>section,
body.show-catalog #catalogPage.active>main,
body.show-catalog #catalogPage.active>div{flex-shrink:0}
body.show-catalog #catalogPage.active>#paginaOfertasSections{margin-top:auto!important;padding-top:24px;width:100%}
body.show-catalog #paginaOfertasSections .po-footer{position:static;width:100%}

/* Tema catálogo: capas com profundidade e destaque responsivo. */
body[data-tema-ofertas="catalogos"] #produtos .tm-capas .tm-capa{
  box-shadow:0 5px 16px rgba(15,23,42,.15)!important;
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
  will-change:transform;
  -webkit-tap-highlight-color:transparent;
}
@media (hover:hover){
 body[data-tema-ofertas="catalogos"] #produtos .tm-capas .tm-capa:hover{
  transform:translateY(-4px) scale(1.015);
  box-shadow:0 12px 28px rgba(15,23,42,.26)!important;
  filter:brightness(1.025);
 }
}
body[data-tema-ofertas="catalogos"] #produtos .tm-capas .tm-capa:active{
 transform:scale(.975);
 box-shadow:0 3px 10px rgba(15,23,42,.27)!important;
 filter:brightness(.97);
}
body[data-tema-ofertas="catalogos"] #produtos .tm-capas .tm-capa:focus-visible{
 box-shadow:0 10px 24px rgba(15,23,42,.24)!important;
}
body[data-tema-ofertas="catalogos"] #produtos .tm-catalogos > h2,
body[data-tema-ofertas="catalogos"] #produtos .tm-catalogos > .tm-section-head{
 display:none!important;
}
@media (prefers-reduced-motion:reduce){
 body[data-tema-ofertas="catalogos"] #produtos .tm-capas .tm-capa{transition:none;will-change:auto}
}

/* Destaque das capas: vale para os botões gerados pelo tema Catálogos. */
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas {
  padding:6px 3px 13px;
  gap:12px;
  overflow:visible;
}
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa {
  position:relative!important;
  box-shadow:0 6px 17px rgba(0,0,0,.22)!important;
  border:1px solid rgba(0,0,0,.07)!important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important;
  transform:translateZ(0);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
@media (hover:hover) {
  body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa:hover {
    transform:translateY(-5px) scale(1.012)!important;
    box-shadow:0 13px 26px rgba(0,0,0,.32)!important;
    filter:brightness(1.04)!important;
    z-index:2;
  }
}
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa:active {
  transform:scale(.97)!important;
  box-shadow:0 2px 7px rgba(0,0,0,.28)!important;
  filter:brightness(.96)!important;
}
@media (prefers-reduced-motion:reduce) {
  body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa {transition:none!important}
}

/* Tema Catálogos: borda na cor da empresa ao destacar capas e slider. */
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa{
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease,border-color .22s ease!important;
}
@media (hover:hover){
  body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa:hover{
    border-color:var(--brand)!important;
  }
}
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa:active,
body.tm-active[data-tema-ofertas="catalogos"] #produtos .tm-capas > .tm-capa:focus-visible{
  border-color:var(--brand)!important;
}
/* Slider: a sombra fica no invólucro para não ser cortada pelo carrossel. */
body.tm-active[data-tema-ofertas="catalogos"] #bannersProdutosPublicos.slider-mode{
  overflow:hidden!important;
  border:1px solid transparent!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
  transition:box-shadow .22s ease,border-color .22s ease,filter .22s ease,transform .22s ease!important;
  -webkit-tap-highlight-color:transparent;
}
@media (hover:hover){
  body.tm-active[data-tema-ofertas="catalogos"] #bannersProdutosPublicos.slider-mode:hover{
    border-color:var(--brand)!important;
    box-shadow:0 13px 28px rgba(0,0,0,.3)!important;
    filter:brightness(1.035);
    transform:translateY(-3px);
  }
}
body.tm-active[data-tema-ofertas="catalogos"] #bannersProdutosPublicos.slider-mode:active,
body.tm-active[data-tema-ofertas="catalogos"] #bannersProdutosPublicos.slider-mode:focus-within{
  border-color:var(--brand)!important;
  box-shadow:0 5px 19px rgba(0,0,0,.28)!important;
}
@media (prefers-reduced-motion:reduce){
  body.tm-active[data-tema-ofertas="catalogos"] #bannersProdutosPublicos.slider-mode{transition:none!important;transform:none!important}
}
