/* Bazar Footer — styles are scoped to .bazar-footer */
.bazar-footer {
  --bazar-bg: #F4F4F2;
  --bazar-text: #0F3668;
  --bazar-link: #35475D;
  --bazar-muted: #637184;
  --bazar-line: #D9DEE4;
  --bazar-accent: #B65745;
  --bazar-max-width: 1420px;
  --bazar-top-padding: 30px;
  --bazar-bottom-padding: 16px;
  --bazar-social-size: 23px;
  width: 100%;
  margin: 0;
  background: var(--bazar-bg);
  color: var(--bazar-text);
  padding: var(--bazar-top-padding) clamp(18px, 4vw, 64px) var(--bazar-bottom-padding);
  border-top: 1px solid #E7E9EC;
  direction: rtl;
  font-family: inherit;
  box-sizing: border-box;
  isolation: isolate;
}
.bazar-footer *,
.bazar-footer *::before,
.bazar-footer *::after { box-sizing: border-box; }
.bazar-footer__inner { max-width: var(--bazar-max-width); margin: 0 auto; }
.bazar-footer__top {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 58px;
}
.bazar-footer__brand { display: inline-flex; align-items: center; text-decoration: none !important; flex: 0 0 auto; }
.bazar-footer__logo { display: block; width: 190px; height: auto; max-height: 54px; object-fit: contain; }
.bazar-footer__social { display: flex; align-items: center; gap: 19px; }
.bazar-footer__social a,
.bazar-footer__social-placeholder {
  width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center;
  color: #526071; text-decoration: none !important; transition: color .18s ease, transform .18s ease;
}
.bazar-footer__social a:hover { color: var(--bazar-accent); transform: translateY(-2px); }
.bazar-footer__social svg { width: var(--bazar-social-size); height: var(--bazar-social-size); fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.bazar-footer__nav {
  margin-top: 22px; padding: 17px 0 18px;
  border-top: 1px solid var(--bazar-line); border-bottom: 1px solid var(--bazar-line);
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 11px 29px;
  direction: rtl;
}
.bazar-footer__nav a,
.bazar-footer__nav-label {
  position: relative; color: var(--bazar-link) !important; text-decoration: none !important; font-size: 13px; line-height: 1.9;
  white-space: nowrap; transition: color .18s ease;
}
.bazar-footer__nav a::after { content: ""; position: absolute; right: 0; bottom: -5px; width: 0; height: 2px; background: var(--bazar-accent); transition: width .2s ease; }
.bazar-footer__nav a:hover { color: var(--bazar-accent) !important; }
.bazar-footer__nav a:hover::after { width: 100%; }
.bazar-footer__contact {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 15px 28px; padding: 18px 0 14px; direction: rtl;
}
.bazar-footer__contact-item { display: inline-flex; align-items: center; gap: 9px; color: #536174 !important; text-decoration: none !important; font-size: 12px; line-height: 1.9; min-width: 0; }
.bazar-footer__contact-item svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--bazar-text); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.bazar-footer__contact-item:hover { color: var(--bazar-accent) !important; }
.bazar-footer__contact-item:hover svg { stroke: var(--bazar-accent); }
.bazar-footer__contact-item span[dir="ltr"] { direction: ltr; unicode-bidi: embed; }
.bazar-footer__bottom {
  border-top: 1px solid var(--bazar-line); padding-top: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--bazar-muted); font-size: 11px; line-height: 1.8;
}
.bazar-footer__bottom p { margin: 0; }
.bazar-footer__brand-note { color: var(--bazar-accent); font-weight: 700; }
/* Tablet and mobile layout: prevent compressed rows and text collisions. */
@media (max-width: 640px) {
  .bazar-footer {
    padding: 23px 18px 16px;
    overflow: hidden;
  }
  .bazar-footer__inner { width: 100%; min-width: 0; }
  .bazar-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    width: 100%;
  }
  .bazar-footer__brand { min-width: 0; }
  .bazar-footer__logo { width: clamp(125px, 37vw, 165px); max-width: 100%; max-height: 46px; }
  .bazar-footer__social { flex: 0 0 auto; gap: clamp(9px, 3vw, 16px); }
  .bazar-footer__social a,
  .bazar-footer__social-placeholder { width: 25px; height: 25px; }
  .bazar-footer__social svg { width: 21px; height: 21px; }

  .bazar-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-content: stretch;
    gap: 8px 16px;
    margin-top: 17px;
    padding: 13px 0;
    width: 100%;
  }
  .bazar-footer__nav a,
  .bazar-footer__nav-label {
    display: block;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.9;
    text-align: right;
  }

  .bazar-footer__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-content: stretch;
    gap: 10px 13px;
    padding: 15px 0 13px;
    width: 100%;
  }
  .bazar-footer__contact-item {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    gap: 7px;
    font-size: 11px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
  .bazar-footer__contact-item:first-child,
  .bazar-footer__contact-item:nth-child(2) { grid-column: 1 / -1; }
  .bazar-footer__contact-item:first-child span,
  .bazar-footer__contact-item:nth-child(2) span { min-width: 0; overflow-wrap: anywhere; }
  .bazar-footer__contact-item svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; }
  .bazar-footer__contact-item span[dir="ltr"] { overflow-wrap: anywhere; }

  .bazar-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    padding-top: 11px;
    font-size: 10px;
    line-height: 1.9;
    text-align: right;
  }
  .bazar-footer__bottom p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .bazar-footer__brand-note { text-align: right; }
}

@media (max-width: 380px) {
  .bazar-footer { padding-right: 14px; padding-left: 14px; }
  .bazar-footer__top { gap: 8px; }
  .bazar-footer__logo { width: 126px; }
  .bazar-footer__social { gap: 8px; }
  .bazar-footer__nav { column-gap: 10px; }
  .bazar-footer__contact { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bazar-footer__contact-item:first-child,
  .bazar-footer__contact-item:nth-child(2) { grid-column: auto; }
  .bazar-footer__contact-item { font-size: 11px; }
}
