/* ===============================
   🌀 Логотип (site branding block)
   =============================== */
.logo-top-region {
  position: relative;
  z-index: 1040;
  padding: 30px 0 10px;
  text-align: center;
  background-color: #fff;
}

.logo-top-region .navbar-brand {
  display: inline-block;
  margin: 0 auto;
}

.logo-top-region img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ===============================
   📦 Меню Header (menu-header-block)
   =============================== */
.menu-header-block {
  position: relative;
  background-color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease;
}

/* ✅ Sticky при скролле */
.menu-header-block.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--bs-headings); /* например, #000 */
}

.menu-header-block.fixed-top,
.menu-header-block.fixed-top * {
  color: #fff !important;
  fill: #fff !important;
}


/* 👉 Главное меню */
.menu-header-block .main-menu-wrapper {
  flex-grow: 1;
}

.menu-header-block nav ul.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-header-block nav ul.navbar-nav li a {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.menu-header-block nav ul.navbar-nav li a:hover {
  color: var(--bs-primary);
}


/* 🎯 Иконки справа */
.menu-header-block .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  flex-shrink: 0;
}

.menu-header-block .search-icon,
.menu-header-block .cart-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.menu-header-block .search-icon:hover,
.menu-header-block .cart-link:hover {
  transform: scale(1.15);
}


/* 🔴 Badge на иконке корзины */
.cart-icon-wrapper {
  position: relative;
}

.cart-icon-wrapper .cart-icon {
  position: relative;
  display: inline-block;
}

.cart-icon-wrapper .badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
  font-size: 10px;
  padding: 4px 6px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  font-weight: 600;
  border-radius: 50rem;
  white-space: nowrap;
}


/* 🔘 Триггер для IntersectionObserver */
#menu-trigger {
  height: 1px;
  width: 100%;
}


/* ===============================
   📱 Мобильная адаптация
   =============================== */
@media (max-width: 767px) {
  .logo-top-region {
    padding: 20px 0 10px;
  }

  .logo-top-region img {
    max-width: 160px;
  }

  .menu-header-block {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 16px;
  }

  .menu-header-block .main-menu-wrapper {
    flex-grow: 1;
  }

  .menu-header-block nav ul.navbar-nav {
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .menu-header-block .header-actions {
    justify-content: flex-end;
    gap: 16px;
    width: auto;
  }

  .menu-header-block .cart-icon-wrapper .badge {
    font-size: 10px;
    padding: 2px 4px;
    top: -4px;
    right: -4px;
  }

  .menu-header-block nav ul.navbar-nav li a {
    font-size: 13px;
    padding: 6px 8px;
  }
}
