/* Mandrake V12 - polimento real de vitrine/home, responsivo e experiência do cliente */
:root{
  --mg12-blue:#0057ff;
  --mg12-blue-dark:#003fc2;
  --mg12-ink:#071225;
  --mg12-muted:#627089;
  --mg12-border:#d8e6ff;
  --mg12-soft:#eef5ff;
  --mg12-bg:#f5fbff;
  --mg12-card:#ffffff;
  --mg12-shadow:0 14px 36px rgba(15,23,42,.075);
  --mg12-shadow-strong:0 22px 56px rgba(15,23,42,.13);
  --mg12-container:min(1460px,calc(100% - 2rem));
}
@media (min-width:1800px){:root{--mg12-container:min(1580px,calc(100% - 5rem));}}
@media (max-width:640px){:root{--mg12-container:calc(100% - .9rem);}}
html{scroll-padding-top:5rem!important;}
body{background:linear-gradient(115deg,#e9fbff 0%,#f7fbff 42%,#edf4ff 100%)!important;color:var(--mg12-ink)!important;}

/* Header consistente em telas grandes e reduzidas */
.mg-header-inicio{background:rgba(255,255,255,.94)!important;border-bottom:1px solid rgba(0,87,255,.11)!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;}
.mg-header-inicio-inner{width:var(--mg12-container)!important;max-width:none!important;margin-inline:auto!important;padding:.48rem 0!important;}
.mg-inicio-logo-card{min-height:3rem!important;border-radius:1.05rem!important;padding:.36rem .74rem .36rem .42rem!important;background:linear-gradient(135deg,#fff,#eef5ff)!important;border:1px solid rgba(0,87,255,.18)!important;box-shadow:0 8px 22px rgba(0,87,255,.10)!important;}
.mg-inicio-logo-img{width:2.25rem!important;height:2.25rem!important;border-radius:.75rem!important;}
.mg-inicio-logo-title{font-size:.95rem!important;letter-spacing:-.04em!important;}
.mg-inicio-menu-button{width:2.75rem!important;height:2.75rem!important;border-radius:1rem!important;background:#fff!important;border:1px solid rgba(0,87,255,.18)!important;box-shadow:0 8px 22px rgba(0,87,255,.10)!important;color:var(--mg12-blue)!important;}
@media (max-width:640px){.mg-header-inicio-inner{width:calc(100% - .75rem)!important}.mg-inicio-logo-card{min-height:2.75rem!important}.mg-inicio-logo-img{width:2.05rem!important;height:2.05rem!important}.mg-inicio-logo-title{font-size:.84rem!important}.mg-inicio-menu-button{width:2.55rem!important;height:2.55rem!important}}

/* Containers públicos */
.mg-wide-shell,.mg-store,.mg-product-detail-main,.checkout-container-clean{width:var(--mg12-container)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;}
.mg-main{padding-top:4.95rem!important;}
@media (max-width:640px){.mg-main{padding-top:4.35rem!important;}.mg-wide-shell{width:calc(100% - .9rem)!important;}}

/* Remove o hero/avisos repetidos que estavam poluindo a entrada da home */
.mg-home-entry-shell{display:none!important;}
section:has(.mg-benefit-panel),section:has(.mg-fashion-trust){display:none!important;}

/* Fundo/marca d'água mais profissional: não encosta nos textos/cards */
.brand-soft-bg,.brand-panel{background:rgba(255,255,255,.82)!important;}
.mg-logo-watermark{position:relative!important;overflow:hidden!important;}
.mg-logo-watermark::before{content:""!important;position:absolute!important;right:clamp(1.5rem,8vw,8rem)!important;bottom:-3rem!important;width:clamp(240px,26vw,430px)!important;height:clamp(240px,26vw,430px)!important;background:url('/img/logo2-96.webp') center/contain no-repeat!important;opacity:.035!important;filter:grayscale(1)!important;pointer-events:none!important;z-index:0!important;}
.mg-logo-watermark>*{position:relative!important;z-index:1!important;}

/* Stories: topo simples, com CTA claro */
.mg-story-shell{padding-top:.85rem!important;}
.mg-story-card{border:1px solid rgba(0,87,255,.12)!important;border-radius:1.35rem!important;box-shadow:var(--mg12-shadow)!important;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(238,245,255,.62))!important;}
.mg-story-empty-inner{padding:1.1rem 1.35rem!important;}
.mg-story-logo{width:2.85rem!important;height:2.85rem!important;border-radius:.95rem!important;}
.mg-story-title{font-size:1.1rem!important;line-height:1.05!important;letter-spacing:-.045em!important;margin-top:.32rem!important;}
.mg-story-desc{display:none!important;}
.mg-story-card-empty{min-height:0!important;}
.mg-story-card-empty .mg-story-empty-inner{padding:.95rem 1.2rem!important;}
.mg-story-card-empty .mg-story-logo{width:2.45rem!important;height:2.45rem!important;}
.mg-story-card-empty .mg-story-title{font-size:1rem!important;margin-top:.22rem!important;}
.mg-story-card .brand-button{background:var(--mg12-blue)!important;color:#fff!important;border:0!important;border-radius:.95rem!important;box-shadow:0 12px 26px rgba(0,87,255,.18)!important;min-height:2.65rem!important;font-weight:950!important;}
@media (max-width:640px){.mg-story-empty-inner{padding:.8rem!important}.mg-story-card .flex.flex-col.gap-3{gap:.7rem!important}.mg-story-card .brand-button{width:100%!important;min-height:2.65rem!important}}

/* Cupons compactos */
.mg-coupon-card{border-radius:1rem!important;box-shadow:0 10px 24px rgba(15,23,42,.055)!important;}
.mg-coupon-code{font-size:1rem!important;}

/* Categorias rápidas: vira uma fileira de chips dentro do container, não ocupa a tela inteira */
.mg-home-categories{width:var(--mg12-container)!important;max-width:none!important;margin:1rem auto 1.4rem!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.65rem!important;}
.mg-home-category{min-height:3.1rem!important;padding:.62rem .72rem!important;border-radius:1rem!important;border:1px solid rgba(0,87,255,.14)!important;background:rgba(255,255,255,.92)!important;box-shadow:0 10px 24px rgba(15,23,42,.055)!important;gap:.55rem!important;color:var(--mg12-ink)!important;}
.mg-home-category:hover{transform:translateY(-1px)!important;box-shadow:var(--mg12-shadow)!important;border-color:rgba(0,87,255,.32)!important;}
.mg-home-category-icon{width:2rem!important;height:2rem!important;border-radius:.78rem!important;background:var(--mg12-blue)!important;color:#fff!important;box-shadow:none!important;font-size:.82rem!important;}
.mg-home-category span:last-child{font-size:.76rem!important;line-height:1!important;font-weight:950!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
@media (max-width:980px){.mg-home-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media (max-width:640px){.mg-home-categories{display:flex!important;overflow-x:auto!important;gap:.5rem!important;margin:.8rem auto 1rem!important;padding-bottom:.15rem!important;scroll-snap-type:x mandatory!important}.mg-home-category{min-width:8.4rem!important;scroll-snap-align:start!important;min-height:3rem!important}.mg-home-category-icon{width:1.9rem!important;height:1.9rem!important}.mg-home-category span:last-child{font-size:.72rem!important}}

/* Painel de destaque: limpo e sem bloco gigante */
.mg-products-panel{padding:1.25rem!important;border-radius:1.35rem!important;border:1px solid rgba(0,87,255,.13)!important;background:rgba(255,255,255,.92)!important;box-shadow:var(--mg12-shadow)!important;}
.mg-products-panel>.mb-7,.mg-products-panel>.sm\:mb-8{margin-bottom:1.05rem!important;}
.mg-products-heading{font-size:clamp(1.85rem,3vw,3.05rem)!important;line-height:.98!important;letter-spacing:-.055em!important;word-spacing:.14em!important;margin:0!important;}
.mg-products-heading+p{max-width:720px!important;font-size:.88rem!important;line-height:1.45!important;color:#5c6c84!important;margin-top:.5rem!important;font-weight:750!important;}
.mg-products-panel a[href="/produtos"]{border:1px solid rgba(0,87,255,.16)!important;border-radius:999px!important;padding:.72rem 1rem!important;background:#fff!important;text-decoration:none!important;}

/* Home vitrine: grid controlado no desktop, carrossel no mobile */
#produtosCarrossel{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.78rem!important;overflow:visible!important;padding:0!important;scroll-snap-type:none!important;}
@media (max-width:1440px){#produtosCarrossel{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
@media (max-width:1160px){#produtosCarrossel{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media (max-width:820px){#produtosCarrossel{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media (max-width:640px){#produtosCarrossel{display:flex!important;overflow-x:auto!important;gap:.62rem!important;padding:0 0 .2rem!important;scroll-snap-type:x mandatory!important;}.mg-products-panel{padding:.85rem!important;border-radius:1.12rem!important}.mg-products-heading{font-size:1.62rem!important}.mg-products-heading+p{font-size:.78rem!important}.mg-products-panel>.mb-7{margin-bottom:.8rem!important}}

#produtosCarrossel .produto-card{width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:1rem!important;border:1px solid rgba(0,87,255,.14)!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.065)!important;transition:transform .18s ease,box-shadow .18s ease!important;}
#produtosCarrossel .produto-card:hover{transform:translateY(-2px)!important;box-shadow:var(--mg12-shadow-strong)!important;}
#produtosCarrossel .produto-card>.relative:first-child{display:block!important;aspect-ratio:4/5!important;height:auto!important;min-height:0!important;max-height:none!important;background:#f4f8ff!important;border-bottom:1px solid rgba(0,87,255,.08)!important;overflow:hidden!important;}
#produtosCarrossel .produto-img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;border-radius:0!important;}
#produtosCarrossel .favorito{top:.55rem!important;right:.55rem!important;width:2.15rem!important;height:2.15rem!important;min-width:2.15rem!important;min-height:2.15rem!important;border:1px solid rgba(0,87,255,.14)!important;box-shadow:0 8px 18px rgba(15,23,42,.10)!important;}
#produtosCarrossel .produto-card .p-4,#produtosCarrossel .produto-card .p-5{padding:.72rem!important;display:flex!important;flex-direction:column!important;gap:.45rem!important;flex:1 1 auto!important;}
/* Corrige bug dos CSS antigos que transformavam o nome do produto em botão */
#produtosCarrossel .produto-nome a[href*="/produto/"]{display:inline!important;width:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;border-radius:0!important;font-size:inherit!important;font-weight:inherit!important;text-align:left!important;text-decoration:none!important;line-height:inherit!important;}
#produtosCarrossel .produto-nome{font-size:.82rem!important;line-height:1.08rem!important;min-height:2.15rem!important;max-height:2.18rem!important;margin:0!important;letter-spacing:-.035em!important;color:var(--mg12-ink)!important;overflow:hidden!important;}
#produtosCarrossel .produto-price-box{font-size:1.12rem!important;line-height:1!important;margin:0!important;color:var(--mg12-blue)!important;font-weight:1000!important;}
#produtosCarrossel .produto-price-box.rounded-2xl{padding:.5rem!important;border-radius:.8rem!important;}
#produtosCarrossel .produto-price-box .text-3xl{font-size:1.12rem!important;}
#produtosCarrossel .flex.text-yellow-400{font-size:.72rem!important;line-height:1!important;letter-spacing:-.05em!important;}
#produtosCarrossel .flex.items-center.gap-2.mb-4{margin:0!important;gap:.35rem!important;}
#produtosCarrossel .flex.items-center.gap-2.mb-4 span{font-size:.64rem!important;color:#64748b!important;white-space:nowrap!important;}
#produtosCarrossel .opcoes[data-type="cor"],#produtosCarrossel .mg-home-color-row,#produtosCarrossel div:has(> .opcoes[data-type="cor"]){display:none!important;}
#produtosCarrossel div:has(> .opcoes[data-type="tamanho"]){margin:0!important;}
#produtosCarrossel div:has(> .opcoes[data-type="tamanho"])>.text-xs{font-size:.58rem!important;margin:0 0 .25rem!important;color:#64748b!important;letter-spacing:.08em!important;}
#produtosCarrossel .opcoes[data-type="tamanho"]{gap:.28rem!important;}
#produtosCarrossel .opcao-tamanho{min-width:1.72rem!important;min-height:1.72rem!important;padding:.22rem .42rem!important;border-radius:999px!important;font-size:.58rem!important;font-weight:950!important;}
#produtosCarrossel .btn-comprar{display:none!important;}
#produtosCarrossel .produto-card .flex.gap-3{margin-top:auto!important;display:block!important;}
#produtosCarrossel .produto-card .flex.gap-3 a[aria-label*="Ver detalhes"]{width:100%!important;min-height:2.28rem!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:.82rem!important;background:var(--mg12-blue)!important;border:1px solid var(--mg12-blue)!important;color:#fff!important;font-weight:950!important;font-size:.68rem!important;text-decoration:none!important;padding:.55rem!important;box-shadow:none!important;}
#produtosCarrossel .produto-card .flex.gap-3 a[aria-label*="Ver detalhes"] i{display:none!important;}
#produtosCarrossel+div,#produtosCarrossel~.mt-3{display:none!important;}
@media (max-width:640px){#produtosCarrossel .produto-card{min-width:44vw!important;max-width:44vw!important;border-radius:.95rem!important}#produtosCarrossel .produto-card .p-4,#produtosCarrossel .produto-card .p-5{padding:.58rem!important;gap:.36rem!important}#produtosCarrossel .produto-nome{font-size:.72rem!important;line-height:.94rem!important;min-height:1.9rem!important}#produtosCarrossel .produto-price-box{font-size:.98rem!important}#produtosCarrossel .produto-card .flex.gap-3 a[aria-label*="Ver detalhes"]{min-height:2.08rem!important;font-size:.62rem!important}.mg-products-panel a[href="/produtos"]{display:flex!important;width:100%!important;justify-content:center!important;margin-top:.25rem!important}}
@media (max-width:380px){#produtosCarrossel .produto-card{min-width:54vw!important;max-width:54vw!important}}

/* Página de produtos: controle melhor em desktop grande e telas médias */
.js-products-grid,#mgUnifiedGrid{gap:.82rem!important;}
@media (min-width:1600px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
@media (min-width:2100px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media (max-width:720px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.58rem!important;}.js-product-card .mg-product-image-wrap{aspect-ratio:4/5!important}.js-product-card .imagem-produto{object-fit:cover!important;padding:0!important}.mg-filter-panel{border-radius:1rem!important}}

/* Produto individual: responsivo + ajuda de tamanho sem sobrepor */
.mg-product-detail-main{padding-top:5rem!important;padding-bottom:2rem!important;}
.mg-product-layout{display:grid!important;grid-template-columns:minmax(320px,.92fr) minmax(360px,.86fr)!important;gap:1.1rem!important;align-items:start!important;max-width:1120px!important;margin-inline:auto!important;}
.mg-gallery-main{aspect-ratio:4/5!important;max-height:min(72vh,660px)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.mg-gallery-main img{width:100%!important;height:100%!important;object-fit:contain!important;padding:10px!important;}
@media (min-width:1500px){.mg-product-layout{max-width:1180px!important;grid-template-columns:minmax(420px,.9fr) minmax(430px,.8fr)!important;gap:1.35rem!important}.mg-gallery-main{max-height:690px!important}}
@media (max-width:980px){.mg-product-layout{grid-template-columns:1fr!important;max-width:720px!important}.mg-gallery-main{max-height:none!important}}
@media (max-width:640px){.mg-product-detail-main{width:calc(100% - .9rem)!important;padding:4.35rem 0 calc(8.5rem + env(safe-area-inset-bottom,0px))!important}.mg-gallery-main{border-radius:1rem!important}.mg-product-actions.two{grid-template-columns:1fr!important}.mg-product-actions.two .mg-client-btn{min-height:2.9rem!important}.mg-client-chip{font-size:.72rem!important}.mg-client-grid.cols-3{grid-template-columns:1fr!important;gap:.5rem!important}}
.mg-size-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin:.75rem 0 0;}
.mg-size-help-btn{min-height:2.65rem;border-radius:.9rem;border:1px solid var(--mg12-border);background:#fff;color:var(--mg12-blue);font-weight:950;display:flex;align-items:center;justify-content:center;gap:.45rem;text-decoration:none;cursor:pointer;}
.mg-size-help-btn.primary{background:var(--mg12-blue);border-color:var(--mg12-blue);color:#fff;}
@media(max-width:420px){.mg-size-help-actions{grid-template-columns:1fr}}
.mg-size-modal{position:fixed;inset:0;z-index:2147483300;display:none;align-items:center;justify-content:center;padding:1rem;background:rgba(7,18,37,.55);backdrop-filter:blur(6px)}
.mg-size-modal.is-open{display:flex}.mg-size-modal-card{width:min(560px,100%);max-height:86vh;overflow:auto;border-radius:1.25rem;background:#fff;border:1px solid var(--mg12-border);box-shadow:0 28px 80px rgba(15,23,42,.28);padding:1rem}.mg-size-modal-card h2{font-size:1.35rem;letter-spacing:-.05em;margin:.2rem 0 .45rem}.mg-size-modal-card p{color:#64748b;font-weight:750;line-height:1.45}.mg-size-modal-card table{width:100%;border-collapse:separate;border-spacing:0;margin-top:.8rem;overflow:hidden;border:1px solid var(--mg12-border);border-radius:1rem}.mg-size-modal-card th,.mg-size-modal-card td{padding:.72rem;border-bottom:1px solid var(--mg12-border);text-align:left;font-weight:800}.mg-size-modal-card th{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f3f7ff}.mg-size-modal-card tr:last-child td{border-bottom:0}.mg-size-modal-close{float:right;width:2.4rem;height:2.4rem;border:1px solid var(--mg12-border);border-radius:.8rem;background:#fff;color:var(--mg12-blue);font-size:1.35rem;font-weight:950;cursor:pointer}

/* Bottom nav/fixed buttons: nunca sobrepor */
@media(max-width:900px){#carrinhoFlutuante,.mg-floating-cart{display:none!important;visibility:hidden!important;pointer-events:none!important}.mg-client-mobile-bar{display:grid!important;}.mg-client-sticky-buy,.mg-product-fixed-buy,.checkout-mobile-bar{bottom:calc(4.95rem + env(safe-area-inset-bottom,0px))!important;}.mg-client-sticky-buy{left:.65rem!important;right:.65rem!important;border-radius:1rem!important;z-index:2147482200!important}.checkout-cta-footer{padding-bottom:calc(5.4rem + env(safe-area-inset-bottom,0px))!important}}
@media(min-width:901px){.mg-client-mobile-bar{display:none!important}.mg-client-sticky-buy,.mg-product-fixed-buy{display:none!important}}
