/* ==================================================
   HEALEY PACKAGING – FINAL FOOTER CSS (HARD FIX)
   This file overrides ALL theme SVG behavior
================================================== */

.hp-footer {
  width: 100%;
  background: linear-gradient(135deg, #f7f7f8, #eceef1);
  color: #1f2933;
  font-family: Inter, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* force full width on all pages */
body .hp-footer,
body.woocommerce .hp-footer,
body.woocommerce-page .hp-footer {
  margin: 0 !important;
  max-width: 100% !important;
}

/* ==================================================
   INNER GRID
================================================== */
.hp-footer-inner {
  max-width: 1320px;
  margin: auto;
  padding: 70px 20px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

/* ==================================================
   BRAND
================================================== */
.hp-footer-col.brand img {
  max-width: 170px !important;
  height: auto !important;
  display: block;
  margin-bottom: 16px;
}

.hp-footer-col.brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

/* ==================================================
   HEADINGS
================================================== */
.hp-footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

/* ==================================================
   LINKS
================================================== */
.hp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-footer ul li {
  margin-bottom: 10px;
}

.hp-footer ul li a {
  font-size: 14px;
  color: #374151;
  text-decoration: none;
}

.hp-footer ul li a:hover {
  color: #2563eb;
}

/* ==================================================
   CATEGORY SELECT
================================================== */
.hp-footer select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
}

/* ==================================================
   CONTACT
================================================== */
.hp-footer-col p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #374151;
}

.hp-footer-col strong {
  color: #0f172a;
}

/* ==================================================
   SOCIAL ICONS — HARD FIX
================================================== */
.hp-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hp-social a {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e5e7eb;
  border-radius: 50%;
}

/* kill ALL svg scaling */
.hp-social svg,
.hp-social img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
}

/* ==================================================
   PAYMENT ICONS — REAL FIX (THIS WAS THE ISSUE)
================================================== */
.hp-payments {
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* handle IMG svg */
.hp-payments img {
  width: auto !important;
  height: 26px !important;
  max-height: 26px !important;
  max-width: 60px !important;
  object-fit: contain !important;
  display: block !important;
}

/* handle INLINE svg */
.hp-payments svg {
  width: auto !important;
  height: 26px !important;
  max-height: 26px !important;
  max-width: 60px !important;
  display: block !important;
}

/* ==================================================
   GLOBAL SVG NUCLEAR OVERRIDE
================================================== */
.hp-footer svg {
  transform: none !important;
  flex: 0 0 auto !important;
}

/* ==================================================
   FOOTER BOTTOM
================================================== */
.hp-footer-bottom {
  border-top: 1px solid #d1d5db;
  background: #e9ebee;
  text-align: center;
  padding: 18px 10px;
  font-size: 13px;
  color: #4b5563;
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 991px) {
  .hp-footer-inner {
    grid-template-columns: 1fr;
    padding: 50px 18px 30px;
  }

  .hp-footer h4 {
    margin-top: 28px;
  }
}
