/* Balloon Zone Dubai — public header (Be My Balloon layout reference) */
:root {
  --bz-brand: #245a4c;
  --bz-brand-hover: #1c463b;
  --bz-brand-soft: #d4e0dc;
  --bz-text: #3d3d3d;
  --bz-text-muted: #8a8a8a;
  --bz-border: #ececec;
  --bz-header-font: Inter, Montserrat, "Segoe UI", sans-serif;
}

.bz-header-root {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  font-family: var(--bz-header-font);
  color: var(--bz-text);
  box-shadow: 0 1px 0 var(--bz-border);
  overflow-anchor: none;
}

.bz-header-root a {
  text-decoration: none;
  color: inherit;
}

/* Centered content container — matches site max-w-7xl (80rem / 1280px) */
.bz-header-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .bz-header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .bz-header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Promo hanging tab */
.bz-promo-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  max-height: 40px;
  overflow: hidden;
}

.bz-promo-tab {
  background: var(--bz-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 42px 10px;
  border-radius: 0 0 18px 18px;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}

.bz-promo-tab:hover {
  background: var(--bz-brand-hover);
}

/* Utility row */
.bz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 6px;
  font-size: 12.5px;
  color: #6b6b6b;
  border-bottom: 1px solid var(--bz-border);
  max-height: 42px;
  overflow: hidden;
}

.bz-header-top-left,
.bz-header-top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.bz-header-top a,
.bz-header-top button {
  color: #6b6b6b;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.bz-header-top a:hover,
.bz-header-top button:hover {
  color: var(--bz-brand);
}

.bz-loc,
.bz-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bz-top-meta i {
  color: var(--bz-brand);
}

.bz-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b6b6b;
}

/* Main row */
.bz-header-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 10px;
  transition: padding 0.28s ease;
}

.bz-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.bz-logo img {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.bz-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
  position: relative;
}

.bz-search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #9a9a9a;
  cursor: text;
  text-align: left;
  font-size: 14px;
}

.bz-search-pill:hover,
.bz-search-pill:focus-within {
  border-color: var(--bz-brand-soft);
}

.bz-search-pill i {
  font-size: 15px;
  flex-shrink: 0;
}

.bz-search-pill input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #333;
}

.bz-search-pill input::placeholder {
  color: #9a9a9a;
}

.bz-search-live {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 110;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 10px;
}

.bz-search-wrap.is-open .bz-search-live,
.bz-mobile-search.is-open .bz-search-live,
.bz-search-wrap:focus-within .bz-search-live:has(.search_results:not(:empty)),
.bz-mobile-search:focus-within .bz-search-live:has(.search_results:not(:empty)) {
  display: block;
}

.bz-search-live .search_results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .bz-search-live .search_results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bz-search-live .search_results img {
  height: 88px !important;
  object-fit: cover;
}

.bz-search-live .h-52,
.bz-search-live .sm\:h-60 {
  height: 72px !important;
}

.bz-search-live .search_results > div {
  min-width: 0;
}

.bz-mobile-search {
  position: relative;
}

.bz-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  flex: 0 0 auto;
}

.bz-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bz-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bz-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bz-contact-link:hover .bz-contact-icon {
  background: var(--bz-brand-hover);
}

.bz-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.bz-contact-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.bz-contact-sub {
  font-size: 11px;
  color: #8d8d8d;
  white-space: nowrap;
}

.bz-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bz-brand);
  margin-right: 4px;
  vertical-align: middle;
}

.bz-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bz-brand);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.bz-cart-btn:hover {
  background: var(--bz-brand-hover);
}

.bz-cart-btn i {
  font-size: 16px;
}

.bz-cart-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--bz-brand);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -4px;
}

.bz-cart-count.has-items {
  display: inline-flex;
}

/* Category nav */
.bz-header-nav {
  padding: 0 0 12px;
  transition: padding 0.28s ease;
}

.bz-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.bz-nav-list > li {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.bz-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  font-size: 12px;
  font-weight: 500;
  color: #3a3a3a;
  white-space: nowrap;
  border-radius: 8px;
}

.bz-nav-link:hover,
.bz-nav-item:hover > .bz-nav-link {
  color: var(--bz-brand);
}

.bz-nav-ico {
  width: 15px;
  height: 15px;
  display: inline-flex;
  color: #7a7a7a;
  flex-shrink: 0;
}

.bz-nav-item:hover .bz-nav-ico {
  color: var(--bz-brand);
}

.bz-nav-caret {
  font-size: 10px;
  color: #b0b0b0;
}

.bz-nav-sale .bz-nav-ico {
  color: var(--bz-brand);
}

.bz-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  max-width: 280px;
  width: max-content;
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  display: none;
  z-index: 90;
  list-style: none;
  margin: 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.bz-nav-item:hover > .bz-submenu,
.bz-nav-item:focus-within > .bz-submenu {
  display: block;
}

.bz-nav-item:nth-last-child(-n+3) .bz-submenu {
  left: auto;
  right: 0;
}

.bz-submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.35;
  color: #555;
  white-space: normal;
}

.bz-submenu a:hover {
  background: #eef4f2;
  color: var(--bz-brand);
}

.bz-submenu .is-child a {
  padding-left: 28px;
  font-size: 12.5px;
  color: #7a7a7a;
}

@media (max-width: 1399px) {
  .bz-nav-link {
    font-size: 11.5px;
    padding: 6px 5px;
    gap: 4px;
  }
}

/* Icon buttons (mobile / tablet) */
.bz-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  font-size: 22px;
}

.bz-icon-btn:hover {
  color: var(--bz-brand);
}

.bz-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bz-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.bz-hamburger {
  display: none;
}

.bz-mobile-tools {
  display: none;
  align-items: center;
  gap: 2px;
}

/* Mobile drawer */
.bz-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.bz-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.bz-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 121;
  width: min(360px, 92vw);
  height: 100vh;
  background: #fff;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bz-drawer.is-open {
  transform: translateX(0);
}

.bz-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bz-border);
}

.bz-drawer-head img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.bz-drawer-body {
  overflow-y: auto;
  padding: 8px 0 24px;
  flex: 1;
}

.bz-drawer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bz-border);
  font-size: 13px;
  color: #666;
}

.bz-drawer-acc {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bz-border);
}

.bz-drawer-acc a,
.bz-drawer-acc button {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--bz-border);
  background: #fff;
  cursor: pointer;
}

.bz-drawer-acc .is-primary {
  background: var(--bz-brand);
  border-color: var(--bz-brand);
  color: #fff !important;
}

.bz-acc {
  padding: 4px 0;
  border-bottom: 1px solid var(--bz-border);
}

.bz-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  text-align: left;
}

.bz-acc-btn > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bz-acc-panel {
  display: none;
  padding: 0 16px 12px 42px;
}

.bz-acc.is-open .bz-acc-panel {
  display: block;
}

.bz-acc.is-open .bz-acc-caret {
  transform: rotate(180deg);
}

.bz-acc-panel a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
}

.bz-drawer-sale {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--bz-brand);
}

body.bz-nav-lock {
  overflow: hidden;
}

/* Scrolled compact state */
.bz-header-root.is-scrolled .bz-promo-wrap,
.bz-header-root.is-scrolled .bz-header-top {
  display: none;
}

/* Account dropdown in top bar */
.bz-account {
  position: relative;
}

.bz-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  z-index: 95;
  overflow: hidden;
}

.bz-account:hover .bz-account-menu,
.bz-account:focus-within .bz-account-menu {
  display: block;
}

.bz-account-menu a,
.bz-account-menu div {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
}

.bz-account-menu a:hover {
  background: #fafafa;
  color: var(--bz-brand);
}

/* Hide desktop-only / mobile-only pieces */
.bz-desktop-only {
  display: flex;
}

.bz-mobile-only {
  display: none;
}

@media (max-width: 1279px) {
  .bz-ig-block {
    display: none;
  }

  .bz-header-nav .bz-nav-ico {
    display: none;
  }
}

@media (max-width: 1099px) {
  .bz-header-nav {
    display: none;
  }

  .bz-hamburger {
    display: inline-flex;
  }

  .bz-header-top {
    display: none;
  }

  .bz-contact-text {
    display: none;
  }

  .bz-wa-block {
    display: none;
  }

  .bz-search-wrap {
    max-width: none;
  }

  .bz-mobile-tools {
    display: flex;
  }
}

@media (max-width: 767px) {
  .bz-desktop-only {
    display: none !important;
  }

  .bz-mobile-only {
    display: block;
  }

  .bz-promo-tab {
    font-size: 12px;
    padding: 7px 18px 8px;
    max-width: 92vw;
    white-space: normal;
    text-align: center;
  }

  .bz-header-main {
    padding: 8px 0;
    gap: 8px;
  }

  .bz-logo {
    flex: 1 1 auto;
    justify-content: center;
  }

  .bz-logo img {
    height: 48px;
    max-width: 170px;
  }

  .bz-search-wrap {
    display: none;
  }

  .bz-mobile-search {
    display: block;
    padding: 0 0 10px;
  }

  .bz-header-actions {
    gap: 0;
  }

  .bz-wa-block,
  .bz-ig-block,
  .bz-cart-btn .js-cart-label {
    display: none;
  }

  .bz-cart-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    background: transparent;
    color: #333 !important;
  }

  .bz-cart-btn:hover {
    background: transparent;
    color: var(--bz-brand) !important;
  }

  .bz-cart-btn i {
    font-size: 22px;
    color: inherit;
  }

  .bz-cart-count {
    display: none;
  }

  .bz-cart-count.has-items {
    display: inline-flex;
    top: 2px;
    right: 2px;
    background: var(--bz-brand);
    color: #fff;
  }

  .bz-mobile-tools {
    display: flex;
  }
}

@media (max-width: 359px) {
  .bz-logo img {
    height: 42px;
    max-width: 140px;
  }

  .bz-icon-btn,
  .bz-cart-btn {
    width: 38px;
    height: 38px;
  }
}
