/**
 * footer.css
 * Rodapé do design system (marmitissima-design, assets/css/footer.css).
 *
 * No Magento o rodapé é o bloco CMS "marmitissima_footer" (Conteúdo > Blocos),
 * escolhido em Configurações do tema > Footer. Dentro dele: Linha "Full Width"
 * com a classe mm-footer + um elemento HTML com o conteúdo (.container do tema
 * + .site-footer__top / __divider / __bottom / __copyright).
 * Valores em px (o design usa rem com raiz 16px; no Magento a raiz é 10px).
 */
[data-content-type='row'].mm-footer {
  padding-top: 56px !important;
  padding-bottom: 28px !important;
  border-top: 3px solid #ed3237;
  background-color: #000000 !important;
}

/* Mesma largura das seções da home: o tema aplica isso só dentro de
   .page-main-full-width (o rodapé fica fora) — 15px de respiro sempre e
   95% da tela a partir de 768px, até --layout__max-width. */
[data-content-type='row'].mm-footer > .row-full-width-inner {
  box-sizing: border-box;
  max-width: var(--layout__max-width, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  [data-content-type='row'].mm-footer > .row-full-width-inner {
    width: 95%;
  }
}

.mm-footer .container {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mm-footer {
  --mm-footer-text: #ffffff;
  --mm-footer-accent: #ed3237;
  color: var(--mm-footer-text);
  font-family: 'Manrope', sans-serif;
}

.mm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* O tema dá margem/altura de linha próprias aos <li> do rodapé */
.mm-footer li {
  margin: 0 !important;
  padding: 0;
  line-height: 1.5;
}

.mm-footer a {
  text-decoration: none;
}

/* ===== Topo: marca + 3 colunas ===== */
.mm-footer .site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.mm-footer .site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-footer .site-footer__logo {
  display: inline-block;
  align-self: flex-start;
}

.mm-footer .site-footer__logo img {
  display: block;
  width: auto;
  max-width: none;
  height: 95px;
}

.mm-footer .site-footer__tagline {
  max-width: 26ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.7);
}

.mm-footer .site-footer__mini-heading {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
}

.mm-footer .site-footer__social {
  display: flex;
  gap: 10px;
}

.mm-footer .site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(250, 248, 244, 0.25);
  border-radius: 50%;
  color: var(--mm-footer-text);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.mm-footer .site-footer__social a:hover {
  background-color: rgba(250, 248, 244, 0.12);
  border-color: rgba(250, 248, 244, 0.4);
}

.mm-footer .site-footer__social svg {
  display: block;
  width: 16px;
  height: 16px;
}

.mm-footer .site-footer__heading {
  margin: 0 0 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
}

.mm-footer .site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mm-footer .site-footer__col a {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.85);
  transition: opacity 160ms ease;
}

.mm-footer .site-footer__col a:hover {
  opacity: 0.7;
  text-decoration: underline;
  color: rgba(250, 248, 244, 0.85);
}

/* ===== Coluna "Frete" — itens informativos, nem todos são link ===== */
.mm-footer .site-footer__notes {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(250, 248, 244, 0.85);
}

.mm-footer .site-footer__note-tag {
  color: rgba(250, 248, 244, 0.55);
}

/* ===== Meio de pagamento ===== */
.mm-footer .payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-footer .payment-badge {
  padding: 5px 12px;
  border: 1px solid rgba(250, 248, 244, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.85);
}

/* ===== Divisória + parte de baixo ===== */
.mm-footer .site-footer__divider {
  margin: 0 0 24px;
  border: none;
  border-top: 1px solid rgba(250, 248, 244, 0.15);
}

.mm-footer .site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.mm-footer .site-footer__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(250, 248, 244, 0.75);
}

.mm-footer .site-footer__secure svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--mm-footer-accent);
}

.mm-footer .site-footer__copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.5);
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .mm-footer .site-footer__top {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }

  .mm-footer .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  [data-content-type='row'].mm-footer {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
  }

  .mm-footer .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mm-footer .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
