/* Footer Responsive Fix - Corrects horizontal overflow on mobile devices */

/* Ensure footer container doesn't overflow */
footer {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Fix footer navigation list - force wrapping and proper sizing */
footer > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px 60px !important;
  max-width: 1200px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* Ensure list items don't cause overflow */
footer > ul > li {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Mobile responsive - tablets and smaller */
@media (max-width: 768px) {
  footer {
    padding: 40px 15px 0 !important;
  }

  footer > ul {
    flex-direction: column !important;
    gap: 30px !important;
    padding: 0 15px !important;
  }

  footer > ul > li {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Center social icons on mobile */
  .social_icons {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  /* Fix footer copyright section */
  .footer-copyright {
    padding: 20px 15px !important;
  }

  .footer-copyright.flex > div {
    flex: 1 1 100% !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  /* Ensure payment icons wrap properly */
  .footer-copyright .flex-3 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px !important;
  }
}

/* Extra small devices - phones */
@media (max-width: 480px) {
  footer {
    padding: 30px 10px 0 !important;
  }

  footer > ul {
    padding: 0 10px !important;
    gap: 25px !important;
  }

  .footer-copyright {
    padding: 20px 10px !important;
    font-size: 12px !important;
  }

  .payment-icon {
    margin: 2px !important;
  }
}
