/* -------------------------------------------------------
 * Site Footer - Dark Minimalist
 * ----------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: #ffffff;
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}

/* Left: Contact column — stacked blocks share one left alignment line */
.footer__contact-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.site-footer .footer__contact-col > * {
  justify-self: start;
  margin-inline: 0;
}

.footer__logo {
  width: 160px;
  height: auto;
  display: block;
}

.footer__col-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0;
}

.footer__address {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

.footer__email {
  display: block;
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
  text-align: start;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .footer__email:hover {
    opacity: 0.8;
  }
}

/* Social icons */
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
}

.footer__social-link {
  display: flex;
  cursor: pointer;
  cursor: default;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #ffffff;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer__social-link:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.footer__social-link--disabled:hover {
  background-color: transparent;
  color: #ffffff;
  transform: none;
  cursor: default;
}

.footer__social-link--disabled {
  cursor: default;
}

.footer__social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: filter 0.2s ease;
}

.site-footer .footer__social-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: none !important;
}

.footer__social-link:not(.footer__social-link--disabled):hover .footer__social-icon {
  filter: invert(1);
}

/* Payment icons */
.footer__payments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: flex-start;
}

/* Same scale on all pages: beat theme img + WooCommerce img rules (see product-page secure checkout) */
.site-footer .footer__payments .footer__payment-icon {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 124px !important;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
}

/* Right: Nav column */
.footer__nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer__links a {
  font-size: 14px;
  color: #ffffff;
  transition: opacity 0.15s ease;
  line-height: 1.4;
}

@media (hover: hover) {
  .footer__links a:hover {
    opacity: 0.8;
  }
}

/* Divider */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0;
}

/* Bottom bar - copyright (keep content and layout unchanged) */
.footer__bottom {
  padding: 18px 0;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__credit-link {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .footer__credit-link:hover {
    opacity: 0.8;
  }
}

/* Override footer_bg_color customizer - ensure dark default */
.site-footer[style*="background-color"] {
  /* Customizer value applied inline */
}

/* -------------------------------------------------------
 * Responsive
 * ----------------------------------------------------- */
@media (min-width: 901px) {
  .footer__grid {
    padding-bottom: 72px;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer__nav-col {
    align-items: flex-start;
  }

  .footer__links {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 40px;
  }

  .footer__grid {
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__bottom {
    padding: 16px 0;
  }

  .footer__copyright {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------
 * WooCommerce / Shop page — ensure footer matches home page
 * WooCommerce CSS (woocommerce-general, woocommerce-layout, woocommerce-smallscreen)
 * can ship column/grid overrides that conflict with our footer layout on pages that
 * carry the .woocommerce, .woocommerce-page, or .single-product body class.
 * These rules use the same or higher specificity to win consistently.
 * ----------------------------------------------------- */
.woocommerce .site-footer .container,
.woocommerce-page .site-footer .container,
body.single-product .site-footer .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
}

.woocommerce .site-footer .footer__grid,
.woocommerce-page .site-footer .footer__grid,
body.single-product .site-footer .footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}

.woocommerce .site-footer .footer__contact-col,
.woocommerce-page .site-footer .footer__contact-col,
body.single-product .site-footer .footer__contact-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.woocommerce .site-footer .footer__contact-col > *,
.woocommerce-page .site-footer .footer__contact-col > *,
body.single-product .site-footer .footer__contact-col > * {
  justify-self: start;
  margin-inline: 0;
}

.woocommerce .site-footer .footer__nav-col,
.woocommerce-page .site-footer .footer__nav-col,
body.single-product .site-footer .footer__nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.woocommerce .site-footer .footer__links,
.woocommerce-page .site-footer .footer__links,
body.single-product .site-footer .footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce .site-footer .footer__links a,
.woocommerce-page .site-footer .footer__links a,
body.single-product .site-footer .footer__links a {
  font-size: 14px;
  color: #ffffff;
}

.woocommerce .site-footer .footer__socials,
.woocommerce-page .site-footer .footer__socials,
body.single-product .site-footer .footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.woocommerce .site-footer .footer__payments,
.woocommerce-page .site-footer .footer__payments,
body.single-product .site-footer .footer__payments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

@media (max-width: 900px) {
  .woocommerce .site-footer .footer__grid,
  .woocommerce-page .site-footer .footer__grid,
  body.single-product .site-footer .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .woocommerce .site-footer .footer__nav-col,
  .woocommerce-page .site-footer .footer__nav-col,
  body.single-product .site-footer .footer__nav-col {
    align-items: flex-start;
  }

  .woocommerce .site-footer .footer__links,
  .woocommerce-page .site-footer .footer__links,
  body.single-product .site-footer .footer__links {
    align-items: flex-start;
  }
}