/* Barakeh STAGE71 — official white logo + existing ISO badge in every footer.
   Only the paired footer mark is styled; navigation and copy remain unchanged. */
footer .bk-footer-brand-pair {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1.25vw, 16px);
  direction: ltr;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
}
footer .bk-footer-brand-pair > img[data-barakeh-footer-brand="67"],
footer .bk-footer-brand-pair > a.bk-footer-added-logo img[data-barakeh-footer-brand="67"] {
  display: block;
  flex: 0 1 auto;
  width: min(198px, 52vw);
  max-width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  mix-blend-mode: normal;
}
footer .bk-footer-brand-pair > a.bk-footer-added-logo {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}
footer .bk-footer-brand-pair > img.bk-footer-iso-badge {
  display: block;
  flex: 0 0 70px;
  width: 70px;
  height: 66px;
  max-width: 70px;
  max-height: 66px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 3px;
  box-sizing: border-box;
}
html[dir="rtl"] footer .bk-footer-brand-pair {
  direction: ltr; /* Preserve logo then ISO side by side for all languages. */
}
@media (max-width: 640px) {
  footer .bk-footer-brand-pair { gap: 11px; max-width: 100%; }
  footer .bk-footer-brand-pair > img[data-barakeh-footer-brand="67"],
  footer .bk-footer-brand-pair > a.bk-footer-added-logo img[data-barakeh-footer-brand="67"] {
    width: min(184px, 51vw);
    max-height: 76px;
  }
  footer .bk-footer-brand-pair > img.bk-footer-iso-badge {
    flex-basis: 60px;
    width: 60px;
    height: 57px;
    max-width: 60px;
    max-height: 57px;
    padding: 2px;
  }
}
@media (max-width: 360px) {
  footer .bk-footer-brand-pair { gap: 9px; }
  footer .bk-footer-brand-pair > img[data-barakeh-footer-brand="67"],
  footer .bk-footer-brand-pair > a.bk-footer-added-logo img[data-barakeh-footer-brand="67"] {
    width: min(162px, 50vw);
  }
  footer .bk-footer-brand-pair > img.bk-footer-iso-badge {
    flex-basis: 54px;
    width: 54px;
    height: 51px;
    max-width: 54px;
    max-height: 51px;
  }
}

/* The bare product catalog footer contains a text node beside the added
   logo. Allow that text to use a second line on narrow phones rather than
   shrinking the paired marks to an unreadable width. */
.barakeh-catalog-page footer { flex-wrap: wrap; }
.barakeh-catalog-page footer .bk-footer-brand-pair { flex: 0 0 auto; }
