.context-menu {
  position: fixed;
  display: none;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
  padding: 10px 0;
  z-index: 9999;
  min-width: 240px;
  font-family: inherit;
}

/* 🔹 Заголовок */
.ctx-header {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  color: #111;
  border-bottom: 1px solid #eee;
  margin-bottom: 6px;
}

/* 🔹 Главный пункт */
.ctx-item {
  position: relative;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.ctx-item:hover {
  background: #f6f6f6;
}

/* текст */
.ctx-title {
  font-size: 14px;
  color: #222;
}

/* стрелка */
.ctx-item::after {
  content: "›";
  font-size: 16px;
  opacity: 0.5;
}

/* если нет подкатегорий — убрать стрелку */
.ctx-item:has(.ctx-sub:empty)::after {
  display: none;
}

/* 🔹 Подкатегории */
.ctx-sub {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: none;
}

/* показываем */
.ctx-item:hover > .ctx-sub {
  display: block;
}

.ctx-sub-item-wrapper:hover > .ctx-sub-deep {
  display: block;
}

/* 🔹 Подкатегория */
.ctx-sub-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ctx-sub-item:hover {
  background: #f2f2f2;
  color: var(--primary-color);
}

.context-menu.is-product-nav {
  min-width: 260px;
  max-width: 300px;
}

.ctx-nav-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.ctx-nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ctx-nav-btn:hover {
  background: #f4f4f4;
  color: var(--primary-color);
}

.ctx-nav-btn + .ctx-nav-btn {
  border-top: 1px solid rgba(0,0,0,0.04);
}
.ctx-dev-placeholder {
  padding: 12px 16px;
  font-size: 14px;
  color: #444;
}
.ctx-title {
  font-size: 14px;
  color: #222;
  text-decoration: none;
  display: block;
  width: 100%;
}

.ctx-sub-item-wrapper {
  position: relative;
}

.ctx-sub-deep {
  top: 0;
  left: 100%;
}