/* Mandrake Grifes V15 — refinamento pontual e seguro */
:root{--mg15-blue:#0b63f6;--mg15-blue-dark:#0847b8;--mg15-ink:#101828;--mg15-muted:#667085;--mg15-line:#dbe7fb;--mg15-soft:#f7faff;--mg15-success:#047857;--mg15-success-bg:#ecfdf3;--mg15-success-line:#a7f3d0}

/* Remove o vazio excessivo logo abaixo do header */
@media(max-width:768px){
  .mg-main{padding-top:4px!important}
  .mg-home-entry-shell{padding-top:0!important;margin-top:0!important}
  .mg-home-entry-hero{margin-top:0!important}
  main.page-shell{padding-top:12px!important;margin-top:0!important}
  .hero-panel{margin-top:0!important}
}

/* HOME — vitrine de destaques reconstruída sem cortar imagem */
.mg-products-panel{overflow:hidden!important}
#produtosCarrossel{align-items:stretch!important}
.mg-products-panel .produto-card{overflow:hidden!important;background:#fff!important;border:1px solid var(--mg15-line)!important;box-shadow:0 8px 26px rgba(16,24,40,.07)!important}
.mg-products-panel .produto-card>.relative{height:250px!important;min-height:250px!important;overflow:hidden!important;background:#eef4ff!important;display:block!important}
.mg-products-panel .produto-card .produto-img{display:block!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important}
.mg-products-panel .produto-card>div:last-child{padding:15px!important}
.mg-products-panel .produto-card .produto-nome{display:block!important;min-height:44px!important;border:0!important;background:transparent!important;color:var(--mg15-ink)!important;padding:0!important;font-size:16px!important;line-height:1.35!important;font-weight:800!important}
.mg-products-panel .produto-card .produto-nome a{color:inherit!important;text-decoration:none!important}
.mg-products-panel .produto-card .produto-price-box{border:0!important;background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important;margin:0 0 12px!important}
.mg-products-panel .produto-card .produto-price-box>div:first-child{gap:6px!important;margin-bottom:7px!important}
.mg-products-panel .produto-card .produto-price-box span.rounded-full{background:var(--mg15-success-bg)!important;color:var(--mg15-success)!important;border:1px solid var(--mg15-success-line)!important;box-shadow:none!important;font-size:10px!important;letter-spacing:.02em!important}
.mg-products-panel .produto-card .produto-price-box .text-slate-500{text-decoration:line-through!important;color:#98a2b3!important;font-size:13px!important}
.mg-products-panel .produto-card .produto-price-box .text-2xl,.mg-products-panel .produto-card .produto-price-box .text-3xl{color:var(--mg15-ink)!important;font-size:25px!important;line-height:1.1!important;font-weight:900!important}
.mg-products-panel .produto-card .produto-price-box p:last-child{color:var(--mg15-success)!important;font-size:11px!important;font-weight:700!important}
.mg-products-panel .produto-card .favorito{top:10px!important;right:10px!important;width:40px!important;height:40px!important;border:1px solid #fecaca!important;box-shadow:0 5px 16px rgba(16,24,40,.14)!important}
.mg-products-panel .produto-card .flex.gap-3>a,.mg-products-panel .produto-card .flex.gap-3>button{background:var(--mg15-blue)!important;color:#fff!important;border:1px solid var(--mg15-blue)!important;font-weight:800!important;box-shadow:none!important}
.mg-products-panel .produto-card .flex.gap-3>a:hover,.mg-products-panel .produto-card .flex.gap-3>button:hover{background:var(--mg15-blue-dark)!important}

/* FAVORITOS — tira o grande vazio superior e suaviza descontos */
.favoritos-page main.page-shell,.page-shell:has(#favoritosGrid){padding-top:18px!important}
#favoritosGrid .price-box.discount{background:#fff!important;border:1px solid var(--mg15-line)!important;box-shadow:none!important}
#favoritosGrid .discount-badge,#favoritosGrid .coupon-badge{background:var(--mg15-success-bg)!important;color:var(--mg15-success)!important;border:1px solid var(--mg15-success-line)!important}
#favoritosGrid .price-from{color:#98a2b3!important}
#favoritosGrid .price-to{color:var(--mg15-ink)!important}
#favoritosGrid .economy{color:var(--mg15-success)!important}

/* CARRINHO — desconto legível e menos agressivo */
.mg-cart-page [class*="desconto"],.mg-cart-page [class*="discount"]{background:var(--mg15-success-bg)!important;color:#065f46!important;border-color:var(--mg15-success-line)!important;box-shadow:none!important}
.mg-cart-page [class*="desconto"] *,.mg-cart-page [class*="discount"] *{color:inherit!important}

/* MINHA CONTA — compacta topo e organiza atalhos */
.mg-client-page main,.mg-client-page .mg-client-main,.mg-account-page main{padding-top:12px!important;margin-top:0!important}
.mg-client-quick-links,.mg-account-shortcuts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:14px 0!important}
.mg-client-quick-links a,.mg-account-shortcuts a{white-space:normal!important;text-align:center!important;text-decoration:none!important;border:1px solid var(--mg15-line)!important;border-radius:12px!important;padding:10px 6px!important;background:#fff!important;color:#344054!important;font-size:12px!important;font-weight:800!important}
.mg-profile-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.mg-info-tile{min-width:0!important}

@media(max-width:760px){
  .mg-products-panel{padding:16px!important}
  #produtosCarrossel{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .mg-products-panel .produto-card>.relative{height:185px!important;min-height:185px!important}
  .mg-products-panel .produto-card>div:last-child{padding:10px!important}
  .mg-products-panel .produto-card .produto-nome{min-height:38px!important;font-size:13px!important}
  .mg-products-panel .produto-card .produto-price-box .text-2xl,.mg-products-panel .produto-card .produto-price-box .text-3xl{font-size:20px!important}
  .mg-products-panel .produto-card .produto-price-box span.rounded-full{font-size:8px!important;padding:4px 6px!important}
  .mg-products-panel .produto-card .flex.gap-3{grid-template-columns:1fr 1fr!important}
  .mg-products-panel .produto-card .flex.gap-3>a,.mg-products-panel .produto-card .flex.gap-3>button{min-height:38px!important;font-size:11px!important;padding:7px 4px!important}
  .mg-products-panel .produto-card .favorito{width:34px!important;height:34px!important;top:7px!important;right:7px!important}
  .mg-client-quick-links,.mg-account-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mg-profile-info-grid{grid-template-columns:1fr!important}
  .mg-client-clean-card{padding:14px!important}
}
@media(max-width:390px){
  .mg-products-panel .produto-card>.relative{height:165px!important;min-height:165px!important}
  .mg-products-panel .produto-card .flex.gap-3{grid-template-columns:1fr!important}
}
