:root {
  --mf-wine: #7f2038;
  --mf-wine-dark: #551424;
  --mf-gold: #d8b965;
  --mf-gold-dark: #bd9841;
  --mf-cream: #fffaf2;
  --mf-cream-2: #f8efdf;
  --mf-ink: #2d1b1d;
  --mf-muted: #75686a;
  --mf-line: #eadbc3;
  --mf-white: #fff;
  --mf-radius: 16px;
  --mf-shadow: 0 10px 28px rgba(72, 36, 30, .09);
}

/* Barra de acesso do cliente na Home e na Loja. */
.mf-account-access {
  display: none;
  position: relative;
  z-index: 20;
  width: 100%;
  color: var(--mf-ink);
  background: var(--mf-cream);
  border-top: 1px solid rgba(216, 185, 101, .34);
  border-bottom: 1px solid var(--mf-line);
}

.mf-account-access.is-ready {
  display: block;
}

/* Integra Entrar, Cadastro e Carrinho ao cabeçalho Elementor da Home. */
.mf-header-menu-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(10px, 1.5vw, 22px) !important;
}

.mf-header-menu-row > .elementor-nav-menu--main,
.mf-header-menu-row > nav {
  flex: 0 1 auto !important;
}

.mf-header-menu-row > .mf-account-access__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 9px !important;
  margin-left: 8px !important;
}

.mf-has-store-actions .mf-account-access__primary,
.mf-has-store-actions .mf-account-access__secondary {
  min-height: 40px;
  padding: 8px 13px;
  white-space: nowrap;
}

.mf-has-store-actions .mf-account-access__primary {
  color: #fff !important;
  background: var(--mf-wine) !important;
  border-color: var(--mf-gold) !important;
}

.mf-has-store-actions .mf-account-access__secondary {
  color: var(--mf-gold) !important;
  background: transparent !important;
  border-color: var(--mf-gold) !important;
}

.mf-has-store-actions .mf-cart-trigger {
  min-height: 40px;
  color: var(--mf-gold) !important;
  border-left-color: rgba(216,185,101,.42);
  white-space: nowrap;
}

.mf-has-store-actions .mf-cart-count {
  color: var(--mf-wine-dark);
  background: var(--mf-gold);
  border-color: #090909;
}

.mf-account-access.is-header-integrated .mf-account-access__inner {
  justify-content: center;
  min-height: 62px;
}

.mf-account-access.is-header-integrated .mf-store-brand,
.mf-account-access.is-header-integrated .mf-store-links {
  display: none !important;
}

.mf-account-access.is-header-integrated .mf-product-search {
  flex-basis: 560px;
  max-width: 680px;
}

.mf-account-access__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
}

.mf-account-access__label {
  color: var(--mf-wine-dark);
  font-size: 14px;
  font-weight: 650;
}

.mf-account-access__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  color: var(--mf-wine-dark);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--mf-line);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.mf-cart-trigger svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mf-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  color: #fff;
  background: var(--mf-wine);
  border: 2px solid var(--mf-cream);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

body.mf-cart-is-open {
  overflow: hidden;
}

.mf-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(35, 18, 20, .48);
  opacity: 0;
  transition: opacity .22s ease;
}

.mf-cart-overlay.is-open {
  opacity: 1;
}

.mf-cart-drawer {
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  height: 100dvh;
  color: var(--mf-ink);
  background: #fff;
  box-shadow: -18px 0 45px rgba(45, 27, 29, .18);
  transform: translateX(105%);
  transition: transform .25s ease;
}

.mf-cart-drawer.is-open {
  transform: translateX(0);
}

.mf-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 20px 22px;
  color: #fff;
  background: var(--mf-wine);
}

.mf-cart-drawer__header small {
  display: block;
  margin-bottom: 3px;
  color: var(--mf-gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mf-cart-drawer__header h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
}

.mf-cart-close {
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 31px;
  font-weight: 300;
  line-height: 36px;
}

.mf-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px 30px;
}

.mf-cart-drawer .woocommerce-mini-cart {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.mf-cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  min-height: 84px;
  margin: 0 0 18px !important;
  padding: 0 30px 20px 82px !important;
  border-bottom: 1px solid var(--mf-line);
}

.mf-cart-drawer .woocommerce-mini-cart-item + .woocommerce-mini-cart-item {
  padding-top: 20px !important;
}

.mf-cart-drawer .woocommerce-mini-cart-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 66px !important;
  height: 66px !important;
  object-fit: contain;
  border: 1px solid var(--mf-line);
  border-radius: 10px;
}

.mf-cart-drawer .woocommerce-mini-cart-item + .woocommerce-mini-cart-item img {
  top: 20px;
}

.mf-cart-drawer .remove_from_cart_button {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  color: var(--mf-wine) !important;
  font-size: 22px !important;
  text-decoration: none !important;
}

.mf-cart-drawer .woocommerce-mini-cart-item + .woocommerce-mini-cart-item .remove_from_cart_button {
  top: 20px !important;
}

.mf-cart-drawer .quantity {
  display: block;
  margin-top: 7px;
  color: var(--mf-muted);
  font-size: 13px;
}

.mf-cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 18px !important;
  padding: 19px 0 !important;
  border-top: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
  font-size: 17px;
}

.mf-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 !important;
}

.mf-cart-drawer .woocommerce-mini-cart__buttons .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  color: #fff !important;
  background: var(--mf-wine) !important;
  border: 1px solid var(--mf-wine) !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.mf-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) {
  color: var(--mf-wine) !important;
  background: #fff !important;
  border-color: var(--mf-gold-dark) !important;
}

.mf-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
  color: #fff !important;
  background: var(--mf-wine-dark) !important;
  border-color: var(--mf-wine-dark) !important;
}

.mf-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  color: var(--mf-wine-dark) !important;
  background: var(--mf-cream-2) !important;
  border-color: var(--mf-gold-dark) !important;
}

.mf-cart-drawer .woocommerce-mini-cart__empty-message {
  margin: 50px 0;
  color: var(--mf-muted);
  text-align: center;
}

/* v1.5 — respiro consistente mesmo depois da atualização AJAX do WooCommerce.
   O tema aplica regras genéricas em .widget_shopping_cart_content; por isso este
   bloco usa o escopo completo do painel e valores explícitos. */
html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 26px 24px 30px !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) 24px !important;
  column-gap: 16px !important;
  align-items: start !important;
  min-height: 96px !important;
  margin: 0 !important;
  padding: 18px 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item:first-child {
  padding-top: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  align-items: start !important;
  grid-column: 1 / 3 !important;
  min-width: 0 !important;
  padding: 0 !important;
  color: #dc4771 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item img {
  position: static !important;
  float: none !important;
  width: 68px !important;
  height: 68px !important;
  margin: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item .remove_from_cart_button {
  position: static !important;
  display: flex !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item .quantity {
  grid-column: 2 / 4 !important;
  margin: 8px 0 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__total {
  box-sizing: border-box !important;
  margin: 14px 0 20px !important;
  padding: 20px 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__buttons {
  box-sizing: border-box !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__buttons .button {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

/* v1.8 — minicarrinho inspirado na referência, com identidade Manfiolli. */
html body .mf-cart-drawer {
  width: min(440px, 100vw) !important;
  background: #fff !important;
}

html body .mf-cart-drawer .mf-cart-drawer__header {
  min-height: 78px !important;
  padding: 17px 24px !important;
  color: var(--mf-ink) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--mf-line) !important;
}

html body .mf-cart-drawer .mf-cart-drawer__header small {
  margin: 0 0 3px !important;
  color: var(--mf-wine) !important;
}

html body .mf-cart-drawer .mf-cart-drawer__header h2 {
  color: var(--mf-ink) !important;
  font-size: 21px !important;
  font-weight: 750 !important;
}

.mf-cart-heading-count {
  color: var(--mf-muted);
  font-size: 14px;
  font-weight: 600;
}

html body .mf-cart-drawer .mf-cart-close {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 0 3px !important;
  color: var(--mf-wine) !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 50% !important;
  font: 300 28px/1 Arial, sans-serif !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 8px 24px 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item {
  grid-template-columns: 76px minmax(0, 1fr) 28px !important;
  column-gap: 15px !important;
  min-height: 112px !important;
  padding: 20px 0 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  column-gap: 15px !important;
  color: var(--mf-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item img {
  width: 76px !important;
  height: 88px !important;
  padding: 5px !important;
  background: var(--mf-cream) !important;
  border-color: var(--mf-line) !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item .remove_from_cart_button {
  width: 28px !important;
  height: 28px !important;
  color: var(--mf-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item .remove_from_cart_button:hover {
  color: #fff !important;
  background: var(--mf-wine) !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart-item .quantity,
html body .mf-cart-drawer .mf-mini-line {
  grid-column: 2 / 4 !important;
}

.mf-mini-line {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.mf-mini-qty {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 7px;
}

.mf-mini-qty button {
  width: 32px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mf-wine) !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  font-size: 19px !important;
  line-height: 1 !important;
}

.mf-mini-qty button:hover {
  color: #fff !important;
  background: var(--mf-wine) !important;
}

.mf-mini-qty output {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--mf-ink);
  border-right: 1px solid var(--mf-line);
  border-left: 1px solid var(--mf-line);
  font-size: 13px;
  font-weight: 700;
}

.mf-mini-qty.is-loading {
  pointer-events: none;
  opacity: .5;
}

.mf-mini-line-price {
  color: var(--mf-wine);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

html body .mf-cart-drawer .woocommerce-mini-cart__total {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 18px 24px 9px !important;
  background: var(--mf-cream-2) !important;
  border-top: 1px solid var(--mf-line) !important;
  border-bottom: 0 !important;
  font-size: 18px !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__buttons {
  flex: 0 0 auto !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 10px 24px 22px !important;
  background: var(--mf-cream-2) !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
  grid-row: 1 !important;
  min-height: 50px !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) {
  grid-row: 2 !important;
  min-height: 46px !important;
  background: transparent !important;
}

@media (max-width: 520px) {
  html body .mf-cart-drawer .mf-cart-drawer__header {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart__total {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart__buttons {
    padding-right: 18px !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
    padding-left: 18px !important;
  }
}

/* v2.0 — estrutura própria: somente a lista rola; o rodapé nunca sai da tela. */
html body .mf-cart-drawer {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__scroll {
  min-height: 0 !important;
  padding: 8px 24px 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

html body .mf-cart-drawer .mf-cart-products {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .mf-cart-drawer .mf-cart-product {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) 30px !important;
  gap: 15px !important;
  align-items: start !important;
  min-height: 112px !important;
  margin: 0 !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--mf-line) !important;
}

.mf-cart-product__image img {
  display: block !important;
  width: 76px !important;
  height: 88px !important;
  padding: 5px !important;
  object-fit: contain !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 10px !important;
}

.mf-cart-product__info {
  min-width: 0;
}

.mf-cart-product__name {
  display: block;
  color: var(--mf-ink) !important;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none !important;
}

.mf-cart-product__remove {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 0 2px !important;
  color: var(--mf-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  font: 300 23px/1 Arial, sans-serif !important;
  text-decoration: none !important;
}

.mf-cart-product__remove:hover {
  color: #fff !important;
  background: var(--mf-wine) !important;
}

html body .mf-cart-drawer .mf-cart-drawer__footer {
  position: relative !important;
  z-index: 5 !important;
  flex: none !important;
  width: 100% !important;
  padding: 0 24px max(22px, env(safe-area-inset-bottom)) !important;
  overflow: visible !important;
  background: var(--mf-cream-2) !important;
  border-top: 1px solid var(--mf-line) !important;
  box-shadow: 0 -10px 24px rgba(45, 27, 29, .08) !important;
}

.mf-cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0 12px;
  color: var(--mf-ink);
  font-size: 17px;
}

.mf-cart-drawer__subtotal strong {
  color: var(--mf-wine);
  font-size: 18px;
}

.mf-cart-drawer__actions {
  display: grid;
  gap: 10px;
}

html body .mf-cart-drawer .mf-cart-drawer__actions .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  color: #fff !important;
  background: var(--mf-wine) !important;
  border: 1px solid var(--mf-wine) !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-align: center !important;
  text-decoration: none !important;
}

html body .mf-cart-drawer .mf-cart-drawer__actions .view-cart {
  color: var(--mf-wine) !important;
  background: transparent !important;
  border-color: var(--mf-gold-dark) !important;
}

.mf-cart-drawer__empty {
  display: grid;
  place-content: center;
  gap: 14px;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
}

@media (max-width: 520px) {
  html body .mf-cart-drawer .mf-cart-drawer__scroll {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html body .mf-cart-drawer .mf-cart-drawer__footer {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html body .mf-cart-drawer .mf-cart-product {
    grid-template-columns: 68px minmax(0, 1fr) 28px !important;
    gap: 12px !important;
  }

  .mf-cart-product__image img {
    width: 68px !important;
    height: 80px !important;
  }
}

/* Remove o cabeçalho genérico do Hello Elementor nas páginas transacionais. */
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header,
body.woocommerce-account .page-header,
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header {
  display: none !important;
}

/* O Hello Elementor exibe título e descrição genéricos quando não há um
   cabeçalho global publicado. Nas telas da loja usamos a barra própria. */
body.woocommerce-page header#site-header,
body.woocommerce-page header.site-header:not(.elementor-location-header) {
  display: none !important;
}

.mf-page-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 27px 32px;
  background: linear-gradient(110deg, var(--mf-wine-dark), var(--mf-wine));
  border-radius: 20px;
  box-shadow: var(--mf-shadow);
}

.mf-page-heading span {
  color: var(--mf-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mf-page-heading h1 {
  margin: 5px 0 4px !important;
  color: #fff !important;
  font-size: clamp(30px, 4vw, 43px) !important;
  line-height: 1.08 !important;
}

.mf-page-heading p {
  margin: 0 !important;
  color: rgba(255,255,255,.82);
  font-size: 15px;
}

.mf-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.mf-page-breadcrumb a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.mf-page-breadcrumb a:hover {
  color: var(--mf-gold) !important;
}

.mf-page-breadcrumb i {
  color: var(--mf-gold);
  font-style: normal;
}

.mf-page-breadcrumb strong {
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

.mf-account-access__primary,
.mf-account-access__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mf-account-access__primary {
  color: #fff !important;
  background: var(--mf-wine);
  border: 1px solid var(--mf-wine);
}

.mf-account-access__primary:hover {
  color: #fff !important;
  background: var(--mf-wine-dark);
  border-color: var(--mf-wine-dark);
}

.mf-account-access__secondary {
  color: var(--mf-wine) !important;
  background: #fff;
  border: 1px solid var(--mf-gold-dark);
}

.mf-account-access__secondary:hover {
  color: var(--mf-wine-dark) !important;
  background: var(--mf-cream-2);
}

.mf-account-access__icon {
  margin-right: 8px;
  color: var(--mf-gold);
  font-size: 9px;
}

/* Grade de produtos: estrutura vertical, como a referência aprovada. */
.woocommerce ul.products,
.elementor-widget-woocommerce-products ul.products,
.elementor-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-products-grid ul.products li.product {
  position: relative !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: var(--mf-white) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: var(--mf-radius) !important;
  box-shadow: 0 3px 12px rgba(72, 36, 30, .035) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px) !important;
  border-color: #dcc18e !important;
  box-shadow: var(--mf-shadow) !important;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product a img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  margin: 0 0 15px !important;
  padding: 6px !important;
  object-fit: contain !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 3px 10px !important;
  color: var(--mf-wine) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.woocommerce ul.products li.product .price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 8px !important;
  min-height: 52px !important;
  margin: auto -12px 12px !important;
  padding: 12px 15px !important;
  color: var(--mf-ink) !important;
  background: var(--mf-cream-2) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--mf-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: .9 !important;
}

.woocommerce ul.products li.product .price ins {
  color: var(--mf-ink) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .onsale {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 11px !important;
  z-index: 3 !important;
  color: var(--mf-wine-dark) !important;
  background: var(--mf-gold) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.woocommerce ul.products li.product .button,
.elementor-widget-woocommerce-products ul.products li.product .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  color: var(--mf-white) !important;
  background: var(--mf-wine) !important;
  border: 1px solid var(--mf-wine) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .button:hover {
  color: var(--mf-white) !important;
  background: var(--mf-wine-dark) !important;
  border-color: var(--mf-wine-dark) !important;
}

.woocommerce ul.products li.product .added_to_cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 8px 0 0 !important;
  padding: 10px 12px !important;
  color: var(--mf-wine) !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-gold) !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}

/* Contêiner e acabamento das páginas transacionais. */
body.woocommerce-cart .elementor-widget-shortcode,
body.woocommerce-checkout .elementor-widget-shortcode,
body.woocommerce-account .elementor-widget-shortcode,
body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-account main {
  color: var(--mf-ink);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 34px auto 60px !important;
  padding: clamp(18px, 3vw, 34px) !important;
  background: var(--mf-white) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--mf-shadow) !important;
}

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  background: linear-gradient(180deg, #fff 0, var(--mf-cream) 100%) !important;
}

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main,
body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-account main {
  width: 100% !important;
  max-width: none !important;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-account .woocommerce-MyAccount-content legend {
  color: var(--mf-wine-dark) !important;
}

.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details,
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--mf-white) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 14px !important;
}

.woocommerce table.shop_table {
  overflow: hidden !important;
  border-collapse: separate !important;
}

.woocommerce table.shop_table a {
  color: var(--mf-wine) !important;
  font-weight: 700;
}

.woocommerce table.shop_table .product-thumbnail img {
  width: 76px !important;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 10px;
}

.woocommerce .quantity .qty {
  min-height: 42px !important;
  color: var(--mf-ink) !important;
  background: #fff !important;
  border: 1px solid #d9cbb9 !important;
  border-radius: 8px !important;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 26px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  float: right !important;
  width: min(100%, 480px) !important;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields > h3 {
  margin-top: 0 !important;
  color: var(--mf-wine-dark) !important;
  font-weight: 800 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 52px !important;
  font-size: 16px !important;
}

.woocommerce-cart .coupon {
  display: flex !important;
  gap: 8px !important;
}

.woocommerce-cart .coupon .input-text {
  width: min(220px, 100%) !important;
}

.woocommerce table.shop_table th {
  padding: 15px !important;
  color: var(--mf-wine-dark) !important;
  background: var(--mf-cream-2) !important;
}

.woocommerce table.shop_table td {
  padding: 15px !important;
  border-color: var(--mf-line) !important;
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details,
.woocommerce-account .woocommerce-MyAccount-content {
  padding: clamp(18px, 2.5vw, 28px) !important;
}

.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr) !important;
  gap: 26px !important;
  align-items: start !important;
}

.woocommerce-checkout #customer_details {
  grid-column: 1 !important;
  padding: clamp(18px, 2.5vw, 28px) !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  grid-column: 2 !important;
}

.woocommerce-checkout #order_review_heading {
  margin: 0 0 -12px !important;
}

.woocommerce-checkout #order_review {
  position: sticky !important;
  top: 24px !important;
}

.woocommerce-checkout #payment {
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 12px !important;
}

.woocommerce-checkout #payment div.payment_box {
  color: var(--mf-ink) !important;
  background: #fff !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 8px !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce .select2-container--default .select2-selection--single {
  min-height: 46px !important;
  padding: 10px 12px !important;
  color: var(--mf-ink) !important;
  background: #fff !important;
  border: 1px solid #d9cbb9 !important;
  border-radius: 8px !important;
  outline: none !important;
}

.woocommerce textarea {
  min-height: 110px !important;
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  border-color: var(--mf-gold-dark) !important;
  box-shadow: 0 0 0 3px rgba(216, 185, 101, .2) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
  min-height: 46px !important;
  padding: 12px 18px !important;
  color: #fff !important;
  background: var(--mf-wine) !important;
  border: 1px solid var(--mf-wine) !important;
  border-radius: 8px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
  color: #fff !important;
  background: var(--mf-wine-dark) !important;
  border-color: var(--mf-wine-dark) !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  margin: 0 0 22px !important;
  padding: 16px 18px 16px 48px !important;
  color: var(--mf-ink) !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-top: 3px solid var(--mf-gold-dark) !important;
  border-radius: 10px !important;
}

/* Minha Conta */
.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 26px !important;
}

.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
  max-width: 1040px !important;
}

.woocommerce-account #customer_login {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
  display: none !important;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  float: none !important;
  width: auto !important;
  padding: 24px !important;
  background: #fff !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.woocommerce-account #customer_login .u-column1 {
  border-top: 5px solid var(--mf-wine) !important;
}

.woocommerce-account #customer_login .u-column2 {
  border-top: 5px solid var(--mf-gold-dark) !important;
}

.woocommerce-account #customer_login label {
  color: var(--mf-ink);
  font-size: 14px;
  font-weight: 700;
}

.woocommerce-account #customer_login .woocommerce-form-row {
  margin-bottom: 16px !important;
}

.woocommerce-account #customer_login .woocommerce-LostPassword {
  margin: 14px 0 0 !important;
}

.woocommerce-account #customer_login h2 {
  margin: 0 0 16px !important;
  font-size: 25px !important;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce-account #customer_login form > p:last-child,
.woocommerce-account #customer_login .woocommerce-form-register > p:last-child {
  margin-top: auto !important;
}

.woocommerce-account #customer_login .woocommerce-form-login__submit,
.woocommerce-account #customer_login .woocommerce-form-register__submit {
  width: 100% !important;
  min-height: 49px !important;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 12px !important;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme input {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}

.woocommerce-account #customer_login .woocommerce-LostPassword {
  margin: 12px 0 0 !important;
  text-align: center !important;
}

.woocommerce-account #customer_login .woocommerce-LostPassword a {
  color: var(--mf-wine) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
  margin-bottom: 18px !important;
  color: var(--mf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
  color: var(--mf-wine) !important;
}

.woocommerce-account #customer_login input.input-text {
  box-shadow: none !important;
}

/* Criação e redefinição de senha: evita as colunas estreitas padrão do WooCommerce. */
.woocommerce-account form.woocommerce-ResetPassword,
.woocommerce-account form.lost_reset_password {
  grid-column: 1 / -1 !important;
  width: min(100%, 520px) !important;
  margin: 0 auto !important;
}

.woocommerce-account form.woocommerce-ResetPassword .form-row-first,
.woocommerce-account form.woocommerce-ResetPassword .form-row-last,
.woocommerce-account form.lost_reset_password .form-row-first,
.woocommerce-account form.lost_reset_password .form-row-last {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}

.woocommerce-account form.woocommerce-ResetPassword label,
.woocommerce-account form.lost_reset_password label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 7px !important;
}

.woocommerce-account form.woocommerce-ResetPassword .password-input,
.woocommerce-account form.woocommerce-ResetPassword input.input-text,
.woocommerce-account form.lost_reset_password .password-input,
.woocommerce-account form.lost_reset_password input.input-text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.woocommerce-account form.woocommerce-ResetPassword .woocommerce-password-strength,
.woocommerce-account form.woocommerce-ResetPassword .woocommerce-password-hint,
.woocommerce-account form.lost_reset_password .woocommerce-password-strength,
.woocommerce-account form.lost_reset_password .woocommerce-password-hint {
  width: 100% !important;
}

.woocommerce-account form.woocommerce-ResetPassword .woocommerce-form-row--wide,
.woocommerce-account form.lost_reset_password .woocommerce-form-row--wide {
  float: none !important;
  clear: both !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  display: none !important;
}

.woocommerce-account .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account .u-columns {
  grid-column: 1 / -1 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0 !important;
  padding: 10px !important;
  list-style: none !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 14px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block !important;
  padding: 12px 14px !important;
  color: var(--mf-wine-dark) !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: #fff !important;
  background: var(--mf-wine) !important;
}

/* Ações dos pedidos: mantém o rótulo legível também fora do hover. */
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-MyAccount-orders .woocommerce-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 112px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: var(--mf-wine) !important;
  border: 1px solid var(--mf-wine) !important;
  border-radius: 8px !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  visibility: visible !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account .woocommerce-MyAccount-orders .woocommerce-button:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: var(--mf-wine-dark) !important;
}

/* Rodapé do Hello Elementor nas páginas WooCommerce. */
body.woocommerce-page footer#site-footer,
body.woocommerce-page footer.site-footer {
  margin: 48px 0 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .82) !important;
  background: linear-gradient(110deg, var(--mf-wine-dark), var(--mf-wine)) !important;
  border-top: 4px solid var(--mf-gold) !important;
}

body.woocommerce-page footer#site-footer .footer-inner,
body.woocommerce-page footer.site-footer .footer-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: none !important;
  min-height: 132px !important;
  margin: 0 auto !important;
  padding: 28px 0 !important;
}

body.woocommerce-page footer#site-footer .site-title,
body.woocommerce-page footer.site-footer .site-title {
  margin: 0 0 7px !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

body.woocommerce-page footer#site-footer .site-description,
body.woocommerce-page footer.site-footer .site-description,
body.woocommerce-page footer#site-footer p,
body.woocommerce-page footer.site-footer p {
  max-width: 760px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.woocommerce-page footer#site-footer a,
body.woocommerce-page footer.site-footer a {
  color: var(--mf-gold) !important;
}

/* Blocos novos do WooCommerce. */
.wc-block-cart,
.wc-block-checkout {
  color: var(--mf-ink) !important;
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 34px auto 60px !important;
  padding: clamp(18px, 3vw, 34px) !important;
  background: #fff !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--mf-shadow) !important;
}

.wc-block-components-sidebar,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary {
  border-color: var(--mf-line) !important;
}

.wc-block-components-main,
.wc-block-components-sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
  min-width: 0 !important;
}

.wc-block-components-product-name,
.wc-block-components-order-summary-item__description a {
  color: var(--mf-wine) !important;
  font-weight: 750 !important;
}

.wc-block-cart-items,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-components-checkout-step {
  border-color: var(--mf-line) !important;
}

.wc-block-components-checkout-step {
  margin-bottom: 14px !important;
  padding: 20px !important;
  background: #fff !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 14px !important;
}

.wc-block-components-checkout-step__heading {
  color: var(--mf-wine-dark) !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-address-form select {
  border-color: #d9cbb9 !important;
  border-radius: 8px !important;
}

.wc-block-components-totals-coupon__button,
.wc-block-components-button {
  border-radius: 8px !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  min-height: 52px !important;
  color: #fff !important;
  background: var(--mf-wine) !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--mf-wine-dark) !important;
}

.wp-block-woocommerce-empty-cart-block,
.wc-block-cart__empty-cart__title {
  text-align: center !important;
}

@media (max-width: 1024px) {
  .mf-header-menu-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .mf-header-menu-row > .mf-account-access__actions {
    width: 100%;
    justify-content: flex-end;
    margin: 2px 0 0 !important;
  }

  .woocommerce ul.products,
  .elementor-widget-woocommerce-products ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 1 !important;
  }

  .woocommerce-checkout #order_review {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .mf-header-menu-row > .mf-account-access__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr auto;
    width: 100%;
    padding: 8px 12px 11px;
  }

  .mf-has-store-actions .mf-account-access__primary,
  .mf-has-store-actions .mf-account-access__secondary {
    display: inline-flex !important;
    width: 100%;
    font-size: 12px;
  }

  .mf-has-store-actions .mf-cart-trigger {
    padding-inline: 9px;
  }

  .mf-account-access.is-header-integrated .mf-account-access__inner {
    display: flex;
    width: calc(100% - 24px);
  }

  .mf-account-access.is-header-integrated .mf-product-search {
    width: 100%;
    max-width: none;
  }

  .mf-account-access__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 24px);
    padding: 12px 0;
  }

  .mf-account-access__label {
    text-align: center;
  }

  .mf-account-access__actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }

  .mf-account-access__primary,
  .mf-account-access__secondary {
    width: 100%;
  }

  .mf-cart-trigger {
    border-left: 0;
  }

  .mf-cart-trigger__label {
    display: none;
  }

  .mf-cart-drawer__body {
    padding: 20px 18px 26px;
  }

  .mf-cart-drawer .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr;
  }

  .mf-page-heading {
    width: calc(100% - 20px);
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 14px;
  }

  .mf-page-breadcrumb {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .woocommerce ul.products,
  .elementor-widget-woocommerce-products ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product {
    padding: 9px !important;
    border-radius: 12px !important;
  }

  .woocommerce ul.products li.product a img {
    height: 145px !important;
    margin-bottom: 10px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 58px !important;
    padding-inline: 1px !important;
    font-size: 14px !important;
  }

  .woocommerce ul.products li.product .price {
    min-height: 54px !important;
    margin-inline: -9px !important;
    padding: 10px !important;
    font-size: 16px !important;
  }

  .woocommerce ul.products li.product .button {
    min-height: 44px !important;
    padding: 9px 8px !important;
    font-size: 13px !important;
  }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce,
  .woocommerce-account .woocommerce {
    width: calc(100% - 20px) !important;
    margin: 18px auto 40px !important;
    padding: 14px !important;
  }

  .woocommerce-account .woocommerce {
    display: block !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 18px !important;
  }

  .woocommerce-account #customer_login {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 {
    padding: 18px !important;
  }

  .woocommerce-account #customer_login {
    gap: 16px !important;
  }

  body.woocommerce-page footer#site-footer .footer-inner,
  body.woocommerce-page footer.site-footer .footer-inner {
    align-items: flex-start !important;
    flex-direction: column !important;
    width: calc(100% - 32px) !important;
    min-height: 0 !important;
    padding: 28px 0 !important;
  }

  .woocommerce-cart .coupon {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .coupon .input-text,
  .woocommerce-cart .coupon .button {
    width: 100% !important;
  }

  .wc-block-cart,
  .wc-block-checkout {
    width: calc(100% - 20px) !important;
    margin: 18px auto 40px !important;
    padding: 14px !important;
  }
}

/* v1.9 — rodapé do minicarrinho permanentemente visível.
   O conteúdo padrão do WooCommerce possui três filhos diretos: lista, subtotal
   e botões. A grade reserva espaço real para cada área e permite rolagem
   exclusivamente na lista, independentemente da quantidade de produtos. */
html body .mf-cart-drawer {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__header {
  flex: 0 0 auto !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body > ul.woocommerce-mini-cart {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 24px 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__total {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 18px 24px 10px !important;
  background: var(--mf-cream-2) !important;
  box-shadow: 0 -8px 18px rgba(45, 27, 29, .06);
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__buttons {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 10px 24px max(22px, env(safe-area-inset-bottom)) !important;
  background: var(--mf-cream-2) !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__empty-message {
  grid-row: 1 / -1 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 32px 24px !important;
}

@media (max-width: 520px) {
  html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
    padding: 0 !important;
  }

  html body .mf-cart-drawer .mf-cart-drawer__body > ul.woocommerce-mini-cart {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__total {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__buttons {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* v2.0 FINAL — deve permanecer no fim do arquivo para vencer regras legadas. */
html body .mf-cart-drawer {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
}

html body .mf-cart-drawer .mf-cart-drawer__footer {
  position: relative !important;
  z-index: 10 !important;
  align-self: end !important;
  flex: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

@media (max-width: 390px) {
  .woocommerce ul.products,
  .elementor-widget-woocommerce-products ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce ul.products li.product a img {
    height: 230px !important;
  }
}

/* v1.6 — navegação completa da loja, pesquisa e benefícios. */
.mf-account-access__inner {
  min-height: 76px;
}

.mf-store-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--mf-wine-dark) !important;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
}

.mf-store-brand small {
  display: block;
  margin-top: 3px;
  color: var(--mf-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mf-store-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--mf-gold);
  background: var(--mf-wine);
  border: 2px solid var(--mf-gold);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 21px;
}

.mf-store-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mf-store-links a {
  padding: 9px 10px;
  color: var(--mf-wine-dark) !important;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}

.mf-store-links a:hover {
  background: var(--mf-cream-2);
}

.mf-product-search {
  position: relative;
  display: flex;
  flex: 1 1 370px;
  max-width: 460px;
  height: 44px;
  margin: 0;
  background: #fff;
  border: 1px solid #d9cbb9;
  border-radius: 10px;
}

.mf-product-search:focus-within {
  border-color: var(--mf-gold-dark);
  box-shadow: 0 0 0 3px rgba(216, 185, 101, .18);
}

.mf-product-search input[type="search"] {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 10px 0 14px;
  color: var(--mf-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.mf-product-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: var(--mf-wine);
  border: 0;
  border-radius: 0 9px 9px 0;
  cursor: pointer;
}

.mf-product-search button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mf-search-results {
  position: absolute;
  z-index: 100001;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(45, 27, 29, .16);
}

.mf-search-results > a:not(.mf-search-all) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--mf-ink) !important;
  border-bottom: 1px solid var(--mf-line);
  text-decoration: none !important;
}

.mf-search-results > a:hover {
  background: var(--mf-cream);
}

.mf-search-results img,
.mf-search-placeholder {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
}

.mf-search-results strong,
.mf-search-results small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-search-results strong {
  color: var(--mf-wine-dark);
  font-size: 13px;
}

.mf-search-results small {
  margin-top: 4px;
  color: var(--mf-muted);
  font-size: 12px;
}

.mf-search-all {
  display: block;
  padding: 12px;
  color: #fff !important;
  background: var(--mf-wine) !important;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}

.mf-search-empty {
  margin: 0;
  padding: 18px;
  color: var(--mf-muted);
  font-size: 14px;
  text-align: center;
}

.mf-store-assurances {
  display: none;
  position: relative;
  z-index: 19;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--mf-line);
}

.mf-store-assurances.is-ready {
  display: block;
}

.mf-store-assurances__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--mf-wine);
}

.mf-store-assurances__benefits > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 82px;
  padding: 14px 22px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.16);
}

.mf-store-assurances__benefits > div:last-child {
  border-right: 0;
}

.mf-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--mf-gold);
}

.mf-benefit-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-store-assurances p {
  margin: 0;
}

.mf-store-assurances strong,
.mf-store-assurances small {
  display: block;
}

.mf-store-assurances strong {
  color: #fff;
  font-size: 15px;
}

.mf-store-assurances small {
  margin-top: 3px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.mf-payment-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 20px;
  background: var(--mf-cream);
}

.mf-payment-strip > span {
  color: var(--mf-wine-dark);
  font-size: 13px;
  font-weight: 800;
}

.mf-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mf-payment-badges span {
  padding: 5px 8px;
  color: #42393a;
  background: #fff;
  border: 1px solid #ded6ca;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: 10px;
  font-weight: 800;
}

/* Selo serrilhado de oferta. */
.woocommerce ul.products li.product .onsale,
.woocommerce div.product span.onsale {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  padding: 9px !important;
  color: #fff !important;
  background: var(--mf-wine) !important;
  border: 3px solid var(--mf-gold) !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0%,61% 8%,74% 4%,82% 16%,96% 19%,94% 34%,100% 46%,91% 57%,94% 72%,80% 78%,74% 92%,60% 88%,50% 100%,39% 91%,25% 96%,18% 82%,4% 78%,8% 63%,0 51%,9% 40%,5% 25%,20% 19%,26% 5%,40% 10%);
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-transform: uppercase;
}

/* Página individual do produto. */
body.single-product {
  color: var(--mf-ink);
  background: linear-gradient(180deg, #fff 0, var(--mf-cream) 100%) !important;
}

body.single-product .site-main,
body.single-product main {
  width: 100% !important;
  max-width: none !important;
}

body.single-product .woocommerce-breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 14px !important;
  color: var(--mf-muted) !important;
  font-size: 13px !important;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--mf-wine) !important;
  font-weight: 700;
}

body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 60px !important;
  padding: clamp(20px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  box-shadow: var(--mf-shadow);
}

body.single-product div.product::before,
body.single-product div.product::after {
  display: none !important;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.single-product div.product .woocommerce-product-gallery {
  min-width: 0;
}

body.single-product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  max-height: 560px;
  padding: 20px;
  object-fit: contain;
}

body.single-product .summary {
  align-self: center;
}

body.single-product .product_title {
  margin: 0 0 14px !important;
  color: var(--mf-wine-dark) !important;
  font-size: clamp(29px, 4vw, 44px) !important;
  line-height: 1.1 !important;
}

body.single-product .summary .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 20px !important;
  padding: 16px 18px;
  color: var(--mf-ink) !important;
  background: var(--mf-cream-2);
  border-left: 4px solid var(--mf-gold);
  border-radius: 10px;
  font-size: 27px !important;
  font-weight: 850;
}

body.single-product .summary .price del {
  color: var(--mf-muted);
  font-size: 16px;
}

body.single-product .summary .price ins {
  text-decoration: none;
}

body.single-product .woocommerce-product-details__short-description {
  margin-bottom: 22px;
  color: var(--mf-muted);
  font-size: 16px;
  line-height: 1.7;
}

body.single-product form.cart {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
  margin: 22px 0 !important;
}

body.single-product form.cart .quantity {
  margin: 0 !important;
}

body.single-product form.cart .qty {
  width: 78px !important;
  height: 52px;
}

body.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 52px !important;
  margin: 0 !important;
  font-size: 16px !important;
}

body.single-product .product_meta {
  padding-top: 18px;
  color: var(--mf-muted);
  border-top: 1px solid var(--mf-line);
  font-size: 13px;
}

body.single-product .product_meta a {
  color: var(--mf-wine) !important;
  font-weight: 700;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .up-sells {
  grid-column: 1 / -1;
  width: 100%;
  margin: 18px 0 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  border-radius: 8px !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  color: #fff !important;
  background: var(--mf-wine) !important;
  border-color: var(--mf-wine) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 11px 16px !important;
  color: inherit !important;
}

body.single-product .woocommerce-Tabs-panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--mf-cream);
  border: 1px solid var(--mf-line);
  border-radius: 14px;
}

/* v1.7 — acabamento de respiro solicitado.
   Regras deliberadamente específicas para vencer estilos do tema e os
   fragmentos que o WooCommerce reinsere via AJAX. */
html body .mf-account-access .mf-account-access__inner {
  justify-content: space-between;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  padding-right: 28px !important;
  padding-left: 28px !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 0 2px !important;
}

html body .mf-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
  box-sizing: border-box !important;
  width: 100% !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

html body .mf-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

html body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel,
html body.single-product div.product .woocommerce-tabs .panel {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: clamp(26px, 3.2vw, 42px) !important;
}

html body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel > :first-child,
html body.single-product div.product .woocommerce-tabs .panel > :first-child {
  margin-top: 0 !important;
}

html body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel > :last-child,
html body.single-product div.product .woocommerce-tabs .panel > :last-child {
  margin-bottom: 0 !important;
}

html body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel p,
html body.single-product div.product .woocommerce-tabs .panel p {
  line-height: 1.65 !important;
}

/* Minicarrinho: somente a lista rola; subtotal e ações ficam sempre acessíveis. */
html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

html body .mf-cart-drawer .woocommerce-mini-cart__total,
html body .mf-cart-drawer .woocommerce-mini-cart__buttons {
  flex: 0 0 auto !important;
}

.mf-cart-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px;
  line-height: 1 !important;
  text-indent: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .mf-account-access__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px 16px;
    padding: 12px 0;
  }

  .mf-store-links {
    justify-self: start;
  }

  .mf-product-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    max-width: 680px;
  }

  .mf-account-access__actions {
    justify-self: end;
  }

  body.single-product div.product {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr);
    gap: 28px;
  }
}

/* Celular */
@media (max-width: 767px) {
  .mf-account-access__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: calc(100% - 24px);
    min-height: 0;
    padding: 11px 0 13px;
  }

  .mf-store-brand {
    grid-column: 1;
  }

  .mf-store-links {
    display: none;
  }

  .mf-account-access__actions {
    display: flex;
    grid-column: 2;
    gap: 5px;
  }

  .mf-account-access__actions .mf-account-access__secondary {
    display: none;
  }

  .mf-account-access__primary {
    width: auto;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .mf-product-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .mf-search-results {
    position: fixed;
    top: auto;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 62vh;
    overflow-y: auto;
  }

  .mf-store-assurances__benefits {
    grid-template-columns: 1fr;
  }

  .mf-store-assurances__benefits > div {
    justify-content: flex-start;
    min-height: 68px;
    padding: 11px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .mf-payment-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .mf-payment-badges {
    gap: 5px;
  }

  .mf-cart-drawer {
    width: 100vw;
  }

  .mf-cart-drawer__header {
    min-height: 78px;
    padding: 16px 18px;
  }

  html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
    padding: 20px 20px max(22px, env(safe-area-inset-bottom)) !important;
  }

  html body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel,
  html body.single-product div.product .woocommerce-tabs .panel {
    padding: 24px 20px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart-item {
    grid-template-columns: 58px minmax(0, 1fr) 24px !important;
    column-gap: 12px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    font-size: 14px !important;
  }

  html body .mf-cart-drawer .woocommerce-mini-cart-item img {
    width: 58px !important;
    height: 58px !important;
  }

  .mf-cart-drawer .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr !important;
  }

  body.single-product .woocommerce-breadcrumb {
    width: calc(100% - 24px);
    margin-top: 18px !important;
  }

  body.single-product div.product {
    display: block;
    width: calc(100% - 20px);
    margin-bottom: 36px !important;
    padding: 14px;
    border-radius: 14px;
  }

  body.single-product div.product .summary {
    margin-top: 24px !important;
  }

  body.single-product .product_title {
    font-size: 29px !important;
  }

  body.single-product .summary .price {
    font-size: 22px !important;
  }

  body.single-product form.cart {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  body.single-product .woocommerce-tabs,
  body.single-product .related.products,
  body.single-product .up-sells {
    margin-top: 28px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .mf-store-brand > span:last-child,
  .mf-account-access__primary {
    display: none;
  }

  .mf-store-brand__mark {
    width: 36px;
    height: 36px;
  }

  .mf-cart-trigger {
    padding-inline: 8px;
  }

  body.single-product form.cart {
    grid-template-columns: 1fr;
  }

  body.single-product form.cart .qty {
    width: 100% !important;
  }
}

/* v1.9 final override: mantém subtotal e ações dentro da área visível. */
html body .mf-cart-drawer {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__header {
  flex: 0 0 auto !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  flex: 1 1 0% !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body > ul.woocommerce-mini-cart {
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 24px 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__total {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 18px 24px 10px !important;
  background: var(--mf-cream-2) !important;
  box-shadow: 0 -8px 18px rgba(45, 27, 29, .06);
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__buttons {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 10px 24px max(22px, env(safe-area-inset-bottom)) !important;
  background: var(--mf-cream-2) !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__empty-message {
  grid-row: 1 / -1 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 32px 24px !important;
}

@media (max-width: 520px) {
  html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
    padding: 0 !important;
  }

  html body .mf-cart-drawer .mf-cart-drawer__body > ul.woocommerce-mini-cart,
  html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__total,
  html body .mf-cart-drawer .mf-cart-drawer__body > .woocommerce-mini-cart__buttons {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* v2.0 ABSOLUTE FINAL — estrutura independente do template do WooCommerce. */
html body .mf-cart-drawer {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__body.widget_shopping_cart_content {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body .mf-cart-drawer .mf-cart-drawer__scroll {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body .mf-cart-drawer .mf-cart-drawer__footer {
  position: relative !important;
  z-index: 20 !important;
  align-self: end !important;
  flex: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}
