/* iHUB STORES — V7.8 footer alignment polish
   Mobile-only rules; desktop / tablet footer layout stays as approved. */
@media (max-width: 740px) {
  .footer {
    padding: 40px 0 24px;
  }

  .footer .footer-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    padding-bottom: 24px !important;
    text-align: center !important;
  }

  .footer .footer-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .footer .footer-left img {
    display: block !important;
    width: min(252px, 77vw) !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .footer .footer-left p {
    width: min(310px, 100%) !important;
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
  }

  .footer .footer-owner,
  [dir="rtl"] .footer .footer-owner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .footer .footer-capital-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(224px, 70vw) !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .footer .footer-capital-link img,
  [dir="rtl"] .footer .footer-owner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .footer .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding-top: 20px !important;
    text-align: center !important;
  }

  .footer .footer-bottom small {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    line-height: 1.6;
  }

  .footer .footer-bottom > div {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px 18px !important;
    width: 100%;
    text-align: center !important;
  }
}

@media (max-width: 365px) {
  .footer .footer-left img {width: min(230px, 77vw) !important;}
  .footer .footer-capital-link {width: min(207px, 69vw) !important;}
  .footer .footer-top {gap: 18px !important;}
}
