/* Mandrake Conversion UX V10 - camada final pública: compra simples, filtro mobile, home comercial */
:root{
  --mg10-blue:#0057ff;
  --mg10-blue-700:#0046d6;
  --mg10-ink:#071225;
  --mg10-muted:#61718a;
  --mg10-soft:#eef5ff;
  --mg10-soft-2:#f7fbff;
  --mg10-border:#d7e6ff;
  --mg10-shadow:0 14px 34px rgba(15,23,42,.08);
  --mg10-shadow-hover:0 18px 46px rgba(15,23,42,.13);
  --mg10-radius:1.35rem;
}
html{scroll-padding-top:5.5rem}
body{background:linear-gradient(180deg,#f6fbff 0%,#eef8ff 100%)!important;color:var(--mg10-ink)!important}

/* Header mais app/profissional */
.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(15,23,42,.08)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
.mg-header-inicio-inner{width:min(1280px,calc(100% - 1.25rem))!important;max-width:1280px!important;padding:.52rem 0!important}
@media(min-width:1440px){.mg-header-inicio-inner{width:min(1420px,calc(100% - 3rem))!important;max-width:1420px!important}}
.mg-inicio-logo-card{min-height:3rem!important;border-radius:1rem!important;padding:.34rem .68rem .34rem .42rem!important;background:linear-gradient(135deg,#fff,#eef5ff)!important;box-shadow:0 8px 22px rgba(0,87,255,.10)!important}
.mg-inicio-logo-img{width:2.35rem!important;height:2.35rem!important;border-radius:.76rem!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}

/* Containers consistentes para desktop grande */
.mg-store,.mg-wide-shell,.mg-client-scope,.mg-checkout-clean,main.max-w-7xl{width:min(1280px,calc(100% - 1.25rem))!important;max-width:1280px!important;margin-left:auto!important;margin-right:auto!important}
@media(min-width:1440px){.mg-store,.mg-wide-shell,.mg-client-scope,.mg-checkout-clean,main.max-w-7xl{width:min(1420px,calc(100% - 3rem))!important;max-width:1420px!important}}
@media(max-width:640px){.mg-store,.mg-wide-shell,.mg-client-scope,.mg-checkout-clean,main.max-w-7xl{width:min(100% - .8rem,100%)!important}.mg-store{padding-top:4.65rem!important}}

/* Marca d'água profissional: fundo sutil e nunca sobre conteúdo */
.mg-logo-watermark::before,.mg-logo-watermark::after,.brand-panel::before,.brand-panel::after{pointer-events:none!important;opacity:.035!important;filter:grayscale(1)!important;background-size:min(34vw,520px)!important;background-position:center right!important}
.js-product-card::before,.js-product-card::after,.produto-card::before,.produto-card::after{pointer-events:none!important}

/* Home: áreas comerciais */
.mg-home-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;margin:1rem 0 1.1rem}
.mg-home-category{display:flex;align-items:center;gap:.72rem;min-height:4.3rem;padding:.85rem .95rem;border-radius:1.15rem;border:1px solid var(--mg10-border);background:rgba(255,255,255,.95);box-shadow:0 12px 28px rgba(15,23,42,.06);text-decoration:none;color:var(--mg10-ink);font-weight:950;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.mg-home-category:hover{transform:translateY(-2px);border-color:#aecaef;box-shadow:var(--mg10-shadow-hover)}
.mg-home-category-icon{width:2.35rem;height:2.35rem;border-radius:.9rem;display:grid;place-items:center;background:var(--mg10-blue);color:#fff;box-shadow:0 12px 26px rgba(0,87,255,.20)}
.mg-home-category span:last-child{display:block;font-size:.82rem;line-height:1.1}
@media(max-width:980px){.mg-home-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.mg-home-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.mg-home-category{min-height:3.7rem;padding:.65rem;border-radius:1rem}.mg-home-category-icon{width:2rem;height:2rem}.mg-home-category span:last-child{font-size:.72rem}}

.mg-products-panel{border-radius:1.5rem!important;border:1px solid var(--mg10-border)!important;box-shadow:var(--mg10-shadow)!important;background:rgba(255,255,255,.96)!important}
.mg-products-heading{font-size:clamp(1.85rem,3.4vw,3rem)!important;letter-spacing:-.035em!important;word-spacing:.16em!important;line-height:1!important;white-space:normal!important}
#produtosCarrossel{gap:.85rem!important;padding-bottom:.8rem!important}
#produtosCarrossel .produto-card{width:clamp(210px,18vw,248px)!important;min-height:0!important;height:auto!important;border-radius:1.15rem!important;border:1px solid var(--mg10-border)!important;box-shadow:var(--mg10-shadow)!important;background:#fff!important}
#produtosCarrossel .produto-card > .relative:first-child{display:flex!important;align-items:center!important;justify-content:center!important;aspect-ratio:4/5!important;height:auto!important;min-height:0!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}
#produtosCarrossel .produto-card .p-4,#produtosCarrossel .produto-card .p-5{padding:.8rem!important}
#produtosCarrossel .produto-nome{font-size:.9rem!important;line-height:1.15rem!important;min-height:2.25rem!important;margin-bottom:.4rem!important}
#produtosCarrossel .produto-price-box{font-size:1.32rem!important;line-height:1.05!important;color:var(--mg10-blue)!important;margin-bottom:.55rem!important}
#produtosCarrossel .opcoes[data-type="cor"],#produtosCarrossel .mg-home-color-row{display:none!important}
#produtosCarrossel .btn-comprar{display:none!important}
#produtosCarrossel a[aria-label*="Ver detalhes"]{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:2.45rem!important;border-radius:.9rem!important;background:var(--mg10-blue)!important;border:1px solid var(--mg10-blue)!important;color:#fff!important;font-weight:950!important;text-decoration:none!important}
@media(max-width:640px){#produtosCarrossel .produto-card{width:58vw!important;max-width:235px!important}#produtosCarrossel .produto-nome{font-size:.84rem!important}#produtosCarrossel .produto-price-box{font-size:1.16rem!important}}

/* Produtos: filtro desktop no fluxo normal */
.mg-filter-panel{position:relative!important;top:auto!important;z-index:4!important;margin-top:1rem!important;border-radius:1.35rem!important;background:rgba(255,255,255,.96)!important;border:1px solid var(--mg10-border)!important;box-shadow:var(--mg10-shadow)!important}
.mg-product-filter-grid{display:grid!important;grid-template-columns:minmax(240px,1.25fr) minmax(190px,.8fr) minmax(170px,.7fr) minmax(130px,.5fr)!important;gap:.75rem!important}
#tabsList{display:none!important}
@media(max-width:820px){.mg-product-filter-grid{grid-template-columns:1fr 1fr!important}.mg-search-wrap{grid-column:1/-1!important}}

/* Produtos: filtro mobile em gaveta */
.mg-mobile-filter-trigger{display:none;align-items:center;justify-content:center;gap:.5rem;width:100%;min-height:3rem;border:1px solid var(--mg10-border);border-radius:1rem;background:var(--mg10-blue);color:#fff;font-weight:950;box-shadow:0 14px 30px rgba(0,87,255,.18);margin:.85rem 0}
.mg-filter-backdrop{display:none;position:fixed;inset:0;background:rgba(7,18,37,.46);z-index:2147482500;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
@media(max-width:640px){
  .mg-mobile-filter-trigger{display:flex!important}
  body:not(.mg-filter-drawer-open) .mg-filter-panel{display:none!important}
  .mg-filter-drawer-open .mg-filter-backdrop{display:block!important}
  .mg-filter-drawer-open .mg-filter-panel{display:block!important;position:fixed!important;left:.65rem!important;right:.65rem!important;bottom:calc(.65rem + env(safe-area-inset-bottom,0px))!important;top:auto!important;z-index:2147482600!important;max-height:min(82vh,560px)!important;overflow:auto!important;border-radius:1.35rem!important;padding:1rem!important;margin:0!important;box-shadow:0 24px 70px rgba(7,18,37,.28)!important}
  .mg-filter-drawer-open .mg-product-filter-grid{grid-template-columns:1fr!important}
  .mg-filter-panel .mg-filter-close{display:flex!important}
}
.mg-filter-close{display:none;align-items:center;justify-content:center;width:2.55rem;height:2.55rem;border:1px solid var(--mg10-border);border-radius:.9rem;background:#fff;color:var(--mg10-ink);font-weight:900}

/* Cards de produto: limpos e consistentes */
.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:700px){.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:1520px){.js-products-grid,#mgUnifiedGrid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(min-width:1820px){.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;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:1.12rem!important;border:1px solid var(--mg10-border)!important;background:#fff!important;box-shadow:var(--mg10-shadow)!important;transform:none!important}
.js-product-card:hover{transform:translateY(-2px)!important;box-shadow:var(--mg10-shadow-hover)!important}
.js-product-card .mg-product-image-wrap{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;aspect-ratio:4/5!important;min-height:0!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:.68rem!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:.38rem!important}.mg-card-availability{display:none!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:.34rem .46rem!important}
.js-product-card h3{min-height:2.1rem!important;margin:0!important;font-size:.86rem!important;line-height:1.08rem!important;letter-spacing:-.03em!important}
.js-product-card .text-lg.font-black,.js-product-card .sm\:text-xl{font-size:1.2rem!important;line-height:1.08!important;color:var(--mg10-blue)!important;letter-spacing:-.04em!important}.js-rating{margin-top:.5rem!important;font-size:.62rem!important;border:1px solid var(--mg10-border)!important;background:#fff!important}
.js-product-card .mg-list-color-row{display:none!important}.js-product-card .mt-3.space-y-3{margin-top:.55rem!important;display:block!important}.js-product-card .mt-3.space-y-3 p{font-size:.6rem!important;margin:0 0 .28rem!important}.js-product-card .mg-size-label{min-width:1.75rem!important;min-height:1.75rem!important;padding:.3rem .42rem!important;font-size:.6rem!important}.js-product-card p.rounded-xl{padding:.5rem .58rem!important;font-size:.66rem!important;border-radius:.75rem!important}
.js-product-card .mg-card-actions{display:block!important;margin-top:auto!important;padding:.6rem .68rem .68rem!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;border-radius:.85rem!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--mg10-blue)!important;border:1px solid var(--mg10-blue)!important;color:#fff!important;font-size:.72rem!important;font-weight:950!important}
@media(max-width:640px){.js-products-grid,#mgUnifiedGrid{gap:.58rem!important}.js-product-card{border-radius:.95rem!important}.js-product-card > .flex.flex-1.flex-col{padding:.55rem!important}.js-product-card h3{font-size:.76rem!important;line-height:1rem!important;min-height:2rem!important}.mg-card-category{font-size:.48rem!important}.js-product-card .text-lg.font-black,.js-product-card .sm\:text-xl{font-size:1.02rem!important}.js-rating{font-size:.52rem!important}.js-product-card .mg-size-label{min-width:1.55rem!important;min-height:1.55rem!important;font-size:.52rem!important;padding:.2rem .32rem!important}.js-product-card .mg-card-actions{padding:.48rem!important}.js-product-card .mg-card-actions .mg-detail-btn{min-height:2.18rem!important;font-size:.62rem!important}}

/* Produto individual: compra clara */
.mg-product-breadcrumb{display:none!important}.mg-gallery-main{background:linear-gradient(135deg,#f8fbff,#eaf2ff)!important;border-radius:1.2rem!important}.mg-gallery-main img{object-fit:contain!important;padding:8px!important}.mg-product-actions.two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.7rem!important}.mg-product-actions.two .mg-client-btn{min-height:3.15rem!important;border-radius:.95rem!important}.mg-product-size-help{display:flex;gap:.55rem;align-items:flex-start;margin:.65rem 0 0;padding:.75rem;border:1px solid var(--mg10-border);border-radius:1rem;background:#f8fbff;color:#334155;font-weight:750;font-size:.86rem}.mg-product-size-help strong{color:var(--mg10-ink)}.mg-product-fixed-buy{display:none}
@media(max-width:720px){.mg-client-sticky-buy{display:none!important}.mg-product-fixed-buy{position:fixed;left:.65rem;right:.65rem;bottom:calc(5.15rem + env(safe-area-inset-bottom,0px));z-index:2147482400;display:grid;grid-template-columns:auto 1fr;gap:.65rem;align-items:center;padding:.55rem;border:1px solid var(--mg10-border);border-radius:1.1rem;background:rgba(255,255,255,.96);box-shadow:0 18px 45px rgba(15,23,42,.16);backdrop-filter:blur(18px)}.mg-product-fixed-price{font-weight:1000;color:var(--mg10-blue);padding-left:.45rem;white-space:nowrap}.mg-product-fixed-buy button{min-height:2.85rem;border:0;border-radius:.9rem;background:var(--mg10-blue);color:#fff;font-weight:950}}

/* Checkout simples */
.mg-checkout-clean{padding-top:5.5rem!important}.checkout-layout-clean{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(320px,.72fr)!important;gap:1rem!important}.checkout-card-pro,.checkout-topbar{border-radius:1.25rem!important;border:1px solid var(--mg10-border)!important;box-shadow:var(--mg10-shadow)!important;background:#fff!important}.checkout-topbar{padding:1.2rem!important}.checkout-topbar h1{font-size:clamp(2rem,4vw,3rem)!important}.checkout-summary-card{position:sticky!important;top:5.35rem!important}.checkout-step-clean{border:1px solid var(--mg10-border)!important;border-radius:1rem!important;background:var(--mg10-soft-2)!important;padding:.9rem!important}.mg-checkout-contact{display:grid;gap:.6rem;margin-top:.8rem}.mg-checkout-contact label{font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.mg-checkout-contact input,.mg-checkout-contact textarea{width:100%;min-height:2.8rem;border:1px solid var(--mg10-border);border-radius:.95rem;padding:.75rem .85rem;font-weight:800;background:#fff;outline:none}.mg-checkout-contact textarea{min-height:4.2rem;resize:vertical}.mg-checkout-contact input:focus,.mg-checkout-contact textarea:focus{border-color:var(--mg10-blue);box-shadow:0 0 0 4px rgba(0,87,255,.10)}.checkout-final-btn{min-height:3.25rem!important;border-radius:1rem!important;background:#10b981!important;border:0!important;font-weight:950!important}.coupon-drawer{margin-top:.75rem}.coupon-drawer summary{cursor:pointer;font-weight:900;color:var(--mg10-blue)}
@media(max-width:991px){.checkout-layout-clean{grid-template-columns:1fr!important}.checkout-summary-card{position:relative!important;top:auto!important}}
@media(max-width:640px){.mg-checkout-clean{padding-top:4.8rem!important;padding-bottom:5.5rem!important}.checkout-topbar{padding:1rem!important}.checkout-card-pro{border-radius:1rem!important}.checkout-mobile-bar{bottom:calc(4.95rem + env(safe-area-inset-bottom,0px))!important;z-index:2147482200!important}.checkout-cta-footer{padding-bottom:calc(.8rem + env(safe-area-inset-bottom,0px))!important}}

/* Bottom nav e sobreposição mobile */
@media(max-width:900px){#carrinhoFlutuante,.mg-floating-cart{display:none!important;visibility:hidden!important;pointer-events:none!important}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.12rem!important;display:none;grid-template-columns:repeat(4,1fr)!important;border-radius:1.3rem!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{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(--mg10-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(--mg10-blue)!important;color:#fff!important}.mg-client-mobile-bar svg{width:1.05rem!important;height:1.05rem!important;display:block!important}
