/* Sticky header: logo left, range nav centred, utilities right — one row,
   with the dropdown panels hanging off it. Mirrors the prototype. */

.bb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e5df;
}

.bb-header__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  padding: 12px clamp(18px, 3vw, 34px);
}

.bb-header__logo { flex-shrink: 0; display: block; line-height: 0; }
.bb-header__logo img { height: 52px; width: auto; display: block; }
.bb-header__wordmark {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #17130f;
}

.bb-header__nav {
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

.bb-header__range {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: #17130f;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bb-header__range:hover,
.bb-header__range[aria-expanded="true"] { border-bottom-color: #8c6410; }

/* Utilities: three 44px targets. */
.bb-utils { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bb-utils > a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  position: relative;
  transition: background 0.18s ease;
}
.bb-utils > a:hover { background: #efe7d8; }
.bb-utils svg { width: 24px; height: 24px; }
.bb-utils__count {
  position: absolute;
  top: 4px;
  right: 3px;
  background: #8c6410;
  color: #fdf7e4;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65625rem;
  font-weight: 700;
}

/* Panels: full width of the bar, one row of columns. */
.bb-header__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ece8df;
  border-bottom: 2px solid #17130f;
  box-shadow: 0 22px 36px -20px rgba(0, 0, 0, 0.3);
  animation: bb-fade-up 0.16s ease;
}
.bb-header__panel[hidden] { display: none; }

@keyframes bb-fade-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.bb-header__panelinner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(18px, 3.2vw, 56px);
  padding: clamp(30px, 3vw, 44px) clamp(24px, 5vw, 80px) clamp(52px, 5vw, 76px);
  box-sizing: border-box;
}

.bb-header__col { min-width: 0; flex: 1 1 auto; }

.bb-header__coltitle {
  display: block;
  font-size: 0.65625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c6410;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ece8df;
}

.bb-header__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  max-height: 320px;
  column-gap: 30px;
}
.bb-header__col li { padding: 4.5px 0; }
.bb-header__col a {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3a352c;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.15s ease;
}
.bb-header__col a:hover { color: #17130f; }
.bb-header__count { font-size: 0.65625rem; color: #8a8172; }

.bb-header__promo { flex: 0 0 auto; align-self: center; }

@media (max-width: 1100px) {
  .bb-header__nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .bb-header__panelinner { flex-wrap: wrap; }
  .bb-header__promo { align-self: flex-start; }
}
