/*
 * Mandrake Grifes V17
 * Camada final de experiência. Carregue depois dos estilos legados.
 */
:root {
  --mg17-blue: #075ee8;
  --mg17-blue-strong: #0647b3;
  --mg17-blue-soft: #edf4ff;
  --mg17-ink: #101828;
  --mg17-copy: #344054;
  --mg17-muted: #667085;
  --mg17-line: #d8e2f0;
  --mg17-surface: #ffffff;
  --mg17-bg: #f5f8fc;
  --mg17-success: #087653;
  --mg17-success-soft: #ecf9f3;
  --mg17-warning: #a15c07;
  --mg17-warning-soft: #fff7e8;
  --mg17-danger: #b42318;
  --mg17-danger-soft: #fff1f0;
  --mg17-radius-sm: 12px;
  --mg17-radius: 18px;
  --mg17-radius-lg: 26px;
  --mg17-shadow-sm: 0 5px 18px rgba(16, 24, 40, .06);
  --mg17-shadow: 0 16px 44px rgba(16, 24, 40, .10);
  --mg17-focus: 0 0 0 4px rgba(7, 94, 232, .18);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: clip; text-rendering: optimizeLegibility; }
body.mg-page-bg,
body.mg-cart-page,
body.favoritos-page,
body.mg-client-pro,
body:has(.mg-store),
body:has(.minha-conta-main) {
  color: var(--mg17-ink) !important;
  background: linear-gradient(180deg, #fbfdff 0, var(--mg17-bg) 42rem) !important;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input[type="radio"] + label, input[type="checkbox"] + label { touch-action: manipulation; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(7, 94, 232, .82) !important;
  outline-offset: 3px !important;
  box-shadow: var(--mg17-focus);
}
button:disabled, [aria-disabled="true"] { cursor: not-allowed !important; opacity: .56; box-shadow: none !important; }

/* Cabeçalhos e navegação */
.mg-header-inicio,
.mg-header,
.mg-cart-header {
  border-bottom: 1px solid rgba(152, 170, 196, .3) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.mg-header-inicio.mg17-scrolled,
.mg-header.mg17-scrolled,
.mg-cart-header.mg17-scrolled { box-shadow: 0 9px 28px rgba(16, 24, 40, .11) !important; }
.mg-inicio-menu-button,
#menu-toggle-inicio,
.mg-menu-button { min-width: 44px !important; min-height: 44px !important; }
.mg-inicio-slide-menu,
.mg-inicio-menu-drawer,
.mg-menu-drawer { overscroll-behavior: contain; }

/* Estrutura geral */
.mg-wide-shell,
.mg-store,
.mg-cart-container,
.mg-container,
.minha-conta-main,
.favoritos-page .page-shell {
  width: min(100% - 28px, 1240px) !important;
  margin-inline: auto !important;
}
.mg-main { padding-top: 14px !important; }
.mg-store { padding-top: 22px !important; }

/* Home */
.mg-home-entry-hero {
  overflow: hidden;
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(7, 94, 232, .15), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f1f6ff 58%, #e8f1ff 100%) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-home-entry-inner { gap: clamp(22px, 5vw, 70px) !important; }
.mg-home-entry-title { letter-spacing: -.055em !important; line-height: .98 !important; }
.mg-home-entry-sub { max-width: 62ch !important; color: var(--mg17-copy) !important; }
.mg-home-entry-actions { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.mg-home-entry-btn {
  min-height: 48px !important;
  border-radius: 14px !important;
  padding-inline: 18px !important;
  justify-content: center;
}
.mg-home-entry-btn.primary { background: var(--mg17-blue) !important; box-shadow: 0 9px 22px rgba(7, 94, 232, .22) !important; }
.mg-home-entry-btn.primary:hover { background: var(--mg17-blue-strong) !important; transform: translateY(-1px); }
.mg-home-entry-chips,
.mg-fashion-trust { gap: 10px !important; }
.mg-home-entry-chip,
.mg-fashion-trust-item {
  border: 1px solid var(--mg17-line) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: none !important;
}
.mg-story-card,
.mg-products-panel {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background: var(--mg17-surface) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-products-heading, .mg-section-title { color: var(--mg17-ink) !important; letter-spacing: -.045em !important; }

/* Destaques da home */
#produtosCarrossel {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 1px !important;
  overflow: visible !important;
}
#produtosCarrossel > .produto-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius) !important;
  background: #fff !important;
  box-shadow: var(--mg17-shadow-sm) !important;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
#produtosCarrossel > .produto-card:hover { transform: translateY(-3px) !important; border-color: #a9c4ed !important; box-shadow: var(--mg17-shadow) !important; }
#produtosCarrossel > .produto-card > .relative { height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 5; background: #eef2f7 !important; }
#produtosCarrossel .produto-img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#produtosCarrossel .produto-nome { min-height: 2.6em !important; margin-bottom: 8px !important; line-height: 1.3 !important; }
#produtosCarrossel .produto-price-box { min-height: 0 !important; border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
#produtosCarrossel .flex.gap-3 { margin-top: auto !important; }
#produtosCarrossel .flex.gap-3 > :is(a, button) { min-height: 43px !important; border-radius: 12px !important; }
.mg17-home-stock { margin: 3px 0 9px; color: var(--mg17-success); font-size: 11px; font-weight: 850; }
.mg17-home-stock::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.mg17-home-stock.is-low { color: var(--mg17-warning); }
.mg17-home-stock.is-out { color: var(--mg17-danger); }
#prevBtn, #nextBtn { display: none !important; }

/* Catálogo */
.mg-hero-card.mg-hero-pro {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(7, 94, 232, .16), transparent 30%),
    linear-gradient(135deg, #fff, #edf4ff) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-hero-pro h1 { letter-spacing: -.05em !important; }
.mg-hero-cta { min-height: 46px !important; border-radius: 13px !important; }
.mg-hero-cta-primary { background: var(--mg17-blue) !important; }
.mg-hero-status-card { border: 1px solid rgba(7, 94, 232, .18) !important; box-shadow: none !important; }
.mg-trust-strip { gap: 10px !important; }
.mg-trust-item { border: 1px solid var(--mg17-line) !important; border-radius: 15px !important; background: #fff !important; box-shadow: none !important; }
.mg-filter-panel {
  border: 1px solid var(--mg17-line) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-input-pro { border-color: #c9d6e8 !important; min-height: 48px !important; }
.mg-input-pro:hover { border-color: #99b5dd !important; }
.mg-input-pro:focus { border-color: var(--mg17-blue) !important; box-shadow: var(--mg17-focus) !important; }
.js-products-grid { gap: 16px !important; }
.mg-product-card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
  cursor: default !important;
}
.mg-product-card:hover { border-color: #a9c4ed !important; box-shadow: var(--mg17-shadow) !important; transform: translateY(-3px) !important; }
.mg-product-image-wrap { background: #eef2f7 !important; }
.mg-product-image-wrap .imagem-produto { object-position: center; }
.mg-card-meta-row { gap: 7px !important; }
.mg-card-category { overflow: hidden; max-width: 62%; text-overflow: ellipsis; white-space: nowrap; }
.mg-card-availability { white-space: nowrap; }
.mg-card-availability.mg17-stock-low { color: var(--mg17-warning) !important; background: var(--mg17-warning-soft) !important; }
.mg-card-availability.mg17-stock-out { color: var(--mg17-danger) !important; background: var(--mg17-danger-soft) !important; }
.mg-price-box { border-color: #cfe0f6 !important; background: #f6f9fe !important; }
.mg-discount-box { border-color: #b9e4d2 !important; background: var(--mg17-success-soft) !important; }
.mg-discount-badge { background: var(--mg17-success) !important; color: #fff !important; }
.mg-coupon-badge { background: #fff !important; color: var(--mg17-success) !important; border: 1px solid #a8ddc7; }
.mg-size-label,
.mg-color-chip-label { min-height: 38px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.mg-size-radio:checked + .mg-size-label,
.mg-color-radio:checked + .mg-color-chip-label { border-color: var(--mg17-blue) !important; box-shadow: inset 0 0 0 1px var(--mg17-blue) !important; background: var(--mg17-blue-soft) !important; color: var(--mg17-blue-strong) !important; }
.mg-card-actions { display: grid !important; grid-template-columns: 1fr 1.25fr !important; gap: 8px !important; }
.mg-card-actions > :is(a, button) { min-height: 44px !important; border-radius: 12px !important; padding: 8px 10px !important; }
.mg-primary-btn { background: var(--mg17-blue) !important; box-shadow: 0 7px 18px rgba(7, 94, 232, .20) !important; }
.mg-detail-btn { border: 1px solid #b7cae5 !important; background: #fff !important; color: var(--mg17-blue-strong) !important; }

/* Estoque no catálogo e produto */
.mg17-stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 4px 0 0;
  padding: 9px 12px;
  border: 1px solid #b8e3d0;
  border-radius: 12px;
  color: var(--mg17-success);
  background: var(--mg17-success-soft);
  font-size: 13px;
  font-weight: 800;
}
.mg17-stock-status::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; }
.mg17-stock-status.is-low { color: var(--mg17-warning); border-color: #f0d69d; background: var(--mg17-warning-soft); }
.mg17-stock-status.is-out { color: var(--mg17-danger); border-color: #f0bbb7; background: var(--mg17-danger-soft); }
.mg17-stock-option-out { opacity: .42 !important; text-decoration: line-through !important; cursor: not-allowed !important; }
label.mg17-stock-option-low::after { content: " • última"; color: var(--mg17-warning); font-size: 9px; font-weight: 900; text-decoration: none; }
button.mg17-stock-option-low { box-shadow: 0 0 0 2px #e8bd69 !important; }
.choice { position: relative; min-height: 44px; gap: 5px; }
.choice .mg11-stock-note { display: block; font-size: 9px; font-weight: 800; line-height: 1.1; }

/* Página do produto */
.mg-product-detail-main { width: min(100% - 28px, 1180px) !important; padding: 20px 0 110px !important; }
.mg-product-breadcrumb { margin-bottom: 14px !important; color: var(--mg17-muted) !important; }
.mg-product-detail-main .mg-client-card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background: #fff !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-gallery-main { border-radius: 20px !important; background: #f1f4f8 !important; }
.mg-gallery-main img { padding: 0 !important; object-fit: contain !important; }
.mg-product-detail-main .mg-client-title { color: var(--mg17-ink) !important; letter-spacing: -.045em !important; }
.mg-product-actions { gap: 9px !important; }
.mg-product-actions .mg-client-btn { min-height: 48px !important; border-radius: 13px !important; }
.mg-client-btn.primary { background: var(--mg17-blue) !important; border-color: var(--mg17-blue) !important; }
.mg-client-btn.primary:hover { background: var(--mg17-blue-strong) !important; }
.mg-client-btn.whats { background: #0c8f62 !important; border-color: #0c8f62 !important; color: #fff !important; }
.mg-client-sticky-buy { border: 1px solid var(--mg17-line) !important; box-shadow: 0 -8px 28px rgba(16, 24, 40, .12) !important; }
.mg-size-table { overflow: hidden; border-radius: 12px; }

/* Login, cadastro e recuperação */
body:has(.login-shell),
body:has(.auth-shell),
body:has(main.shell > .hero + .card) {
  min-height: 100vh;
  color: var(--mg17-ink) !important;
  background:
    radial-gradient(circle at 12% 6%, rgba(7, 94, 232, .13), transparent 30rem),
    linear-gradient(180deg, #fbfdff, var(--mg17-bg)) !important;
}
.login-card,
.auth-card,
main.shell > .card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: var(--mg17-shadow) !important;
}
.login-title,
.auth-title,
main.shell > .card h1,
main.shell > .card h2 { color: var(--mg17-ink) !important; letter-spacing: -.04em !important; }
.login-input,
.auth-input,
main.shell > .card :is(input, select, textarea) { min-height: 48px !important; border-color: #c7d4e6 !important; border-radius: 13px !important; }
.login-input:focus,
.auth-input:focus,
main.shell > .card :is(input, select, textarea):focus { border-color: var(--mg17-blue) !important; box-shadow: var(--mg17-focus) !important; }
.login-btn,
.auth-btn,
main.shell > .card .btn.primary { min-height: 50px !important; border-radius: 13px !important; background: var(--mg17-blue) !important; box-shadow: 0 9px 22px rgba(7, 94, 232, .22) !important; }

/* Favoritos */
.favoritos-page .hero-panel,
.favoritos-page .content-panel {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background: #fff !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
#favoritosGrid { gap: 16px !important; }
#favoritosGrid .produto-card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
#favoritosGrid .produto-image { aspect-ratio: 4 / 5 !important; background: #eef2f7 !important; }
#favoritosGrid .produto-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#favoritosGrid .btn-group { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
#favoritosGrid .btn { min-height: 42px !important; border-radius: 11px !important; }
#favoritosGrid .btn-remover { grid-column: 1 / -1 !important; background: var(--mg17-danger-soft) !important; color: var(--mg17-danger) !important; border: 1px solid #efc0bc !important; }

/* Minha conta */
.minha-conta-main { padding-top: 20px !important; }
.mg-account-title { letter-spacing: -.045em !important; }
.mg-dashboard-grid { gap: 12px !important; }
.mg-dashboard-card,
.mg-client-clean-card,
.mg-v31-account-hub,
.minha-conta-main .card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius) !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.mg-dashboard-card { min-height: 112px !important; }
.mg-v31-account-hub .mg-client-grid { gap: 9px !important; }
.mg-v31-account-hub .mg-client-btn { min-height: 46px !important; border-radius: 12px !important; }
.mg-section-toolbar { gap: 12px !important; }
.mg-clean-btn { min-height: 44px !important; border-radius: 12px !important; }

/* Carrinho */
.mg-checkout-clean { padding-top: 20px !important; padding-bottom: 100px !important; }
.checkout-topbar,
.cart-items-card,
.checkout-summary-card {
  border: 1px solid var(--mg17-line) !important;
  border-radius: var(--mg17-radius-lg) !important;
  background: #fff !important;
  box-shadow: var(--mg17-shadow-sm) !important;
}
.checkout-topbar h1 { letter-spacing: -.045em !important; }
.cart-items-head { border-bottom: 1px solid var(--mg17-line) !important; }
#listaCarrinho > li { border-color: #e4e9f0 !important; background: #fff !important; }
#listaCarrinho .item-img { border-radius: 13px !important; background: #f0f3f7 !important; object-fit: cover; }
.checkout-step-clean { border-color: var(--mg17-line) !important; border-radius: 16px !important; }
.delivery-option-clean { min-height: 48px !important; border-radius: 13px !important; }
.coupon-drawer { border-radius: 14px !important; }
.checkout-final-btn { min-height: 52px !important; border-radius: 14px !important; background: #0c8f62 !important; border-color: #0c8f62 !important; box-shadow: 0 9px 22px rgba(12, 143, 98, .22) !important; }
.checkout-mobile-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)) !important; }
.mg17-cart-stock-note { margin-top: 8px; padding: 7px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.mg17-cart-stock-note.is-low { color: var(--mg17-warning); background: var(--mg17-warning-soft); }
.mg17-cart-stock-note.is-out { color: var(--mg17-danger); background: var(--mg17-danger-soft); }
#listaCarrinho > li.mg17-cart-stock-error { background: #fffafa !important; box-shadow: inset 4px 0 0 var(--mg17-danger); }

/* Utilidades injetadas pela V17 */
.mg17-live {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mg17-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 28px), 440px);
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid #b9c9dd;
  border-radius: 14px;
  color: #fff;
  background: #162033;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .25);
  font-size: 14px;
  font-weight: 750;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mg17-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.mg17-toast.is-error { background: #8e1f18; border-color: #d16861; }
.mg17-backtop {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #b8c8de;
  border-radius: 50%;
  color: var(--mg17-blue-strong);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--mg17-shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mg17-backtop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
body:has(.checkout-mobile-bar:not(.d-none)) .mg17-backtop,
body:has(.mg-client-sticky-buy) .mg17-backtop { bottom: 96px; }

/* Responsividade */
@media (min-width: 992px) {
  .checkout-summary-card { position: sticky !important; top: 92px; }
  .mg-filter-panel.mg17-filter-sticky { position: sticky; top: 78px; z-index: 35; }
}
@media (max-width: 1080px) {
  #produtosCarrossel { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .mg-wide-shell,
  .mg-store,
  .mg-cart-container,
  .mg-container,
  .minha-conta-main,
  .favoritos-page .page-shell,
  .mg-product-detail-main { width: min(100% - 18px, 1240px) !important; }
  .mg-main, .mg-store { padding-top: 8px !important; }
  .mg-home-entry-hero,
  .mg-story-card,
  .mg-products-panel,
  .mg-hero-card.mg-hero-pro,
  .favoritos-page .hero-panel,
  .favoritos-page .content-panel,
  .checkout-topbar,
  .cart-items-card,
  .checkout-summary-card { border-radius: 18px !important; }
  .mg-home-entry-inner { padding: 20px !important; }
  .mg-home-entry-title { font-size: clamp(34px, 11vw, 52px) !important; }
  .mg-home-entry-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
  .mg-home-entry-btn { width: 100% !important; padding-inline: 10px !important; }
  .mg-home-entry-card { display: none !important; }
  .mg-home-entry-chips { grid-template-columns: 1fr !important; }
  .mg-fashion-trust { display: grid !important; grid-template-columns: 1fr !important; }
  #produtosCarrossel { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #produtosCarrossel > .produto-card { border-radius: 15px !important; }
  #produtosCarrossel > .produto-card > .relative { aspect-ratio: 4 / 5; }
  #produtosCarrossel > .produto-card > :is(.p-4, .p-5) { padding: 10px !important; }
  #produtosCarrossel .produto-nome { font-size: 13px !important; }
  #produtosCarrossel .produto-price-box .text-3xl { font-size: 20px !important; }
  #produtosCarrossel .flex.gap-3 { display: grid !important; grid-template-columns: 1fr !important; }
  #produtosCarrossel .flex.gap-3 > :is(a, button) { font-size: 11px !important; }
  .mg-trust-strip { display: grid !important; grid-template-columns: 1fr !important; }
  .mg-filter-panel { margin-inline: 0 !important; padding: 13px !important; }
  .mg-product-filter-grid { grid-template-columns: 1fr 1fr !important; }
  .mg-product-filter-grid .mg-search-wrap { grid-column: 1 / -1; }
  .mg-product-card { border-radius: 15px !important; }
  .mg-product-card > .flex-1 { padding: 10px !important; }
  .mg-card-category { max-width: 56%; font-size: 9px !important; }
  .mg-card-availability { font-size: 9px !important; }
  .mg-card-actions { grid-template-columns: 1fr !important; }
  .mg-card-actions > :is(a, button) { font-size: 11px !important; }
  .mg-product-detail-main { padding-top: 10px !important; }
  .mg-product-detail-main .mg-client-card { border-radius: 18px !important; }
  .mg-gallery-main { aspect-ratio: 4 / 5 !important; }
  .mg-product-actions.two { grid-template-columns: 1fr !important; }
  #favoritosGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  #favoritosGrid .produto-info { padding: 10px !important; }
  #favoritosGrid .btn-group { grid-template-columns: 1fr !important; }
  #favoritosGrid .btn-remover { grid-column: auto !important; }
  .mg-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .mg-dashboard-card { min-height: 98px !important; padding: 11px !important; }
  .mg-v31-account-hub .mg-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .checkout-layout-clean { gap: 12px !important; }
  #listaCarrinho > li { padding: 12px 10px !important; }
  #listaCarrinho .item-img { width: 68px !important; height: 82px !important; }
  .mg17-backtop { right: 12px; }
}
@media (max-width: 390px) {
  .mg-home-entry-actions,
  .mg-product-filter-grid,
  .mg-dashboard-grid,
  .mg-v31-account-hub .mg-client-grid { grid-template-columns: 1fr !important; }
  .mg-product-filter-grid .mg-search-wrap { grid-column: auto; }
  #produtosCarrossel > .produto-card > .relative { min-height: 0 !important; }
  #favoritosGrid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --mg17-line: #8694a8; --mg17-muted: #425067; }
  .mg-product-card, .mg-client-card, .checkout-card-pro { border-width: 2px !important; }
}
