
/* Mandrake UX v6 - clean store, desktop amplo, mobile app */
:root{
  --mg6-blue:#0057ff;
  --mg6-blue-700:#0046d6;
  --mg6-ink:#07111f;
  --mg6-muted:#5f6f89;
  --mg6-soft:#eef6ff;
  --mg6-line:#d8e7ff;
  --mg6-card:#ffffff;
  --mg6-shadow:0 12px 30px rgba(7,17,31,.08);
  --mg6-shadow-lg:0 20px 54px rgba(7,17,31,.13);
}

html{background:#f5fbff!important;}
body{background:linear-gradient(180deg,#f6fcff 0%,#eef8ff 100%)!important;color:var(--mg6-ink)!important;}

/* Containers: em telas grandes a loja usa mais a tela, sem ficar perdida no meio */
.mg-wide-shell,
.mg-store,
.mg-client-scope,
.mg-checkout-clean,
.minha-conta-main{
  width:min(1280px,calc(100% - 1rem))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media (min-width:980px){
  .mg-wide-shell,.mg-store,.mg-client-scope,.mg-checkout-clean,.minha-conta-main{width:min(1440px,calc(100% - 2.5rem))!important;}
}
@media (min-width:1500px){
  .mg-wide-shell,.mg-store,.mg-client-scope,.mg-checkout-clean,.minha-conta-main{width:min(1760px,calc(100% - 4rem))!important;}
}
@media (min-width:2100px){
  .mg-wide-shell,.mg-store,.mg-client-scope,.mg-checkout-clean,.minha-conta-main{width:min(1980px,calc(100% - 5rem))!important;}
}

/* Header limpo: logo à esquerda do container, não perdido no centro */
.mg-header-inicio{
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid rgba(0,87,255,.12)!important;
  box-shadow:0 8px 24px rgba(7,17,31,.08)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
.mg-header-inicio-inner{
  width:min(1280px,calc(100% - 1rem))!important;
  max-width:none!important;
  padding:.5rem 0!important;
}
@media (min-width:980px){.mg-header-inicio-inner{width:min(1440px,calc(100% - 2.5rem))!important;}}
@media (min-width:1500px){.mg-header-inicio-inner{width:min(1760px,calc(100% - 4rem))!important;}}
@media (min-width:2100px){.mg-header-inicio-inner{width:min(1980px,calc(100% - 5rem))!important;}}
.mg-inicio-logo-card{
  min-height:3rem!important;
  padding:.35rem .75rem .35rem .45rem!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,.09)!important;
}
.mg-inicio-logo-img{width:2.3rem!important;height:2.3rem!important;border-radius:.72rem!important;}
.mg-inicio-logo-title{font-size:.95rem!important;letter-spacing:-.035em!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,.09)!important;}

/* Remove carrinho flutuante: a navegação/header já resolve isso */
#carrinhoFlutuante,.mg-floating-cart{display:none!important;visibility:hidden!important;pointer-events:none!important;}

/* Espaçamento de páginas */
.mg-main{padding-top:5.1rem!important;}
.mg-store{padding-top:5.1rem!important;padding-bottom:2.2rem!important;}
@media (max-width:900px){
  .mg-main{padding-top:4.55rem!important;}
  .mg-store{padding-top:4.55rem!important;padding-bottom:calc(5.6rem + env(safe-area-inset-bottom,0px))!important;}
}

/* HOME - porta de entrada limpa */
.mg-story-shell{padding-top:.5rem!important;}
.mg-story-card,.mg-benefit-panel,.mg-fashion-trust-item,.mg-products-panel,.brand-panel{
  border:1px solid rgba(0,87,255,.12)!important;
  box-shadow:var(--mg6-shadow)!important;
  background:rgba(255,255,255,.94)!important;
}
.mg-story-card{border-radius:1.45rem!important;}
.mg-story-empty-inner{padding:1rem!important;}
.mg-story-title{font-size:clamp(1.45rem,2.6vw,2.15rem)!important;letter-spacing:-.055em!important;}
.mg-story-desc{max-width:720px!important;}
.mg-benefit-panel{border-radius:1.15rem!important;padding:.85rem 1rem!important;}
.mg-fashion-trust{gap:.8rem!important;}
.mg-fashion-trust-item{border-radius:1.15rem!important;padding:.85rem .95rem!important;}
.mg-fashion-trust-icon{border-radius:.85rem!important;background:var(--mg6-blue)!important;}

.mg-products-panel{border-radius:1.45rem!important;padding:1.2rem!important;}
.mg-products-heading{
  font-size:clamp(1.85rem,3.2vw,3.2rem)!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
  word-spacing:.14em!important;
  white-space:normal!important;
}
.mg-products-panel .mb-7{margin-bottom:1rem!important;}
.mg-products-panel p{font-size:.96rem!important;color:#52627a!important;line-height:1.5!important;}
#produtosCarrossel{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.85rem!important;
  overflow:visible!important;
  padding-bottom:0!important;
  scroll-snap-type:none!important;
}
@media (min-width:760px){#produtosCarrossel{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1rem!important;}}
@media (min-width:1120px){#produtosCarrossel{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media (min-width:1500px){#produtosCarrossel{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
@media (min-width:1900px){#produtosCarrossel{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
#produtosCarrossel .produto-card{
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  border-radius:1.1rem!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid var(--mg6-line)!important;
  box-shadow:var(--mg6-shadow)!important;
}
#produtosCarrossel .produto-card > .relative:first-child{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:4/5!important;
  background:linear-gradient(135deg,#f8fbff,#eaf2ff)!important;
  overflow:hidden!important;
}
#produtosCarrossel .produto-img{
  width:100%!important;height:100%!important;object-fit:contain!important;padding:7px!important;
  opacity:1!important;visibility:visible!important;background:transparent!important;
}
#produtosCarrossel .produto-card .p-4,#produtosCarrossel .produto-card .p-5{padding:.78rem!important;display:flex!important;flex-direction:column!important;}
#produtosCarrossel .produto-nome{font-size:.92rem!important;line-height:1.15rem!important;min-height:2.25rem!important;margin:0 0 .45rem!important;}
#produtosCarrossel .produto-price-box{font-size:1.28rem!important;line-height:1.05!important;margin:.25rem 0 .55rem!important;color:var(--mg6-blue)!important;}
#produtosCarrossel .opcoes[data-type="cor"],#produtosCarrossel .mg-home-color-row,#produtosCarrossel .btn-comprar{display:none!important;}
#produtosCarrossel a[aria-label*="Ver detalhes"],#produtosCarrossel a[href*="/produto/"],#produtosCarrossel a[href*="/produtos/produtos.php?produto"]{
  width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:2.42rem!important;border-radius:.85rem!important;background:var(--mg6-blue)!important;color:#fff!important;
  border:1px solid var(--mg6-blue)!important;font-weight:900!important;font-size:.76rem!important;text-decoration:none!important;margin-top:auto!important;
}
@media (max-width:640px){
  .mg-products-panel{padding:.9rem!important;border-radius:1.15rem!important;}
  #produtosCarrossel{gap:.62rem!important;}
  #produtosCarrossel .produto-card{border-radius:.95rem!important;}
  #produtosCarrossel .produto-card .p-4,#produtosCarrossel .produto-card .p-5{padding:.62rem!important;}
  #produtosCarrossel .produto-nome{font-size:.78rem!important;line-height:1.04rem!important;min-height:2rem!important;}
  #produtosCarrossel .produto-price-box{font-size:1.08rem!important;}
}

/* PRODUTOS - catálogo clean e amplo */
.mg-hero-card{border-radius:1.45rem!important;box-shadow:var(--mg6-shadow)!important;background:rgba(255,255,255,.92)!important;}
.mg-hero-pro{min-height:auto!important;padding:1.15rem!important;}
.mg-hero-pro-inner{align-items:center!important;gap:1rem!important;}
.mg-hero-pro h1{font-size:clamp(2.15rem,4vw,4.25rem)!important;line-height:.95!important;letter-spacing:-.06em!important;}
.mg-hero-pro p{font-size:.98rem!important;line-height:1.5!important;max-width:760px!important;}
.mg-hero-status-card{min-height:105px!important;min-width:150px!important;border-radius:1.2rem!important;}
.mg-trust-strip{gap:.75rem!important;margin-top:.85rem!important;}
.mg-trust-item{min-height:4.1rem!important;border-radius:1.05rem!important;padding:.72rem .85rem!important;}
@media (max-width:760px){
  .mg-hero-pro{padding:.95rem!important;border-radius:1.12rem!important;}
  .mg-hero-pro-inner{grid-template-columns:1fr!important;}
  .mg-hero-pro h1{font-size:2.45rem!important;}
  .mg-hero-status-card{display:none!important;}
  .mg-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.55rem!important;}
  .mg-hero-cta{min-height:2.75rem!important;padding:.68rem!important;font-size:.75rem!important;}
}

/* filtro no fluxo normal, nunca grudado */
.mg-filter-panel{
  position:relative!important;top:auto!important;z-index:2!important;
  margin-top:1rem!important;border-radius:1.25rem!important;padding:1rem!important;
  background:rgba(255,255,255,.96)!important;box-shadow:var(--mg6-shadow)!important;
}
.mg-product-filter-grid{
  display:grid!important;
  grid-template-columns:minmax(260px,1.35fr) minmax(210px,.9fr) minmax(190px,.75fr) minmax(150px,.55fr)!important;
  gap:.75rem!important;align-items:center!important;
}
#tabsList{display:none!important;}
.mg-input-pro{height:3.1rem!important;border-radius:1rem!important;border-color:var(--mg6-line)!important;background:#fff!important;}
#resultCount{font-size:.82rem!important;color:#66758f!important;margin-top:.65rem!important;}
@media (max-width:900px){
  .mg-filter-panel{padding:.85rem!important;}
  .mg-product-filter-grid{grid-template-columns:1fr 1fr!important;gap:.6rem!important;}
  .mg-search-wrap{grid-column:1/-1!important;}
  .mg-input-pro{height:2.9rem!important;font-size:.82rem!important;}
}
@media (max-width:430px){.mg-product-filter-grid{grid-template-columns:1fr!important;}}

#abasConteudo,#mgUnifiedResults{margin-top:1.05rem!important;}
#mgUnifiedTitle,.js-tab-content h2{font-size:clamp(1.6rem,2.7vw,2.5rem)!important;line-height:1.05!important;letter-spacing:-.045em!important;}
#mgUnifiedSubtitle,.js-tab-content h2+p{font-size:.94rem!important;line-height:1.45!important;color:#52627a!important;}
.js-products-grid,#mgUnifiedGrid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.78rem!important;align-items:start!important;
}
@media (min-width:720px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1rem!important;}}
@media (min-width:1120px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media (min-width:1500px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
@media (min-width:1900px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}

.js-product-card,.mg-product-card{
  content-visibility:visible!important;contain:none!important;contain-intrinsic-size:auto!important;
  width:auto!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;
  border-radius:1.1rem!important;overflow:hidden!important;background:#fff!important;
  border:1px solid var(--mg6-line)!important;box-shadow:var(--mg6-shadow)!important;transform:none!important;
}
.js-product-card:hover{box-shadow:var(--mg6-shadow-lg)!important;transform:translateY(-2px)!important;}
.js-product-card .mg-product-image-wrap{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:0!important;aspect-ratio:4/5!important;flex:0 0 auto!important;
  overflow:hidden!important;background:linear-gradient(135deg,#f8fbff,#eaf2ff)!important;
  border-bottom:1px solid rgba(0,87,255,.10)!important;
}
.js-product-card .imagem-produto{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:7px!important;background:transparent!important;opacity:1!important;visibility:visible!important;transform:none!important;}
.js-product-card:hover .imagem-produto{transform:scale(1.025)!important;}
.js-product-card > .flex.flex-1.flex-col{padding:.72rem!important;border-top:0!important;min-height:0!important;}
.mg-card-meta-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:.45rem!important;margin-bottom:.4rem!important;}
.mg-card-category{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.58rem!important;line-height:1!important;padding:.35rem .48rem!important;border-radius:999px!important;background:#eef5ff!important;color:#0057ff!important;}
.mg-card-availability{display:none!important;}
.js-product-card h3{font-size:.88rem!important;line-height:1.12rem!important;letter-spacing:-.035em!important;min-height:2.22rem!important;margin:0!important;}
.js-product-card .text-lg.font-black,.js-product-card .sm\:text-xl{font-size:1.24rem!important;line-height:1.08!important;color:var(--mg6-blue)!important;letter-spacing:-.04em!important;}
.js-product-card .mg-price-box{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;}
.js-rating{margin-top:.5rem!important;font-size:.64rem!important;background:#fff!important;border:1px solid var(--mg6-line)!important;}
.js-rating span:last-child{display:none!important;}
.js-product-card .mt-3.space-y-3{margin-top:.62rem!important;display:block!important;}
.js-product-card .mg-list-color-row{display:none!important;}
.js-product-card .mg-list-size-row,.js-product-card .mt-3.space-y-3 > div:not(.mg-list-color-row){margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
.js-product-card .mg-list-size-row p,.js-product-card .mt-3.space-y-3 p{font-size:.6rem!important;letter-spacing:.07em!important;margin:0 0 .32rem!important;color:#52627a!important;}
.js-product-card .mg-size-label{min-width:1.85rem!important;min-height:1.78rem!important;padding:.32rem .45rem!important;border-radius:999px!important;font-size:.62rem!important;background:#fff!important;}
.js-product-card p.rounded-xl{font-size:.68rem!important;border-radius:.8rem!important;padding:.5rem .6rem!important;background:#f3f7ff!important;}
.js-product-card .mg-card-actions{display:block!important;margin-top:auto!important;padding:.65rem .72rem .72rem!important;border-top:1px solid rgba(0,87,255,.08)!important;}
.js-product-card .mg-card-actions .js-add-cart{display:none!important;}
.js-product-card .mg-card-actions .mg-detail-btn{width:100%!important;min-height:2.45rem!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:.85rem!important;background:var(--mg6-blue)!important;border:1px solid var(--mg6-blue)!important;color:#fff!important;font-size:.74rem!important;font-weight:900!important;}

@media (max-width:640px){
  .js-products-grid,#mgUnifiedGrid{gap:.6rem!important;}
  .js-product-card{border-radius:.95rem!important;}
  .js-product-card > .flex.flex-1.flex-col{padding:.58rem!important;}
  .js-product-card h3{font-size:.76rem!important;line-height:1.02rem!important;min-height:2rem!important;}
  .mg-card-category{font-size:.49rem!important;padding:.3rem .38rem!important;}
  .js-product-card .text-lg.font-black,.js-product-card .sm\:text-xl{font-size:1.05rem!important;}
  .js-rating{font-size:.54rem!important;}
  .js-product-card .mg-size-label{min-width:1.62rem!important;min-height:1.58rem!important;font-size:.54rem!important;padding:.24rem .34rem!important;}
  .js-product-card .mg-card-actions{padding:.5rem!important;}
  .js-product-card .mg-card-actions .mg-detail-btn{min-height:2.18rem!important;font-size:.64rem!important;}
}

/* Bottom nav mobile */
@media (max-width:900px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;}}
.mg-client-mobile-bar{left:.65rem!important;right:.65rem!important;bottom:calc(.55rem + env(safe-area-inset-bottom,0px))!important;z-index:2147483000!important;height:4.15rem!important;display:none;grid-template-columns:repeat(4,1fr)!important;align-items:center!important;border-radius:1.35rem!important;border:1px solid rgba(0,87,255,.14)!important;background:rgba(255,255,255,.96)!important;box-shadow:0 18px 42px rgba(15,23,42,.16)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;overflow:hidden!important;}
@media (max-width:900px){.mg-client-mobile-bar{display:grid!important;}}
.mg-client-mobile-bar a{min-width:0!important;height:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:.18rem!important;color:#334155!important;text-decoration:none!important;font-weight:900!important;font-size:.66rem!important;}
.mg-client-mobile-bar a[aria-current="page"],.mg-client-mobile-bar a.is-active{color:var(--mg6-blue)!important;}
.mg-client-mobile-bar .mg-nav-icon{width:1.65rem!important;height:1.65rem!important;display:grid!important;place-items:center!important;border-radius:.75rem!important;background:#f1f6ff!important;color:currentColor!important;font-size:0!important;}
.mg-client-mobile-bar a[aria-current="page"] .mg-nav-icon,.mg-client-mobile-bar a.is-active .mg-nav-icon{background:var(--mg6-blue)!important;color:#fff!important;box-shadow:0 8px 18px rgba(0,87,255,.25)!important;}
.mg-client-mobile-bar svg{width:1.05rem!important;height:1.05rem!important;display:block!important;}
