/* ============================================================
   MLF — Custom footer (replaces warehouse footer)
   ============================================================ */

/* Hide warehouse native footer blocks (modules) but keep the wrapper so
   our displayFooter hook output remains in the DOM. */
#footer.js-footer .footer-container > .container > .row > .block,
#footer.js-footer .block-iqitlinksmanager,
#footer.js-footer .block-iqitcontactpage,
#footer.js-footer .block-newsletter,
#footer.js-footer .block-social-links,
#footer.js-footer .block-footer,
#footer.js-footer #footer-container-second,
#footer.js-footer #footer-copyright,
footer.page-footer {
  display: none !important;
}

/* Strip the warehouse wrapper paddings/background/container so our MLF footer
   sits edge to edge. We keep the wrapper visible (block). */
#footer.js-footer {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
#footer.js-footer .footer-container {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
#footer.js-footer .footer-container > .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#footer.js-footer .footer-container > .container > .row {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
#footer.js-footer .footer-container > .container > .row > .col,
#footer.js-footer .footer-container > .container > .row > [class^="col-"] {
  padding: 0 !important;
  margin: 0 !important;
  flex: unset !important;
  max-width: none !important;
}

/* ============================================================
   MLF Footer
   ============================================================ */
.mlf-footer {
  background: #24353f;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mlf-footer__top {
  max-width: 1320px;
  width: calc(100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mlf-footer__brand { }

.mlf-footer__logo {
  display: inline-block;
  line-height: 0;
}
.mlf-footer__logo img {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
}

.mlf-footer__tag {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 280px;
}

.mlf-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.mlf-footer__col h4 {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.mlf-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mlf-footer__col li {
  margin-bottom: 10px;
}

.mlf-footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mlf-footer__col a:hover {
  color: #fff;
}

/* ---------- Bottom row ---------- */
.mlf-footer__bottom {
  max-width: 1320px;
  width: calc(100% - 48px);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.mlf-footer__legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.mlf-footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.mlf-footer__legal a:hover {
  color: #fff;
}

.mlf-footer__payments {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mlf-footer__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .mlf-footer__top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mlf-footer__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .mlf-footer {
    padding: 56px 0 24px;
  }
  .mlf-footer__top {
    padding-bottom: 40px;
  }
  .mlf-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }
  .mlf-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
