/* =========================================
   BRAND DROPDOWN (lives inside site header)
   ========================================= */

/* Left-align header row so logo sits left and dropdown pushes right */
.site-header-row-1 {
  justify-content: flex-start;
}

/* Raise header above sticky search bar (search bar is z-index:10, same level) */
header.site-header {
  z-index: 20;
}

/* ===== Dropdown wrapper ===== */
.brand-dropdown {
  position: relative;
  display: inline-block;
}

/* ===== Trigger button ===== */
.brand-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.brand-dropdown:hover .brand-dropdown-trigger {
  background: rgba(0, 0, 0, 0.06);
}

.brand-dropdown-trigger.has-active {
  background: #111;
  color: #fff;
}

.brand-dropdown:hover .brand-dropdown-trigger.has-active {
  background: #333;
}

.brand-dropdown-arrow {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.brand-dropdown:hover .brand-dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== Dropdown list ===== */
.brand-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 4px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.brand-dropdown:hover .brand-dropdown-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== Open state for touch/tap (mobile) ===== */
.brand-dropdown.open .brand-dropdown-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-dropdown.open .brand-dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== Brand items ===== */
.brand-dropdown-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.brand-dropdown-item:hover {
  background: #f0f0f0;
}

.brand-dropdown-item.active {
  background: #111;
  color: #fff;
}

.brand-dropdown-item.active:hover {
  background: #333;
}
