/* Category mega-nav + Swish logo + footer menu (RTL) */

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.swish-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.swish-logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* —— Category nav —— */
.bp-catnav {
  position: relative;
  width: 100%;
  max-width: 820px;
  direction: rtl;
}

.bp-catnav__mobile-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f5f7fb;
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  padding: 8px 14px;
  color: #1f2a44;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.bp-catnav__burger {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
  display: block;
}

.bp-catnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bp-catnav__item {
  position: relative;
  list-style: none;
}

.bp-catnav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1.2;
}

.bp-catnav__trigger:hover,
.bp-catnav__item.is-open > .bp-catnav__trigger {
  color: #2157f9;
  background: #f8f9fa;
}

.bp-catnav__chevron {
  transition: transform .18s ease;
  flex-shrink: 0;
}

.bp-catnav__item.is-open > .bp-catnav__trigger .bp-catnav__chevron {
  transform: rotate(180deg);
}

.bp-catnav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 40, 80, .12);
  padding: 8px;
  z-index: 1200;
}

.bp-catnav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.bp-catnav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2a3a55;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.bp-catnav__link:hover,
.bp-catnav__link:focus-visible {
  background: #eef3ff;
  color: #2157f9;
}

/* Visible keyboard focus (site CSS resets outline globally) */
.bp-catnav__trigger:focus-visible,
.bp-catnav__link:focus-visible,
.bp-catnav__mobile-toggle:focus-visible,
.swish-logo:focus-visible,
.footer-menu a:focus-visible {
  outline: 2px solid #8fafff;
  outline-offset: 2px;
}

/* —— Footer: Copyright | Menu | Dreamview (one row) —— */
.footer .wrapper.flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer .ft,
.footer .fotter-credit {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 0;
}

.footer-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  width: auto;
}

/* Always show footer menu (overrides old header #menu mobile hide + Bootstrap collapse) */
.footer #menu.footer-menu,
.footer #menu.footer-menu .navbar,
.footer #menu.footer-menu .navbar-default,
.footer #menu.footer-menu .navbar-collapse,
.footer #menu.footer-menu .collapse,
.footer #menu.footer-menu .collapse.in,
.footer #menu.footer-menu .collapsing,
.footer #menu.footer-menu ul,
.footer #menu.footer-menu ul.nav,
.footer #menu.footer-menu .nav {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  overflow: visible !important;
  float: none !important;
}

.footer #menu.footer-menu .navbar-header,
.footer #menu.footer-menu .navbar-toggle {
  display: none !important;
}

.footer-menu li,
.footer #menu.footer-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto !important;
  flex: 0 0 auto;
  border: 0 !important;
  display: block;
  float: none !important;
}

.footer-menu a,
.footer #menu.footer-menu a {
  color: #445066;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px !important;
  display: inline-block;
  white-space: nowrap;
  background: transparent !important;
}

.footer-menu a:hover,
.footer #menu.footer-menu a:hover {
  color: #2157f9;
  background: transparent !important;
}

@media (max-width: 1180px) {
  .footer #menu.footer-menu,
  .footer #menu.footer-menu .navbar-collapse,
  .footer #menu.footer-menu .collapse,
  .footer #menu.footer-menu ul,
  .footer #menu.footer-menu ul.nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    position: static !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px 12px;
  }

  .footer #menu.footer-menu li {
    width: auto !important;
    border: 0 !important;
  }

  .footer #menu.footer-menu a {
    padding: 4px 2px !important;
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .bp-catnav__trigger {
    font-size: 14px;
    padding: 8px 10px;
  }
}

@media (max-width: 870px) {
  .header-content {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: stretch;
  }

  .swish-logo img {
    max-height: 32px;
  }

  .bp-catnav__mobile-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .bp-catnav__panel {
    display: none;
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 40, 80, .08);
    padding: 8px;
  }

  .bp-catnav.is-open .bp-catnav__panel {
    display: block;
  }

  .bp-catnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .bp-catnav__trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
  }

  .bp-catnav__dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px;
    margin: 0 4px 4px;
    background: #f7f9fc;
    border-radius: 8px;
  }

  .bp-catnav__link {
    padding: 10px 14px;
  }
}

@media (max-width: 900px) {
  .footer .wrapper.flex {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .footer .ft,
  .footer .fotter-credit {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-nav {
    flex: 1 1 100%;
    order: -1;
  }

  .footer #menu.footer-menu,
  .footer #menu.footer-menu .navbar-collapse,
  .footer #menu.footer-menu ul,
  .footer #menu.footer-menu ul.nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .footer #menu.footer-menu a {
    font-size: 13px;
  }
}
